arXiv:2506.19143cs.LGcs.AI2025-06被引 134

通过替换句子分析大模型推理链,发现关键影响步骤

Thought Anchors: Which LLM Reasoning Steps Matter?

  • 用替换句子法检测推理中每句话的因果重要性
  • 发现少数句子对最终答案有巨大影响,称作'思维锚点'
  • 适合研究模型推理机制或评估题目难度的从业者

当前前沿大语言模型依赖推理实现顶尖性能,但现有可解释性方法多针对单次前向传播,难以分析推理过程中的多标记计算步骤。本文提出一种黑盒方法,通过反复从模型中采样语义不同的替换句,从该点继续推理链,量化每句话对最终答案分布的影响。研究发现,某些句子对推理轨迹和最终答案具有显著影响,称为“思维锚点”,多为规划或不确定性管理类句子,且后续句子常由特定注意力头关注这些锚点。进一步分析推理链内句子间的因果关联,可揭示模型行为模式,预测问题难度及推理类型(序列或分散)。作为概念验证,我们通过详细案例研究数学难题求解过程,证明多种方法结果一致,展现出句子级分析在理解推理模型中的潜力。我们开源了可视化工具(thought-anchors.com),可用于分析更多问题。

原文摘要 · Abstract (English)

Current frontier large-language models rely on reasoning to achieve state-of-the-art performance. Many existing interpretability are limited in this area, as standard methods have been designed to study single forward passes of a model rather than the multi-token computational steps that unfold during reasoning. We argue that analyzing reasoning traces at the sentence level is a promising approach to understanding reasoning processes. We introduce a black-box method that measures each sentence's counterfactual importance by repeatedly sampling replacement sentences from the model, filtering for semantically different ones, and continuing the chain of thought from that point onwards to quantify the sentence's impact on the distribution of final answers. We discover that certain sentences can have an outsized impact on the trajectory of the reasoning trace and final answer. We term these sentences \textit{thought anchors}. These are generally planning or uncertainty management sentences, and specialized attention heads consistently attend from subsequent sentences to thought anchors. We further show that examining sentence-sentence causal links within a reasoning trace gives insight into a model's behavior. Such information can be used to predict a problem's difficulty and the extent different question domains involve sequential or diffuse reasoning. As a proof-of-concept, we demonstrate that our techniques together provide a practical toolkit for analyzing reasoning models by conducting a detailed case study of how the model solves a difficult math problem, finding that our techniques yield a consistent picture of the reasoning trace's structure. We provide an open-source tool (thought-anchors.com) for visualizing the outputs of our methods on further problems. The convergence across our methods shows the potential of sentence-level analysis for a deeper understanding of reasoning models.

模型可解释性推理分析思维锚点大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。