Abstract
Recent advancements in the domain of text-to-image synthesis have culminated in a multitude of enhancements pertaining to quality, fidelity, and diversity. Contemporary techniques enable the generation of highly intricate visuals which rapidly approach near-photorealistic quality. Nevertheless, as progress is achieved, the complexity of these methodologies increases, consequently intensifying the comprehension barrier between individuals within the field and those external to it. In an endeavor to mitigate this disparity, we propose a streamlined approach for text-to-image generation, which encompasses both the training paradigm and the sampling process. Despite its remarkable simplicity, our method yields aesthetically pleasing images with few sampling iterations, allows for intriguing ways for conditioning the model, and imparts advantages absent in state-of-the-art techniques. To demonstrate the efficacy of this approach in achieving outcomes comparable to existing works, we have trained a one-billion parameter text-conditional model, which we refer to as "Paella". In the interest of fostering future exploration in this field, we have made our source code and models publicly accessible for the research community.
Introduction
The current landscape of text-to-image synthesis is dominated by two primary paradigms: Diffusion Models and Autoregressive Transformers. While powerful, these methods face significant hurdles. Diffusion models often require hundreds of sampling iterations for high-quality output, while transformers treat images as flat 1D sequences, ignoring 2D spatial structures and suffering from quadratic memory growth. This complexity creates a "comprehension barrier" that hinders broader research participation. We introduce Paella, a 1-billion parameter model that streamlines the generation process through a convolutional architecture and a novel "token renoising" scheme, achieving high-fidelity results in as few as 12 steps.
Methodology
Paella utilizes a two-stage framework designed for efficiency and detail preservation:
- Quantized Latent Space: Images are compressed into discrete tokens using a pretrained VQGAN. By using a modest $f=4$ compression factor (compared to the standard $f=8$ or $f=16$), Paella preserves more intricate visual details.
- Convolutional Token Predictor: Instead of a transformer, the model employs a U-Net-style convolutional architecture. This provides an inherent 2D bias and allows the model to scale linearly with image resolution.
- Token Renoising: Unlike traditional masked models that "fix" tokens once predicted, Paella introduces a renoising strategy. During sampling, it randomly replaces a portion of all tokens with noise at each step, allowing the model to self-correct and refine its predictions globally throughout the sequence.
For conditioning, the model leverages ByT5-XL for character-aware text embeddings and CLIP for both text and image embeddings, enabling flexible zero-shot manipulations.
Experimental Results
Paella was trained on 900 million images from the LAION-5B Aesthetic dataset and fine-tuned on a high-aesthetic subset. Evaluation on the MS COCO benchmark shows that Paella achieves an FID-30k score of 11.07. This performance is highly competitive with significantly larger models like DALL-E 2 (3.5B parameters, FID 10.39) and GLIDE (3.5B parameters, FID 12.24).
Key Insights
- Efficiency via Simplicity: The convolutional backbone avoids the memory bottlenecks of transformers, allowing for less compressed latent spaces and better texture preservation.
- Fidelity vs. Alignment: Observations indicate that image fidelity (aesthetic quality) emerges earlier in the sampling process than conditional alignment (prompt accuracy), suggesting a hierarchical learning of visual structure.
- Sampling Saturation: Unlike diffusion models, Paella reaches a quality "sweet spot" at approximately 12 steps, with additional iterations yielding diminishing returns in FID scores.
Conclusion and Future Work
Paella demonstrates that a streamlined approach can achieve state-of-the-art results with significantly reduced computational overhead. While the model currently struggles with legible text rendering—a common challenge in quantized token spaces—its speed and versatility in image-conditional tasks mark a significant step toward more accessible generative AI. The authors have released the source code and weights under the MIT license to encourage further community exploration.
Reference: Rampas, D., Pernias, P., & Aubreville, M. (2023). A Novel Sampling Scheme for Text- and Image-Conditional Image Synthesis in Quantized Latent Spaces. arXiv:2211.07292v2.
Summary updated