Training-Free Character-Length Control in Summarization with Diffusion Language Models

Steffen Castle, Nils Feldhus, Christopher Ebert, Leonhard Hennig, Sebastian MöllerarXiv 2026 · DOI

TL;DR

DELTA (Diffusion Expected Length Targeting Algorithm) is a training-free, inference-time method that gives masked diffusion language models precise control over the character length of their summaries. By dynamically inserting or removing mask tokens during the denoising process, DELTA reduces character-length errors by an order of magnitude compared to autoregressive baselines like GPT-4o-mini, all while maintaining high summary quality.

What Problem Does This Paper Address?

In many real-world applications—such as generating news headlines, mobile notification previews, or UI text—summaries must fit into a strictly defined character budget. If a summary is even a few characters too long, it might be truncated or break a layout.

Standard autoregressive language models (like GPT-4 or Llama) struggle with this. Because they generate text token-by-token from left to right, they cannot easily "go back" and adjust the length once they realize they are running out of space. Current solutions usually involve expensive task-specific fine-tuning or zero-shot prompting, which often results in only approximate compliance. Furthermore, there is a fundamental mismatch between tokens (what models see) and characters (what layouts require), making precise control a moving target.

Methods

The authors shift the focus from autoregressive models to Masked Diffusion Language Models (MDLMs), such as LLaDA and Dream. Unlike their left-to-right counterparts, MDLMs start with a buffer of mask tokens and iteratively refine them.

DELTA exploits this "flexible canvas" through three key operations:

  1. Expected Length Estimation: At each denoising step, the algorithm calculates the expected character length ($\hat{L}$). For tokens already "committed" (unmasked), it uses their actual length. For masked positions, it calculates a probability-weighted average length based on the model's current vocabulary distribution.
  2. Dynamic Buffer Adjustment: If the estimated length is too high, DELTA greedily removes the least-confident mask tokens. If it's too low, it inserts new masks next to the least-confident positions.
  3. Token Commitment: The algorithm then unmasks tokens that exceed a specific confidence threshold ($\tau$), ensuring the generation progresses toward a final string.
Overview of the DELTA algorithm flowchart and a step-by-step example.

Crucially, DELTA is training-free. It works with off-the-shelf diffusion models without requiring any architectural changes or fine-tuning.

Datasets

The researchers evaluated DELTA across three summarization benchmarks representing different lengths and complexities:

  • XSum: Extreme summarization (single-sentence summaries).
  • CNN/DailyMail: Standard news summarization (medium length).
  • arXiv: Scientific paper abstracts (long-form summarization).
Human evaluation results comparing DELTA+Dream, LA-SF-AR, and GPT-4o-mini.

Key Insights and Ideas

  • Diffusion as a "Soft" Constraint: The iterative nature of diffusion models makes them uniquely suited for length control. Because the model is trained to handle various lengths and refine a global buffer, adding or removing a few masks mid-process doesn't "break" the model's logic the way it might in a rigid autoregressive sequence.
  • The Power of Probability-Weighted Length: You don't need to see the final word to know how long it will be. The model’s internal probability distribution over the vocabulary provides a highly accurate "preview" of the character count, allowing for proactive adjustments rather than reactive filtering.
  • Decoupling Length from Content: By adjusting the buffer size independently of the unmasking process, DELTA allows the model to focus on what to say while the algorithm handles how much space it takes.

Key Results

DELTA achieved unprecedented precision in character-length control. As shown in the main results table, DELTA maintained a Mean Absolute Error (MAE) of under 3.1 characters across all datasets.

Main results comparing DELTA against various baselines across three datasets.

In contrast, GPT-4o-mini—despite its general intelligence—had an MAE of 96.6 on CNN/DM and 112.2 on arXiv. While autoregressive baselines often failed to stay within 10 characters of the target (especially on longer tasks), DELTA remained above 98% compliance across the board.

Importantly, this precision didn't come at the cost of quality. Human evaluations (Table 3) showed that DELTA-generated summaries were rated similarly to GPT-4o-mini in terms of relevance, consistency, and fluency.

Human evaluation results comparing DELTA+Dream, LA-SF-AR, and GPT-4o-mini.

Limitations and Future Work

  • Inference Speed: Diffusion models are computationally heavier than autoregressive ones because they require multiple forward passes. DELTA takes significantly longer to generate a summary—roughly 20 seconds for an arXiv abstract compared to 13 seconds for a Llama-based baseline.
  • Language Scope: The study was limited to English. Since token-to-character ratios vary significantly across languages (especially for non-alphabetic scripts), the effectiveness of the length estimation would need further validation in multilingual settings.
  • Hyperparameter Sensitivity: The algorithm relies on confidence thresholds ($\tau$ and $\tau_{low}$) that currently require manual tuning via grid search. Developing adaptive methods to set these thresholds automatically would improve the "plug-and-play" utility of the method.

Summary updated

Abstract

Summarization with a fixed character length is important for tasks such as headline and article preview generation, where text must fit an exact space. Autoregressive language models (LMs) struggle with precise character-length control: training-based methods require task-specific fine-tuning, while zero-shot prompting strategies achieve only approximate compliance. We propose DELTA (Diffusion Expected Length Targeting Algorithm), a training-free inference-time method for masked diffusion LMs that estimates expected character length at each denoising step and dynamically inserts or removes masked positions to steer toward a target length. DELTA requires no fine-tuning and is designed for off-the-shelf masked diffusion LMs. Across three summarization benchmarks, it reduces character-length errors by an order of magnitude compared to baselines while maintaining competitive summary quality in both automatic and human evaluation.
BibTeX
@misc{castle2026training,
  author = {Steffen Castle and Nils Feldhus and Christopher Ebert and Leonhard Hennig and Sebastian Möller},
  title = {{Training-Free Character-Length Control in Summarization with Diffusion Language Models}},
  year = {2026},
  eprint = {2611.06371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06371},
}
Figure