TL;DR
Autoregressive image generators often suffer from poor global coherence because they are trained to look only one step ahead. Mirai solves this by introducing "foresight"—aligning the model's internal representations with future token information during training—resulting in up to 10× faster convergence and significantly better image quality without adding any inference overhead.
What Problem Does This Paper Address?
Autoregressive (AR) visual models generate images by converting them into a sequence of discrete tokens and predicting them one by one, much like a language model predicts text. However, unlike language, images possess strong bidirectional and long-range spatial dependencies. Standard training uses strictly causal "next-token prediction," which forces the model to generate the next piece of the puzzle without any concept of the overall layout.
As a result, standard AR models often produce images that are locally detailed but globally disjointed (such as a parrot with a disconnected head or a rocket with misaligned smoke plumes). Furthermore, this lack of global planning makes training incredibly slow, as global cues take many steps to propagate through the network.
Methods
The authors introduce Mirai (meaning "future" in Japanese), a training framework that injects future information into the AR model's internal representations. Crucially, this foresight is only used during training; the auxiliary components are discarded afterward, leaving the inference architecture completely unchanged.
The paper introduces two distinct variants of Mirai based on the source of foresight:
- Mirai-E (Explicit Foresight): Uses an Exponential Moving Average (EMA) version of the AR model itself to provide explicit, position-indexed lookahead targets within a local 2D neighborhood on the image grid.
- Mirai-I (Implicit Foresight): Leverages a frozen, pretrained bidirectional vision encoder (like DINOv2) to provide globally contextualized features at the current token's spatial location.
Instead of forcing the final layer to predict multiple future tokens at once (which causes gradient conflicts), Mirai applies an auxiliary loss that aligns intermediate hidden states (specifically at the mid-level layers) with these foresight representations.
Datasets
The framework was trained and evaluated on the standard ImageNet 256×256 benchmark for class-conditional image generation. The authors applied Mirai to the state-of-the-art LlamaGen baseline across three model scales: Base (111M), Large (343M), and XL (775M).
Key Insights and Ideas
- Internal Alignment > Output Prediction: Trying to force the model's output head to explicitly predict multiple future tokens (similar to Multi-Token Prediction in NLP) actually degrades visual generation quality. It introduces harmful gradient interference. Aligning internal features acts as a smoother regularizer that helps the model plan ahead without distracting it from its primary next-token task.
- Images are 2D, Not 1D: Selecting future tokens based on a 2D spatial grid neighborhood consistently outperforms selecting them based on a 1D raster-scan sequence. Visual models need geometric context, not just sequential context.
- Stronger 2D Organization: Visualizing the internal layers using t-SNE embeddings reveals that vanilla AR models have fragmented internal representations. Mirai forces the model to build smooth, spatially coherent feature fields that naturally map to object and background boundaries.
Key Results
- Massive Training Speedup: Mirai-I accelerates training convergence by up to 10×, while Mirai-E accelerates it by 5×. Remarkably, training LlamaGen-B for just 40 epochs with Mirai-I achieves an image quality (FID) comparable to the vanilla baseline trained for 400 epochs.
- State-of-the-Art Generation Quality: On ImageNet 256×256, Mirai-I reduces LlamaGen-B's FID from 5.34 to 4.34. At the XL scale, it achieves a top-tier FID of 2.59, outperforming all existing autoregressive visual generation methods and closing the gap with advanced diffusion models.
Limitations and Future Work
The authors note or imply a few limitations worth addressing in future research:
- Dependency on Pretrained Encoders: Mirai-I relies heavily on a high-quality pretrained bidirectional encoder (DINOv2). Its performance is inherently tied to the quality and domain of that encoder's representations.
- Hyperparameter Tuning: The alignment coefficient ($\lambda$) requires careful scheduling—starting strong to establish global structure and tapering off later to allow the model to refine local token predictions.
- Extension to Text-to-Image: The current study focuses strictly on class-conditional generation. Scaling this foresight mechanism to complex, text-guided autoregressive models remains an open frontier.
Summary updated