In the quest for truly unified multimodal models, the "Bitter Lesson"—the idea that general-purpose methods leveraging compute eventually outperform hand-crafted domain expertise—remains a guiding light. While we have powerful Large Language Models (LLMs) that can "see" and "draw," most still rely on a specialized "middleman": a pretrained, often frozen, image tokenizer like a VQ-VAE.
A new paper from Google DeepMind, JetFormer, proposes to cut out this middleman. By combining normalizing flows with autoregressive transformers, the authors demonstrate a model that learns to understand and generate both text and images directly from raw data, optimized end-to-end for log-likelihood.
The Problem with Current Tokenizers
Most current multimodal models treat images as sequences of discrete tokens, similar to words. To get these tokens, they use a pretrained encoder to compress pixels into a codebook. However, this approach has several drawbacks:
- Lossy Compression: The encoder is often frozen and "agnostic" to the final task, potentially discarding details the transformer might need.
- Complex Objectives: These tokenizers are usually trained with a messy mix of GAN losses and perceptual losses, making them hard to integrate into a pure likelihood-based framework.
- Lack of Unity: Having separate, specialized components for different modalities goes against the goal of a single, general-purpose architecture.
JetFormer aims to solve this by modeling the "raw" distribution of pixels and text jointly, ensuring the image representation is learned specifically for the tasks the transformer performs.
The JetFormer Architecture
The architecture consists of two main parts that work in tandem to process both text and continuous image data.
- The "Jet" (Normalizing Flow): Instead of discrete tokens, JetFormer uses a normalizing flow model to map image patches into continuous "soft tokens." Normalizing flows are invertible and lossless by design. This model acts as an encoder for perception and a decoder for generation simultaneously.
- The Transformer: A standard decoder-only transformer predicts the next token in a sequence. If the target is text, it uses a standard softmax; if it’s an image patch, it predicts the parameters of a Gaussian Mixture Model (GMM) to handle the continuous nature of the soft tokens.
To make this work for high-resolution images, the authors introduced two critical training techniques:
- RGB Noise Curriculum: Training on raw pixels is hard because the model can get "distracted" by low-level pixel noise. The authors add Gaussian noise to the images that decays over the course of training. This forces the model to learn global structure and high-level semantics early on before refining fine details.
- Factoring Out Redundancy: Natural images are highly redundant. JetFormer allows the transformer to model only the most "important" dimensions of the flow output, while the remaining redundant dimensions are modeled by a simple, fixed Gaussian prior.
Key Results and Insights
JetFormer was evaluated across several scales using datasets like ImageNet-1k, WebLI, MS-COCO, and TextVQA. The model proves that likelihood is a strong signal: it is the first model of its kind to produce strong log-likelihood bounds while generating high-fidelity images, helping to ensure the model avoids the "mode collapse" common in GANs.
- Competitive Generation: On ImageNet, JetFormer-L achieved an FID of 6.64, outperforming the famous BigGAN-deep and approaching the quality of VAE-based models that use much more complex loss functions.
- Strong Multimodal Performance: In vision-language tasks, JetFormer-L (T&I) achieved a COCO captioning CIDEr score of 119.8 and a VQAv2 accuracy of 70.0%, matching or exceeding specialized models like CLIP and CapPa. By avoiding quantization, the model retains more continuous information, which is particularly beneficial for "understanding" tasks.
- High Recall: The model demonstrates high recall (0.56 on ImageNet), suggesting it captures a wider variety of the training data distribution compared to many GAN-based alternatives.
Limitations and Future Work
While highly competitive, JetFormer still lags slightly behind state-of-the-art diffusion models in terms of pure aesthetic image quality, as diffusion models benefit from iterative refinement rather than a single autoregressive pass. Additionally, training on raw pixels and continuous tokens is computationally more expensive than training on highly compressed discrete latents.
Currently trained on image-text pairs, the authors suggest that training JetFormer on truly interleaved web data (articles where text and images are mixed) is the next logical step to unlock better few-shot reasoning and fully realize the potential of this unified architecture.
Summary updated