LLM的聚焦性如何?通过重复确定性预测任务的定量研究
A Quantitative Study of Sustained Focus in Large Language Models via Repetitive Deterministic Prediction Tasks
AI总结:
研究通过重复确定性预测任务揭示LLM在长序列中的准确性下降现象,提出统计物理模型解释内部干扰与外部条件的竞争,建立误差积累机制。
摘要:
我们研究了大型语言模型在重复确定性预测任务中的性能,并研究了序列准确率随输出长度的变化情况。每个此类任务都涉及重复相同的操作n次。例如,包括在给定规则下字符串中的字母替换、整数加法以及许多体量子力学中的字符串操作乘法。如果模型通过简单的重复算法执行该任务,则成功率应随序列长度指数衰减。相比之下,我们在领先的大型语言模型上的实验发现,在特征长度尺度之外,成功率出现陡峭的双指数下降,形成一个准确性悬崖,标志着从可靠生成到不稳定生成的转变。这表明模型无法独立执行每个操作。为了解释这一现象,我们提出了一种受统计物理启发的模型,该模型捕捉了来自提示的外部条件和生成令牌之间的内部干扰之间的竞争。该模型定量重现了观察到的临界点,并提供了注意力诱导干扰与序列层面失败之间的可解释联系。将模型拟合到多个模型和任务的实证结果,得到表征每个模型任务对内在错误率和错误积累因子的有效参数,为理解大型语言模型确定性准确性极限提供了系统框架。
英文摘要:
We investigate the performance of large language models (LLMs) on repetitive deterministic prediction tasks and study how the sequence accuracy rate (SAR) scales with output length. Each such task involves the repetition of the same operation $N$ times. Examples of such tasks include letter replacement in letter strings following a given rule, integer addition, and multiplication of string operators in many-body quantum mechanics. If the LLM performs the task by a simple repetition algorithm, the success rate would follow an exponential decay with sequence length. In contrast, our experiments on leading LLMs reveal a crossover that is sharper than exponential: $-\log\mathrm{SAR}$ grows super-linearly with $N$, and accuracy collapses around a characteristic length $N_*$, the accuracy cliff that separates reliable from unreliable generation. The hypothesis of independent per-step errors is rejected for every model and task we studied. The crossover is well described by a double-exponential accumulation law, $\mathrm{SAR}=\exp(-β_0 Nα^{N-1})$, whose crossover scale $N_*$ does not depend on the functional form chosen to fit it. To interpret this behaviour we introduce a minimal effective model in which step-correctness variables interact through dense random couplings and compete with an external field set by the prompt. Solved by direct enumeration, the model reproduces the super-linear error accumulation and the accuracy cliff qualitatively, and it assigns to each model--task pair two interpretable parameters, an intrinsic error rate and an error-accumulation factor.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。