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

在测试时理解并引导推理模型的认知行为

Understanding and Steering the Cognitive Behaviors of Reasoning Models at Test-Time

University of Texas at Austin(德克萨斯大学奥斯汀分校);Together AI;University of Sydney(悉尼大学)

Zhenyu Zhang, Xiaoxia Wu, Zhongzhu Zhou, Qingyang Wu, Yineng Zhang, Pragaash Ponnusamy, Harikaran Subbaraj, Jue Wang, Shuaiwen Leon Song, Ben Athiwaratkun

AI总结:

CREST通过引导推理模型的认知行为,提高推理准确性和效率,减少计算成本。

摘要:

大型语言模型(LLMs)常常依赖长链思维(CoT)推理来解决复杂任务。尽管有效,这些轨迹往往效率低下,导致延迟过高,因为生成过多的token,或者推理不稳定,会在浅层不一致步骤和过度思考之间交替。在本工作中,我们研究了推理轨迹的结构,并发现与验证和回溯等不同认知行为相关的专用注意力头。通过在推理时轻度干预这些头,可以将模型引导出低效模式。基于这一见解,我们提出了CREST,一种无需训练的测试时认知推理引导方法。CREST有两个组成部分:(1)一个离线校准步骤,用于识别认知头并推导头特定的引导向量;(2)一个推理时的程序,通过旋转隐藏表示来抑制这些向量上的组件。CREST能够自适应地抑制不产生成果的推理行为,从而提高准确性和降低计算成本。在多样化的推理基准和模型上,CREST将准确性提高了高达17.5%,同时将token使用量减少了37.6%,提供了一种简单而有效的途径,使LLM推理更快、更可靠。

英文摘要:

Large Language Models (LLMs) often rely on long chain-of-thought (CoT) reasoning to solve complex tasks. While effective, these trajectories are frequently inefficient, leading to high latency from excessive token generation, or unstable reasoning that alternates between underthinking (shallow, inconsistent steps) and overthinking (repetitive, verbose reasoning). In this work, we study the structure of reasoning trajectories and uncover specialized attention heads that correlate with distinct cognitive behaviors such as verification and backtracking. By lightly intervening on these heads at inference time, we can steer the model away from inefficient modes. Building on this insight, we propose CREST, a training-free method for Cognitive REasoning Steering at Test-time. CREST has two components: (1) an offline calibration step that identifies cognitive heads and derives head-specific steering vectors, and (2) an inference-time procedure that rotates hidden representations to suppress components along those vectors. CREST adaptively suppresses unproductive reasoning behaviors, yielding both higher accuracy and lower computational cost. Across diverse reasoning benchmarks and models, CREST improves accuracy by up to 17.5% while reducing token usage by 37.6%, offering a simple and effective pathway to faster, more reliable LLM reasoning.

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

↑