Condition Errors Refinement in Autoregressive Image Generation with Diffusion Loss

Yucheng Zhou, Hao Li, Jianbing Shen

Introduction

In the evolving landscape of AI-generated imagery, two dominant paradigms exist: Diffusion Models (like Stable Diffusion) and Autoregressive (AR) Models (similar to the engines behind Large Language Models). Recent research has attempted to merge these approaches, utilizing AR frameworks to predict image patches sequentially while employing "diffusion loss" to avoid the blurry artifacts common in older discrete token methods like VQ-VAEs.

Despite promising results, a significant theoretical gap remained. It was not fully understood why this combination outperformed standard conditioning, nor how to effectively manage the noise that inevitably accumulates during sequential patch generation. As an AR model generates an image from top-left to bottom-right, extraneous information and errors build up in its internal memory (the condition). The authors identify this phenomenon as condition inconsistency, a flaw that prevents the model from generating the highest-quality patches as the sequence progresses. This paper provides a theoretical foundation for AR models using diffusion loss and introduces a novel refinement step based on Optimal Transport (OT) theory to keep the model on the "ideal" generation path.

Methods: Theory and Optimal Transport Refinement

The researchers address condition inconsistency through a two-pronged approach combining rigorous theoretical analysis with a novel algorithmic module.

1. Theoretical Analysis of AR Denoising The authors mathematically prove that patch-based denoising in AR models naturally leads to a stable condition distribution. Crucially, they demonstrate that the influence of initial condition errors decays exponentially as the AR process progresses. Essentially, the model becomes increasingly "certain" of its trajectory as it constructs more of the image, acting as a natural self-correcting mechanism.

2. Optimal Transport (OT) Refinement To explicitly solve the condition inconsistency problem, the authors leverage Optimal Transport theory. They frame the task of correcting the noisy condition as a Wasserstein Gradient Flow. By doing so, the refinement process finds the "optimal path" (the least action solution) to eliminate inconsistency while preserving the semantic meaning of the image, geometrically re-aligning the model’s intent.

Architecture of the OT Refinement module integrating a Sinkhorn Solver to refine conditions before denoising.

3. The Refinement Algorithm The team introduces a dedicated "Condition Refinement" module into the generation pipeline. Instead of blindly accepting the previous patch's output as the context for the next, the model utilizes a Sinkhorn Solver—an efficient algorithm for computing Optimal Transport. This solver pulls the generated condition back toward an "ideal" distribution, acting as a mathematically grounded denoiser for the model's internal context before it attempts to generate the subsequent set of pixels.

Datasets and Key Insights

The authors validated their approach on the gold standard benchmarks for class-conditional image generation: ImageNet 256×256 and ImageNet 512×512, testing both baseline quality and the model's ability to scale to higher resolutions.

Several key insights emerged from their analysis:

  • The "Condition Inconsistency" Trap: The authors successfully visualized how extraneous noise accumulates in the subspace of the model's hidden layers, providing a clear mathematical explanation for why long-form AR generation often drifts in quality over time.
  • Superior Signal-to-Noise: Empirical analysis showed that the OT refinement method maintains a significantly higher Signal-to-Noise Ratio (SNR) throughout the denoising process compared to standard AR baselines.

Key Results

The proposed OT Refinement method, particularly when integrated with the Masked Autoregressive (MAR) framework, achieved state-of-the-art performance:

  • Record-Breaking FID: On ImageNet 256×256, the method achieved a Fréchet Inception Distance (FID) of 1.31. This significantly outperforms both the baseline MAR (1.55) and the highly popular Diffusion Transformer (DiT-XL/2), which scores 2.27.
  • Scalability: Notably, the performance gap between the proposed method and its competitors widened as the model size increased from 208M to 943M parameters. This suggests the OT refinement approach is highly suitable for next-generation, large-scale visual foundation models.

Limitations and Future Work

While the results establish a new state-of-the-art, the authors acknowledge certain limitations:

  • Computational Overhead: Integrating a Sinkhorn Solver into the iterative generation loop introduces additional mathematical and computational complexity. This may require further optimization for real-time applications.
  • Resource Constraints: Experimental evaluation was limited to standard benchmarks up to ~1 billion parameters. The method has not yet been tested on "ultra-large-scale" models due to the massive computational resources required.
  • Future Directions: The research team suggests exploring OT-based refinement in broader multimodal settings, such as video generation or text-to-image synthesis, where maintaining condition consistency over long, complex sequences is even more critical.

Summary updated

BibTeX
@inproceedings{zhou2026condition,
  author = {Yucheng Zhou and Hao Li and Jianbing Shen},
  title = {{Condition Errors Refinement in Autoregressive Image Generation with Diffusion Loss}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=IqXlvYA7En},
}
Figure