Abstract
JetFormer is a unified, end-to-end autoregressive transformer designed to generate and understand both text and images without the need for separately pretrained, lossy components like VQ-VAEs. By employing a normalizing flow to map pixels into continuous "soft tokens," JetFormer achieves high-fidelity image generation and robust vision-language understanding within a single, differentiable framework. This approach simplifies the multimodal pipeline, avoiding the complexities of discrete codebooks and multi-stage training.
Introduction
Modern multimodal models often rely on "Frankenstein" architectures, stitching together pretrained language models with separate image encoders (e.g., CLIP) or discrete tokenizers (e.g., VQ-VAE). This modularity introduces two significant issues: lossy compression, where frozen tokenizers discard irreversible details, and architectural complexity, requiring the coordination of GAN losses, perceptual losses, and discrete codebooks.
JetFormer addresses these challenges by proposing a single transformer that learns directly from raw pixels and text, maximizing data log-likelihood through an end-to-end differentiable process. By treating text and image data as a unified sequence, the model avoids the "middleman" components that often limit the performance of hybrid systems.
Methods
JetFormer's architecture is built upon three core pillars: normalizing flows, an autoregressive transformer, and a specialized loss function.
Instead of discrete integers, JetFormer uses an invertible normalizing flow (the "Jet") to map image patches into continuous "soft tokens." This mapping is lossless and fully differentiable, allowing the same component to function as both an encoder for understanding and a decoder for generation. The core model is a decoder-only transformer (based on the Gemma architecture) that processes text tokens and image "soft tokens" as a single sequence.
To handle continuous vectors, the model predicts the parameters of a Gaussian Mixture Model (GMM) to maximize the log-likelihood of the next soft token. Additionally, a "noise curriculum" is implemented during training; heavy Gaussian noise is added to images initially and gradually decayed, guiding the model to learn high-level semantics before focusing on pixel-level details.
Results
The model was evaluated on standard benchmarks including ImageNet-1k, WebLI, and MS-COCO.
- Competitive Generation: On ImageNet 256x256, JetFormer-L achieved an FID of 6.64, outperforming BigGAN-deep and rivaling complex VQ-VAE-based systems.
- Multimodal Versatility: In unified mode, JetFormer handles both generation and understanding tasks. It achieved a 119.8 CIDEr score on COCO captioning and 70.0% accuracy on VQAv2, demonstrating its versatility.
- End-to-End Superiority: Comparative studies showed that JetFormer's end-to-end approach significantly outperforms two-stage baselines where a transformer is trained on fixed VAE features, proving that joint optimization is key.
Conclusion
JetFormer demonstrates that a simple, unified transformer can effectively bridge the gap between raw pixels and text. While its visual fidelity currently trails state-of-the-art diffusion models and it requires significant computational resources to train from scratch, its ability to provide explicit log-likelihood bounds and its simplified training pipeline offer a promising path forward. Future work will focus on scaling the model to larger parameter counts and datasets to further close the performance gap with specialized systems.
Summary updated