DiffusER: Diffusion via Edit-based Reconstruction

Machel Reid, Vincent Josua Hellendoorn, Graham NeubigICLR 2023

DiffusER (Diffusion via Edit-based Reconstruction) is a novel generative model that reimagines text creation as an iterative process of refinement rather than a single, left-to-right pass. By adapting the principles of continuous diffusion models to discrete text edit operations, DiffusER matches or exceeds the performance of standard autoregressive models while offering unprecedented flexibility for human-in-the-loop editing and prototype-based generation.

The Autoregressive Bottleneck

The dominant paradigm in AI text generation is "autoregressive" (AR) modeling: predicting one word at a time, strictly from left to right, without ever looking back. While highly effective for generating fluent text, this approach fundamentally differs from how humans write. We rarely stream words perfectly on the first try; instead, we draft, delete, rearrange, and polish.

Standard AR models struggle with tasks that require revision, such as refining a rough draft or editing a specific style. Conversely, existing "non-autoregressive" models—which attempt to generate text all at once—often suffer from lower output quality. DiffusER bridges this gap, combining the high performance of AR generation with the flexibility of a natural, iterative editing process.

Methods: Text Generation as Denoising

DiffusER treats text generation as a denoising diffusion process. In computer vision, diffusion models turn pure noise into a coherent image through incremental denoising steps. DiffusER applies this concept to text by defining a "corruption" process (adding noise via random edits) and a "reconstruction" process (learning to reverse those edits to recover the original text).

The DiffusER corruption and reconstruction process

The architecture relies on two main components, both implemented using Transformers:

  1. The Tagger: This model analyzes the current sequence and predicts which Levenshtein edit operation (INSERT, DELETE, KEEP, REPLACE) should be applied to each position.
  2. The Generator: Once the tags are decided, this autoregressive model generates the actual tokens needed to execute the "Insert" and "Replace" operations.

To optimize the output, DiffusER introduces 2D Beam Search. While standard beam search only evaluates the best word choices within a single sentence, DiffusER’s 2D version searches across both the word choices (intra-revision) and the sequence of edit steps (inter-revision), significantly improving the final output quality.

Key Insights: Bootstrapping and Intuitive Editing

Unlike models that only use "masking" (replacing words with a blank), DiffusER utilizes a full suite of edit operations. This allows it to dynamically change sentence length and fix its own mistakes in subsequent passes.

One of the model's most powerful features is Bootstrapping. DiffusER doesn't have to start from scratch (a null sequence or random tokens). It can bootstrap from the output of a standard AR model or even the source text itself. This makes DiffusER highly complementary to existing models; by taking the output of a standard Transformer and running it through DiffusER's edit steps, the combined system achieves better results than either model could produce alone.

Step-by-step summarization using DiffusER

Qualitative analysis reveals that the model learns highly intuitive behaviors. For example, when tasked with summarization, DiffusER learns to delete large, irrelevant chunks of the source text in early steps, and then makes minor grammatical tweaks to the remaining parts to ensure fluency.

Performance and Results

The authors evaluated DiffusER on three diverse text generation benchmarks, demonstrating state-of-the-art or highly competitive performance across the board:

  • Machine Translation: On the WMT'14 English-German (En-De) dataset, DiffusER with AR Bootstrapping achieved 28.8 BLEU, outperforming the standard AR Transformer (27.3) and several non-autoregressive baselines.
  • Abstractive Summarization: On the CNN/DailyMail dataset, using source bootstrapping, it reached 38.9 ROUGE, surpassing the AR baseline (36.8).
  • Text Style Transfer: On the Yelp sentiment dataset (transforming positive reviews to negative and vice versa), it outperformed specialized models like LEWIS and Masker, achieving 87.6% Accuracy and 25.2 BLEU without requiring task-specific training tricks.

Limitations and Future Work

While DiffusER offers immense flexibility, its primary limitation is inference speed. The 2D Beam Search is computationally expensive and significantly slower than greedy decoding, which poses challenges for real-time applications. Additionally, the authors noted diminishing returns with excessive editing: performance gains typically plateau after 10–30 edit steps, and running too many steps (e.g., 60) can actually degrade quality slightly.

Future work will likely focus on developing more efficient decoding algorithms and exploring how edit-based models can be used to "ensemble" multiple different models directly in the discrete text space.

Summary updated

BibTeX
@inproceedings{reid2023diffuser,
  author = {Machel Reid and Vincent Josua Hellendoorn and Graham Neubig},
  title = {{DiffusER: Diffusion via Edit-based Reconstruction}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=nG9RF9z1yy3},
}
Figure