Auto-regressive Image Synthesis with Integrated Quantization

Fangneng Zhan, Yingchen Yu, Rongliang Wu, Jiahui Zhang, Kaiwen Cui, Changgong Zhang, Shijian Lu

Introduction

Conditional image generation—the task of creating realistic images from inputs such as segmentation maps, text descriptions, or sketches—is fundamentally a one-to-many problem. A single prompt like "a blue car" can correspond to an infinite variety of valid visual representations. While auto-regressive models, such as VQ-GAN, have shown promise in capturing this diversity, they typically suffer from two primary limitations: independent quantization of conditions and images, and exposure bias during inference.

To address these challenges, this paper introduces the Integrated Quantization Variational Auto-Encoder (IQ-VAE). This framework combines the spatial modeling strengths of Convolutional Neural Networks (CNNs) with the diverse sequence modeling capabilities of Transformers, while introducing novel mechanisms to align disparate data domains and stabilize the generation process.

The IQ-VAE Architecture

The IQ-VAE framework utilizes a hybrid approach. CNN-based encoders and decoders handle the local spatial features and reconstruction, while a Transformer operates on quantized latent sequences to capture long-range dependencies and generate diverse outputs.

Overview of the IQ-VAE framework for conditional image synthesis.

As shown in the architecture overview, the model processes both the input image and the condition (e.g., a segmentation map) through separate encoders ($E_x$ and $E_c$). These are then quantized into a unified sequence that the Transformer uses for auto-regressive modeling. This integration allows the model to learn the structural correlations between the condition and the target image more effectively than previous methods that treated them as independent entities.

Integrated Quantization with Variational Regularization

A core innovation of IQ-VAE is the use of a variational regularizer based on the Gromov-Wasserstein (GW) distance. Standard alignment techniques like KL-divergence require distributions to exist in the same mathematical space. However, conditions (like text) and images occupy very different latent spaces.

The Variational Regularizer aligns latent spaces by comparing internal geometric structures.

The GW distance overcomes this by comparing the internal geometry—the intra-domain variations—of the two distributions. Instead of trying to match a specific pixel to a specific word, the model ensures that the relationship between "Pixel A and Pixel B" mirrors the relationship between "Word A and Word B." To maintain computational efficiency, the authors implement a "Sliced" version of the GW distance, enabling the model to align complex multi-modal latent spaces effectively.

Reliable Gumbel Sampling

Auto-regressive models are traditionally trained using "teacher forcing," where the model always receives the ground-truth previous token. This creates exposure bias, as the model never learns to recover from its own errors during inference.

IQ-VAE mitigates this by incorporating a Reliable Gumbel Sampling strategy. During training, the model occasionally samples from its own predicted distribution using the Gumbel-softmax trick. Crucially, this sampling is governed by a reliability-based schedule: the model only relies on its own predictions when it demonstrates high confidence (measured by the similarity between the predicted distribution and the ground truth). This acts as a form of data augmentation, making the model significantly more robust to error accumulation during deployment.

Experimental Performance

The IQ-VAE was evaluated on several standard benchmarks, including ADE20k, CelebA-HQ, and COCO-Stuff. It consistently outperformed state-of-the-art models like SPADE and VQ-GAN across multiple dimensions:

  • Quantitative Metrics: On the ADE20k dataset, IQ-VAE achieved a Fréchet Inception Distance (FID) of 29.77, compared to VQ-GAN's 35.50. It also showed superior performance in LPIPS (diversity) and SWD (distribution similarity).
  • Qualitative Results: Visual inspections reveal that IQ-VAE produces sharper details and maintains better fidelity to complex conditions, such as intricate edge maps or specific text prompts.
  • User Preference: In crowdsourced studies, users preferred IQ-VAE generated images over competing methods by a wide margin across all primary datasets.

Conclusion

IQ-VAE represents a significant step forward in high-fidelity conditional image synthesis. By integrating quantization through Gromov-Wasserstein alignment and stabilizing auto-regression with reliable sampling, the framework effectively bridges the gap between disparate data domains and mitigates the long-standing issue of exposure bias. Future work may involve extending this integrated quantization scheme to even more complex multi-modal tasks, such as video or 3D data synthesis.

Summary updated

BibTeX
@inproceedings{zhan2022auto,
  author = {Fangneng Zhan and Yingchen Yu and Rongliang Wu and Jiahui Zhang and Kaiwen Cui and Changgong Zhang and Shijian Lu},
  title = {{Auto-regressive Image Synthesis with Integrated Quantization}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=MegbYyOdKI},
}
Figure