[Paper Review] Continuous diffusion for categorical data
This work introduces CDCD, a framework that enables continuous diffusion modeling for discrete categorical data by embedding tokens in Euclidean space, training with score interpolation and cross-entropy, and applying time warping for efficient learning, demonstrated on language modeling and translation tasks.
Diffusion models have quickly become the go-to paradigm for generative modelling of perceptual signals (such as images and sound) through iterative refinement. Their success hinges on the fact that the underlying physical phenomena are continuous. For inherently discrete and categorical data such as language, various diffusion-inspired alternatives have been proposed. However, the continuous nature of diffusion models conveys many benefits, and in this work we endeavour to preserve it. We propose CDCD, a framework for modelling categorical data with diffusion models that are continuous both in time and input space. We demonstrate its efficacy on several language modelling tasks.
Motivation & Objective
- Motivate and enable continuous diffusion in discrete, categorical data such as language.
- Propose a framework that preserves time- and input-space continuity by embedding tokens in Euclidean space.
- Develop training with score interpolation and end-to-end embedding diffusion.
- Introduce time warping to adapt noise-level sampling for efficient learning.
Proposed method
- Embed discrete tokens in continuous Euclidean space and jointly train embeddings with the diffusion model.
- Use score interpolation to estimate the score function from logits via cross-entropy, enabling end-to-end training (Equation 6–8).
- Train a diffusion model on embeddings with L2 normalization to prevent embedding collapse, plus optional renormalization of x0 estimates.
- Apply time warping by sampling diffusion timesteps non-uniformly according to an inferred CDF derived from training loss (Equation 9).
- Implement CDCD in Transformer-based architectures for language modeling tasks like prompt completion and infilling, and in encoder–decoder setups for machine translation.
Experimental results
Research questions
- RQ1Can continuous diffusion be effectively applied to discrete categorical data by embedding tokens in Euclidean space?
- RQ2Does score interpolation combined with cross-entropy enable stable, end-to-end training of diffusion models on language data?
- RQ3How can time warping improve sample quality and training efficiency for CDCD?
- RQ4Can CDCD support conditional generation (masking/prefix conditioning) in language tasks and translation without sacrificing diffusion benefits?
Key findings
- CDCD enables end-to-end training of diffusion models for categorical data using score interpolation and cross-entropy loss.
- Jointly learned embeddings with normalization prevent collapse and yield trainable models.
- Time warping focuses training on informative noise levels, improving sampling efficiency and quality.
- The framework supports mask-conditional Transformer architectures for prompt completion and infilling.
- CDCD is applicable to machine translation via an encoder–decoder Transformer setup with appropriate conditioning.
- Diffusion-based language models under CDCD can operate without attention masking, unlike autoregressive models, offering architectural flexibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.