Unlocking Any-Order Generation in Pretrained Autoregressive Image Models
Rishav Pramanik, Marco Pedersoli, Zhaozheng Yin
NeurIPS page · OpenReview · Open on the map
Category: Diffusion & Image Generation › Discrete Vision Tokenization · Type: new method · Keywords: any-order generation, autoregressive image models, future-aware positional embeddings, ordering curriculum, image inpainting, image outpainting
Areas: Model Architectures & Sequence Modeling › Vision and Generative Architectures › Discrete Image Tokenization; Generative Models (Diffusion & Flows) › Pixel-Space Diffusion › Pixel-Space Diffusion
Summary
A recipe to adapt pretrained raster-scan autoregressive image models into any-order generators using future-aware positional embeddings and an ordering curriculum.
Explained to a 5-year-old
Computers can learn to make pictures by guessing one tiny piece after another, always in the same order like left to right. This works well for drawing new pictures, but it makes it hard to change or fill in missing parts later. The researchers noticed that the computer already knows how all the pieces fit together, it just can’t use that knowledge in a different order. They added a small clue that tells the computer about pieces that come later, so it can figure out where each piece belongs even if the order changes. After this small extra training, the computer can draw new parts anywhere, like filling a hole in a picture or extending a picture beyond its edges.
Explained to a 5-year-old, longer
Computers can learn to make pictures by guessing one tiny piece after another, always in the same order like left to right. This works well for drawing new pictures, but it makes it hard to change or fill in missing parts later. The researchers noticed that the computer already knows how all the pieces fit together, it just can’t use that knowledge in a different order. They added a small clue that tells the computer about pieces that come later, so it can figure out where each piece belongs even if the order changes. They also gave the computer a gentle training plan that slowly moves it from the old way of drawing to a new way that works with any order. After this small extra training, the computer can draw new parts anywhere, like filling a hole in a picture or extending a picture beyond its edges. This works without losing the quality of the pictures it made before. The method also uses less extra computer time than starting a new model from scratch. It means existing picture-making tools can become more flexible without a lot of extra work. The results show the new pictures look better than older methods for fixing and extending images. In short, the computer can now edit pictures easily while keeping its high quality.
For a technical reader
The paper presents a lightweight adaptation recipe that adds future-aware positional embeddings and an ordering curriculum to pretrained raster-scan autoregressive image models. This enables the models to generate images in any token order, supporting inpainting, outpainting, and editing without sacrificing the original generation quality. The approach requires only about 25% additional compute over the original pretraining and preserves compatibility with standard autoregressive inference stacks.
Problem
Pretrained autoregressive image models are trained with a fixed raster-scan order, which hardcodes a single factorization of the image distribution and prevents them from generating images with arbitrary token orderings, such as inpainting, outpainting, or editing at inference. This inflexibility limits their utility despite having learned the joint distribution over image tokens.
Method
The approach adds future-aware positional embeddings to resolve target-position identifiability and employs an ordering curriculum that guides optimization from the pretrained raster-scan model to a suitable any-order solution, requiring only modest additional training.
Results
The approach achieves FID 6.21 vs. 10.44 on ImageNet inpainting and FID 5.84 vs. 12.17 on outpainting compared to MaskGIT, maintains generation quality near the original pretrained models, and requires only about 25% extra compute beyond pretraining on large models.
Contributions
It demonstrates that flexible any-order generation can be unlocked from existing pretrained autoregressive image models without training from scratch, using future-aware positional embeddings and an ordering curriculum, and it attains state-of-the-art results on inpainting and outpainting while preserving original generation quality.
Practical relevance
This work enables practitioners to obtain flexible image editing capabilities from existing autoregressive models without costly retraining, facilitating broader adoption of high-quality generation tools.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction