免费午餐吗?低成本的多样化采样用于扩散语言模型
Free Lunch for Pass@$k$? Low Cost Diverse Sampling for Diffusion Language Models
AI总结:
本文提出了一种低成本方法,通过修改中间样本以增强扩散语言模型的生成多样性,从而提升Pass@$k$任务的性能。
摘要:
在文本生成中,多样化的输出对于复杂推理任务的有效探索是必要的,例如代码生成和数学问题解决。此类Pass@$k$问题受益于覆盖解决方案空间的候选者。然而,传统采样方法往往浪费计算资源在重复的失败模式上。尽管扩散语言模型已成为主流自回归范式的一种有竞争力的替代品,但它们仍然容易受到这种冗余的影响,独立样本经常崩溃成相似模式。为此,我们提出了一种无需训练的低成本干预,以增强扩散语言模型的生成多样性。我们的方法按批次顺序修改中间样本,其中每个样本被排斥到先前样本的特征空间,主动惩罚冗余。与需要重新训练或束搜索的先前方法不同,我们的策略带来的计算开销极小,同时确保每个样本为批次贡献独特的视角。我们在HumanEval和GSM8K基准上使用LLaDA-8B-Instruct模型评估了我们的方法。我们的结果表明,在各种温度设置下,多样性及Pass@$k$性能显著提高。作为对采样过程的简单修改,我们的方法为当前和未来在受益于多样化解决方案搜索的任务中提供了即时且低成本的改进。我们将在https://github.com/sean-lamont/odd上提供代码。
英文摘要:
Diverse outputs in text generation are necessary for effective exploration in complex reasoning tasks, such as code generation and mathematical problem solving. Such Pass@$k$ problems benefit from distinct candidates covering the solution space. However, traditional sampling approaches often waste computational resources on repetitive failure modes. While Diffusion Language Models have emerged as a competitive alternative to the prevailing Autoregressive paradigm, they remain susceptible to this redundancy, with independent samples frequently collapsing into similar modes. To address this, we propose a training free, low cost intervention to enhance generative diversity in Diffusion Language Models. Our approach modifies intermediate samples in a batch sequentially, where each sample is repelled from the feature space of previous samples, actively penalising redundancy. Unlike prior methods that require retraining or beam search, our strategy incurs negligible computational overhead, while ensuring that each sample contributes a unique perspective to the batch. We evaluate our method on the HumanEval and GSM8K benchmarks using the LLaDA-8B-Instruct model. Our results demonstrate significantly improved diversity and Pass@$k$ performance across various temperature settings. As a simple modification to the sampling process, our method offers an immediate, low-cost improvement for current and future Diffusion Language Models in tasks that benefit from diverse solution search. We make our code available at https://github.com/sean-lamont/odd.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。