ChatPaper.aiChatPaper

"我可能没有表达清楚":推理时大语言模型思维动态失稳诊断

"I May Not Have Articulated Myself Clearly": Diagnosing Dynamic Instability in LLM Reasoning at Inference Time

February 2, 2026
作者: Jinkun Chen, Fengxiang Cheng, Sijia Han, Vlado Keselj
cs.AI

摘要

大型语言模型(LLMs)的推理故障通常仅在生成结果阶段被评估,然而许多故障表现为过程层面的崩溃:模型在推理过程中"偏离主线"。我们研究是否能够通过标准API中可获取的推理时观测指标(词元对数概率),无需任何训练或微调即可检测此类崩溃。我们定义了一个结合连续步骤分布偏移(JSD)和不确定性(熵)的简易不稳定性信号,通过峰值不稳定性强度对每个推理轨迹进行汇总,并证明该信号能可靠预测故障。在GSM8K和HotpotQA数据集中,不稳定性强度以高于随机水平的AUC值预测错误答案,并随模型规模扩大呈现桶级准确率单调下降。关键发现是,不稳定性并非均匀有害:早期不稳定性可能反映后续稳定过程并得出正确答案(校正性不稳定),而晚期不稳定性更易导致失败(破坏性不稳定)——即使峰值强度相近,这表明可恢复性不仅取决于分布变化强度,更与变化发生时点相对于剩余解码长度的位置相关。该方法具备模型无关性、免训练性和可复现性,其定位是诊断视角而非校正或控制机制。
English
Reasoning failures in large language models (LLMs) are typically measured only at the end of a generation, yet many failures manifest as a process-level breakdown: the model "loses the thread" mid-reasoning. We study whether such breakdowns are detectable from inference-time observables available in standard APIs (token log probabilities), without any training or fine-tuning. We define a simple instability signal that combines consecutive-step distributional shift (JSD) and uncertainty (entropy), summarize each trace by its peak instability strength, and show that this signal reliably predicts failure. Across GSM8K and HotpotQA, instability strength predicts wrong answers with above-chance AUC and yields monotonic bucket-level accuracy decline at scale across model sizes. Crucially, we show that instability is not uniformly harmful: early instability can reflect subsequent stabilization and a correct final answer (corrective instability), whereas late instability is more often followed by failure (destructive instability), even at comparable peak magnitudes, indicating that recoverability depends not only on how strongly the distribution changes but also on when such changes occur relative to the remaining decoding horizon. The method is model-agnostic, training-free, and reproducible, and is presented as a diagnostic lens rather than a corrective or control mechanism.
PDF11February 6, 2026