arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.06653cs.CL
收藏

上下文学习(及反学习)中的长度偏差

In-Context Learning (and Unlearning) of Length Biases

University of Virginia(弗吉尼亚大学)

Stephanie Schoch, Yangfeng Ji

AI总结:

本研究针对大型语言模型上下文学习中未充分探索的统计数据偏差问题,聚焦长度偏差展开实证分析,揭示其对模型预测的影响及调节因素,并验证上下文学习可抵消预编码长度偏差,为模型去偏提供新途径。

摘要:

大型语言模型已展现出强大的上下文学习能力,即通过在提示词中附加示例输入输出对进行演示。然而,现有研究表明模型会在上下文中学习词汇和标签偏差,这对模型性能和鲁棒性均产生负面影响。其他统计数据偏差的影响仍未得到充分探索,本研究旨在解决这一问题。我们专门研究了长度偏差对上下文学习的影响。结果表明,模型确实会在上下文窗口中学习长度偏差以用于预测,并进一步实证分析了调节模型偏差程度的因素。此外,我们发现通过上下文学习长度信息可抵消模型中已编码的长度偏差(如通过微调),这揭示了上下文学习在无需昂贵参数更新的情况下对模型预测行为去偏的能力。

英文摘要:

Large language models have demonstrated strong capabilities to learn in-context, where exemplar input-output pairings are appended to the prompt for demonstration. However, existing work has demonstrated the ability of models to learn lexical and label biases in-context, which negatively impacts both performance and robustness of models. The impact of other statistical data biases remains under-explored, which this work aims to address. We specifically investigate the impact of length biases on in-context learning. We demonstrate that models do learn length biases in the context window for their predictions, and further empirically analyze the factors that modulate the level of bias exhibited by the model. In addition, we show that learning length information in-context can be used to counter the length bias that has been encoded in models (e.g., via fine-tuning). This reveals the power of in-context learning in debiasing model prediction behaviors without the need for costly parameter updates.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑