驯服思考者:面向自适应大语言模型推理的条件熵塑造
Taming the Thinker: Conditional Entropy Shaping for Adaptive LLM Reasoning
AI总结:
本文提出条件熵塑造(CES)框架,通过动态控制token级响应熵,使大语言模型在简单问题上产生简洁解,在复杂问题上促进深入探索,从而平衡响应长度与准确性。
摘要:
基于熵的深度推理已成为提升大语言模型(LLMs)推理能力的有前景方向,但现有方法往往要么无差别地增加响应长度,要么以牺牲准确性为代价缩短响应。为更好地平衡这一权衡,我们引入了条件熵塑造(CES),一种框架,能够动态控制token级响应熵,使LLMs在简单问题上产生简洁的解决方案,同时在困难问题上鼓励更深入的探索。基于DAPO,CES使用token级熵作为不确定性信号,并应用一个条件双向策略:它在正确的推理路径上惩罚高熵的'分叉点'token以提高简洁性,并在错误路径上奖励它们以促进探索和错误纠正。我们将在DeepSeek-R1-Distill-7B上实现CES,并在12个数学基准上进行评估。CES在平均准确性上优于DAPO,同时减少响应长度,补充实验显示在较小的1.5B模型和领域外基准上也呈现出相似的趋势。
英文摘要:
Entropy-based deep reasoning has emerged as a promising direction for improving the reasoning capabilities of Large Language Models (LLMs), but existing methods often either increase response length indiscriminately or shorten responses at the cost of accuracy. To better balance this trade-off, we introduce Conditional Entropy Shaping (CES), a framework that dynamically controls token-level response entropy, enabling LLMs to produce concise solutions on simple problems while encouraging deeper exploration on hard ones. Built on DAPO, CES uses token-level entropy as an uncertainty signal and applies a conditional bidirectional policy: it penalizes high-entropy "forking point" tokens on correct reasoning paths to improve conciseness, and rewards them on incorrect paths to encourage exploration and error correction. We implement CES on DeepSeek-R1-Distill-7B and evaluate it on 12 mathematical benchmarks. CES consistently improves average accuracy while reducing response length relative to DAPO, and supplementary experiments show similar trends on a smaller 1.5B backbone and on out-of-domain benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。