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

锚点提升扩散语言模型的可控性与推理能力

Anchors Enhance Controllability and Reasoning of Diffusion Language Models

Dartmouth College(达特茅斯学院);Carnegie Mellon University(卡内基梅隆大学)

Feiyu Qu, Zheng Huang, Andrea Zanette

AI总结:

本研究提出AnchorDLM框架,通过强化学习训练锚点生成器优化锚点内容与位置,提升扩散语言模型的可控性及代码生成、数学推理任务的性能。

摘要:

扩散语言模型(DLM)为可控文本生成提供了新机遇,但可控性(定义为在保留原有能力的同时满足任务约束的能力)仍未得到充分探索。DLM的双向注意力允许控制令牌从输出序列的任意位置引导生成,但有效引导取决于其内容与位置的兼容性。为此,我们提出AnchorDLM框架,其中锚点生成器为每个查询生成包含短输出片段及其位置的锚点;该锚点作为控制令牌被放置在指定位置,用于初始化冻结DLM的输出序列并引导后续去噪过程。我们使用强化学习(RL)训练锚点生成器,以联合优化锚点内容与位置,奖励函数基于DLM生成的输出,根据答案正确性和约束满足度计算。此外,通过离散流匹配(DFM)视角,我们将锚点位置解释为有助于重塑引导生成的初始速度场。在五个DLM主干上进行的代码生成与数学推理实验表明,AnchorDLM提升了可控性,并在多种基准测试中进一步提高了推理性能。

英文摘要:

Diffusion language models (DLMs) offer new opportunities for controllable text generation. However, their controllability, defined as the ability to satisfy task constraints while preserving their original capabilities, remains underexplored. DLMs' bidirectional attention allows control tokens to guide generation from arbitrary positions in the output sequence, but effective guidance depends on the compatibility between their content and placement. To this end, we propose AnchorDLM, a framework in which an anchor generator produces an anchor consisting of a short output fragment and its position for each query. The anchor is placed as control tokens at the specified position to initialize the output sequence of a frozen DLM and guide subsequent denoising. We train the anchor generator with reinforcement learning (RL) to jointly optimize anchor content and placement, using rewards computed from the DLM's generated outputs based on answer correctness and constraint satisfaction. Moreover, through the lens of discrete flow matching (DFM), we interpret anchor placement as helping to reshape the initial velocity field that guides generation. Experiments on code generation and mathematical reasoning across five DLM backbones show that AnchorDLM improves controllability and further yields gains in reasoning performance across diverse benchmarks.

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

↑