Learnable Sampler Distillation for Discrete Diffusion Models

Feiyang Fu, Tongxian Guo, Zhaoqiang Liu

Introduction

Discrete diffusion models (DDMs) are powerful tools for generating text and categorical data, but they are notoriously slow to sample from. This paper introduces Learnable Sampler Distillation (LSD), a technique that drastically speeds up generation by training a fast "student" sampler to mimic the intermediate steps of a slow "teacher" sampler. By learning adaptive coefficients and time schedules, LSD achieves high-quality generation in just a fraction of the usual steps.

The Efficiency Bottleneck in DDMs

Diffusion models have revolutionized continuous data generation (like images and audio). However, applying them to discrete data—such as text tokens, DNA sequences, or categorical variables—requires specialized DDMs.

While DDMs generate high-fidelity discrete data, they suffer from a massive efficiency bottleneck: they typically require 1,024 or more sampling steps (Number of Function Evaluations, or NFEs) to produce a single output. Attempting to accelerate this by taking fewer, larger steps causes generation quality to plummet due to two compounding issues:

  1. Discretization Error: Numerical approximations used to simulate the reverse diffusion process become highly inaccurate over large intervals.
  2. Compounding Decoding Error: DDMs predict the denoised state of each token independently. Over large steps, ignoring dependencies between tokens causes errors that snowball as generation progresses.

Existing acceleration methods either rely on tiny steps or optimize when to sample without fixing how the model behaves during those large jumps.

Learnable Sampler Distillation (LSD)

To fix the large-step error, the authors propose Learnable Sampler Distillation (LSD) and an upgraded version, LSD+. Instead of training a whole new model from scratch, LSD optimizes the sampler itself using a teacher-student distillation framework.

Overview of Learnable Sampler Distillation
  • Intermediate Score Alignment: Standard continuous diffusion distillation often compares final generated outputs. In DDMs, the final output is a discrete token, which is non-differentiable and blocks gradient-based training. To bypass this, LSD aligns the intermediate score trajectories (the continuous probability distributions predicted by the network) of a few-step student with a many-step teacher.
  • Learnable Coefficients (LSD): The student sampler learns time-dependent coefficients that dynamically adjust the influence of the model's predictions at each step. This acts as a learned correction mechanism for errors introduced by large steps.
  • Learnable Time Schedules (LSD+): Instead of spacing the few sampling steps evenly, LSD+ learns a non-uniform schedule, allocating steps to the parts of the diffusion process where dynamics are most complex.
  • Relaxed Objective: To ease training for the heavily constrained student, the authors use a "relaxed" objective. The student starts from a slightly perturbed initial state (within a 5% Hamming distance of the teacher's starting state) rather than forcing a strict alignment from the exact same starting noise.

Key Insights and Performance

The realization that one can distill discrete diffusion models by matching intermediate continuous scores rather than final discrete samples is a clever workaround for the non-differentiability of categorical data. Furthermore, by injecting learnable parameters into the sampler's update rule, the sampler actively compensates for its own numerical inaccuracies.

The authors evaluated their method across diverse modalities, including text generation (OpenWebText), image generation (CIFAR-10, ImageNet), and synthetic tasks.

Performance comparison across different samplers and NFEs

The proposed methods drastically outperform existing fast-sampling baselines at low step counts:

  • Text Generation: On the SEDD-small model at just 8 steps, standard Euler sampling yielded a poor perplexity of 423.1. LSD+ slashed this to 128.4. On the RADD backbone at 8 steps, LSD+ achieved 89.8 perplexity compared to Euler's 670.9.
  • Image Generation: On ImageNet 256x256 at just 4 steps, LSD+ combined with a Halton sampler improved the FID score from 14.16 to 12.78.
  • Synthetic Task: LSD+ consistently achieved lower error rates (fewer rule violations in a custom countdown sequence) across all tested step counts (8 to 64).
  • Computational Efficiency: Training the LSD+ sampler coefficients and schedules is incredibly fast, taking only about 5 minutes on a single NVIDIA RTX 4090 GPU, and introduces zero computational overhead during inference.

Limitations and Future Work

Because this is a distillation method, the student sampler's maximum potential is strictly capped by the quality of the teacher sampler. It can match the teacher faster, but it cannot generate better samples than the teacher. Additionally, while continuous diffusion distillation has rigorous mathematical proofs bounding the error between teacher and student distributions, establishing these bounds in discrete spaces remains a challenge due to the lack of differentiability. Future research should focus on providing these missing theoretical guarantees.

Summary updated

BibTeX
@inproceedings{fu2025learnable,
  author = {Feiyang Fu and Tongxian Guo and Zhaoqiang Liu},
  title = {{Learnable Sampler Distillation for Discrete Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=gMHLQASj11},
}
Figure