NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Select, Label, Evaluate: Active Testing in NLP

Antonio Purificato, Maria Sofia Bucarelli, Andrea Bacciu, Fabrizio Silvestri, Amin MantracharXiv 2026

TL;DR

Evaluating NLP models usually requires annotating massive, expensive test sets to ensure reliability. This paper introduces a formalized Active Testing framework for NLP that intelligently selects only the most informative samples for human labeling, reducing annotation costs by up to 95% while keeping performance estimation error within 1%. The authors also introduce a novel attention-based sampling strategy and an adaptive stopping criterion that automatically determines when you've annotated enough data.

What Problem Does This Paper Address?

While machine learning models can tolerate a bit of noise in their training data, evaluation data demands perfection. A flawed test set leads to unreliable metrics, meaning test data annotation requires meticulous, high-quality human verification. In specialized domains like medical or technical text, this becomes incredibly slow and expensive.

Furthermore, standard evaluation practices are highly redundant. Annotating an entire test set often wastes resources on samples that don't actually help clarify how well a model is performing. While Active Learning focuses on selecting data to improve model training, this paper tackles Active Testing—the art of selecting a minimal, smart subset of test data to accurately estimate a model's final performance metrics (like Accuracy or ROUGE) without breaking the bank.

Methods

The authors formalize Active Testing for NLP by combining smart sample selection with statistically rigorous estimation:

  1. Unbiased Estimation: Selecting specific "informative" samples introduces a sampling bias. To fix this, the framework uses an Inverse Probability Weighted Estimator (the Horvitz-Thompson estimator) to dynamically weight samples based on their probability of being selected, ensuring the final performance estimate remains statistically unbiased.
  2. The "Agreement" Strategy (Novel): The authors propose a new query strategy. It passes text embeddings through a lightweight, independent multi-head self-attention layer and calculates the variance of attention weights across the heads. High variance means the attention heads "disagree" on where to focus, signaling a complex, highly informative test sample.
  3. Adaptive Stopping Criterion (Novel): Existing active testing methods require a predefined budget. The authors introduce an algorithm that monitors the convergence between the smart unbiased estimator and a baseline random estimator. Once the difference falls below a tiny threshold ($\tau$), the system automatically stops the annotation process, proving that further labeling is unnecessary.

Datasets

The framework was rigorously benchmarked across 18 datasets spanning 4 core NLP tasks:

  • Text Classification (12 datasets): AG's News, Banking77, DBPedia, FNC-1, QNLI, SST-2, TREC-6, IMDB, PubMed, Emotion, Rotten, and a Multilingual dataset.
  • POS Tagging (2 datasets): UD-ATIS, UD-EWT.
  • Named Entity Recognition (2 datasets): WikiNeural, Universal NER.
  • Summarization (2 datasets): CNN, XLSum.

Key Insights and Ideas

  • No Universal Winner: No single active testing strategy dominates every task. Performance varies based on data distribution, task type, and the underlying embedding model used to calculate sample relationships.
  • Attention Disagreement is a Powerful Heuristic: The proposed Agreement strategy performs exceptionally well on tight budgets. Interestingly, an ablation study showed it doesn't even need to be trained; using raw attention maps from a pretrained BERT model yields comparable accuracy, showing that attention variance naturally captures semantic complexity.
  • Cost-Aware Multilingual Evaluation: In multilingual settings, annotating certain languages (like English) is significantly cheaper than others. By incorporating cost-based priors, the framework successfully prioritizes cheaper languages to evaluate cross-lingual models, maintaining accuracy while slashing financial costs.
  • Imbalance Mitigation: Active testing strategies (specifically Agreement) double as excellent minority-class detectors in highly imbalanced datasets, helping annotators find rare, high-impact events (like fraud or negative feedback) much faster than random sampling.

Key Results

  • Massive Cost Savings: Active Testing achieved up to a 95% reduction in annotations on datasets like UD-EWT while keeping the performance estimate within 1% of the true full-test-set score.
  • Drastic Budget Cuts: As shown in Figure 1, using Active Testing drops the evaluation cost of datasets like IMDB and PubMed from hundreds of dollars to nearly zero.
Figure 1: Annotation cost of using Active Testing vs full test set (↓is better). Each sample has a cost of 0.02$ (LabelYourData). The active cost is the one required to reach an estimation quality < 1% wrt. full budget.
  • Stopping Criterion Efficiency: On the QNLI and IMDB datasets, the adaptive stopping criterion safely halted annotations after just 100 and 50 samples respectively (out of a 1,000 budget), avoiding 90-95% of the planned annotation work without sacrificing estimation quality.
Stopping criterion in action on IMDB and QNLI

Limitations and Future Work

The primary limitation acknowledged by the authors is that this framework operates in a static evaluation setting. It assumes fixed predictors and static test distributions.

As LLMs and NLP applications increasingly shift toward dynamic environments, the authors note that extending Active Testing to evolving models, continuously updated benchmarks, and interactive NLP systems remains an important and open direction for future research.

Summary updated

BibTeX
@misc{purificato2026select,
  author = {Antonio Purificato and Maria Sofia Bucarelli and Andrea Bacciu and Fabrizio Silvestri and Amin Mantrach},
  title = {{Select, Label, Evaluate: Active Testing in NLP}},
  year = {2026},
  eprint = {2603.21840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.21840},
}
Figure