2025-03-25 · 专家 · 机器学习 · 自然语言处理

I Have Covered All the Bases Here: Interpreting Reasoning Features in Large Language Models via Sparse Autoencoders

本文通过稀疏自编码器(SAEs)识别大型语言模型(LLMs)中的推理特征,并提出了一种名为ReasonScore的自动评估指标,以验证这些特征在建模推理过程中的重要性。

更新于 2025-03-25。作者:Andrey Galichin、Alexey Dontsov、Polina Druzhinina、Anton Razzhigaev、Oleg Y. Rogov、Elena Tutubalina、Ivan Oseledets。

中文摘要

大型语言模型(LLMs)在自然语言处理领域取得了显著的成就。最近的进展导致了一类新的推理LLMs的发展;例如,开源的DeepSeek-R1通过整合深度思考和复杂推理,实现了最先进的性能。尽管这些能力令人印象深刻,但此类模型的内部推理机制仍未被探索。在本工作中,我们采用稀疏自编码器(SAEs),一种将神经网络潜在表示学习为可解释特征稀疏分解的方法,以识别驱动DeepSeek-R1系列模型推理的特征。首先,我们提出了一种从SAE表示中提取候选“推理特征”的方法。我们通过实证分析和可解释性方法验证这些特征,证明了它们与模型推理能力的直接相关性。关键的是,我们展示了系统地引导这些特征可以增强推理性能,为LLMs中的推理提供了第一个机制解释。代码可在以下链接获取:https://github.com/AIRI-Institute/SAE-Reasoning

英文摘要

Large Language Models (LLMs) have achieved remarkable success in natural language processing. Recent advances have led to the developing of a new class of reasoning LLMs; for example, open-source DeepSeek-R1 has achieved state-of-the-art performance by integrating deep thinking and complex reasoning. Despite these impressive capabilities, the internal reasoning mechanisms of such models remain unexplored. In this work, we employ Sparse Autoencoders (SAEs), a method to learn a sparse decomposition of latent representations of a neural network into interpretable features, to identify features that drive reasoning in the DeepSeek-R1 series of models. First, we propose an approach to extract candidate ''reasoning features'' from SAE representations. We validate these features through empirical analysis and interpretability methods, demonstrating their direct correlation with the model's reasoning abilities. Crucially, we demonstrate that steering these features systematically enhances reasoning performance, offering the first mechanistic account of reasoning in LLMs. Code available at https://github.com/AIRI-Institute/SAE-Reasoning

解读

一句话总结

本文通过稀疏自编码器(SAEs)识别大型语言模型(LLMs)中的推理特征,并提出了一种名为ReasonScore的自动评估指标,以验证这些特征在建模推理过程中的重要性。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt