Abstract
Supervised NLP models often struggle with generalization in low-data regimes or when facing distribution shifts. While Large Language Models (LLMs) can serve as high-quality annotators, their use is constrained by cost and latency. We present EAGLE, a framework that identifies the most informative samples for LLM annotation using a novel metric called Conditional Informativeness (CI). By sampling inputs where a finetuned model deviates most from its pre-trained base, we achieve superior generalization with significantly fewer annotations.
Introduction
The "brittleness" of supervised NLP models is a well-known challenge; models that excel on training data often fail when deployed in specialized domains like medical or legal text. While LLMs like GPT-4 can act as zero-shot experts, they are impractical for direct production use due to cost and privacy concerns. Distilling LLM knowledge into smaller "student" models is a common workaround, but random labeling is inefficient. The EAGLE framework addresses this by answering: Which specific unlabeled examples should we ask an LLM to annotate to maximize performance gains?
Methodology: The EAGLE Framework
The core of EAGLE is the Conditional Informativeness (CI) sampling strategy. Unlike standard active learning, which often uses uncertainty sampling, CI leverages the relationship between a model's pre-trained state and its finetuned state.
The algorithm measures the deviation between:
- The Base Model: A pre-trained model (e.g., BERT) providing general semantic embeddings.
- The Finetuned Model: The model after training on initial "source" data.
High CI indicates "base-inconsistent" samples—inputs where the finetuned model's prediction differs significantly from the base model's original semantic "hunch." These samples typically represent complex patterns or distribution shifts that the model has not yet mastered.
Key Insights: Why Base-Inconsistency Matters
The researchers found that uncertainty is a poor proxy for informativeness when using LLMs as annotators. Instead, focusing on samples where the finetuned model has moved far from its base state yields the highest gains. These samples often contain subtle semantic nuances.
As shown in the table above, a pair like "What is a good diet plan..." and "What food should I eat..." might be seen as low similarity by a base model but high by a finetuned one. Conversely, lexically similar but semantically different pairs (e.g., glucose vs. oxygen structure) are identified as high-priority for annotation when the models disagree.
Results and Generalization
EAGLE was evaluated on semantic similarity (QQP) and semantic search (Wikipedia, Amazon) tasks.
- Efficiency: On the Quora Question Pairs task, sampling just 10% of the target data via CI led to a higher AUC (88.1) than training on 100% of the target domain data (87.5).
- Domain Adaptation: In semantic search, CI-based sampling consistently outperformed random and uncertainty-based methods, particularly when moving between distinct categories (e.g., "Books" to "Kitchen" on Amazon).
Conclusion
The EAGLE framework demonstrates that selective LLM annotation, guided by Conditional Informativeness, can significantly enhance the generalization of smaller NLP models at a fraction of the cost of full dataset annotation. Future work will explore applying CI to generative tasks and using LLMs to synthesize entirely new training queries.
Summary updated