思维分支:解释大语言模型推理需要重采样
Thought Branches: Interpreting LLM Reasoning Requires Resampling
AI总结:
本文通过重采样研究大语言模型推理过程中的因果影响,探讨了单个推理链的局限性,并提出了基于重采样的方法来分析模型决策和推理步骤的影响。
摘要:
大多数解释推理模型的工作仅研究单一的思维链(CoT),然而这些模型定义了众多可能的CoT分布。我们主张研究单一样本不足以理解因果影响和底层计算。尽管完全指定此分布不可行,我们可以通过仅重采样后续文本来测量部分CoT的影响。本文通过重采样研究模型决策。首先,当模型陈述其行为的原因时,该原因是否真正导致行为?在“代理不一致”场景中,我们发现自我保存句子的因果影响较小,表明它们并不显著驱动勒索。其次,人工修改CoT是否足以引导推理?重采样并选择具有所需属性的完成是可行的在线策略替代方案。我们发现在线干预效果较小且不稳定,相比重采样在决策任务中效果更差。第三,如何理解删除推理步骤的影响,当模型可能在编辑后重复该步骤?我们引入了韧性指标,通过重复重采样防止类似内容再次出现。关键规划语句抵抗删除但消除时影响显著。第四,由于CoT有时“不忠实”,我们的方法能否在这些情况下提供见解?通过适应因果中介分析,我们发现那些因果影响输出但未被明确提及的提示,对CoT有微妙且累积的影响,即使提示被移除,这种影响仍持续。总体而言,通过重采样研究分布能够实现可靠的因果分析、更清晰的模型推理叙述以及有原则的CoT干预。
英文摘要:
Most work interpreting reasoning models studies only a single chain-of-thought (CoT), yet these models define distributions over many possible CoTs. We argue that studying a single sample is inadequate for understanding causal influence and the underlying computation. Though fully specifying this distribution is intractable, we can measure a partial CoT's impact by resampling only the subsequent text. We present case studies using resampling to investigate model decisions. First, when a model states a reason for its action, does that reason actually cause the action? In "agentic misalignment" scenarios, we find that self-preservation sentences have small causal impact, suggesting they do not meaningfully drive blackmail. Second, are artificial edits to CoT sufficient for steering reasoning? Resampling and selecting a completion with the desired property is a principled on-policy alternative. We find that off-policy interventions yield small and unstable effects compared to resampling in decision-making tasks. Third, how do we understand the effect of removing a reasoning step when the model may repeat it post-edit? We introduce a resilience metric that repeatedly resamples to prevent similar content from reappearing downstream. Critical planning statements resist removal but have large effects when eliminated. Fourth, since CoT is sometimes "unfaithful", can our methods teach us anything in these settings? Adapting causal mediation analysis, we find that hints that causally affect the output without being explicitly mentioned exert a subtle and cumulative influence on the CoT that persists even if the hint is removed. Overall, studying distributions via resampling enables reliable causal analysis, clearer narratives of model reasoning, and principled CoT interventions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。