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

Prompt Candidates, then Distill: A Teacher-Student Framework for LLM-driven Data Annotation

Mingxuan Xia, Haobo Wang, Yixuan Li, Zewei Yu, Jindong Wang, Junbo Zhao, Runze Wu

Abstract

Recently, Large Language Models (LLMs) have demonstrated significant potential for data annotation, markedly reducing the labor costs associated with downstream applications. However, existing methods mostly adopt an aggressive strategy by prompting LLM to determine a single gold label for each unlabeled sample. Due to the inherent uncertainty within LLMs, they often produce incorrect labels for difficult samples, severely compromising the data quality for downstream applications. Motivated by ambiguity aversion in human behaviors, we propose a novel candidate annotation paradigm wherein large language models are encouraged to output all possible labels when incurring uncertainty. To ensure unique labels are provided for downstream tasks, we develop a teacher-student framework CanDist that distills candidate annotations with a Small Language Model (SLM). We further provide a rigorous justification demonstrating that distilling candidate annotations from the teacher LLM offers superior theoretical guarantees compared to directly using single annotations. Extensive experiments across six text classification tasks validate the effectiveness of our proposed method.

Introduction

Large Language Models (LLMs) have revolutionized data annotation by providing a cost-effective alternative to human labor. However, standard annotation pipelines typically rely on "Single Annotation" (SA) prompting, where the model is forced to select exactly one label. This approach often leads to "overconfidence" errors: when an LLM is uncertain between two categories, it may arbitrarily pick one, resulting in incorrect labels that degrade the quality of downstream training data.

As illustrated in Figure 1, this behavior contrasts with human "ambiguity aversion." When humans are unsure, they instinctively avoid risk by acknowledging uncertainty and considering multiple possibilities. By forcing a single choice, we lose the valuable information contained in the model's internal uncertainty.

Motivation: Ambiguity Aversion in LLMs vs Humans

The CanDist Framework

To address these limitations, we introduce CanDist, a teacher-student framework designed to leverage LLM uncertainty through a two-phase process: Candidate Annotation and Distillation.

1. Candidate Annotation (The Teacher)

Instead of a winner-take-all prompt, we use a Candidate Annotation Prompt. The LLM is encouraged to output a set of all plausible labels when it encounters uncertainty. This paradigm shift ensures that the "correct" label is much more likely to be included in the output set, even if the model cannot definitively rank it as the top choice.

2. Distillation with Distribution Refinery (The Student)

Downstream applications typically require a single, definitive label. To bridge this gap, we employ a Small Language Model (SLM), such as RoBERTa, as a student. The SLM is trained on the candidate sets generated by the teacher LLM.

A key component of this phase is the Distribution Refinery (DR). This mechanism exploits the "memorization effect" of deep neural networks—the tendency to learn simple, correct patterns before memorizing noise. As the SLM learns, the DR dynamically refines the probability distribution of the candidate labels, effectively filtering out incorrect candidates and converging on the true label.

The CanDist Framework: From Candidate Annotation to SLM Distillation

Experimental Evaluation

We evaluated CanDist across six diverse text classification benchmarks, including TREC (question typing), Medical Abstract (diagnosis), and Banking (high-cardinality intent classification with 77 classes).

Key Findings

  • Superior Accuracy: CanDist consistently outperformed traditional LLM-based baselines, including Zero-shot, Few-shot, and Chain-of-Thought prompting. On the TREC dataset, it achieved a 5.47% improvement over the best baseline.
  • Robustness to Uncertainty: The "1 - α-error" (the probability that the correct label exists within the candidate set) is significantly higher than the accuracy of single-label prompting. This confirms that LLMs often "know" the right answer but fail to select it under single-choice constraints.
  • Efficiency and Scalability: CanDist is more computationally efficient than methods like Self-Consistency, which require multiple expensive LLM samples. Furthermore, it scales well; when combined with sampling techniques, performance improves even further.
  • Theoretical Soundness: The paper provides a formal proof showing that distilling from a candidate set (e.g., top-2) offers superior noise tolerance compared to distilling from a single top-1 prediction.

Conclusion

CanDist offers a robust and efficient paradigm for LLM-driven data annotation. By embracing ambiguity aversion and using a teacher-student distillation framework, we can extract higher-quality labels from uncertain models. While currently focused on text classification, future work will explore extending this framework to structured and generative tasks, as well as addressing inherent model biases.

Summary updated

BibTeX
@inproceedings{xia2025prompt,
  author = {Mingxuan Xia and Haobo Wang and Yixuan Li and Zewei Yu and Jindong Wang and Junbo Zhao and Runze Wu},
  title = {{Prompt Candidates, then Distill: A Teacher-Student Framework for LLM-driven Data Annotation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure