Unlocking Any-Order Generation in Pretrained Autoregressive Image Models
Abstract
Autoregressive (AR) image generators are powerful in principle but inflexible in practice: training with a fixed raster-scan order hardcodes a single factorization of the image distribution into the model, leaving it unable to inpaint, outpaint, or edit at inference time. Existing solutions, including the modern discrete-diffusion family, train from scratch on a mixture of token orderings, paying roughly 3x the compute of standard raster-scan training; discrete diffusion further sacrifices compatibility with the AR inference ecosystem (KV caching, vLLM) by construction. We argue that this cost is unnecessary. A pretrained raster-scan AR model has already learned the joint distribution over image tokens; what it lacks is not knowledge but the ability to express that knowledge through non-sequential conditional pathways. We propose a recipe for adapting pretrained raster-scan models into any-order generators using two components: future-aware positional embeddings that resolve a target-position identifiability problem at negligible overhead, and an ordering curriculum that traces a stable optimization path from the pretrained solution to a good any-order basin. Applied to four base models across two architectures and two scales (LlamaGen-L/XL, RAR-L/XL), the recipe substantially outperforms MaskGIT on ImageNet inpainting (FID 6.21 vs. 10.44) and outpainting, is competitive with MAR-L, trades a 1.2-1.9 increase in class-conditional FID for this flexibility, and costs 13-33% additional compute beyond pretraining, while leaving the standard AR inference stack untouched. Inpainting, outpainting, and editing, our results suggest, need not be added to autoregressive image models. They can be unlocked from the ones that exist. Code is available at https://github.com/Ordered-AR/unlockedadaptation.
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
- Comments
- Accepted in NeurIPS 2026, Sydney as a poster
Related papers
Speculate in the Right Order: Efficient Self-Speculative Decoding for Autoregressive Image Generation
Shared title terminologycs.CVYihan Chen, Jintao Zhang, Jun Zhu
A Well-Posed Fourth-Order Navier-Stokes Model for Image Inpainting: Theory, Order Selection, and Stripe Decomposition
Shared title terminologycs.CVYiwen Dou, Yiqiang Ding, Zhongyun Bao et al.
Let Vision-Language Models Generate Images through Their Representations
Shared title terminologycs.CVJB Kim, Byungwoo Jeon, Kyungmin Lee et al.
Head Anything: Correspondence-Guided Joint Generation of 3D Heads from Few Images
Shared title terminologycs.CVUmut Kocasari, Bartłomiej Baranowski, Richard Shaw et al.
CrownFusion: 3D Dental Crown Generation Using Geometry Images and Latent Diffusion
Shared title terminologycs.CVJohan Ziruo Ye, Xingguang Yan, Søren Hauberg et al.
Déjà VAE: When Do Autoencoder Traces Reveal Generated Images?
Shared title terminologycs.CVSaugat Pandey