Gumbel Distillation for Parallel Text Generation

Chi Zhang, Xixi Hu, Bo Liu, qiang liu

Introduction

Most state-of-the-art language models are autoregressive (AR), generating text one token at a time. While this sequential process produces high-quality results, it is incredibly slow for long sequences. To accelerate generation, researchers have developed parallel decoders (like Masked Diffusion Models) that predict multiple tokens simultaneously.

However, parallel models often suffer from a significant "quality gap." Because they predict tokens in a single step, they operate under a naive assumption of conditional independence. They struggle to model the joint distribution of a sequence—for example, if a model needs to predict "San Francisco" in one block, it might accidentally produce "San Jose" or "New Francisco" because the individual token predictions don't coordinate during the parallel step. This lack of coordination leads to incoherence and repetition. Gumbel Distillation is a novel technique designed to bridge this gap, boosting generation quality without sacrificing inference speed.

Methods: The Gumbel Distillation Framework

To help a parallel "student" model learn the complex decision-making process of a powerful AR "teacher," the authors introduce a model-agnostic framework based on the Gumbel-Max trick.

In a standard AR model, sampling a token involves adding random Gumbel noise to the model's predicted logits and taking the argmax. The core insight of this paper is that for any sequence generated by the teacher, there is a specific sequence of latent Gumbel noise that produced it.

Overview of the Gumbel Distillation framework, showing the Gumbel-Max trick, data generation, and student training stages.

The distillation process works in two main stages:

  1. Data Generation: The specific Gumbel noise vectors that lead the teacher to produce a given target sequence are extracted. Crucially, the authors provide a mathematical theorem that allows this noise to be extracted in parallel for an entire sequence, making it computationally efficient for large-scale training.
  2. Student Training: The parallel student model is trained to predict the target tokens, but it is explicitly conditioned on the Gumbel noise extracted from the teacher.

By providing this noise as a deterministic "blueprint," the difficult task of modeling a complex joint distribution is transformed into a simpler supervised reconstruction task. The student learns exactly how the teacher navigated the probability landscape.

Datasets and Evaluation

The researchers evaluated their method across several standard large-scale text corpora:

  • LM1B (One Billion Word Dataset): Used for training models with a context length of 128.
  • OpenWebText (OWT): Used for training larger models with a context length of 1024.
  • ShareGPT: Used specifically for scaling experiments with the Vicuna-7B backbone.
  • Zero-shot Benchmarks: Evaluated across eight reasoning and Q&A tasks, including ARC, BoolQ, HellaSwag, and Winogrande.

Key Insights

  • Deterministic Mapping: The most profound insight is that stochastic sampling can be reframed as a deterministic function of noise. By giving the student the noise, it receives the teacher's latent sampling decisions—the "reasoning" behind the text.
  • Overcoming Independence: By conditioning on the Gumbel noise, the student model no longer has to guess the dependencies between tokens in a parallel block. The noise vector effectively coordinates the predictions across the entire block.
  • Plug-and-Play Integration: The method is remarkably flexible and was successfully integrated into three distinct architectures: MDLM (Masked Diffusion), BD3-LM (Block-wise Diffusion), and Medusa (Multi-Token Prediction).

Key Results

Gumbel Distillation consistently outperforms standard training across multiple metrics:

  • Quality Boost: On the OpenWebText dataset, it improved the MAUVE score by 30.0% and reduced generative perplexity by 10.5% compared to a baseline MDLM.
  • Reasoning: In zero-shot benchmarks, the Gumbel-distilled MDLM improved average accuracy from 34.3% to 36.1%, indicating the student successfully inherits the teacher's knowledge.
  • Speculative Decoding: When applied to the Medusa architecture, it increased the average number of accepted tokens per step by up to 8.4%, with acceptance rates for later heads in a block increasing by as much as 37.6%.
  • Human-like Evaluation: Using Gemini-2.5-pro as an automated judge, the distilled models scored significantly higher in Clarity and Factuality.

Limitations and Future Work

The primary limitation of Gumbel Distillation is vocabulary scaling. The Gumbel noise vector's size is proportional to the vocabulary size ($V$). For models with very large vocabularies, the initial projection layer for this noise adds a significant number of parameters (e.g., adding ~622M parameters to a Qwen-7B model).

Future work could address this by exploring low-rank representations of the Gumbel noise to reduce parameter overhead. Additionally, the latent Gumbel space opens new avenues for controllable generation, potentially allowing researchers to steer text generation styles or attributes by manipulating the noise blueprint.

Summary updated

BibTeX
@inproceedings{zhang2026gumbel,
  author = {Chi Zhang and Xixi Hu and Bo Liu and qiang liu},
  title = {{Gumbel Distillation for Parallel Text Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=aEuqVZVCdr},
}
Figure