NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Capturing Conditional Dependence via Auto-regressive Diffusion Models

Xunpeng Huang, Yujin Han, Difan Zou, Yian Ma, Tong ZhangarXiv 2025 · DOI

Abstract

Standard diffusion models, such as Denoising Diffusion Probabilistic Models (DDPM), excel at capturing joint distributions to produce high-fidelity samples. However, they often struggle to learn the underlying conditional dependencies—such as physical laws or geometric constraints—that govern the relationships between different parts of a data point. This paper introduces a rigorous theoretical framework for Auto-regressive (AR) Diffusion Models. By generating data sequentially in patches, AR diffusion forces the model to learn these complex conditional relationships. We provide the first sampling error bounds for this framework and demonstrate its superior performance in "rule-following" tasks compared to vanilla diffusion models.

1. Introduction

Generative modeling has seen a paradigm shift with the advent of diffusion models. While these models are capable of generating visually stunning images and videos, they possess a notable "blind spot": high-level conditional dependencies. For instance, in a scene containing a light source and an object, a standard diffusion model might generate both components accurately in isolation but fail to maintain the geometric consistency of the resulting shadow. This discrepancy arises because approximating a joint distribution $P(X)$ does not guarantee the accuracy of conditional distributions $P(X_i | X_{<i})$.

This research addresses this gap by formalizing Auto-regressive Diffusion, a method that decomposes the generation process into a sequence of conditional diffusion steps. By treating the image as an ordered sequence of patches, the model is explicitly trained to respect the dependencies established by previously generated segments.

2. The AR Diffusion Framework

In the AR Diffusion framework, an image is partitioned into $K$ patches. The generation process follows a stage-wise approach where each patch $x_k$ is sampled conditioned on the previously generated patches $x_1, \dots, x_{k-1}$.

2.1 Stage-wise OU Process

The authors model the inference process as the reverse of a stage-wise Ornstein-Uhlenbeck (OU) process. This mathematical formulation allows for the derivation of sampling error bounds, providing a theoretical foundation that was previously missing for AR-based diffusion.

2.2 Complexity and Efficiency

The gradient complexity for AR diffusion is established as $\tilde{O}(KL^2 d \epsilon^{-2})$. While the factor of $K$ (number of patches) suggests a linear increase in computational cost compared to standard DDPM, the score estimation for each individual patch occurs in a significantly lower-dimensional space. This dimensionality reduction helps mitigate the overhead, making the approach practical for high-resolution data where local dependencies are paramount.

3. Theoretical Analysis: The Conditional Gap

A core contribution of this work is the mathematical demonstration of the "Conditional Gap." Through Lemma 4.2, the authors prove that a generative model can achieve near-perfect joint distribution matching while remaining arbitrarily inaccurate regarding the conditional relationships between data components.

AR diffusion resolves this by making the conditional structure explicit. By optimizing the model to predict the next patch given the context of prior patches—akin to next-token prediction in Large Language Models—the framework naturally captures the "hidden rules" of the dataset that vanilla diffusion tends to average out.

4. Experimental Evaluation

The researchers evaluated the model across three primary tasks designed to test logical and physical consistency:

  • Task 1: Sun-Shadow Geometry: A synthetic environment where a flagpole's shadow length is determined by the sun's altitude via the law of similar triangles ($l_1/h_1 = l_2/h_2$). AR Diffusion achieved an $R^2$ of 0.92 in maintaining this geometric dependency, significantly outperforming the 0.85 achieved by vanilla DDPM.
  • Task 2: MNIST-Rules: Composite $2 \times 2$ images of MNIST digits following specific arithmetic or logical sequences (e.g., 1, 2, 3, 4). AR Diffusion generated valid sequences in over 80% of trials, whereas DDPM fell below 50%.
  • Task 3: Two Squares: A test of proportional scaling where the bottom square must be 1.5x the size of the top square. This task highlighted a critical limitation: the model's success is highly sensitive to patch boundaries. If a patch splits an object in a way that obscures the dependency, performance gains are diminished.

5. Discussion and Limitations

While AR Diffusion offers a robust solution for capturing dependencies, it introduces new variables into model design. The generation order is critical; the model performs best when the sequence of generation matches the causal or dependency order of the data. If the "effect" is generated before the "cause," the model's advantage over DDPM is lost.

Furthermore, the current reliance on a fixed raster-scan order may not be optimal for all data types. Future work is required to explore non-linear or multi-directional dependency structures and to scale these methods to high-resolution video, where temporal dependencies are even more complex.

6. Conclusion

AR Diffusion Models represent a significant step toward generative AI that understands the "why" behind the pixels. By bridging the conditional gap, this framework allows for the generation of data that is not only visually plausible but logically and physically consistent. As generative models are increasingly applied to scientific and engineering domains, the ability to respect underlying rules will be as important as the ability to produce high-fidelity imagery.

Summary updated

BibTeX
@misc{huang2025capturing,
  author = {Xunpeng Huang and Yujin Han and Difan Zou and Yian Ma and Tong Zhang},
  title = {{Capturing Conditional Dependence via Auto-regressive Diffusion Models}},
  year = {2025},
  eprint = {2504.21314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.21314},
}
Figure