TL;DR
Unified multimodal models can weave text and images together using a single "predict-the-next-token" rule, but generating an image pixel-patch by pixel-patch is agonizingly slow. ScanAR breaks this bottleneck by generating entire rows of visual tokens in parallel—cutting the sequential steps for an $H \times W$ image from $H \times W$ down to $H + W$. Best of all, it achieves over a 10$\times$ speedup without adding a single new parameter or breaking the model's ability to seamlessly mix text, images, and video.
What Problem Does This Paper Address?
Unified autoregressive (AR) models—like Chameleon or the Emu3 family—treat everything as one shared language. Text words and discrete visual patches live in the same vocabulary, processed by one Transformer backbone and one output head. It’s an elegant, scalable setup.
The catch? Images are big two-dimensional grids. Standard models flatten an $H \times W$ visual grid into a 1D line (raster order, reading left-to-right, top-to-bottom) and generate it one token at a time. A modest $32 \times 32$ token grid requires 1,024 sequential forward passes through a massive network. While researchers have invented ways to speed up standalone image generators—like predicting coarse-to-fine scales or adding specialized prediction heads—those tricks alter the tokenizer or model architecture. They break the clean, unified next-token interface that lets a single model fluidly switch between writing a sentence and drawing a picture.
Methods
ScanAR accelerates visual generation simply by changing which token predicts which inside an image block, leaving text tokens, model weights, vocabulary, and the output head completely untouched.
Here is how ScanAR decodes an $H \times W$ image grid:
- Row 0 (Standard): The very first row of the image is generated one token at a time from left to right, using standard causal attention.
- The Commit Step: Because Row 0 was generated left-to-right, its early tokens didn't get to "see" the end of the row. ScanAR runs one non-sampling forward pass over Row 0 with full bidirectional attention within that row, creating "committed" hidden states that capture the full row's context.
- Rows 1 to $H-1$ (Parallel Row-Scan): Every subsequent row is generated in a single parallel step. Each token at column $j$ is predicted directly from the committed hidden state of the token right above it (column $j$ of the previous row). Because an entire row enters the Transformer together with full within-row visibility, its output states are immediately ready to predict the next row—no extra commit steps needed.
Once the image finishes, text generation resumes as normal over the accumulated KV cache. To teach a model this new dependency pattern (either from scratch or via lightweight post-training), the authors use a row-block causal attention mask—causal across rows, bidirectional within rows—optionally paired with a temporary KL-divergence loss from a frozen raster-AR teacher during early post-training.
Datasets
The authors evaluate ScanAR across both image-only benchmarks and complex multimodal robotics suites (no new benchmarks are introduced):
- Multimodal Post-Training & Evaluation: A mixed corpus of image editing, spatial control, video, and interleaved image-text data. Evaluated on 300 embodied-scene transfer prompts (judged by GPT-5.4), 80 embodied subtask-planning cases from nine robot data sources, and the public WorldArena RobotWin 2.0 video test set (1,000 episodes).
- Image-Only Benchmarks: ImageNet ($256 \times 256$) for training class-conditional models from scratch; an 80M-token post-training dataset (following the FlashAR protocol) evaluated on GenEval ($512 \times 512$) for text-to-image synthesis.
Key Insights and Ideas
- You don't need left-neighbor context if you train for it: Compared to standard raster decoding, predicting a row in parallel only deprives a visual token of the $W-1$ tokens to its immediate left; it still sees the entire prompt and all previous rows carrying the global layout. Training-free methods collapse when trying to skip left-context, whereas explicitly training on row-scan conditionals preserves image quality.
- Memory bandwidth makes row steps nearly "free": In large AR models, single-token decoding is bottlenecked by reading massive model weights and KV caches from GPU memory, not by compute. Processing 32 tokens of a row at once takes ~74 ms compared to ~61 ms for a single token—turning a $16.5\times$ drop in forward passes into a massive $13.8\times$ real-world wall-clock speedup.
- True multimodal compatibility: Because ScanAR keeps the exact raster grid and adds zero parameters, it acts as a drop-in upgrade for 34B-parameter unified models, effortlessly accelerating multi-frame robot videos and interleaved step-by-step visual plans.
Key Results
- Text-to-Image (Emu3.5-Image-34B): Post-training for just 20K steps cuts $512 \times 512$ generation latency from 64.60s down to 4.69s ($13.8\times$ faster) while achieving a 82.36 GenEval score—beating both the original raster model (80.48) and competing post-training accelerators like FlashAR (80.29 in 5.68s). In vLLM serving, ScanAR boosts throughput by 19.1% and saves 28.1 GB of peak VRAM over FlashAR.
- Training from Scratch (ImageNet): Across LlamaGen sizes (120M to 1.4B), ScanAR achieves the highest throughput at every scale ($4.6\times$ to $5.7\times$ faster than raster LlamaGen) with comparable FID (e.g., 3.34 vs. 3.39 at XL) and higher Inception Scores.
- Unified Multimodal (34B Xiaomi-Robotics-U0): ScanAR matches the baseline on embodied scene transfer (7.49 vs. 7.52 GPT-5.4 score), accelerates interleaved image-text planning 11.1$\times$ end-to-end (5.2s vs. 57.3s per image), and decodes RobotWin 2.0 video frames in $16\times$ fewer steps while staying within 0.9 points of the raster baseline's overall score (68.44 vs. 69.32).
Limitations and Future Work
- Conditional independence within rows: Because tokens in the same row are sampled simultaneously without seeing each other's sampled values, ScanAR is an approximation that could struggle with ultra-fine horizontal dependencies along a single row.
- First-row bottleneck: Row 0 still requires $W$ sequential steps, setting a floor on minimum latency.
- Uncontrolled multimodal baselines: On the massive 34B U0 robotics tasks, the ScanAR models were post-trained on a narrow embodied data mixture rather than compared against a freshly retrained raster U0 on the exact same 32K-token video sequences (which was too computationally expensive), leaving minor metric shifts—like slightly lower video motion magnitude—for future controlled studies to disentangle.
Summary updated