arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.03680cs.AI
收藏

Rainbow Padding:缓解指令微调扩散大语言模型中的提前终止问题

Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMs

Artificial Intelligence Department of Yonsei University(延世大学人工智能系);Computer Science Department of Yonsei University(延世大学计算机科学系)

Bumjun Kim, Dongjae Jeon, Dueun Kim, Wonje Jeung, Albert No

AI总结:

针对指令微调扩散大语言模型的<eos>溢出导致提前终止的问题,提出Rainbow Padding方法,用不同填充标记循环替换<eos>占位符,仅需少量标记和单轮LoRA微调即可显著提升长度鲁棒性与输出质量。

摘要:

扩散大语言模型(dLLMs)已成为自回归模型的一种有前景的替代方案,具备灵活的生成顺序和在复杂推理任务上的优异性能。然而,指令微调后的dLLMs存在一个关键缺陷,我们将其称为<eos>溢出:随着分配的序列长度增加,响应反而会变短,最终坍缩为提前终止,或是退化为一连串<eos>标记。尽管这一问题在实践中已被发现,但尚未得到系统性分析。我们将其根源追溯至<eos>同时承担终止符和填充符的双重角色——这会使概率质量在后续位置集中于<eos>,并反向传播以触发提前终止。为解决该问题,我们提出了Rainbow Padding(彩虹填充)这一简单方案:用循环重复的不同填充标记替换重复的<eos>占位符,以此分散概率质量,打破<eos>的主导地位。实验表明,Rainbow Padding显著提升了长度鲁棒性和输出质量,仅需7个填充标记就足以防止提前终止。此外,该方法可高效集成到现有指令微调模型中:在极少量数据上进行单轮LoRA微调即可取得显著提升,因此该方案实用性极强。代码已公开于https://github.com/quasar529/rainbow-padding。

英文摘要:

Diffusion large language models (dLLMs) have emerged as a promising alternative to autoregressive models, offering flexible generation orders and strong performance on complex reasoning tasks. However, instruction-tuned dLLMs exhibit a critical vulnerability we term \texttt{<eos>} overflow: as allocated sequence length increases, responses paradoxically become shorter, collapsing into early termination or degenerating into streams of \texttt{<eos>} tokens. Although noticed in practice, this issue has not been systematically analyzed. We trace its root cause to the dual role of \texttt{<eos>} as both termination and padding, which concentrates probability mass on \texttt{<eos>} at later positions and propagates backward to trigger early termination. To address this, we introduce Rainbow Padding, a simple remedy that replaces repeated \texttt{<eos>} placeholders with a repeating cycle of distinct padding tokens, distributing probability mass and breaking \texttt{<eos>} dominance. Experiments show that Rainbow Padding substantially improves length robustness and output quality, with as few as seven padding tokens sufficient to prevent early termination. Moreover, the method integrates efficiently into existing instruction-tuned models: LoRA fine-tuning for a single epoch on minimal data yields significant improvements, making this solution highly practical. The code is publicly available at https://github.com/quasar529/rainbow-padding.

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

↑