arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.07656cs.LG
收藏

机制可置换性:跨层匹配特征

Mechanistic Permutability: Match Features Across Layers

T-Tech;Moscow Institute of Physics and Technologies(莫斯科物理技术学院);HSE University(高等经济大学)

Nikita Balagansky, Ian Maksimov, Daniil Gavrilov

AI总结:

针对神经网络跨层特征对齐难题,提出无需数据的 SAE Match 方法,通过最小化折叠参数的均方误差匹配特征,有效捕获特征演化并近似隐藏状态,推进了机制可解释性研究。

摘要:

理解深度神经网络中特征如何跨层演化是机制可解释性中的一个基本挑战,这主要是由于多义性和特征叠加造成的。虽然稀疏自编码器(SAEs)已被用于从单个层中提取可解释特征,但跨层对这些特征进行对齐一直是一个开放问题。在本文中,我们提出了 SAE Match,一种新颖的、无需数据的方法,用于跨神经网络的不同层对齐 SAE 特征。我们的方法通过最小化 SAE 折叠参数之间的均方误差来匹配特征,该技术将激活阈值纳入编码器和解码器权重中,以解释特征尺度的差异。通过对 Gemma 2 语言模型进行大量实验,我们证明我们的方法有效地捕获了跨层的特征演化,提高了特征匹配质量。我们还表明特征会持续存在于多个层中,并且我们的方法可以近似跨层的隐藏状态。我们的工作推进了对神经网络中特征动力学的理解,并为机制可解释性研究提供了一种新工具。

英文摘要:

Understanding how features evolve across layers in deep neural networks is a fundamental challenge in mechanistic interpretability, particularly due to polysemanticity and feature superposition. While Sparse Autoencoders (SAEs) have been used to extract interpretable features from individual layers, aligning these features across layers has remained an open problem. In this paper, we introduce SAE Match, a novel, data-free method for aligning SAE features across different layers of a neural network. Our approach involves matching features by minimizing the mean squared error between the folded parameters of SAEs, a technique that incorporates activation thresholds into the encoder and decoder weights to account for differences in feature scales. Through extensive experiments on the Gemma 2 language model, we demonstrate that our method effectively captures feature evolution across layers, improving feature matching quality. We also show that features persist over several layers and that our approach can approximate hidden states across layers. Our work advances the understanding of feature dynamics in neural networks and provides a new tool for mechanistic interpretability studies.

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

↑