TnT-LLM: Text Mining at Scale with Large Language Models

Authors: Mengting Wan, Tara Safavi, Sujay Kumar Jauhar, Yujin Kim, Scott Counts, Jennifer Neville, Siddharth Suri, Chirag Shah, Ryen W White, Longqi Yang, Reid Andersen, Georg Buscher, Dhruv Joshi, Nagu Rangan

Submitted to arXiv on 18 Mar. 2024
License: CC BY-NC-ND 4.0
Abstract

Transforming unstructured text into structured and meaningful forms, organized by useful category labels, is a fundamental step in text mining for downstream analysis and application. However, most existing methods for producing label taxonomies and building text-based label classifiers still rely heavily on domain expertise and manual curation, making the process expensive and time-consuming. This is particularly challenging when the label space is under-specified and large-scale data annotations are unavailable. In this paper, we address these challenges with Large Language Models (LLMs), whose prompt-based interface facilitates the induction and use of large-scale pseudo labels. We propose TnT-LLM, a two-phase framework that employs LLMs to automate the process of end-to-end label generation and assignment with minimal human effort for any given use-case. In the first phase, we introduce a zero-shot, multi-stage reasoning approach which enables LLMs to produce and refine a label taxonomy iteratively. In the second phase, LLMs are used as data labelers that yield training samples so that lightweight supervised classifiers can be reliably built, deployed, and served at scale. We apply TnT-LLM to the analysis of user intent and conversational domain for Bing Copilot (formerly Bing Chat), an open-domain chat-based search engine. Extensive experiments using both human and automatic evaluation metrics demonstrate that TnT-LLM generates more accurate and relevant label taxonomies when compared against state-of-the-art baselines, and achieves a favorable balance between accuracy and efficiency for classification at scale. We also share our practical experiences and insights on the challenges and opportunities of using LLMs for large-scale text mining in real-world applications.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Another approach to the problem Cites this paper
    Multi-Agent Large Language Models for Complex Text Classification
    Hezi Jiang · 2025 · 2025 3rd International Conference on Artificial Intelligence and Automation Control (AIAC) · Not summarized yet

    Multi-Agent Large Language Models routes each input to a specialized classifier agent, while TnT-LLM induces a label taxonomy and trains scalable classifiers; it reports higher accuracy than TnTLLM baselines.

    Abstract

    Many real-world text classification tasks involve heterogeneous inputs that reflect diverse semantic focuses. Large language models (LLMs) offer a promising solution, but existing methods remain limited in adaptability: they rely on static prompts, assume a single labelling perspective, and lack mechanisms to adaptively select the appropriate interpretation for each input. We introduce a multi-agent framework with specialised LLMs and a trainable controller that assigns inputs to the most semantically aligned agent. This enables accurate, efficient labelling without manual segmentation. Empirical results show that our method achieves 40% higher accuracy than TnTLLM baselines while maintainin…

  2. Very close Same question
    Automatic Taxonomy Generation Based on Large Language Models in the Automotive Domain
    Yue Zhao, Tailu Guan, Xiaokang Liu et al. · 2024 · 2024 3rd International Conference on Artificial Intelligence, Human-Computer Interaction and Robotics (AIHCIR) · Not summarized yet

    Automatic Taxonomy Generation constructs LLM-based labeling systems for automotive text, addressing the challenge of reducing expert effort that TnT-LLM tackles for conversational data.

    Abstract

    The effective extraction and analysis of text-based data from social and niche media by automotive companies can provide more comprehensive and in-depth insights into user needs, thereby enhancing user experience and optimizing product offerings and services. A critical step in enabling effective analysis lies in structured content organized by categorical labels. However, most existing methodologies for constructing labeling systems and developing labeled datasets remain heavily dependent on manual analysis and processing by industry experts, rendering them inadequate to adapt to the rapid shifts in contemporary markets. Recent advancements in large language models (LLMs) offer promising av…

  3. Very close Another approach to the problem
    LLM-as-classifier: Semi-Supervised, Iterative Framework for Hierarchical Text Classification using Large Language Models
    Doohee You, A. Parisi, Zach Vander Velden et al. · 2025 · arXiv.org · preprint, not peer reviewed · Not summarized yet

    LLM-as-classifier builds hierarchical text classifiers through a semi-supervised iterative framework, whereas TnT-LLM generates taxonomies and pseudo-labels before training lightweight classifiers.

    Abstract

    The advent of Large Language Models (LLMs) has provided unprecedented capabilities for analyzing unstructured text data. However, deploying these models as reliable, robust, and scalable classifiers in production environments presents significant methodological challenges. Standard fine-tuning approaches can be resource-intensive and often struggle with the dynamic nature of real-world data distributions, which is common in the industry. In this paper, we propose a comprehensive, semi-supervised framework that leverages the zero- and few-shot capabilities of LLMs for building hierarchical text classifiers as a framework for a solution to these industry-wide challenges. Our methodology emphas…

  4. Close Another approach to the problem
    Automatic Text Labeling Method Based on Large Language Models
    Chen Li, Henry Dyke A. Balmeo · 2024 · International Journal of Emerging Technologies and Advanced Applications · Not summarized yet

    LLM4Label uses similarity-based seed selection, few-shot prompting, and human correction to label entity data, rather than TnT-LLM’s taxonomy-first workflow.

    Abstract

    With the increasing demand for large amounts of training data for model development, this paper proposes LLM4Label, an automatic text labeling method based on large language models, to assist human labelers in annotating text data. LLM4Label first selects the most representative seed data using a clustering algorithm based on text similarity. It then constructs prompt dialogues with few-shot prompts to stimulate the language model’s performance on entity labeling tasks, enabling it to automatically and efficiently label more data. Finally, LLM4Label introduces human feedback to correct un- certain labeling results and retrains the model with the corrected annotations. Experiments show that L…

  5. Close Same question Cited by this paper
    Using Large Language Models to Generate, Validate, and Apply User Intent Taxonomies
    C. Shah, R. White, Reid Andersen et al. · 2023 · ACM Transactions on the Web · cited 81 times · Not summarized yet

    Using Large Language Models to Generate, Validate, and Apply User Intent Taxonomies labels information-access intents, the same object TnT-LLM analyzes for Bing Copilot.

    Abstract

    Understanding user intents in information access scenarios can help us provide more relevant and personalized search results and recommendations. However, analyzing user intents is not easy, especially for emerging forms of Web search such as Artificial Intelligence (AI)-driven chat. To understand user intents from retrospective log data, we need a way to label them with meaningful categories that capture their diversity and dynamics. Existing methods rely on manual or Machine-Learned (ML) labeling, which is either expensive or inflexible for large and dynamic datasets. Large Language Models (LLMs) could generate rich and relevant concepts, descriptions, and examples for user intents using l…

  6. Close Same method, another problem
    AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotators
    Xingwei He, Zheng-Wen Lin, Yeyun Gong et al. · 2023 · North American Chapter of the Association for Computational Linguistics · cited 312 times · Not summarized yet

    AnnoLLM uses LLMs as guided annotators to produce labeled training data, a role also assigned to LLMs in TnT-LLM’s second phase.

    Abstract

    Many natural language processing (NLP) tasks rely on labeled data to train machine learning models with high performance. However, data annotation is time-consuming and expensive, especially when the task involves a large amount of data or requires specialized domains. Recently, GPT-3.5 series models have demonstrated remarkable few-shot and zero-shot ability across various NLP tasks. In this paper, we first claim that large language models (LLMs), such as GPT-3.5, can serve as an excellent crowdsourced annotator when provided with sufficient guidance and demonstrated examples. Accordingly, we propose AnnoLLM, an annotation system powered by LLMs, which adopts a two-step approach, explain-th…

  7. Close Same method, another problem
    Leveraging Large Language Model Outputs for Enhanced Domain Specific Decision-Making
    R. Chandra, Vandana Mehndiratta, Shilpa Srivastava et al. · 2024 · 2024 4th International Conference on Advancement in Electronics & Communication Engineering (AECE) · Not summarized yet

    Leveraging Large Language Model Outputs uses multiple LLMs to obtain diverse annotations for domain-specific decisions, while TnT-LLM uses LLM-generated labels to train classifiers.

    Abstract

    Data annotation is crucial for training machine learning models through supervised learning, with the quality, consistency, and quantity of annotations significantly impacting model performance [18]. However, achieving high-quality annotations at scale typically requires substantial investments. Large Language Models (LLMs) offer a promising solution for large-scale annotation, but they have limitations such as inconsistency [1], task-specific unsuitability [1], and inherent training biases [2]. Rather than attempting to eliminate these biases, we propose leveraging them to create a more informed annotation process. We introduce an approach that employs multiple LLMs to gather diverse perspe…

  8. Close Same method, another problem Cites this paper
    TaSC-LLM: A Large Language Model–Enabled Business Intelligence Framework for Topic Analytics in Live-Streaming E-Commerce Systems
    Geng Peng, Xiaoxi Wang, Ruoshi Zhang et al. · 2026 · Systems · Not summarized yet

    TaSC-LLM combines taxonomy construction with zero-shot classification for live-streaming comments, applying an LLM-driven labeling pipeline to a different text domain.

    Abstract

    In live-streaming e-commerce systems, massive volumes of user-generated danmaku constitute a critical yet underutilized source of business intelligence. However, transforming such unstructured, noisy, and highly context-dependent textual data into structured and actionable knowledge remains a fundamental challenge for enterprise information systems. To address this issue, this study proposes TaSC-LLM, an LLM-enabled topic recognition method for constructing interpretable topic measurements from unstructured user-generated content. The proposed framework integrates topic taxonomy construction and zero-shot classification into a unified semantic reasoning pipeline. Unlike conventional topic mo…

Prior work it builds on

  1. Close Same method, another problem
    Large Language Models can Accurately Predict Searcher Preferences
    Paul Thomas, S. Spielman, Nick Craswell et al. · 2023 · Annual International ACM SIGIR Conference on Research and Development in Information Retrieval · cited 317 times · Not summarized yet

    Large Language Models can Accurately Predict Searcher Preferences prompts an LLM to label relevance at scale using searcher feedback, while TnT-LLM uses LLMs to generate labels for scalable classification.

    Abstract

    Much of the evaluation and tuning of a search system relies on relevance labels---annotations that say whether a document is useful for a given search and searcher. Ideally these come from real searchers, but it is hard to collect this data at scale, so typical experiments rely on third-party labellers who may or may not produce accurate annotations. Label quality is managed with ongoing auditing, training, and monitoring. We discuss an alternative approach. We take careful feedback from real searchers and use this to select a large language model (LLM), and prompt, that agrees with this feedback; the LLM can then produce labels at scale. Our experiments show LLMs are as accurate as human la…

  2. Related Same method, another problem
    TopicGPT: A Prompt-based Topic Modeling Framework
    Chau Minh Pham, Alexander Miserlis Hoyle, Simeng Sun et al. · 2024 · North American Chapter of the Association for Computational Linguistics · cited 286 times · Not summarized yet

    TopicGPT uses prompts to discover human-aligned topics in text collections, sharing TnT-LLM’s use of LLMs to derive structured categories from unstructured text.

    Abstract

    Topic modeling is a well-established technique for exploring text corpora. Conventional topic models (e.g., LDA) represent topics as bags of words that often require “reading the tea leaves” to interpret; additionally, they offer users minimal control over the formatting and specificity of resulting topics. To tackle these issues, we introduce TopicGPT, a prompt-based framework that uses large language models (LLMs) to uncover latent topics in a text collection. TopicGPT produces topics that align better with human categorizations compared to competing methods: it achieves a harmonic mean purity of 0.74 against human-annotated Wikipedia topics compared to 0.64 for the strongest baseline. Its…

  3. Related Another approach to the problem
    NetTaxo: Automated Topic Taxonomy Construction from Text-Rich Network
    Jing-Bo Shang, Xinyang Zhang, Liyuan Liu et al. · 2020 · The Web Conference · cited 73 times · Not summarized yet

    NetTaxo builds topic taxonomies by combining document text and network structure, whereas TnT-LLM uses multi-stage LLM reasoning to generate and refine taxonomies.

    Abstract

    The automated construction of topic taxonomies can benefit numerous applications, including web search, recommendation, and knowledge discovery. One of the major advantages of automatic taxonomy construction is the ability to capture corpus-specific information and adapt to different scenarios. To better reflect the characteristics of a corpus, we take the meta-data of documents into consideration and view the corpus as a text-rich network. In this paper, we propose NetTaxo, a novel automatic topic taxonomy construction framework, which goes beyond the existing paradigm and allows text data to collaborate with network structure. Specifically, we learn term embeddings from both text and netwo…

  4. Related Review
    A Brief Survey of Text Mining
    A. Hotho, A. Nürnberger, G. Paass · 2005 · Ldv Forum · cited 1,051 times · Not summarized yet

    A Brief Survey of Text Mining surveys text-mining tasks and methods, providing field-wide context for TnT-LLM’s automated text-mining framework.

    Abstract

    The enormous amount of information stored in unstructured texts cannot simply be used for further processing by computers, which typically handle text as simple sequences of character strings. Therefore, specific (pre-)processing methods and algorithms are required in order to extract useful patterns. Text mining refers generally to the process of extracting interesting information and knowledge from unstructured text. In this article, we discuss text mining as a young and interdisciplinary field in the intersection of the related areas information retrieval, machine learning, statistics, computational linguistics and especially data mining. We describe the main analysis tasks preprocessing,…

  5. Related Same method, another problem
    ChatGPT outperforms crowd workers for text-annotation tasks
    F. Gilardi, Meysam Alizadeh, M. Kubli · 2023 · Proceedings of the National Academy of Sciences of the United States of America · cited 1,969 times · Not summarized yet

    ChatGPT outperforms crowd workers tests ChatGPT as an annotator for relevance, stance, topics, and frames, overlapping with TnT-LLM’s use of LLMs for labeling.

    Abstract

    Many NLP applications require manual text annotations for a variety of tasks, notably to train classifiers or evaluate the performance of unsupervised models. Depending on the size and degree of complexity, the tasks may be conducted by crowd workers on platforms such as MTurk as well as trained annotators, such as research assistants. Using four samples of tweets and news articles (n = 6,183), we show that ChatGPT outperforms crowd workers for several annotation tasks, including relevance, stance, topics, and frame detection. Across the four datasets, the zero-shot accuracy of ChatGPT exceeds that of crowd workers by about 25 percentage points on average, while ChatGPT’s intercoder agreemen…

Papers that cite it

  1. Related Review Uses this paper in depth
    Transforming Data Annotation with AI Agents: A Review of Architectures, Reasoning, Applications, and Impact
    Md. Monjurul Karim, Sangeen Khan, Dong Hoang Van et al. · 2025 · Future Internet · cited 36 times · Not summarized yet

    Transforming Data Annotation with AI Agents reviews LLM-agent architectures and applications for annotation, a broader topic that includes TnT-LLM’s automated labeling workflow.

    Abstract

    Data annotation serves as a critical foundation for artificial intelligence (AI) and machine learning (ML). Recently, AI agents powered by large language models (LLMs) have emerged as effective solutions to longstanding challenges in data annotation, such as scalability, consistency, cost, and limitations in domain expertise. These agents facilitate intelligent automation and adaptive decision-making, thereby enhancing the efficiency and reliability of annotation workflows across various fields. Despite the growing interest in this area, a systematic understanding of the role and capabilities of AI agents in annotation is still underexplored. This paper seeks to fill that gap by providing a …

  2. Close Broader context
    Leveraging LLMs for Fair Data Labeling and Validation in Crowdsourcing Environments [Vision Paper]
    Ibrahim Mohamed Serouis, Florence Sèdes · 2024 · BigData Congress [Services Society] · cited 1 time · Not summarized yet

    Leveraging LLMs for Fair Data Labeling discusses annotation quality, validation, and bias across modalities, concerns surrounding the large-scale LLM labeling used by TnT-LLM.

    Abstract

    The rapid expansion of large datasets, encompassing text, images, audio, and video, presents substantial challenges for data labeling, a crucial step in machine learning and data science workflows. Large Language Models (LLMs) provide a promising approach for automating and improving the accuracy of data labeling across various modalities. However, their application in this area introduces specific challenges, such as managing diverse data types, maintaining high-quality annotations, handling computational complexity, and, critically, addressing and mitigating biases associated with automated methods. This vision paper examines the potential of LLMs to enable fair data labeling and validatio…

  3. Close Same method, another problem
    AllHands :Ask Me Anything on Large-scale Verbatim Feedback via Large Language Models
    Chao-Yun Zhang, Zi-Cheng Ma, Yu-Hao Wu et al. · 2024 · IEEE International Conference on Data Engineering · cited 11 times · Not summarized yet

    AllHands uses LLMs to classify and model topics in large-scale user feedback, applying automated text structuring to a different feedback-analysis task.

    Abstract

    Verbatim feedback constitutes a valuable repository of user experiences, opinions, and requirements, crucial for data engineering and software development. Extracting meaningful insights from large-scale feedback data presents a significant challenge. This paper introduces Allhands, an innovative ana-lytic framework that transforms traditional large-scale feedback analysis tasks through a natural language interface, leveraging large language models (LLMs). Allhands performs initial classification and topic modeling on feedback to convert it into a structurally augmented format, enhancing accuracy, robustness and generalization with the aid of LLMs. Subsequently, an LLM-based code-first agent…

  4. Close Same method, another problem
    Large Language Model in Healthcare for the Prediction of Genetic Variants from Unstructured Text Medicine Data Using Natural Language Processing
    Noor Ayesha, Muhammad Mujahid, A. Mirdad et al. · 2025 · Comput. Mater. Continua · cited 6 times · Not summarized yet

    Large Language Model in Healthcare applies LLMs to classify unstructured biomedical text, using language-model classification in a distinct domain from TnT-LLM.

    Abstract

    : Large language models (LLMs) and natural language processing (NLP) have significant promise to improve efficiency and refine healthcare decision-making and clinical results. Numerous domains, including healthcare, are rapidly adopting LLMs for the classification of biomedical textual data in medical research. The LLM can derive insights from intricate, extensive, unstructured training data. Variants need to be accurately identified and classified to advance genetic research, provide individualized treatment, and assist physicians in making better choices. However, the sophisticated and perplexing language of medical reports is often beyond the capabilities of the devices we now utilize. Su…

  5. Close Same method, another problem
    Large language model-based paper classification framework with key-insight extraction and confidence-weighted voting.
    Zihan Song, Shan Huang, Ngeemasara Thapa et al. · 2026 · Research Synthesis Methods · cited 5 times · Not summarized yet

    Large language model-based paper classification combines insight extraction and confidence-weighted voting to classify research papers, applying LLMs to a different large-scale text-labeling task.

    Abstract

    Systematic reviews (SRs) are critical for evidence-based research but are time-consuming and labor-intensive. The rapid expansion of academic publications further challenges the performance and applicability of existing screening and classification methods. While large language models (LLMs) present new opportunities for automation, limited research has examined whether they can achieve classification performance comparable to human reviewers in large-scale, multi-class settings. With the goal of improving classification performance, we proposed an LLM-based framework that leverages full-text key-insight extraction to enhance literature classification. We constructed a manually curated datas…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 1 November 2026.

The illustrated guide to the papers around a paper