Skip to main content
QUICK REVIEW

[Paper Review] ImageBART: Bidirectional Context with Multinomial Diffusion for Autoregressive Image Synthesis

Patrick Esser, Robin Rombach|arXiv (Cornell University)|Aug 19, 2021
Generative Adversarial Networks and Image SynthesisComputer Science68 references51 citations
TL;DR

ImageBART introduces a coarse-to-fine hierarchical framework that inverts a multinomial diffusion process to inject bidirectional context into autoregressive image synthesis, enabling high-fidelity generation and flexible local editing.

ABSTRACT

Autoregressive models and their sequential factorization of the data likelihood have recently demonstrated great potential for image representation and synthesis. Nevertheless, they incorporate image context in a linear 1D order by attending only to previously synthesized image patches above or to the left. Not only is this unidirectional, sequential bias of attention unnatural for images as it disregards large parts of a scene until synthesis is almost complete. It also processes the entire image on a single scale, thus ignoring more global contextual information up to the gist of the entire scene. As a remedy we incorporate a coarse-to-fine hierarchy of context by combining the autoregressive formulation with a multinomial diffusion process: Whereas a multistage diffusion process successively removes information to coarsen an image, we train a (short) Markov chain to invert this process. In each stage, the resulting autoregressive ImageBART model progressively incorporates context from previous stages in a coarse-to-fine manner. Experiments show greatly improved image modification capabilities over autoregressive models while also providing high-fidelity image generation, both of which are enabled through efficient training in a compressed latent space. Specifically, our approach can take unrestricted, user-provided masks into account to perform local image editing. Thus, in contrast to pure autoregressive models, it can solve free-form image inpainting and, in the case of conditional models, local, text-guided image modification without requiring mask-specific training.

Motivation & Objective

  • Motivate and overcome the unidirectional attention bias in autoregressive image generation by introducing bidirectional context.
  • Develop a coarse-to-fine hierarchical model that uses a fixed multinomial diffusion process to compress images and provide global context for AR steps.
  • Enable flexible conditional image synthesis and local, user-guided editing without specialized training for masks.
  • Achieve high-fidelity generation by training a Markov chain to invert the diffusion process in a discrete latent space.
  • Demonstrate improved modification capabilities and competitive sample quality across diverse datasets.

Proposed method

  • Learn a hierarchical sequence of distributions p^t_theta with x_0 the data and x_T a coarse representation, forming x_{0:T} with x_{t-1} ~ p^{t-1}_{theta}(x_{t-1}|x_t).
  • Use a forward multinomial diffusion q_theta to progressively corrupt x_{t-1} into x_t, enabling a tractable KL bound and an ELBO-based training objective (Eq. 2).
  • First stage (L1) learns a discrete, compressed representation of images via vector-quantized autoencoders, with reconstruction loss plus adversarial realism (L_rec, L_adv).
  • Subsequent stages (L_t, t>1) leverage global context from coarser representations to model finer levels, using an autoregressive decoder conditioned on x_t and attended by the encoder’s representation (cross-attention).
  • Model each reverse process p^{t-1}_{theta}(x_{t-1}|x_t) autoregressively with an encoder-decoder transformer, enabling bidirectional context without requiring weight sharing across all reverse steps.
  • Handle the forward process q_theta via fixed beta_t binomial/multinomial diffusion steps, allowing analytic KL terms for t>2 and a Monte Carlo estimate for t=2 (Eq. 7–8).
  • Train the hierarchy in parallel across scales to avoid severe loss weighting and gradient noise, with T chosen per dataset (e.g., T=3 for FFHQ, T=5 for ImageNet conditioning).
  • Enable flexible conditioning by prepending tokens to p^{t-1}_{theta}, supporting class-conditional and text-to-image synthesis (Section 4.2).

Experimental results

Research questions

  • RQ1How can bidirectional, global context be incorporated into autoregressive image synthesis without breaking tractable density factorization?
  • RQ2Does a coarse-to-fine, discrete hierarchical diffusion framework improve image fidelity and editing capabilities over pure AR or pixel-space diffusion models?
  • RQ3Can the model support flexible conditioning (class labels, text) and free-form local editing (mask-based) without mask-specific training?
  • RQ4What are the trade-offs between number of diffusion steps, model capacity, and sampling speed in such a hierarchical setup?
  • RQ5How does the approach perform across diverse datasets in unconditional and conditional generation tasks?

Key findings

  • ImageBART achieves high-fidelity image synthesis by progressively incorporating global context through a coarse-to-fine hierarchy, improving coherence over purely autoregressive models.
  • The multinomial diffusion-based forward process and autoregressive reverse passes enable efficient training and allow large-scale context integration without prohibitive sample complexity.
  • The model supports versatile conditioning (class labels and text) and enables local editing, including free-form mask-based inpainting, without task-specific training for masks.
  • Empirical results show competitive or superior performance to prior likelihood-based and score-based methods on multiple datasets, especially for complex scenes (e.g., ImageNet, LSUN variants).
  • Adjusting the number of diffusion steps (T) reveals a trade-off: more steps improve modification and global coherence, with diminishing gains for unconditional generation beyond moderate T.
  • Empirically, training scales independently across levels and using a fixed forward diffusion per level enables parallel optimization and stable training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.