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

大语言模型中的序列枚举

Sequential Enumeration in Large Language Models

University of Padova(帕多瓦大学)

Kuinan Hou, Marco Zorzi, Alberto Testolin

AI总结:

本文研究了大语言模型在序列枚举任务中的能力,发现其在被提示时可部署计数程序,但无法自发进行计数,揭示了神经方法与符号方法在组合泛化上的差距。

摘要:

可靠地计数和生成物品序列仍然是神经网络,包括大语言模型(LLMs)的重大挑战。事实上,尽管这种能力可以被基于串行计算的规则符号系统轻易处理,但神经模型学习系统性地部署计数程序却很困难,这些技能应通过学习获得。先前的研究表明,递归架构只能近似跟踪和枚举事件序列,不清楚现代深度学习系统,包括LLMs,是否能在离散符号序列上部署系统性计数程序。本文旨在通过研究五种最先进的LLMs(包括专有、开源和推理模型)的序列枚举能力来填补这一空白。我们通过字母和单词列表的序列命名和生成任务探测LLMs,采用多种提示指令来探索链式思维在自发出现计数策略中的作用。我们还评估了相同架构但规模更大的开源模型,以查看是否掌握计数原则遵循扩展定律,并分析了序列枚举过程中的嵌入动态,以研究数字的涌现编码。我们发现,一些LLMs在被明确提示时确实能够部署计数程序,但没有任何LLM在被简单要求枚举序列中物品数量时会自发进行计数。我们的结果表明,尽管LLMs有令人印象深刻的涌现能力,但它们目前还无法可靠且系统地部署计数程序,突显了神经方法和符号方法在组合泛化方面的持续差距。

英文摘要:

Reliably counting and generating sequences of items remain a significant challenge for neural networks, including Large Language Models (LLMs). Indeed, although this capability is readily handled by rule-based symbolic systems based on serial computation, learning to systematically deploy counting procedures is difficult for neural models, which should acquire these skills through learning. Previous research has demonstrated that recurrent architectures can only approximately track and enumerate sequences of events, and it remains unclear whether modern deep learning systems, including LLMs, can deploy systematic counting procedures over sequences of discrete symbols. This paper aims to fill this gap by investigating the sequential enumeration abilities of five state-of-the-art LLMs, including proprietary, open-source, and reasoning models. We probe LLMs in sequential naming and production tasks involving lists of letters and words, adopting a variety of prompting instructions to explore the role of chain-of-thought in the spontaneous emerging of counting strategies. We also evaluate open-source models with the same architecture but increasing size to see whether the mastering of counting principles follows scaling laws, and we analyze the embedding dynamics during sequential enumeration to investigate the emergent encoding of numerosity. We find that some LLMs are indeed capable of deploying counting procedures when explicitly prompted to do so, but none of them spontaneously engage in counting when simply asked to enumerate the number of items in a sequence. Our results suggest that, despite their impressive emergent abilities, LLMs cannot yet robustly and systematically deploy counting procedures, highlighting a persistent gap between neural and symbolic approaches to compositional generalization.

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

↑