arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.04479cs.CLcs.AI
收藏

无需聚类,无需路由:Transformer实际如何处理稀有词元

No Clustering, No Routing: How Transformers Actually Process Rare Tokens

ENS, Université PSL, EHESS, CNRS Paris, France(巴黎大学PSL研究所、EHESS、CNRS)

Jing Liu

AI总结:

该研究针对大语言模型稀有词元特化机制不明的问题,通过神经元分析、聚类和注意力头消融实验,发现稀有词元处理依赖分布式的平台神经元形成双重计算机制,且无注意力优先路由,揭示其特化源于训练驱动的分布式分化而非架构模块化。

摘要:

大语言模型在稀有词元预测上存在困难,但其特化的驱动机制仍不明确。已有研究识别出用于稀有词元的特化“平台(plateau)”神经元,它们遵循独特的三阶段影响模式,但这些神经元的功能组织方式尚不明确。我们通过神经元影响分析、基于图的聚类以及对GPT-2 XL和Pythia模型的注意力头消融实验对此展开研究。研究发现:(1)稀有词元处理需要超出幂律阶段(该阶段足以处理常见词元)的额外平台神经元,形成双重计算机制;(2)平台神经元呈空间分布,而非形成模块化聚类;(3)注意力机制不会向特化神经元优先路由信号。这些结果表明,稀有词元特化通过分布式的、训练驱动的分化产生,而非架构模块化,在实现自适应容量分配的同时保留了上下文敏感的灵活性。

英文摘要:

Large language models struggle with rare token prediction, yet the mechanisms driving their specialization remain unclear. Prior work identified specialized ``plateau'' neurons for rare tokens following distinctive three-regime influence patterns \cite{liu2025emergent}, but their functional organization is unknown. We investigate this through neuron influence analyses, graph-based clustering, and attention head ablations in GPT-2 XL and Pythia models. Our findings show that: (1) rare token processing requires additional plateau neurons beyond the power-law regime sufficient for common tokens, forming dual computational regimes; (2) plateau neurons are spatially distributed rather than forming modular clusters; and (3) attention mechanisms exhibit no preferential routing to specialists. These results demonstrate that rare token specialization arises through distributed, training-driven differentiation rather than architectural modularity, preserving context-sensitive flexibility while achieving adaptive capacity allocation.

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

↑