Abstract
Diffusion models have achieved remarkable success in continuous domains such as image and audio generation. However, applying these models to discrete data—such as text or categorical pixels—remains a significant challenge. Traditional approaches often map discrete tokens to single points in a continuous embedding space, leading to a mismatch between learned probability contours and the actual boundaries of discrete categories. This paper introduces Boundary Conditional Diffusion Processes (BCDP), a framework that treats discrete items as regions rather than points. By explicitly modeling these boundaries and rescaling diffusion trajectories to respect them, the proposed method achieves state-of-the-art performance in language modeling and categorical image generation.
Introduction
While continuous diffusion models excel at generating high-resolution imagery, their application to discrete data typically relies on a "continuous-to-discrete" mapping. In these setups, a discrete item (like a word) is represented by a specific vector in an embedding space. During generation, the model predicts a continuous vector, which is then "rounded" to the nearest discrete neighbor.
This paper identifies a fundamental flaw in this point-based mapping: in reality, a discrete item corresponds to an entire region or "cell" within the continuous space. When standard diffusion models learn probability gradients, their contours often deviate from the geometric boundaries of these cells. This discrepancy results in "noisy" generation, where the model produces vectors that fall into ambiguous zones, leading to errors during the final rounding step.
The Area Hypothesis and Boundary Alignment
The core insight of this work is the "Area Hypothesis": a discrete token is a neighborhood, not a coordinate. If a model's objective ignores the "fence" (boundary) around a point, the resulting probability density will not align with the discrete structure of the data.
To address this, the authors propose Boundary Conditional Diffusion Processes, which align the diffusion trajectory with these discrete boundaries through a two-step forward process:
- Boundary Estimation: Utilizing Ordinary Differential Equations (ODEs) and Flow Matching, the model calculates the specific time ($t_0$) and location ($x_{t_0}$) where a forward trajectory intersects the boundary of a discrete region.
- Trajectory Rescaling: The forward trajectory is rescaled to originate from these estimated boundaries rather than an arbitrary point. This ensures that the learned gradients are informed by the shape and limits of the discrete regions.
- Confidence Factor ($r$): A hyperparameter $r \in [0, 1]$ is introduced to modulate the influence of discrete priors. When $r=0$, the system behaves like standard diffusion; as $r$ increases, the model relies more heavily on boundary information to guide the generation.
Furthermore, the authors demonstrate that a Deterministic Reverse Process (akin to DDIM) is crucial. Because trajectory rescaling is sensitive to noise, deterministic sampling prevents the "noise explosion" that can occur in stochastic variants, maintaining alignment with the calculated boundaries.
Experimental Evaluation
The BCDP framework was evaluated across diverse tasks in natural language processing and computer vision.
Language Modeling
In machine translation tasks (IWSLT14, WMT14, and WMT16) and text summarization (GIGAWORD), BCDP significantly outperformed previous continuous diffusion benchmarks such as Dinoiser and Difformer. Notably, on the WMT14 English-to-German task, the model achieved a 73.6% improvement over the DiffuSeq baseline. The results indicate that BCDP can compete with traditional Autoregressive Transformers, a rare feat for non-autoregressive diffusion models in NLP.
Image Generation
On the CIFAR-10 dataset, the method was tested using binary coding, fixed embeddings, and trainable categorical embeddings. BCDP established a new state-of-the-art for categorical image generation with a Fréchet Inception Distance (FID) of 10.99 using trainable embeddings, surpassing the previous best results held by Bit Diffusion.
Discussion and Limitations
BCDP offers a versatile "plug-in" for existing architectures, as it is compatible with both standard Denoising Diffusion Probabilistic Models (DDPM) and Flow Matching frameworks. By treating boundaries as a prior distribution, the model concentrates probability density where it is most effective for discrete recovery.
However, the method has limitations:
- Inference Sensitivity: The sampling process is highly dependent on the model's initial prediction of the data point ($x_0$). Inaccurate early-stage predictions can lead to unreliable boundary estimations for the remainder of the trajectory.
- Scope: The framework is designed for diffusion in continuous embedding spaces and is not directly applicable to models defined on discrete state spaces (e.g., D3PM).
- Computation: While the rescaling process is parallelizable and adds negligible overhead when using self-conditioning, it remains more operationally intensive than vanilla diffusion.
Conclusion
Boundary Conditional Diffusion Processes bridge the gap between continuous modeling and discrete data by acknowledging the spatial extent of discrete categories. By enforcing boundary constraints during training and sampling, the framework mitigates the rounding errors that have historically hindered continuous-to-discrete diffusion. Future research may extend this boundary-aware logic to large-scale language models and complex structural data like protein folding.
Summary updated