Systematic Hazard Sampling: Minimal-Variance Inference for Discrete Diffusion and Flow Models
Seunghwan Jang, Wonje Jeung, SooJean Han
NeurIPS page · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Diffusion Posterior Sampling · Type: new method · Keywords: discrete diffusion, sampling variance, hazard sampling, language model, sequence generation
Summary
Systematic Hazard Sampling (SHS) reduces variance in discrete diffusion and flow models by using cumulative hazard thresholds, improving sample quality across parameter budgets.
Explained to a 5-year-old
Computers can create new sentences by changing words step by step. They sometimes change too few words, leaving mistakes, or change too many words, making the sentence weird. This happens because the random choices used to decide when to change words have a lot of randomness. The new idea is to pick when to change words in a smarter way that uses less randomness. This makes the sentences better and works for many different computer models.
Explained to a 5-year-old, longer
Computers can create new sentences using a method called diffusion, where they gradually change words. They do this by looking at each word and sometimes deciding to replace it with another word. The usual way to decide when to replace a word is to flip a coin at each step, which can be random. When the coin lands on changing a word too often, the sentence can become noisy or have too many changes. When it lands too rarely, some mistakes stay in the sentence. This randomness makes the final sentence less perfect. The paper noticed that this randomness is a separate problem from the model itself. They came up with a new way to decide when to change words that uses a smoother, less random schedule. Instead of flipping a coin each time, they look at how much change is needed overall and pick moments to act. This new schedule keeps the average number of changes the same but reduces the chance of big mistakes. As a result, the sentences generated are cleaner and more accurate. The idea works for many different computer models that use this kind of step-by-step editing.
For a technical reader
The paper observes that discrete diffusion and flow models, which generate sequences by iteratively replacing tokens, suffer from high variance in how many edits occur per position because each step uses independent Bernoulli decisions. This variance leads to under-editing (leaving noise) and over-editing (causing cascading substitutions), especially when the model is forced to use few editing steps. The authors propose Systematic Hazard Sampling (SHS), a training-free inference principle that treats edits as events driven by cumulative hazard or jump mass and triggers them when a threshold is crossed, using a single random phase per position. SHS preserves the expected number of edits while minimizing conditional variance to at most 1/4, and it works as a drop-in replacement for any sampler that supports a stay-vs-replace decomposition. Experiments on language models ranging from 110 M to 3 B parameters confirm consistent quality improvements across different function-evaluation budgets, with larger gains as more evaluations are used.
Problem
Discrete diffusion and flow models often suffer from under-editing and over-editing due to high variance in per-position edit counts caused by independent Bernoulli sampling, leading to degraded sample quality.
Method
The approach models per-token edits as events driven by cumulative hazard (for CTMC) or jump mass (for DTMC) and triggers an edit when this cumulative quantity exceeds unit-spaced thresholds using a single random phase per position, preserving expected edit counts while minimizing conditional variance.
Results
The approach improves sample quality across a range of model sizes and NFE budgets, with larger gains observed as the number of function evaluations increases.
Contributions
It identifies sampler-induced variance as an orthogonal source of degradation and proposes a training-free, hyperparameter-free inference principle that achieves minimal conditional variance while preserving expected edit counts.
Limitations and assumptions
Only applicable to samplers that admit a stay-vs.-replace decomposition, and evaluated solely on language models.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction