arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2505.14892cs.CLcs.AI
收藏

大语言模型中状态动力学的缩放定律

Scaling Laws for State Dynamics in Large Language Models

Brown University(布朗大学)

Jacob X Li, Shreyas S Raman, Jessica Wan, Fahad Samman, Jazlyn Lin

AI总结:

该研究探究大语言模型的状态转移动力学建模能力,在三类有限状态系统任务中验证了准确率随状态空间扩大、转移变稀疏而下降的规律,定位了负责状态传播的注意力头,指出状态跟踪源于分布式交互而非显式符号计算。

摘要:

大语言模型(LLM)正越来越多地被用于需要内部状态跟踪的任务中,但人们对其建模状态转移动力学的能力仍知之甚少。我们评估了LLM在3个领域中对确定性状态动力学的捕捉能力:盒子跟踪、抽象DFA(确定有限自动机)序列和复杂文本游戏,这三个领域均可形式化为有限状态系统。我们发现,在所有任务中,下一状态预测准确率会随着状态空间规模增大和转移稀疏性提升而下降。GPT-2 XL在低复杂度设置下准确率约为70%,但当盒子数量超过5或状态数量超过10时,准确率会降至30%以下。在DFA任务中,当状态数>10且转移数<30时,Pythia-1B的准确率无法超过50%。通过激活补丁技术,我们识别出了负责传播状态信息的注意力头:GPT-2 XL的第22层第20头,以及Pythia-1B第10、11、12、14层的注意力头。尽管这些头能成功传递相关状态特征,但动作信息无法被可靠地路由到最终token,表明联合状态-动作推理能力较弱。我们的研究结果表明,LLM中的状态跟踪能力源于下一token预测头的分布式交互,而非显式的符号计算。

英文摘要:

Large Language Models (LLMs) are increasingly used in tasks requiring internal state tracking, yet their ability to model state transition dynamics remains poorly understood. We evaluate how well LLMs capture deterministic state dynamics across 3 domains: Box Tracking, Abstract DFA Sequences, and Complex Text Games, each formalizable as a finite-state system. Across tasks, we find that next-state prediction accuracy degrades with increasing state-space size and sparse transitions. GPT-2 XL reaches about 70% accuracy in low-complexity settings but drops below 30% when the number of boxes or states exceeds 5 or 10, respectively. In DFA tasks, Pythia-1B fails to exceed 50% accuracy when the number of states is > 10 and transitions are < 30. Through activation patching, we identify attention heads responsible for propagating state information: GPT-2 XL Layer 22 Head 20, and Pythia-1B Heads at Layers 10, 11, 12, and 14. While these heads successfully move relevant state features, action information is not reliably routed to the final token, indicating weak joint state-action reasoning. Our results suggest that state tracking in LLMs emerges from distributed interactions of next-token heads rather than explicit symbolic computation.

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

↑