Skip to main content
QUICK REVIEW

[论文解读] Towards Principled Evaluations of Sparse Autoencoders for Interpretability and Control

Aleksandar Makelov, George Lange|arXiv (Cornell University)|May 14, 2024
Speech Recognition and SynthesisComputer Science被引用 3
一句话总结

该论文提出了一套原则性的框架,用于通过使用监督式特征字典作为基准,评估大语言模型中稀疏自编码器(SAE)学习的特征字典。该研究从三个维度评估无监督SAE:重建的充分性/必要性、通过特征编辑实现的可控性,以及可解释性,发现尽管SAE在IOI任务中学习到了可解释的特征,但在控制力和完整性方面仍不及监督式特征,并表现出特征遮蔽和过度分割等现象。

ABSTRACT

Disentangling model activations into meaningful features is a central problem in interpretability. However, the absence of ground-truth for these features in realistic scenarios makes validating recent approaches, such as sparse dictionary learning, elusive. To address this challenge, we propose a framework for evaluating feature dictionaries in the context of specific tasks, by comparing them against \emph{supervised} feature dictionaries. First, we demonstrate that supervised dictionaries achieve excellent approximation, control, and interpretability of model computations on the task. Second, we use the supervised dictionaries to develop and contextualize evaluations of unsupervised dictionaries along the same three axes. We apply this framework to the indirect object identification (IOI) task using GPT-2 Small, with sparse autoencoders (SAEs) trained on either the IOI or OpenWebText datasets. We find that these SAEs capture interpretable features for the IOI task, but they are less successful than supervised features in controlling the model. Finally, we observe two qualitative phenomena in SAE training: feature occlusion (where a causally relevant concept is robustly overshadowed by even slightly higher-magnitude ones in the learned features), and feature over-splitting (where binary features split into many smaller, less interpretable features). We hope that our framework will provide a useful step towards more objective and grounded evaluations of sparse dictionary learning methods.

研究动机与目标

  • 为了解决可解释性研究中缺乏真实特征的问题,特别是大语言模型(LLMs)中稀疏自编码器(SAEs)的特征问题。
  • 开发一种原则性、任务特定的评估框架,将无监督SAE与监督式特征字典进行基准对比。
  • 从三个维度评估SAE:激活重建的充分性与必要性、通过特征编辑实现的可控性,以及与因果角色一致的可解释性。
  • 识别并分析SAE训练中的系统性失败模式,如特征遮蔽和过度分割,使用真实模型和玩具模型进行分析。
  • 为未来SAE在可解释性和控制方面的研究提供更客观、基于事实且可复现的评估标准。

提出的方法

  • 通过使用模型输入(如提示词)和标注属性(如间接宾语名称)来引导特征发现,训练监督式特征字典。
  • 将监督式字典作为黄金标准,通过三个评估轴(重建保真度、通过特征编辑实现的可控性、F1分数对齐的可解释性)来评估无监督SAE。
  • 通过移除F1分数较高的特征并观察logit差值的恢复情况来测量充分性;通过仅保留F1分数最高的特征来测量必要性。
  • 在GPT-2 Small模型上,针对IOI任务应用该框架,使用在IOI特定数据或全分布数据(OpenWebText)上训练的SAE。
  • 通过注意力得分分解和logit差值分析,验证特征在模型行为中的因果角色。
  • 在简单玩具模型中重现并分析特征遮蔽和过度分割现象,以评估所观察现象的泛化能力。
Figure 1: Overview of our evaluation pipeline. We begin by selecting a specific model capability and then disentangling model activations into capability-relevant features using supervision. Then, we evaluate a given feature dictionary w.r.t. this capability, using the supervised features as a bench
Figure 1: Overview of our evaluation pipeline. We begin by selecting a specific model capability and then disentangling model activations into capability-relevant features using supervision. Then, we evaluate a given feature dictionary w.r.t. this capability, using the supervised features as a bench

实验结果

研究问题

  • RQ1监督式特征字典能否作为评估无监督SAE在重建保真度、可控性和可解释性方面的可靠基准?
  • RQ2在IOI任务上,基于任务特定(IOI)数据与全分布(OpenWebText)数据训练的SAE,在恢复和控制模型行为方面的能力有何差异?
  • RQ3SAE学习的特征在多大程度上反映了模型激活的真实因果结构?这通过其在logit差值恢复中的可解释性和必要性来衡量。
  • RQ4在SAE训练过程中,哪些系统性失败模式(如特征遮蔽和过度分割)会浮现?这些模式是否可在简化设置中重现?
  • RQ5所提出的评估框架能否用于客观比较和改进SAE训练目标与超参数?

主要发现

  • 监督式特征字典在IOI任务上实现了高重建保真度、高可控性和高可解释性,可作为SAE评估的强有力基准。
  • SAE学习的IOI任务特征具有可解释性,但效果不如监督式特征:任务特定SAE在控制模型行为时需要更少的编辑操作,但两者均未达到监督基线水平。
  • 在F1分数阈值为0.8时,SAE特征对logit差值恢复具有充分性和必要性,表明在高阈值下具有高度忠实性和完整性。
  • 特征遮蔽现象表现为:即使因果相关特征的激活幅度仅略有差异,SAE仍优先选择幅度更高的特征,表明存在对幅度而非因果相关性的偏好。
  • 观察到特征过度分割现象:二元概念(如姓名身份)被拆分为多个低级特征,导致可解释性降低并增加冗余性。
  • 特征遮蔽和过度分割在简单玩具模型中均可重现,表明这些现象很可能是SAE训练中的普遍现象,而非IOI任务的特异性产物。
Figure 2: Sufficiency (left) and necessity (right) evaluations of reconstructions of cross-sections of the IOI circuit computed using supervised feature dictionaries, task- and full-distribution SAEs. Left : average logit difference when replacing activations in cross-sections of the IOI circuit wit
Figure 2: Sufficiency (left) and necessity (right) evaluations of reconstructions of cross-sections of the IOI circuit computed using supervised feature dictionaries, task- and full-distribution SAEs. Left : average logit difference when replacing activations in cross-sections of the IOI circuit wit

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。