arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.01528cs.AIcs.LG
收藏

通过稀疏自编码器引导的生成实现可解释且推理最优的思维链推理

Towards Interpretable and Inference-Optimal COT Reasoning with Sparse Autoencoder-Guided Generation

University of California, San Diego(加州大学圣地亚哥分校)

Daniel Zhao, Abhilash Shankarampeta, Lanxiang Hu, Tajana Rosing, Hao Zhang

AI总结:

本研究提出用稀疏自编码器和聚类技术分析大语言模型内部token表示,构建推理轨迹图并定义奖励函数平衡利用与探索,以引导数学推理任务生成,提升大模型推理的可解释性与效果。

摘要:

我们提出了一种利用稀疏自编码器(Sparse Autoencoders, SAEs)和聚类技术分析大语言模型(Large Language Models, LLMs)内部token表示并引导数学推理任务生成的新方法。该方法首先训练一个SAE为训练token生成稀疏向量表示,再应用k-means聚类构建图,其中顶点代表token簇,加权边捕捉token的序列转移。我们基于该图定义了一种边权重奖励函数,量化生成过程对既定推理轨迹的遵循程度,从而识别利用型推理路径;此外还通过聚类结果衡量生成多样性,评估探索的程度。研究结果表明,平衡利用与探索对在数学推理任务中取得高准确率至关重要。在生成阶段,SAE可作为可扩展的奖励模型引导生成,确保利用与探索之间的平衡权衡,避免两种方向的极端行为,最终提升LLMs的推理过程质量。

英文摘要:

We propose a novel method that leverages sparse autoencoders (SAEs) and clustering techniques to analyze the internal token representations of large language models (LLMs) and guide generations in mathematical reasoning tasks. Our approach first trains an SAE to generate sparse vector representations for training tokens, then applies k-means clustering to construct a graph where vertices represent token clusters and weighted edges capture sequential token transitions. Using this graph, we define an edge-weight based reward function to quantify adherence to established reasoning traces, thereby identifying exploitative reasoning trajectories. Additionally, we measure generation diversity from clustering to assess the extent of exploration. Our findings indicate that balancing both exploitation and exploration is crucial for achieving high accuracy in mathematical reasoning tasks. During generation, the SAE can serve as a scalable reward model to guide generations, ensuring a balanced trade-off between exploitation and exploration. This prevents extreme behaviors in either direction, ultimately fostering a higher-quality reasoning process in LLMs.

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

↑