通过稀疏自编码器寻找信念几何结构
Finding Belief Geometries with Sparse Autoencoders
AI总结:
本文提出一种通过稀疏自编码器、k子空间聚类和AANet发现变换器表示中简单形结构子空间的管道,验证了在多部分隐藏马尔可夫模型训练的变换器中,Gemma-2-9B中存在候选简单形几何结构。
摘要:
理解内部表示的几何结构是机械可解释性的重要目标。先前工作显示,由隐藏马尔可夫模型生成的序列训练的变换器将概率信念状态编码为残差流中的简单形几何结构,顶点对应于潜在生成状态。大型语言模型在自然文本上是否发展出类似的几何表示仍是一个开放问题。本文介绍了一种发现变换器表示中候选简单形结构子空间的管道,结合稀疏自编码器(SAEs)、SAE特征的k子空间聚类和使用AANet的简单形拟合。我们验证了该管道在训练于多部分隐藏马尔可夫模型的变换器上的有效性。应用于Gemma-2-9B时,我们识别出13个优先聚类,显示出候选简单形几何结构(K≥3)。一个关键挑战是区分真正的信念状态编码与瓷砖伪影:潜在变量可以跨越简单形子空间,而混合坐标可能不携带超出任何单个特征的预测信号。因此,我们采用重心预测作为主要的区分测试。在13个优先聚类中,3个在近顶点样本上表现出高度显著优势(Wilcoxon p<10^{-14}),4个在简单形内部样本上表现良好。总共5个不同的真实聚类通过至少一个分割,而没有空聚类通过两者。一个聚类,768_596,还实现了数据集中最高的因果操控分数。这是唯一一次被动预测和主动干预收敛的情况。我们提出这些发现作为初步证据,表明Gemma-2-9B的表示空间中存在真正的信念状几何结构,并识别出需要进一步验证这一解释的结构化评估方法。
英文摘要:
Understanding the geometric structure of internal representations is a central goal of mechanistic interpretability. Prior work has shown that transformers trained on sequences generated by hidden Markov models encode probabilistic belief states as simplex-shaped geometries in their residual stream, with vertices corresponding to latent generative states. Whether large language models trained on naturalistic text develop analogous geometric representations remains an open question. We introduce a pipeline for discovering candidate simplex-structured subspaces in transformer representations, combining sparse autoencoders (SAEs), $k$-subspace clustering of SAE features, and simplex fitting using AANet. We validate the pipeline on a transformer trained on a multipartite hidden Markov model with known belief-state geometry. Applied to Gemma-2-9B, we identify 13 priority clusters exhibiting candidate simplex geometry ($K \geq 3$). A key challenge is distinguishing genuine belief-state encoding from tiling artifacts: latents can span a simplex-shaped subspace without the mixture coordinates carrying predictive signal beyond any individual feature. We therefore adopt barycentric prediction as our primary discriminating test. Among the 13 priority clusters, 3 exhibit a highly significant advantage on near-vertex samples (Wilcoxon $p < 10^{-14}$) and 4 on simplex-interior samples. Together 5 distinct real clusters pass at least one split, while no null cluster passes either. One cluster, 768_596, additionally achieves the highest causal steering score in the dataset. This is the only case where passive prediction and active intervention converge. We present these findings as preliminary evidence that genuine belief-like geometry exists in Gemma-2-9B's representation space, and identify the structured evaluation that would be required to confirm this interpretation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。