arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.09745cs.LGcs.AIcs.ITmath.IT
收藏

基于熵的信息解码:自适应信息驱动的分支

Entropy-informed Decoding: Adaptive Information-Driven Branching

Department of XXX, University of YYY, Location, Country(XXX系,YYY大学,地点,国家);School of ZZZ, Institute of WWW, Location, Country(ZZZ学院,WWW研究所,地点,国家);JP Morgan AI Research, London, UK(摩根大通AI研究,伦敦,英国);JP Morgan AI Research, New York, USA(摩根大通AI研究,纽约,美国)

Benjamin Patrick Evans, Sumitra Ganesh, Leo Ardon

AI总结:

本文提出EDEN解码框架,通过自适应分配计算资源提升生成效率,在数学推理、代码生成等任务中优于传统解码策略。

摘要:

大型语言模型(LLMs)在生成性能上表现优异,但其输出质量依赖于解码策略。尽管基于采样的方法(如top-k、nucleus)和搜索-选择方法(如束搜索、best-of-n、多数投票)能改进贪婪解码,但两者均存在局限:采样通常局限于单一路径,而搜索则无论任务复杂度都会消耗大量计算。为此,我们引入熵信息解码(EDEN),一种插件式、模型无关的解码框架,根据模型自身的不确定性自适应分配计算资源,用更少的扩展近似实现更宽的束搜索。在每个生成步骤中,EDEN估计输出token分布的熵,并根据熵单调调整分支因子,在高熵区域扩展更多候选,在低熵区域采取更贪婪的路径,提升token效率。在复杂任务中,包括数学推理、代码生成和科学问题,实验表明EDEN在输出质量上优于现有解码策略,实现比固定宽度束搜索更好的准确率-扩展量权衡。通过将下一个token选择视为噪声最大化问题,我们证明分支因子与熵单调相关能保证在相同总扩展预算内找到比固定分支因子更好的(即更可能的)延续,并推导出明确的遗憾率,以表征自适应分配的益处。

英文摘要:

Large language models (LLMs) achieve remarkable generative performance, yet their output quality is dependent on the decoding strategy. While sampling-based methods (e.g., top-k, nucleus) and search-and-select based methods (e.g., beam search, best-of-n, majority voting) can improve upon greedy decoding, both approaches suffer from limitations: sampling generally commits to a single path, while search often expends excessive computation regardless of task complexity. To address these, we introduce Entropy-informed decoding (EDEN), a plug-and-play, model-agnostic decoding framework that adaptively allocates computation based on the model's own uncertainty, approximating higher-width beam search with fewer expansions. At each generation step, EDEN estimates the entropy of the output token distribution and adjusts the branching factor monotonically with the entropy, expanding more candidates in high-entropy regions and following a greedier path in low-entropy regions, improving token efficiency. Experiments across complex tasks, including mathematical reasoning, code generation, and scientific questions, demonstrate that EDEN consistently improves output quality over existing decoding strategies, achieving better accuracy-expansion trade-offs than fixed-width beam search. By treating next-token selection as a noisy maximisation problem, we prove that branching factors monotone in entropy are guaranteed to find better (i.e. more probable) continuations than any fixed branching factor within the same total expansion budget, and derive explicit regret rates characterising the benefit of the adaptive allocation.

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

↑