arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10953cs.CLcs.AI
收藏

搜索或加速:基于置信度切换的位置束搜索用于扩散语言模型

Search or Accelerate: Confidence-Switched Position Beam Search for Diffusion Language Models

University of Surrey(塞拉利昂大学);Qualcomm AI Research. Qualcomm AI Research is an initiative of Qualcomm Technologies, Inc.(高通人工智能研究);ELLIS Institute Tübingen(图宾根ELLIS研究所);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(图宾根人工智能中心)

Mingyu Cao, Alvaro H. C. Correia, Christos Louizos, Shiwei Liu, Lu Yin

AI总结:

SOAR通过置信度切换机制优化扩散语言模型的解码过程,提高生成质量并保持推理效率。

摘要:

扩散语言模型(DLMs)通过迭代去噪掩码序列来生成文本,每一步都反复决定哪些位置需要解掩。标准解码遵循贪心规则:解掩最自信的位置,但这种局部选择可能导致模型陷入次优的解掩顺序,尤其是在需要推理的提示上。我们提出了SOAR,一种无需训练的解码算法,其行为会根据模型的不确定性进行调整。当置信度较低时,SOAR短暂扩展对替代解掩决策的搜索以避免过早承诺;当置信度较高时,它会收缩搜索并并行解码多个位置以减少去噪迭代次数。在Dream-7B和LLaDA-8B上,跨数学推理和代码生成基准(GSM8K、MBPP、HumanEval)表明,SOAR在保持竞争性推理速度的同时提高了生成质量,提供了一种在DLM解码中平衡质量和效率的实用方法。我们的代码可在https://github.com/duterscmy/SOAR上获得。

英文摘要:

Diffusion Language Models (DLMs) generate text by iteratively denoising a masked sequence, repeatedly deciding which positions to commit at each step. Standard decoding follows a greedy rule: unmask the most confident positions, yet this local choice can lock the model into a suboptimal unmasking order, especially on reasoning-heavy prompts. We present SOAR, a training-free decoding algorithm that adapts its behavior to the model's uncertainty. When confidence is low, SOAR briefly widens the search over alternative unmasking decisions to avoid premature commitments; when confidence is high, it collapses the search and decodes many positions in parallel to reduce the number of denoising iterations. Across mathematical reasoning and code generation benchmarks (GSM8K, MBPP, HumanEval) on Dream-7B and LLaDA-8B, SOAR improves generation quality while maintaining competitive inference speed, offering a practical way to balance quality and efficiency in DLM decoding. Our Code is available at https://github.com/duterscmy/SOAR

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

↑