Abstract
Diffusion models have shown promise in text generation, but often struggle with generating long, coherent, and contextually accurate text. Token-level diffusion doesn’t model word-order dependencies explicitly and operates on short, fixed output windows, while passage-level diffusion struggles with learning robust representations for long-form text. To address these challenges, we propose Segment-Level Diffusion (SLD), a framework that enhances diffusion-based text generation through text segmentation, robust representation training with adversarial and contrastive learning, and improved latent-space guidance. By segmenting long-form outputs into multiple latent representations and decoding them with an autoregressive decoder, SLD simplifies diffusion predictions and improves scalability. Experiments on four datasets demonstrate that, when compared to other diffusion and autoregressive baselines SLD achieves competitive or superior fluency, coherence, and contextual compatibility in automatic and human evaluations.
Introduction
In contemporary AI text generation, two primary paradigms dominate. Autoregressive (AR) models, such as the GPT series, predict text sequentially, token by token. While effective for local fluency, these models are prone to "error propagation," where a single misstep early in a sequence leads to hallucinations or logical loops in long-form outputs. Conversely, Diffusion models generate text by iteratively de-noising a random signal. While successful in the image domain, diffusion models often struggle to capture the complex, structured semantic planning required for long stories or multi-turn dialogues.
Researchers from the University of Cambridge have introduced Segment-Level Diffusion (SLD), a framework that positions diffusion as a high-level semantic planner to bridge the gap between local fluency and global coherence.
The Challenge of Long-Form Generation
Generating long, coherent text faces two major hurdles:
- The AR Myopia: Sequential prediction lacks a global blueprint, often resulting in models "losing the plot" over extended passages.
- The Diffusion Bottleneck: Existing "passage-level" diffusion models attempt to compress entire paragraphs into a single latent vector. This extreme compression loses vital detail. Furthermore, these models are highly sensitive to noise; minor shifts in the latent space can cause the decoder to produce nonsensical text.
The SLD Framework
The SLD framework addresses these issues by treating diffusion as an architect that plans a sequence of concepts rather than individual tokens or monolithic passages. The process is divided into three stages:
1. Text Segmentation
Instead of a single vector for an entire document, SLD decomposes the output into natural segments, such as individual sentences or dialogue utterances. This allows the model to maintain a manageable level of detail for each segment while planning the overall structure.
2. Robust Representation Learning
To solve the noise sensitivity problem, SLD employs a specialized encoder-decoder to map segments into a "smooth" latent space. This stage utilizes Contrastive Learning to ensure semantically similar segments remain proximal in the latent space and Adversarial Training, where noise is intentionally injected during training to force the decoder to become robust and capable of recovering original meanings from imperfect diffusion outputs.
3. Diffusion as a Semantic Planner
A Diffusion Transformer (DiT) acts as the high-level planner. Conditioned on an input (e.g., a story title or summary), it predicts the sequence of latent vectors for all segments simultaneously. Finally, an AR decoder translates these planned vectors back into human-readable text in parallel.
Experimental Evaluation
The researchers evaluated SLD across four diverse tasks to test its scalability and planning capabilities:
- XSum: Extreme summarization (short, single-sentence outputs).
- ROCStories: Five-sentence commonsense stories requiring logical flow.
- DialogSum: Generating full dialogues based on summaries.
- DeliData: Complex multi-party dialogues focused on collaborative problem-solving.
Key Results
- Superior Performance: In long-form tasks like DialogSum and DeliData, SLD consistently outperformed standard AR models (e.g., Flan-T5) and previous state-of-the-art latent diffusion models (e.g., LD4LG) in ROUGE-L scores and human evaluations.
- Contextual Compatibility: Human judges rated SLD significantly higher for "Compatibility," indicating that the generated text adhered more closely to the provided prompts than baseline models.
- Mitigating Repetition: A major advantage of SLD is its reduction in repetition. While sequential AR models often fall into infinite loops during long dialogues, SLD’s global planning keeps the content progressing naturally.
- Parallel Efficiency: Because the diffusion model predicts all segment vectors at once, the final text for each segment can be decoded in parallel, offering architectural advantages for high-throughput generation.
Conclusion and Future Work
Segment-Level Diffusion demonstrates that breaking long-form generation into a hierarchical task—where diffusion plans the semantics and an AR decoder handles the local syntax—leads to more coherent and less repetitive text. While currently limited to English and modular training, future work may explore end-to-end training strategies and multilingual applications to further refine the synergy between semantic planning and linguistic realization.
Summary updated