arXiv:2502.06653cs.CL2025-02NAACL被引 3

模型会学习上下文中的长度偏差,还能用它来消除预设的长度偏见。

In-Context Learning (and Unlearning) of Length Biases

  • 通过上下文示例学习输入输出长度模式
  • 模型在预测时会受上下文长度影响,偏差可被实证
  • 无需更新参数即可用上下文反向修正模型偏见

大型语言模型具备上下文学习能力,即通过在提示中添加示例输入输出对来完成任务。然而已有研究表明,模型会学习到词汇和标签等偏差,损害性能与鲁棒性。本文关注其他统计偏差,特别是长度偏差的影响。我们证明模型确实会在上下文窗口内学习长度偏差并据此做出预测,并进一步实证分析了影响偏差程度的关键因素。此外,我们发现利用上下文学习长度信息,可有效抵消模型中已编码的长度偏差(如通过微调引入)。这表明上下文学习具有无需参数更新即可实现去偏的能力,展现出其在行为纠正方面的潜力。

原文摘要 · Abstract (English)

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.

上下文学习模型偏见去偏长度偏差

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。