arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.06382cs.CLcs.AIstat.ML
收藏

自注意力架构中下个词预测的自发主题变化动态

Dynamics of Spontaneous Topic Changes in Next Token Prediction with Self-Attention

York University(约克大学)

Mumin Jia, Jairo Diaz-Rodriguez

AI总结:

研究探讨了自注意力架构中自发主题变化的动态,揭示了其与人类认知的异同,并验证了该现象在先进语言模型中的存在。

摘要:

人类认知被情感、情境或联想线索引起的突然、自发的主题切换所打断——这种现象在神经科学中被称为自发思维。相比之下,基于自注意力的模型依赖于输入中的结构模式来预测每个下一个词,缺乏自发性。受此区别的启发,我们表征了自注意力架构中的自发主题变化,揭示了其与自发人类思维的相似性和差异性。首先,在简化的一层自注意力模型中,我们通过定义主题为一组令牌优先级图(TPGs)建立了理论结果,并在合适条件下证明了以下几点:(1)模型保持与输入主题相关的令牌优先级顺序;(2)自发主题变化只能在较低优先级令牌数量多于输入主题所有较高优先级令牌时发生;(3)与人类认知不同,更长的上下文长度或更模糊的输入主题会降低自发变化的可能性。其次,我们实证验证了这些动态在现代最先进的大语言模型(LLMs)中持续存在,突显了人类认知与人工智能在自发主题变化方面的根本差异。据我们所知,此前没有研究以如此贴近人类思维的方式探讨这些问题。

英文摘要:

Human cognition is punctuated by abrupt, spontaneous shifts between topics-driven by emotional, contextual, or associative cues-a phenomenon known as spontaneous thought in neuroscience. In contrast, self-attention based models depend on structured patterns over their inputs to predict each next token, lacking spontaneity. Motivated by this distinction, we characterize spontaneous topic changes in self-attention architectures, revealing both their similarities and their divergences from spontaneous human thought. First, we establish theoretical results under a simplified, single-layer self-attention model with suitable conditions by defining the topic as a set of Token Priority Graphs (TPGs). Specifically, we demonstrate that (1) the model maintains the priority order of tokens related to the input topic, (2) a spontaneous topic change can occur only if lower-priority tokens outnumber all higher-priority tokens of the input topic, and (3) unlike human cognition, the longer context length or the more ambiguous input topic reduces the likelihood of spontaneous change. Second, we empirically validate that these dynamics persist in modern, state-of-the-art LLMs, underscoring a fundamental disparity between human cognition and AI behaviour in the context of spontaneous topic changes. To the best of our knowledge, no prior work has explored these questions with a focus as closely aligned to human thought.

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

↑