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

通过集成策略梯度解释和控制大语言模型的推理

From Outcome to Representation: Tracing Reasoning Mechanisms through Integrated Policy Gradient

Independent Researcher(独立研究者);ShanghaiTech University(上海科技大学)

Changming Li, Kaixing Zhang, Haoyun Xu, Yingdong Shi, Zheng Zhang, Kaitao Song, Kan Ren

AI总结:

本文提出集成策略梯度框架,通过反向传播复合结果信号,实现对大语言模型推理行为的精确解释与控制。

摘要:

大型语言模型(LLMs)在解决复杂现实问题时表现出强大的推理能力。然而,驱动这些复杂推理行为的内部机制仍然模糊。现有的可解释性方法针对推理要么识别与特定文本模式相关的组件(例如神经元),要么依赖人工标注的对比对来推导控制向量。因此,当前方法难以精确定位复杂的推理机制或捕捉模型内部运作对推理输出的序列影响。在本文中,基于以结果为导向和序列影响意识的原则,我们专注于识别对推理行为有序列贡献的组件,其中结果通过长程效应累积。我们提出了集成策略梯度(IPG),一种新的框架,通过将基于复合结果的信号(如推理后准确性)沿模型推理轨迹反向传播,将推理行为归因于模型的内部组件。实证评估表明,我们的方法实现了更精确的定位,并能够在各种推理模型上可靠地调节推理行为(例如推理能力、推理强度)。

英文摘要:

Large Language Models (LLMs) demonstrate remarkable reasoning capabilities, yet the internal mechanisms driving these multi-step processes remain opaque. Existing mechanistic interpretability approaches often rely on superficial text-pattern co-occurrences or capture only short-term effects, struggling to trace the long-horizon, outcome-driven influence of internal components such as neurons or sparse features in multi-step reasoning.In this paper, we introduce Integrated Policy Gradient (IPG), a novel, training-free framework that brings policy-based attribution into mechanistic interpretability for LLM reasoning. Grounded in \textit{outcome-oriented} and \textit{sequential-influence-aware} principles, it backpropagates outcome-level, non-differentiable behavioral signals (e.g., reasoning outcome correctness) through entire inference trajectories, utilizing path integration to isolate outcome-relevant mediators at component level for reliable attribution. This provides a linear approximation of Causal Mediation Analysis (CMA) in reasoning. Empirical evaluations demonstrate that \method achieves precise localization and reveals mechanistic insights by identifying sparse, concentrated subsets of internal components associated with specific reasoning behaviors. Our method also enables modulation of reasoning capabilities, offering a powerful and reliable framework for understanding LLM reasoning. The project page is at https://foundation-model-research.github.io/IPG .

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

↑