Kaleido Diffusion: Improving Conditional Diffusion Models with Autoregressive Latent Modeling

Jiatao Gu, Ying Shen, Shuangfei Zhai, Yizhe Zhang, Navdeep Jaitly, Joshua M. Susskind

Abstract

Modern conditional diffusion models face a fundamental trade-off between prompt alignment and sample diversity. At high Classifier-Free Guidance (CFG) scales, models often suffer from "mode collapse," where they converge on a limited set of predictable interpretations of a prompt. We present Kaleido Diffusion, a two-stage framework that decouples the creative process of mode selection from the technical process of pixel synthesis. By utilizing an autoregressive (AR) language model to generate discrete latent priors—such as detailed text, bounding boxes, or object blobs—Kaleido provides a structured foundation for the subsequent diffusion process. Our results demonstrate that this decoupling significantly increases image diversity and user controllability, maintaining high performance even at extreme guidance scales.

1. Introduction

While text-to-image diffusion models have achieved remarkable fidelity, their reliance on Classifier-Free Guidance (CFG) introduces a significant drawback. To ensure an image strictly adheres to a user's prompt, the "guidance volume" is typically increased. However, as alignment improves, the diversity of the output often plummets. The model tends to favor "safe" or common visual representations (e.g., always generating a centered, frontal view of a subject), a phenomenon known as mode collapse.

This paper argues that mode collapse occurs because standard models attempt to perform two distinct tasks simultaneously: choosing a specific conceptual interpretation of the prompt (mode selection) and rendering the actual pixels (image generation). Kaleido Diffusion addresses this by separating these stages, allowing an autoregressive model to handle the conceptual layout before the diffusion model begins synthesis.

2. Methodology

Kaleido Diffusion implements a modular framework consisting of two primary components designed to work in sequence.

2.1 Autoregressive (AR) Latent Prior

Instead of mapping a text prompt directly to a latent image space, Kaleido first employs an encoder-decoder language model (based on T5-XL). This model predicts a sequence of "latent tokens" that represent the abstract structural and semantic information of the intended image. These tokens serve as a blueprint for the final output.

2.2 Latent-Augmented Diffusion

The second stage utilizes a Matryoshka Diffusion Model (MDM) conditioned on both the original user prompt and the generated latent tokens. The diffusion model is tasked only with the high-fidelity synthesis of pixels based on the pre-determined structure provided by the AR prior.

2.3 Discrete Latent Representations

The framework explores four distinct types of discrete latents to provide varying levels of control:

  • Textual Descriptions: Multi-sentence captions that expand upon the initial prompt with specific details.
  • Detection Bounding Boxes: Spatial coordinates that define the location and scale of objects.
  • Object Blobs: Tilted ellipses that capture an object's position, size, and orientation with more precision than standard boxes.
  • Visual Tokens (Vokens): Abstract codebook entries from a VQ-based image tokenizer (SEED) that capture stylistic or structural nuances difficult to articulate in natural language.

3. Experimental Setup

The models were trained and evaluated on two primary benchmarks: ImageNet for class-conditioned generation and CC12M (a large-scale dataset of 12 million image-text pairs) for general text-to-image tasks. To generate the necessary training data for the AR prior, the authors utilized off-the-shelf vision models, including Qwen-VL for captions and bounding boxes, and Segment Anything (SAM) for extracting object blobs.

4. Key Results and Insights

4.1 Mitigation of Mode Collapse

Quantitative evaluations show that Kaleido consistently outperforms the baseline Matryoshka Diffusion Model (MDM) in both FID (quality) and Recall (diversity). Notably, while the baseline's diversity scores drop sharply as CFG scales increase, Kaleido maintains a steady performance profile, proving that decoupling mode selection preserves variety.

4.2 Interpretability and Editability

Because the latents (text and boxes) are human-readable, Kaleido offers a unique "thought trace." Users can inspect the model's intent before the image is rendered. This creates a natural interface for "sequential latent editing," where a user can manually adjust a bounding box or modify a word in the detailed description to see those specific changes reflected in the final image while keeping the rest of the composition stable.

4.3 Qualitative Diversity

In qualitative tests, such as generating images of a "Siberian husky," the baseline model frequently produced nearly identical frontal headshots at high guidance levels. In contrast, Kaleido’s AR prior generated diverse scenarios, including different poses, environments, and varying numbers of subjects, all while maintaining high alignment with the prompt.

5. Limitations and Conclusion

Despite its advantages, Kaleido Diffusion introduces additional complexity. Training the system is resource-intensive, requiring 64 A100 GPUs for approximately two weeks. Furthermore, the inclusion of the T5-decoder increases inference latency, making the generation process roughly 3x slower than standard diffusion baselines. Future work will focus on optimizing the combination of latent types and reducing the computational overhead of the AR stage.

In conclusion, Kaleido Diffusion demonstrates that by separating conceptual planning from pixel synthesis, we can achieve a more robust, diverse, and controllable generative process that overcomes the traditional limitations of high-guidance diffusion models.

Summary updated

BibTeX
@inproceedings{gu2024kaleido,
  author = {Jiatao Gu and Ying Shen and Shuangfei Zhai and Yizhe Zhang and Navdeep Jaitly and Joshua M. Susskind},
  title = {{Kaleido Diffusion: Improving Conditional Diffusion Models with Autoregressive Latent Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=qZSwlcLMCS},
}
Figure