Skip to content
AI Learning Ground Start learning

Research ·

Unlocking Any-Order Generation in Pretrained Autoregressive Image Models

A new adaptation recipe turns pretrained raster-scan autoregressive image models into any-order generators using future-aware positional embeddings and an ordering curriculum, enabling inpainting, outpainting, and editing at 13-33% extra compute instead of training from scratch.

Unlocking Any-Order Generation in Pretrained Autoregressive Image Models
Image: Hugging Face

Autoregressive image generators trained in a fixed raster-scan order cannot inpaint, outpaint, or edit at inference time because that fixed factorization is hardcoded into them. Existing fixes, such as discrete diffusion, train from scratch on mixed token orderings at roughly 3x the compute of standard training, and discrete diffusion loses compatibility with AR inference tooling like KV caching and vLLM.

The authors argue a pretrained model already knows the joint distribution over image tokens; it just lacks non-sequential conditional pathways. Their recipe adds future-aware positional embeddings, which resolve a target-position identifiability problem at negligible overhead, and an ordering curriculum that gradually moves from the pretrained sequential solution to a good any-order basin. Applied to four base models across two architectures and scales (LlamaGen-L/XL and RAR-L/XL), it outperforms MaskGIT on ImageNet inpainting (FID 6.21 vs. 10.44), matches MAR-L competitiveness, and costs 13-33% additional compute beyond pretraining while leaving the standard AR inference stack untouched.

The flexibility comes at a 1.2-1.9 increase in class-conditional FID. For builders, this means inpainting, outpainting, and editing can be unlocked from existing pretrained AR models without a costly retrain, and the adapted models keep working with the standard AR inference ecosystem including KV caching and vLLM. Code is available on GitHub under Ordered-AR/unlockedadaptation.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research