推理的几何特征:任务难度的谱视角
Geometric Signatures of Reasoning: A Spectral Perspective on Task Hardness
AI总结:
通过分析Transformer隐藏状态空间中思维链轨迹的谱、位置和运动学几何特征,提出有效维度d_ρ衡量轨迹复杂度,发现平坦特征谱对应更难任务,并利用运动学特征在生成早期预测答案正确性。
摘要:
思维链推理使大型语言模型能够通过生成中间推理步骤来解决复杂问题。尽管对推理链的长度和内容已有大量关注,但其内部几何结构却鲜为人知。我们研究Transformer模型隐藏状态空间中思维链轨迹的几何结构,将每个推理链形式化为$\mathbb{R}^d$中的离散曲线,并通过谱、位置和运动学几何泛函对其进行表征。我们引入有效维度$d_\rho$作为轨迹复杂性的度量,并从理论上证明,具有更平坦特征谱的轨迹对应更困难的任务,因为它们探索了更多的隐藏维度。最后,我们探讨轨迹的运动学特征(平均位置、位置离散度、初始和当前隐藏状态、平均速度、平均速率和速度离散度)如何用于在生成完成之前预测答案正确性,并可能为未来的早停策略提供信息。在MATH500数据集的数学推理问题上,$d_\rho$在区分简单和困难问题方面达到了0.93的AUC,而运动学特征可能仅从生成的前20%的token就能预测正确性。这些正确性特征可跨不同难度的问题迁移,表明模型内部推理轨迹的形状是理解任务难度和解答质量的原则性窗口。
英文摘要:
Chain-of-thought (CoT) reasoning enables large language models (LLMs) to solve complex problems by generating intermediate reasoning steps. While much attention has been paid to the length and content of these reasoning chains, far less is known about their internal geometry. We study the geometry of CoT trajectories in the hidden state space of transformer models, formalizing each reasoning chain as a discrete curve in $\mathbb{R}^d$ and characterizing it through spectral, positional, and kinematic geometric functionals. We introduce the effective dimension $d_ρ$ as a measure of trajectory complexity and empirically show that harder tasks exhibit greater effective dimension. Lastly, we explore how kinematic features of the trajectory, mean position, positional dispersion, initial and final hidden states, mean velocity, mean speed, and speed dispersion, can be used to predict solution correctness before generation is complete, and may inform future early-stopping strategies. Experimentally, on 86 mathematical reasoning problems from the MATH500 dataset and three Qwen2.5 model scales (0.5B, 1.5B, and 7B), $d_ρ$ achieves difficulty-prediction AUROC of $0.90$, $0.94$, and $0.96$, respectively. Seven kinematic and positional features predict correctness from only the first $20\%$ of generated tokens, with AUROC between $0.77$ and $0.88$ across scales. These correctness signatures transfer across held-out questions, establishing that the shape of a model's internal reasoning trajectory is a principled window into both task hardness and solution quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。