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

Mingxuan Xia, Haobo Wang, Yixuan Li, Zewei Yu, Jindong Wang +2 more
6/4/2025
cs.LGcs.CL

Official code: MingxuanXia/CanDist (14 stars, last commit 2025-05-27).

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. The source code is available at https://github.com/MingxuanXia/CanDist.

View on arXivView PDF

Code Implementations(1)

This is the PyTorch implementation of our ACL 2025 paper CanDist.

141Shell, PythonMay 27, 20251 years ago

Similar Papers

Cite this paper

@article{xia2025prompt,
  title  = {Prompt Candidates, then Distill: A Teacher-Student Framework for LLM-driven Data Annotation},
  author = {Mingxuan Xia and Haobo Wang and Yixuan Li and Zewei Yu and Jindong Wang and Junbo Zhao and Runze Wu},
  year   = {2025},
  eprint = {2506.03857},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.03857v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.03857.svg)](https://codeofpaper.com/paper/2506.03857)

Discussion