TL;DR
Continuously Augmented Discrete Diffusion (CADD) bridges the gap between discrete masking and continuous Gaussian diffusion. By pairing discrete tokens with a parallel continuous latent space, CADD provides "semantic hints" that fill the information void left by standard [MASK] tokens. This hybrid approach leads to state-of-the-art performance in text, image, and code generation.
The Information Void Problem
Generative modeling for categorical data (like text or quantized pixels) typically falls into two distinct camps: Masked Diffusion Models (MDMs) and Continuous Diffusion Models (CDMs).
MDMs are structurally stable but suffer from an "information void." When a model masks a token, it replaces it with a generic [MASK] symbol. This symbol carries zero semantic information about the original token, forcing the model to make "hard" guesses during denoising without knowing if the original word was closer to "cat" or "car."
CDMs, on the other hand, map tokens to a continuous space and add Gaussian noise. While this preserves semantic proximity, these models often suffer from "over-smoothing," making it difficult to collapse the noisy continuous values back into sharp, precise discrete identities.
The authors of CADD ask a fundamental question: Can we keep the structural stability of discrete masking while leveraging the semantic richness of continuous space?
The CADD Framework
CADD introduces a joint diffusion process that evolves a sequence of discrete tokens ($x_t$) and a paired set of continuous latent vectors ($z_t$).
- The Forward Process: When a token is unmasked, its continuous latent remains fixed at its original embedding. The moment a token is masked in the discrete path, it "triggers" Gaussian diffusion in the continuous path. As time progresses, the latent vector becomes noisier but retains a "graded" proximity to the original signal.
- The Reverse Process (Denoising): Instead of looking at a sea of identical
[MASK]tokens, the CADD decoder receives the discrete sequence plus the noisy continuous latents. These latents act as a "semantic scaffold," guiding the model to resolve ambiguities. - Mode Balancing: During sampling, CADD allows for a controlled trade-off. Users can choose a "hard" estimator (picking the most likely token) for better context localization (mode-seeking) or a "soft" estimator (averaging over possible tokens) to encourage diversity (mode-coverage).
- Architecture: CADD is backbone-agnostic. The authors demonstrate it using Diffusion Transformers (DiT) and U-Nets, simply fusing the discrete and continuous inputs via element-wise addition.
Experimental Setup
The authors evaluated CADD across three distinct modalities to prove its versatility:
- Text: Trained on OpenWebText (OWT) and evaluated using MAUVE scores and generative perplexity.
- Images: Trained on CIFAR-10 and ImageNet (32x32), using Fréchet Inception Distance (FID) and Inception Score (IS) as metrics.
- Code: Conducted large-scale experiments (7B/8B scale) using the OpenCoder dataset, evaluated on HumanEval, MBPP, and BigCodeBench.
Key Findings & Results
Filling the Void
The core insight of CADD is that a [MASK] token doesn't have to be empty. By providing a noisy version of the original embedding, the model "remembers" the semantic neighborhood of the missing data, making the denoising task significantly easier.
Scaling at Inference
Unlike standard masked models, which often see performance plateau or even degrade as you increase the number of sampling steps ($T$), CADD shows consistent, nearly linear improvement. It effectively "scales" with more compute at inference time.
State-of-the-Art Performance
- Text Quality: CADD demonstrated superior MAUVE scores compared to SEDD and MDLM across all sampling steps. Notably, at $T=4096$ steps, CADD continued to improve while baselines stagnated.
- Image Synthesis: CADD achieved an FID of 2.88 on CIFAR-10, outperforming strong discrete baselines like MDM-Prime (3.26) and even surpassing standard continuous models like DDPM (3.17).
- Code Generation: In the 7B parameter regime, CADD emerged as the strongest diffusion-based coder. On the challenging BigCodeBench-Hard subset, it improved the Pass@1 score from 12.8% (the previous best diffusion model, DiffuCoder) to 17.6%.
Fine-tuning Efficiency
CADD isn't just for training from scratch. The authors show it can be used as a powerful fine-tuning objective for existing masked models (like MDLM), significantly boosting their performance with relatively little additional training.
Limitations and Future Work
- Inference Latency: While CADD is efficient, using the "soft" estimator with multiple latent samples ($K > 1$) increases the computational cost per sampling step. The authors note a linear increase in TFLOPS as $K$ grows.
- Resolution Constraints: The image experiments were limited to 32x32 resolution. While this is standard for benchmarking fundamental diffusion algorithms, future work is needed to see how CADD handles high-resolution latent spaces or video generation.
- Schedule Tuning: The performance varies slightly depending on whether one uses a Variance-Preserving (VP) or Flow-matching (FM) schedule, suggesting that hyperparameter optimization for the continuous component is crucial for peak performance.
Summary updated