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

迈向大型语言模型的原子

Towards Atoms of Large Language Models

The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences, Beijing, China(认知与决策智能复杂系统重点实验室,自动化研究所,中国科学院,北京,中国);School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China(人工智能学院,中国科学院大学,北京,中国)

Chenhui Hu, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao

AI总结:

本文提出原子理论,通过原子内积(AIP)定义、评估和识别大型语言模型的基本表示单元(原子),并证明在阈值激活稀疏自编码器(TSAE)下原子可识别,实验发现神经元和特征不满足理想原子标准,而通过匹配TSAE容量与数据规模可识别出近乎完美的原子。

摘要:

大型语言模型(LLMs)的基本表示单元(FRUs)尚未定义,这限制了对它们底层机制的进一步理解。在本文中,我们引入原子理论来系统地定义、评估和识别这样的FRUs,我们称之为原子。基于原子内积(AIP),一种捕捉LLM表示底层几何结构的非欧几里得度量,我们正式定义了原子,并提出了理想原子的两个关键标准:忠实性($R^2$)和稳定性($q^*$)。我们进一步证明,在阈值激活稀疏自编码器(TSAEs)下原子是可识别的。在实验上,我们揭示了LLMs中普遍存在的表示偏移,并证明AIP纠正了这种偏移以捕捉底层的表示几何结构。我们发现两个广泛使用的单元——神经元和特征——不符合理想原子的条件:神经元是忠实的($R^2=1$)但不稳定($q^*=0.5\%$),而特征更稳定($q^*=68.2\%$)但不忠实($R^2=48.8\%$)。为了找到LLMs的原子,利用TSAEs下的原子可识别性,我们通过大规模实验表明,只有当TSAE容量与数据规模匹配时,才能实现可靠的原子识别。在此洞察的指导下,我们在Gemma2-2B、Gemma2-9B和Llama3.1-8B的各层中识别出具有近乎完美忠实性($R^2=99.9\%$)和稳定性($q^*=99.8\%$)的FRUs,在统计上满足理想原子的标准。进一步分析证实,这些原子与理论预期一致,并表现出显著更高的单语义性。总体而言,我们提出并验证了原子理论作为理解LLMs内部表示的基础。代码可在https://github.com/ChenhuiHu/towards_atoms获取。

英文摘要:

The fundamental representational units (FRUs) of large language models (LLMs) remain undefined, limiting further understanding of their underlying mechanisms. In this paper, we introduce Atom Theory to systematically define, evaluate, and identify such FRUs, which we term atoms. Building on the atomic inner product (AIP), a non-Euclidean metric that captures the underlying geometry of LLM representations, we formally define atoms and propose two key criteria for ideal atoms: faithfulness ($R^2$) and stability ($q^*$). We further prove that atoms are identifiable under threshold-activated sparse autoencoders (TSAEs). Empirically, we uncover a pervasive representation shift in LLMs and demonstrate that the AIP corrects this shift to capture the underlying representational geometry. We find that two widely used units, neurons and features, fail to qualify as ideal atoms: neurons are faithful ($R^2=1$) but unstable ($q^*=0.5\%$), while features are more stable ($q^*=68.2\%$) but unfaithful ($R^2=48.8\%$). To find atoms of LLMs, leveraging atom identifiability under TSAEs, we show via large-scale experiments that reliable atom identification occurs only when the TSAE capacity matches the data scale. Guided by this insight, we identify FRUs with near-perfect faithfulness ($R^2=99.9\%$) and stability ($q^*=99.8\%$) across layers of Gemma2-2B, Gemma2-9B, and Llama3.1-8B, satisfying the criteria of ideal atoms statistically. Further analysis confirms that these atoms align with theoretical expectations and exhibit substantially higher monosemanticity. Overall, we propose and validate Atom Theory as a foundation for understanding the internal representations of LLMs. Code available at https://github.com/ChenhuiHu/towards_atoms.

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

↑