arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.07386cs.CL
收藏

语言模型中的算法相变:算术任务的机制性案例研究

Algorithmic Phase Transitions in Language Models: A Mechanistic Case Study of Arithmetic

Carnegie Mellon University(卡内基梅隆大学);Dartmouth College(达特茅斯学院)

Alan Sun, Ethan Sun, Warren Shepard

AI总结:

该研究定义并探究语言模型的算法稳定性,以双操作数算术为案例发现Gemma-2-2b在位数不同的加法子任务上采用不同计算模型,指出算法不稳定性或影响逻辑推理零样本性能。

摘要:

大语言模型的零样本能力使其成为无需显式训练即可解决各类任务的强大工具。然而,目前尚不清楚这些模型如何实现此类性能,也不清楚为何它们能零样本完成某些任务却无法完成其他任务。本文通过定义并研究语言模型中的算法稳定性——即任务规范变化导致模型所采用的问题求解策略发生的变化——对这一现象作出了部分阐释。我们聚焦于一项泛化需要算法稳定性的任务:双操作数算术。令人意外的是,我们发现Gemma-2-2b在高度相关的子任务(即四位数加法与八位数加法)上采用了截然不同的计算模型。我们的研究结果表明,算法不稳定性可能是导致语言模型在某些逻辑推理任务上零样本表现不佳的一个因素,因为它们难以抽象出不同的问题求解策略并在策略间平滑过渡。

英文摘要:

Zero-shot capabilities of large language models make them powerful tools for solving a range of tasks without explicit training. It remains unclear, however, how these models achieve such performance, or why they can zero-shot some tasks but not others. In this paper, we shed some light on this phenomenon by defining and investigating algorithmic stability in language models -- changes in problem-solving strategy employed by the model as a result of changes in task specification. We focus on a task where algorithmic stability is needed for generalization: two-operand arithmetic. Surprisingly, we find that Gemma-2-2b employs substantially different computational models on closely related subtasks, i.e. four-digit versus eight-digit addition. Our findings suggest that algorithmic instability may be a contributing factor to language models' poor zero-shot performance across certain logical reasoning tasks, as they struggle to abstract different problem-solving strategies and smoothly transition between them.

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

↑