Standard autoregressive (AR) models like GPT-4 generate text one token at a time, naturally concluding a sequence whenever they produce a special "end-of-sequence" (EOS) token. In contrast, non-autoregressive models—particularly discrete diffusion and flow-matching models—traditionally operate on a fixed-size canvas. They treat text generation like denoising an image: you start with a fixed grid of noise and refine it into a coherent structure.
As noted by Alexander M Rush and colleagues in their early work on abstractive summarization, requiring a fixed output length prevents a model from dynamically adjusting to the information content of the source. This "static length constraint" has become a central bottleneck for modern diffusion-based language models.
The Rigidity of the Fixed Canvas
In a standard discrete diffusion framework, such as DiffusionBERT or Plaid, the model must know the target sequence length before it begins the iterative denoising process. This creates several fundamental problems:
- Computational Waste: If the target length is unknown, researchers often over-allocate space, leading to inefficient padding.
- Reasoning Truncation: For complex tasks like math or planning, the model cannot "think longer." Siyan Zhao and Aditya Grover demonstrate in d1 that fixed lengths force models to truncate extensive proofs or inefficiently pad simple solutions.
- Structural Mismatch: In domains like protein design, Nate Gruver and Samuel Stanton point out that fixed-length architectures struggle to model sequences with diverse structural domains that naturally vary in size.
Dynamic Expansion and Termination
To overcome this, recent research has focused on giving diffusion models a native sense of "when to stop" or "how to grow."
One approach, exemplified by DAEDAL from Jinsong Li and collaborators, introduces a training-free strategy where the model uses its own internal confidence signals to dynamically expand the generation length on the fly. This allows the model to start with a short sequence and "stretch" the canvas as the complexity of the response demands.
Similarly, Jingyang Ou and Chongxuan Li propose RADD, which adapts discrete diffusion to support dynamic termination. By treating the "concrete score" as a conditional probability of clean data, the model can learn to emit termination signals similar to the autoregressive EOS token, allowing parallel models to stop naturally rather than filling a pre-defined block.
Generative Edit Operations
A more radical shift involves moving away from "mask-and-replace" denoising toward "edit-based" generation. Instead of refining a fixed grid, these models treat generation as a sequence of insertions, deletions, and substitutions.
- FlexMDM: J.M. Kim and Lee Cheuk-Kit introduced FlexMDM, which adds an "insertion expectation" to the diffusion process. This allows the model to generate content between fixed constraints (like subgoals in a plan) without needing to guess the precise number of intermediate steps beforehand.
- Edit Flows: Marton Havasi and Ricky T. Q. Chen developed Edit Flows, a framework that models sequence-level edit operations as a continuous-time stochastic process. By allowing the model to physically add or remove tokens during the generation flow, it achieves massive improvements in tasks like code generation where the final sequence length is highly variable.
Bridging the Gap
The ultimate goal of this research direction is to combine the parallel efficiency of diffusion with the flexible length of autoregression. Zhixuan Qi explores this middle ground with Block Diffusion, which generates text in discrete blocks using diffusion while maintaining an autoregressive flow between them.
By treating the sequence length not as a fixed hyperparameter but as a dynamic variable to be modeled, these researchers are transforming diffusion models from rigid "image-like" generators into fluid, adaptive systems capable of the same open-ended reasoning as their autoregressive counterparts.