[Paper Review] Free Lunch for Pass@$k$? Low Cost Diverse Sampling for Diffusion Language Models
Proposes ODD, a training-free, low-cost inference-time method that biases diffusion language model sampling to be diverse by orthogonally repelling new samples from previous ones, improving Pass@k with minimal overhead.
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.
Motivation & Objective
- Motivate the need for diverse outputs in diffusion language models for complex reasoning tasks.
- Introduce a low-overhead, training-free mechanism to increase sample diversity during inference.
- Demonstrate that orthogonal repulsion across batch samples improves Pass@k on standard benchmarks.
- Analyze overhead and robustness across temperature settings and batch sizes.
Proposed method
- Define a lightweight feature extractor operating on the model’s output distribution to create per-sample feature vectors.
- Introduce an orthogonal diversity loss that repels each new sample from the subspace spanned by previous samples using Gram–Schmidt based orthogonal bases.
- Apply a stop-gradient projection so only logits of the current sample are updated, making the process batch-aware and efficient.
- Linearly anneal the diversity strength with diffusion timesteps to favor early exploration and preserve late-stage quality.
- Compare against a baseline and a global DPP-based diversity objective to evaluate performance and latency.
- Open-source code and experiment data are released.

Experimental results
Research questions
- RQ1Does inference-time orthogonal diversity (ODD) improve Pass@k on diffusion language models without retraining?
- RQ2How does ODD compare to global diversity objectives (e.g., DPP-based) in terms of quality-diversity trade-offs?
- RQ3What is the computational overhead of ODD relative to standard sampling, and how does it scale with temperature and batch size?
- RQ4How does feature choice for diversity modeling affect the balance between diversity and output quality?
Key findings
- ODD consistently improves Pass@k on GSM8K and HumanEval across various temperatures.
- ODD introduces negligible overhead and scales independently of model size, making it practical for inference-time diversity.
- Compared to a global DPP objective, the greedy, stop-gradient orthogonal approach can yield higher batch diversity and improved coverage.
- ODD shows a Pareto-like improvement: higher batch coverage with little to no loss (or even gains) in individual sample quality for many settings.
- The method increases cumulative problem coverage on HumanEval, indicating better exploration of the solution space under sparse-signal conditions.
- Experimental results indicate that ODD’s diversity gains are most pronounced at lower temperatures and when larger repulsion strengths are used judiciously.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.