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:这篇论文想要解决什么具体问题?
- 问题背景:尽管大型语言模型在自然语言处理中取得了显著成功,但它们内部推理机制的编码方式仍然未知。
- 现有方案不足:目前的研究主要集中在识别LLMs中代表有意义概念的线性方向,但识别这些方向仍然具有挑战性。
- 研究目标:使用稀疏自编码器(SAEs)来识别LLMs中的推理特征,并提出一种自动评估指标来验证这些特征在建模推理过程中的重要性。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种使用稀疏自编码器(SAEs)来识别LLMs中的推理特征的方法。
- 方法改进:引入了ReasonScore,这是一种自动评估指标,用于识别负责推理的SAE特征,并通过可解释性技术证实了其有效性。
- 优势:提供了对LLMs中推理机制的机制性解释,并表明增强识别的特征可以系统地提高推理性能。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:对DeepSeek-R1系列模型进行了实验,以识别和验证推理特征。
- 性能提升:实验结果表明,增强推理特征可以系统地提高模型在推理相关任务上的性能。
- 对比结果:与基线方法相比,增强推理特征可以显著提高模型在推理任务上的准确性和输出长度。
问题4:这个研究的实际应用价值是什么?
- 应用场景:这项研究可以应用于需要推理能力的LLMs,例如数学、科学和代码生成。
- 实施建议:建议在LLMs的训练过程中考虑推理特征的提取和应用,以提高模型的推理能力。
- 局限与展望:尽管这项研究为LLMs中的推理机制提供了新的见解,但还有许多领域需要进一步研究,例如特征提取的鲁棒性和不同LLMs中推理特征的通用性。
来源
机器可读索引:llms.txt