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

对真相的过度思考:理解语言模型如何处理错误示例

Overthinking the Truth: Understanding how Language Models Process False Demonstrations

UC Berkeley(加州大学伯克利分校)

Danny Halawi, Jean-Stanislas Denain, Jacob Steinhardt

AI总结:

该研究从语言模型内部表征出发,发现少样本学习中错误示例会引发“过度思考”现象,其机制可能与晚期层的“错误归纳头”相关,为理解和防范模型有害行为提供了新方向。

摘要:

现代语言模型可通过少样本学习模仿复杂模式,无需微调即可完成高难度任务。但如果上下文中存在不准确或有害内容,模仿也会导致模型复现这些内容。我们从模型内部表征的视角研究有害模仿现象,发现了两个相关现象:“过度思考”和“错误归纳头”。第一个现象“过度思考”出现在我们从中间层解码预测时,分别输入正确与错误的少样本示例进行对比。在早期层,两种示例引发的模型行为相似,但在某个“关键层”行为会急剧分化,此后输入错误示例时的准确率会逐步下降。第二个现象“错误归纳头”是过度思考的一种可能机制性成因:它们是晚期层中的注意力头,会关注并复制先前示例中的错误信息,消融这些头可减轻过度思考。除了科学认知价值,我们的结果表明,研究模型中间计算过程有望成为理解并防范模型有害行为的有效途径。

英文摘要:

Modern language models can imitate complex patterns through few-shot learning, enabling them to complete challenging tasks without fine-tuning. However, imitation can also lead models to reproduce inaccuracies or harmful content if present in the context. We study harmful imitation through the lens of a model's internal representations, and identify two related phenomena: "overthinking" and "false induction heads". The first phenomenon, overthinking, appears when we decode predictions from intermediate layers, given correct vs. incorrect few-shot demonstrations. At early layers, both demonstrations induce similar model behavior, but the behavior diverges sharply at some "critical layer", after which the accuracy given incorrect demonstrations progressively decreases. The second phenomenon, false induction heads, are a possible mechanistic cause of overthinking: these are heads in late layers that attend to and copy false information from previous demonstrations, and whose ablation reduces overthinking. Beyond scientific understanding, our results suggest that studying intermediate model computations could be a promising avenue for understanding and guarding against harmful model behaviors.

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

↑