arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.03031cs.LG
收藏

步骤级稀疏自编码器用于推理过程解释

Step-Level Sparse Autoencoder for Reasoning Process Interpretation

University of Science and Technology of China(中国科学技术大学)

Xuan Yang, Jiayu Liu, Yuhang Lai, Hao Xu, Zhenya Huang, Ning Miao

AI总结:

提出步骤级稀疏自编码器(SSAE),通过条件稀疏化形成信息瓶颈,将推理步骤中的增量信息与背景信息分离为稀疏特征,用于解释大语言模型的推理过程。

摘要:

大型语言模型(LLMs)通过思维链(CoT)推理实现了强大的复杂推理能力。然而,它们的推理模式仍然过于复杂而难以分析。尽管稀疏自编码器(SAEs)已成为可解释性的强大工具,但现有方法主要在token级别操作,在捕获更关键的步骤级信息(如推理方向和语义转换)时存在粒度不匹配问题。在这项工作中,我们提出了步骤级稀疏自编码器(SSAE),作为一种分析工具,将LLMs推理步骤的不同方面解耦为稀疏特征。具体来说,通过精确控制步骤特征基于其上下文的稀疏性,我们在步骤重建中形成一个信息瓶颈,将增量信息从背景信息中分离出来,并将其解耦为几个稀疏激活的维度。在多个基础模型和推理任务上的实验显示了提取特征的有效性。通过线性探测,我们可以轻松预测表面级信息,如生成长度和第一个token分布,以及更复杂的属性,如步骤的正确性和逻辑性。这些观察表明,LLMs在生成过程中应该已经至少部分地知道这些属性,这为LLMs的自我验证能力提供了基础。我们的代码可在https://github.com/Miaow-Lab/SSAE获取。

英文摘要:

Large Language Models (LLMs) have achieved strong complex reasoning capabilities through Chain-of-Thought (CoT) reasoning. However, their reasoning patterns remain too complicated to analyze. While Sparse Autoencoders (SAEs) have emerged as a powerful tool for interpretability, existing approaches predominantly operate at the token level, creating a granularity mismatch when capturing more critical step-level information, such as reasoning direction and semantic transitions. In this work, we propose step-level sparse autoencoder (SSAE), which serves as an analytical tool to disentangle different aspects of LLMs' reasoning steps into sparse features. Specifically, by precisely controlling the sparsity of a step feature conditioned on its context, we form an information bottleneck in step reconstruction, which splits incremental information from background information and disentangles it into several sparsely activated dimensions. Experiments on multiple base models and reasoning tasks show the effectiveness of the extracted features. By linear probing, we can easily predict surface-level information, such as generation length and first token distribution, as well as more complicated properties, such as the correctness and logicality of the step. These observations indicate that LLMs should already at least partly know about these properties during generation, which provides the foundation for the self-verification ability of LLMs. Our code is available at https://github.com/Miaow-Lab/SSAE.

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

↑