Towards interpreting any residual stream direction by scaling activation inversion

LLM Other LLM AI Safety / AI Ethics XAI
2026年11月05日
要解读语言模型残差流(residual stream)中某一方向所表征的语义,我们可寻找能强烈激活该方向的文本。然而,若仅通过扫描现有语料库来发现此类文本,则其覆盖范围受限于该语料库本身的内容。为此,我们提出了“最大激活示例元模型”(Maximally-Activating Example Metamodels, MAEMs)——一类专门将目标模型残差流中的特定方向映射为能强烈激活该方向之文本示例的语言模型。我们的优化目标是:最大化给定残差流方向与MAEM所生成文本在该方向上激活值之间的余弦相似度。这一无需人工标注标签的强化学习(RL)目标,有助于在各类来源的残差流方向上规模化地训练MAEM。实证结果表明,所训练出的MAEM能生成富有信息量的示例:以Qwen3.6-27B为基座模型构建的MAEM,在反演(inversion)留出(held-out)激活值方面的表现优于语料库检索法及自然语言自编码器(NLA);在绝大多数留出的语言/领域任务中,其性能亦超越了基于1000万词符规模语料库的检索方法;同时,它能够有效激活89%的留出稀疏自动编码器(SAE)特征。此外,MAEM识别“引导向量”(steering vectors)背后所对应概念的能力与NLA相当;在恢复LoRA后门攻击所嵌入的“有效载荷”(payloads)方面,成功率高于语料库检索;甚至还能部分“言述”(verbalise)模型内部工作空间中的“内心独白”(inner monologue)。与其它元模型(例如NLA)所生成的解释不同,MAEM输出的示例可通过在目标模型上执行一次前向传播(forward pass)加以直接验证,从而使MAEM的目标函数成为一种具备扎实实证基础、可用于规模化训练元模型的替代方案。
To interpret a direction in a language model's residual stream, we can look for text that strongly activates it. But when such text is found by scanning a corpus, it is limited to what that corpus contains. We develop Maximally-Activating Example Metamodels (MAEMs), language models which map residual stream directions from a subject model to text exemplars that strongly activate those directions. Our objective is to maximise the cosine similarity of a supplied residual stream direction with the activations of the text generated by the MAEM. This label-free RL objective helps to scale MAEMs on diverse sources of residual stream directions. Empirically, we find the resultant metamodel produces informative exemplars: a Qwen3.6-27B MAEM inverts held-out activations better than corpus search or a natural-language autoencoder (NLA), beats corpus search (at 10M tokens) on a majority of held-out languages/domains, and activates 89% of held-out SAE features. It also identifies concepts behind steering vectors about as well as NLAs, recovers the payloads of LoRA backdoors more often than corpus search, and can even verbalise some model workspace inner monologue. Unlike explanations produced by other metamodels (e.g. NLAs), MAEM exemplars can be verified with a forward pass on the subject model, making the MAEM objective a grounded alternative for scaling the training of metamodels.
许愿