Abstract
Supervised learning in Natural Language Processing (NLP) typically requires extensive human-labeled datasets, which are costly to produce. While Large Language Models (LLMs) can generate synthetic data, such approaches often suffer from domain shift and inefficiency. We present LLMaAA (Large Language Models as Active Annotators), a framework that leverages LLMs to label real-world unlabeled data within an active learning loop. By selecting the most informative samples for annotation, LLMaAA allows task-specific models to achieve superior performance compared to their LLM "teachers" while requiring an order of magnitude less data than synthetic generation baselines.
Introduction
The performance of modern NLP models is heavily dependent on the availability of high-quality labeled data. Traditionally, this reliance has necessitated expensive human annotation. Recent attempts to bypass this by using LLMs for synthetic data generation (creating both text and labels) have encountered two primary obstacles:
- Quality and Distribution: Synthetic text often fails to capture the nuances of real-world data, leading to a distribution mismatch.
- Efficiency: Synthetic methods typically require tens of thousands of examples to be effective, incurring significant API costs and latency.
LLMaAA addresses these issues by shifting the LLM's role from a data creator to an active annotator of existing unlabeled real-world data.
Methodology
The LLMaAA framework operates through an iterative loop designed to maximize the utility of every LLM call.
1. Active Data Acquisition
Rather than labeling data at random, LLMaAA employs a smaller Task-Specific Model (TAM), such as a BERT-based encoder, to scan a pool of unlabeled data. Using uncertainty-based strategies like Maximum Entropy or Least Confidence, the TAM identifies "hard" samples—those it is least certain about. Only these high-information samples are sent to the LLM for labeling.
2. Optimized LLM Annotation
To ensure high-quality "silver" labels from the LLM, the system utilizes:
- $k$-NN Example Retrieval: For each query, the system retrieves the $k$ most semantically similar examples from a small "gold" (human-labeled) seed set to serve as in-context demonstrations.
- Label Verbalizers: Abstract labels are converted into natural language descriptions, helping the LLM better understand the target schema.
3. Robust Training with Reweighting
To mitigate the impact of noise in LLM-generated labels, the framework incorporates an automatic reweighting technique. This meta-learning approach uses a small, clean validation set to assign higher importance to silver samples that align with gold-standard patterns, preventing the TAM from overfitting to LLM errors.
Experimental Results
The framework was evaluated on Named Entity Recognition (NER) and Relation Extraction (RE) tasks using datasets including Chinese OntoNotes 4.0, English CoNLL03, and Re-TACRED.
The "Ordinary Teacher" Effect
A key finding is that the student model (TAM) can surpass the performance of its teacher (LLM). For instance, on the Chinese OntoNotes dataset, a BERT model trained via LLMaAA achieved an F1 score of 74.00%, significantly outperforming the direct ChatGPT prompting score of 70.73%. This occurs because the student model learns the underlying data distribution, effectively smoothing out the random noise present in the teacher's annotations.
Efficiency and Cost-Effectiveness
LLMaAA demonstrated superior efficiency compared to synthetic generation methods like ZeroGen and FewGen. It achieved better results with only 500 LLM-annotated real samples than synthetic methods did with 5,000 generated samples, representing a 10x reduction in data requirements and associated costs.
Discussion and Conclusion
LLMaAA proves that LLMs are highly effective when used as active annotators of real-world data. The framework's ability to reach peak performance with only 30%–40% of the training data required by random selection highlights the power of active learning in this context.
However, some limitations remain. The framework still requires a small "gold" seed of approximately 100 human labels for $k$-NN retrieval and reweighting. Additionally, the student's performance is bounded by the teacher's ability to provide a meaningful signal; if the LLM fails completely in a niche domain, the active loop cannot compensate. Future research will explore the applicability of LLMaAA to more subjective tasks such as summarization and sentiment analysis in low-resource settings.
Summary updated