Skip to main content
QUICK REVIEW

[Paper Review] Free Lunch for Pass@$k$? Low Cost Diverse Sampling for Diffusion Language Models

Sean Lamont, Christian Walder|arXiv (Cornell University)|Mar 5, 2026
Topic ModelingComputer Science0 citations
TL;DR

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.

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.

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.
Figure 1 : Example outputs from LLaDA with standard sampling (left) and our approach (right), both with a temperature of 1. For this example, the base sampler achieved a Pass@16 of 0, while our model found 3 valid solutions. Despite having the same temperature, standard sampling leads to mode collap
Figure 1 : Example outputs from LLaDA with standard sampling (left) and our approach (right), both with a temperature of 1. For this example, the base sampler achieved a Pass@16 of 0, while our model found 3 valid solutions. Despite having the same temperature, standard sampling leads to mode collap

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.
Figure 2 : An overview of our proposed diverse sampling framework, using our orthogonal diversity loss. Given a full batch of $n$ samples, feature vectors $F(\mathbf{x_{i}})$ are extracted for the logits $x_{i}$ for each sample $i\in\{1,\dots,n\}$ . We then loop through each sample, compute an ortho
Figure 2 : An overview of our proposed diverse sampling framework, using our orthogonal diversity loss. Given a full batch of $n$ samples, feature vectors $F(\mathbf{x_{i}})$ are extracted for the logits $x_{i}$ for each sample $i\in\{1,\dots,n\}$ . We then loop through each sample, compute an ortho

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.