ScanAR: Parallel Row-Scan Decoding for Efficient Image Generation in Unified Autoregressive Models
Organizations: Xiaomi Robotics
Abstract
Unified multimodal autoregressive (AR) models represent text and images in one token sequence and generate all modalities with a shared next-token prediction head. Their image generation, however, decodes an visual grid token by token in raster order, which takes sequential steps and dominates inference time. Existing acceleration methods for visual AR generation either change the tokenizer, the prediction head, or the model interface, or keep the model but cannot reach high parallelism without losing quality, so they do not carry over to unified AR models. We propose ScanAR, a row-scan parallel decoding method that only redefines the predecessors of visual tokens. The first visual row is generated from left to right as usual, and each later row is generated in a single parallel step, with every token predicted from the vertically aligned token of the previous row. Nonvisual tokens keep the standard autoregressive rule. ScanAR reduces the visual decoding depth from to without changing the backbone, vocabulary, or output head and without adding parameters, and it supports both training from scratch and lightweight post-training. On Emu3.5-Image-34B, ScanAR post-training reaches a GenEval score of 82.36, the best among post-training acceleration methods trained on the same data, and generates images faster than raster decoding under the same inference setting. On ImageNet, ScanAR trained from scratch has the highest throughput at every model size with FID comparable to raster LlamaGen. On the 34B Xiaomi-Robotics-U0 model, ScanAR preserves the overall quality of embodied scene generation, interleaved image-text generation, and video generation.
Figures & tables
| Method | Decoding depth | No extra parameters | Preserves raster grid and order | Support unified output |
| Baseline | ||||
| Unified raster AR Wang et al. (2024) | ||||
| Generation-granularity restructuring | ||||
| VAR Tian et al. (2024) | ||||
| Infinity Han et al. (2025) | ||||
| DenseAR Park et al. (2026) | ||||
| Method | Depth Faithfulness | Background | Foreground | Lighting | Image Quality | Multi-View Consistency | Overall |
| U0 | 7.4 | 7.6 | 7.3 | 7.5 | 8.0 | 7.5 | 7.52 |
| ScanAR | 7.5 | 7.4 | 7.2 | 7.5 | 7.8 | 7.6 | 7.49 |
| Metric | Raster U0-Seq | ScanAR |
| Valid output (finished, all images decoded) | 81.3% | 91.3% |
| Number of steps requested | 100% | 98.8% |
| Correct text/image alternation per step | 100% | 98.8% |
| Image fidelity to GT, DINOv2 cosine | 0.670 | 0.654 |
| Image fidelity to GT, LPIPS | 0.397 | 0.408 |
| Image fidelity to GT, PSNR | 15.13 | 15.06 |
| Group | Metric | Raster U0 | ScanAR |
| Visual quality | Aesthetic Quality | 41.50 | 41.00 |
| Image Quality | 54.16 | 53.16 | |
| Temporal consistency | Subject Consistency | 79.08 | 77.32 |
| Background Consistency | 86.21 | 84.95 | |
| Motion Smoothness | 95.24 | 94.43 | |
| Photometric Consistency | 1.76 | 2.60 |
| Model size | Method | Type | Epoch | FID | IS | P/R-F1 | Steps | Throughput (img/s) |
| B ( M) | LlamaGen | From scratch | 300 | 5.46 | 193.6 | 0.594 | 256 | 117.9 |
| PAR | From scratch | 300 | 6.21 | 204.4 | 0.537 | 67 | 174.1 | |
| NAR | From scratch | 300 | 4.65 | 212.3 | 0.600 | 31 | 419.7 | |
| BlockDiffusion | Post-training | 75 | 5.91 | 176.2 | 0.589 | 64 | 186.3 | |
| FlashAR | Post-training | 25 | 4.68 | 208.3 | 0.605 | 31 | 447.2 | |
| ZipAR | Training-free | – | 5.69 | 192.9 | 0.568 | 144 | 158.2 |
| Method | Type | Steps | Data | Latency (s) | GenEval |
| Emu3.5-Image | From scratch | 940K | 150B | 64.60 | 80.48 |
| BlockDiffusion | Post-training | 50K | 80M | 6.17 | 73.83 |
| FlashAR | Post-training | 50K | 80M | 5.68 | 80.29 |
| ScanAR | Post-training | 20K | 80M | 4.69 | 82.36 |
| Method | Overall | Single Obj. | Two Obj. | Counting | Colors | Position | Color Attr. |
| Emu3.5-Image | 80.48 | 100.00 | 94.95 | 53.75 | 90.96 | 73.00 | 70.25 |
| Raster fine-tune (reference) | 82.01 | 99.19 | 92.22 | 66.50 | 88.88 | 77.95 | 67.30 |
| BlockDiffusion | 73.83 | 96.88 | 88.89 | 47.50 | 85.64 | 68.00 | 58.44 |
| FlashAR | 80.29 | 98.75 | 91.92 | 53.75 | 92.55 | 80.00 | 64.00 |
| ScanAR | 82.36 | 99.06 | 87.88 | 69.06 | 90.16 | 80.00 | 68.00 |
| Method | Time per image (s) | Throughput (images/s) | Peak memory (GB) |
| FlashAR | 1.37 | 0.73 | 138.8 |
| ScanAR | 1.15 | 0.87 | 110.7 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Depth | Background | Foreground | Lighting | Image Quality | Multi-View | Overall | |
| U0 | |||||||
| ScanAR |
| Model | Mean batch time (s) | Throughput (img/s) | Peak allocated memory (GiB) |
| GPT-B | 0.764874 | 669.39 | 12.14 |
| GPT-L | 2.177245 | 235.16 | 28.07 |
| GPT-XL | 4.516144 | 113.37 | 50.52 |
| GPT-XXL | 7.840613 | 65.30 | 79.58 |
| Model | Method | Training | Forwards | FID | IS | P/R-F1 | Throughput (img/s) |
| GPT-B | Raster LlamaGen | from scratch | 256 | 5.46 | 193.6 | 0.594 | 117.9 |
| ZipAR ( , default) | training-free | 144 | 5.69 | 192.9 | 0.568 | 158.2 | |
| ZipAR ( ) | training-free | 88 | 16.59 | 89.8 | 0.574 | 227.6 | |
| ZipAR ( ) | training-free | 60 | 55.96 | 28.9 | 0.464 | 288.5 | |
| ScanAR | from scratch | 32 | 5.59 | 244.3 | 0.568 | 669.4 | |
| GPT-L | Raster LlamaGen | from scratch | 256 | 3.80 | 248.3 | 0.639 | 47.1 |
| Method | Type | Steps | Data | Latency (s) | Decoding Steps |
| Emu3.5-Image | From scratch | 940K | 150B | 64.60 | 1024 |
| BlockDiffusion | Post-training | 50K | 80M | 6.17 | 64 |
| FlashAR | Post-training | 50K | 80M | 5.68 | 63 |
| ScanAR | Post-training | 20K | 80M | 4.69 | 64 |
| Sequence length | Method | Step time (s) | Peak memory (GB) |
| 4K | Causal AR | 10.1 | 91.9 |
| ScanAR with dense 4-D mask | 16.2 | 105.6 | |
| ScanAR with FlexAttention | 10.5 | 94.5 | |
| 8K | Causal AR | 20.2 | 91.9 |
| ScanAR with dense 4-D mask | – | OOM | |
| ScanAR with FlexAttention | 21.3 | 94.2 |
Autoregressive Image Generation
Autoregressive image generation predicts visual tokens or scales sequentially to synthesize images, offering controllable alternatives to diffusion.
See all 132 papers