arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.03032cs.LGcs.CL
收藏

分析特征流以增强语言模型的可解释性与行为引导

Analyze Feature Flow to Enhance Interpretation and Steering in Language Models

mipt(莫斯科物理技术学院)

Daniil Laptev, Nikita Balagansky, Yaroslav Aksenov, Daniil Gavrilov

AI总结:

本文提出用无数据余弦相似度构建跨层特征流图,追踪特征的持续、转变与出现,并据此放大或抑制特征,实现可解释、可透明操控的文本主题引导。

摘要:

我们提出一种新方法,用于系统地映射 sparse autoencoder(稀疏自编码器)在大型语言模型连续层中发现的特征,扩展了此前考察层间特征联系的工作。通过使用无数据的余弦相似度技术,我们追踪特定特征如何在每个阶段持续存在、发生转变或首次出现。该方法生成细粒度的特征演化流图,从而支持细粒度可解释性以及对模型计算的机制性洞察。关键在于,我们展示了这些跨层特征图如何通过放大或抑制选定特征来促进对模型行为的直接引导,并在文本生成中实现有针对性的主题控制。总体而言,我们的研究结果凸显了一种因果性、跨层可解释性框架的效用:该框架不仅阐明特征如何在前向传播过程中发展,还为透明操控大型语言模型提供了新手段。

英文摘要:

We introduce a new approach to systematically map features discovered by sparse autoencoder across consecutive layers of large language models, extending earlier work that examined inter-layer feature links. By using a data-free cosine similarity technique, we trace how specific features persist, transform, or first appear at each stage. This method yields granular flow graphs of feature evolution, enabling fine-grained interpretability and mechanistic insights into model computations. Crucially, we demonstrate how these cross-layer feature maps facilitate direct steering of model behavior by amplifying or suppressing chosen features, achieving targeted thematic control in text generation. Together, our findings highlight the utility of a causal, cross-layer interpretability framework that not only clarifies how features develop through forward passes but also provides new means for transparent manipulation of large language models.

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

↑