Free Lunch for Pass@k? Low Cost Diverse Sampling for Diffusion Language Models

Sean Lamont, Christian Walder, Paul Montague, Amir Dezfouli, Michael Norrish
3/5/2026
cs.CLcs.AI

Official code: sean-lamont/odd (4 stars, MIT, last commit 2026-04-29).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

sean-lamont/oddOfficial100%
MIT

Codebase for Orthogonal Diverse Diffusion. We present a lightweight, training free method for improving sampling diversity and Pass@k in Diffusion Language Models.

40Shell, PythonJan 12, 20265 months agoMIT
code-generationdiffusion-language-modelsmathematical-reasoningpass-at-kproblem-solving+2 more

Similar Papers

Cite this paper

@article{lamont2026free,
  title  = {Free Lunch for Pass@k? Low Cost Diverse Sampling for Diffusion Language Models},
  author = {Sean Lamont and Christian Walder and Paul Montague and Amir Dezfouli and Michael Norrish},
  year   = {2026},
  eprint = {2603.04893},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.04893v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.04893.svg)](https://codeofpaper.com/paper/2603.04893)

Discussion