迈向通用性:研究跨语言模型架构的机制相似性
Towards Universality: Studying Mechanistic Similarity Across Language Model Architectures
AI总结:
本研究使用Sparse Autoencoders探究Transformers和Mambas的机制相似性,发现两者在特征和归纳电路层面高度相似,并揭示了Mamba特有的Off-by-One motif差异。
摘要:
可解释性中的通用性假设提出,不同神经网络在相似任务上可能收敛至实现相似的算法。在本研究中,我们考察了语言建模的两种主流架构,即Transformers和Mambas,以探究其机制相似性的程度。我们提出使用Sparse Autoencoders (SAEs) 从这些模型中分离出可解释特征,并表明这两个模型中的大多数特征是相似的。我们还验证了特征相似性与通用性之间的相关性。随后,我们深入对Mamba模型进行电路级分析,发现Mamba中的归纳电路在结构上与Transformers中的类似。我们还发现了一个细微差异,称之为“Off-by-One motif”:一个token的信息被写入其下一个位置的SSM状态中。而Transformers中token间的交互并未表现出这种趋势。
英文摘要:
The hypothesis of Universality in interpretability suggests that different neural networks may converge to implement similar algorithms on similar tasks. In this work, we investigate two mainstream architectures for language modeling, namely Transformers and Mambas, to explore the extent of their mechanistic similarity. We propose to use Sparse Autoencoders (SAEs) to isolate interpretable features from these models and show that most features are similar in these two models. We also validate the correlation between feature similarity and Universality. We then delve into the circuit-level analysis of Mamba models and find that the induction circuits in Mamba are structurally analogous to those in Transformers. We also identify a nuanced difference we call \emph{Off-by-One motif}: The information of one token is written into the SSM state in its next position. Whilst interaction between tokens in Transformers does not exhibit such trend.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。