2025-11-19 · 进阶 · 自然语言处理 · 机器学习

Mitigating Label Length Bias in Large Language Models

本文提出了一种名为NCC的归一化上下文校准方法,用于减轻大型语言模型在多词标签分类任务中的标签长度偏差,显著提高了模型性能。

更新于 2025-11-19。作者:Mario Sanz-Guerrero、Katharina von der Wense。

中文摘要

大型语言模型(LLMs)是强大的零样本和少样本学习器。然而,当在一系列候选选项中进行预测时,LLMs会遭受标签偏差的问题,而现有的校准方法忽略了由多令牌类别标签引起的偏差。我们解决了一个我们称之为标签长度偏差的问题,即即使经过标准的长度归一化,不同长度的标签仍然被不一致地对待。为了缓解这一问题,我们提出了归一化上下文校准(NCC),这是一种在完整标签级别进行归一化和校准的有效方法。NCC在多个数据集和模型上实现了相对于先前方法的统计显著改进,F1值提升了高达10%。此外,NCC将偏差缓解扩展到了更广泛的任务,如多项选择题回答。我们的分析表明,当与上下文学习相结合时,NCC对少样本示例选择的敏感性较低,需要更少的示例即可实现有竞争力的性能,并产生更可靠的置信度估计。这些发现突出了缓解完整标签偏差对于提高基于LLM的方法性能和鲁棒性的重要性,尤其是在真实世界应用中,类别标签自然由多个令牌组成。

英文摘要

Large language models (LLMs) are powerful zero- and few-shot learners. However, when predicting over a set of candidate options, LLMs suffer from label biases, and existing calibration methods overlook biases arising from multi-token class labels. We tackle an issue we call label length bias, where labels of different lengths are treated inconsistently, even after standard length normalization. To mitigate it, we propose normalized contextual calibration (NCC), an effective method that normalizes and calibrates predictions at the full-label level. NCC achieves statistically significant improvements over prior approaches across multiple datasets and models, with gains of up to 10% F1. Moreover, NCC extends bias mitigation to broader tasks such as multiple-choice question answering. Our analysis shows that, when combined with in-context learning, NCC is less sensitive to few-shot example selection, requires fewer examples for competitive performance, and produces more reliable confidence estimates. These findings highlight the importance of mitigating full-label biases to improve the performance and robustness of LLM-based methods, particularly in real-world applications where class labels naturally consist of multiple tokens.

解读

一句话总结

本文提出了一种名为NCC的归一化上下文校准方法,用于减轻大型语言模型在多词标签分类任务中的标签长度偏差,显著提高了模型性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源