# Dynamically Structured Diffusion Language Model Decoding via Bayesian Inference

*Bian Sun, Kevin Zhai, Mubarak Shah, Zhenyi Wang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151637) · [OpenReview](https://openreview.net/forum?id=Z6jLmoD11G) · [alphaXiv](https://www.alphaxiv.org/abs/2605.09820) · [Open on the map](../papers.html#p151637)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Diffusion Language Model Decoding](../pgroup/271.md) · Type: new method · Keywords: diffusion language models, flexible-length generation, Bayesian inference, structured decoding, Chinese Restaurant Process

## Summary
The paper introduces a training-free Bayesian structured decoding framework that dynamically infers block length, formation, and decoding order for flexible-length generation in diffusion language models.

## Explained to a 5-year-old
Some computers make sentences by filling one word after another. Others make sentences in groups, which is faster. But they usually make sentences of a set length. This paper lets the groups grow as needed, like adding more blocks when they see new ideas. It uses a clever math rule to decide how big each group should be and when to stop, helping make better sentences that can be any length.

## Explained to a 5-year-old, longer
Computers can write sentences by adding one word at a time. They can also write sentences in chunks, which is faster. Usually these chunked models decide ahead how many words to write. This makes them not good when you need a short or long answer. Some new ideas try to change the length, but they need a lot of work or only look at small parts. This paper finds a way to let the chunks grow when needed. It looks at how much to add, where to add, and the order of the chunks. It uses a special rule that works like sharing tables at a party. The rule helps decide how big each chunk should be. It also decides which chunk to finish first. This makes the text smoother and can be any length. As a result, the sentences are better and more flexible.

## For a technical reader
Diffusion language models generate text in parallel batches rather than sequentially, which can speed up decoding. However, they traditionally produce a fixed number of tokens, limiting their usefulness in applications that need variable-length output. The authors propose a training-free decoding scheme that treats flexible-length generation as a Bayesian inference problem, learning how much to expand, where to split, and the order of decoding steps. At each step the system combines local uncertainty with structural cues to grow the sequence, infer block boundaries using a Chinese-Restaurant-Process-style partition, and schedule decoding per block. Experiments show the method consistently outperforms both fixed-length and existing flexible-length baselines on several benchmarks.

## Problem
Diffusion language models currently generate sequences of a predetermined length, which limits their use in applications requiring variable-length outputs. Existing flexible-length approaches either need costly retraining or rely on local confidence signals that ignore the evolving sequence structure, leading to poor generation quality.

## Method
The approach formulates flexible-length generation as a dynamic structural inference problem and learns posterior inference over block length, block formation, and decoding order within a unified Bayesian inference framework. At each expansion step, it integrates local uncertainty with structural signals to adaptively grow the sequence, infer block boundaries using a Chinese Restaurant Process (CRP)-style partitioning, and schedule decoding steps per block.

## Results
The approach achieves significantly better generation quality and flexibility compared to existing fixed-length and flexible-length baselines across multiple benchmarks.

## Contributions
The paper provides a training-free Bayesian structured decoding framework that jointly infers dynamic block length, formation, and decoding order, enabling flexible-length generation without retraining. It also demonstrates superior performance over prior baselines on multiple benchmarks.

## Research questions this paper is counted under

- [How can diffusion language models achieve fast parallel token generation while maintaining high sample quality and preserving token dependencies?](../q/7.md)

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](../feedback/?on=p/151637)
