arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.14175cs.LGcs.AIcs.CLhep-th
收藏

Transformer 中的错误模型

A model of errors in transformers

International Centre for Theoretical Sciences, Tata Institute of Fundamental Research, Bengaluru, India(理论科学国际研究中心,印度塔塔基础研究研究所,班加罗尔);Google Deepmind, Bengaluru, India(谷歌DeepMind,班加罗尔)

Suvrat Raju, Praneeth Netrapalli

AI总结:

本文提出了一种Transformer错误模型,通过双参数关系解释任务复杂度与准确性的关系,并展示了如何通过提示减少错误率。

摘要:

我们研究了在需要确定性输出的任务(如算术)上,LLMs 的错误率,以及需要重复处理少量替代选项的标记的处理。我们认为,当注意力机制中的小错误积累到超过阈值时,会导致错误预测,基于这一见解,我们推导出一个定量的双参数关系,用于描述准确性和任务复杂性之间的关系。这两个参数随提示和模型而变化;可以解释为基本噪声率以及可以预测的可能错误标记的数量。我们的分析受到“有效场论”视角的启发:LLM 的许多原始参数可以重新组织为仅两个参数,这些参数控制错误率。我们进行了广泛的实证测试,使用 Gemini 2.5 Flash、Gemini 2.5 Pro 和 DeepSeek R1,并发现预测的准确性和观察到的准确度在各种任务中具有很好的一致性,尽管我们在某些情况下也发现了偏差。我们的模型提供了一种替代方法,以反驳关于LLMs在长重复任务中出现错误表明“推理崩溃”或无法表达“组合性”功能的建议。最后,我们展示了如何构造提示以减少错误率。

英文摘要:

We study the error rate of LLMs on tasks like arithmetic that require a deterministic output, and repetitive processing of tokens drawn from a small set of alternatives. We argue that incorrect predictions arise when small errors in the attention mechanism accumulate to cross a threshold, and use this insight to derive a quantitative two-parameter relationship between the accuracy and the complexity of the task. The two parameters vary with the prompt and the model; they can be interpreted in terms of an elementary noise rate, and the number of plausible erroneous tokens that can be predicted. Our analysis is inspired by an ``effective field theory'' perspective: the LLM's many raw parameters can be reorganized into just two parameters that govern the error rate. We perform extensive empirical tests, using Gemini 2.5 Flash, Gemini 2.5 Pro and DeepSeek R1, and find excellent agreement between the predicted and observed accuracy for a variety of tasks, although we also identify deviations in some cases. Our model provides an alternative to suggestions that errors made by LLMs on long repetitive tasks indicate the ``collapse of reasoning'', or an inability to express ``compositional'' functions. Finally, we show how to construct prompts to reduce the error rate.

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

↑