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 H×W visual grid token by token in raster order, which takes HW 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 HW to H+W 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 512×512 images 13.8× 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
Figure 1: Qualitative results of ScanAR across diverse generation tasks, including text-to-image generation, image editing, interleaved image-text generation, and video generation.
Method
Decoding depth
No extra parameters
Preserves raster grid and order
Support unified output
Baseline
Unified raster AR Wang et al. (2024)
HW
✓
✓
✓
Generation-granularity restructuring
VAR Tian et al. (2024)
10
×
×
×
Infinity Han et al. (2025)
13
×
×
×
DenseAR Park et al. (2026)
64
✓
×
×
Table 1: Comparison of representative and recent approaches to visual AR inference acceleration. All columns refer to accelerating an existing unified raster AR model.
Figure 2: Comparison of five different AR decoding methods. ScanAR uses a concise row-scan design that remains compatible with multimodal AR generation.
Figure 3: Training visibility and predecessor mapping of ScanAR over a unified sequence.
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
Table 2: GPT-5.4 evaluation of embodied-scene transfer on U0 (300 paired prompts). Scores are on a 10-point scale; higher is better.
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
Table 3: Paired evaluation of interleaved image–text generation on 80 embodied cases.
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
Table 4: WorldArena RobotWin 2.0 test set (1,000 episodes). Each 28×37 -token frame is decoded in 65 sequential steps by ScanAR instead of 1,036 by raster AR.
Model size
Method
Type
Epoch
FID ↓
IS ↑
P/R-F1 ↑
Steps
Throughput (img/s)
B ( ∼120 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
Table 5: Quantitative evaluation on the ImageNet 256×256 benchmark.
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
Table 6: Training cost, inference latency, and overall GenEval at 512×512 resolution. All methods batch the conditional and unconditional CFG branches (batch size 2).
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
Table 7: GenEval scores on Emu3.5-Image-34B at 512×512 resolution. The raster fine-tune uses the same post-training data and is reported as mean over five seeds.
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
Table 8: Inference efficiency of vLLM-based implementations on a single H20E GPU at 512×512 resolution. After warm-up, 64 requests are submitted concurrently. Time per image is derived from aggregate throughput across all requests.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 4: More interleaved generation samples produced by ScanAR posttrained U0.
Figure 5: More interleaved generation samples produced by ScanAR posttrained U0.
Figure 6: More text to image generation samples produced by ScanAR posttrained U0.
Figure 7: More image edit samples produced by ScanAR posttrained U0.
Figure 8: Class-conditional image generation samples produced by ScanAR-XXL on ImageNet 256×256 .
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
Appendix
Table 10: Single-GPU ScanAR generation throughput measured with a static CUDA Graph on an NVIDIA H20-3e. All measurements use BF16 precision, batch size 512 , a 16×16 visual-token grid, CFG scale 2.0 , temperature 1.0 , FlexAttention, three warm-up batches, and five timed graph replays. VQ decoding and image I/O are excluded.
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 ( w=8 , default)
training-free
144
5.69
192.9
0.568
158.2
ZipAR ( w=4 )
training-free
88
16.59
89.8
0.574
227.6
ZipAR ( w=2 )
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
Appendix
Table 11: Comparison with ZipAR on ImageNet 256×256 at the best CFG.
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
Appendix
Table 12: Training configurations and inference efficiency on Emu3.5-Image-34B.
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
Appendix
Table 13: Training efficiency of causal AR and ScanAR with different attention implementations on eight H20E GPUs (141 GB memory, TP =4 ). Step time is measured after warm-up.
Large-scale autoregressive models have demonstrated remarkable capabilities in image generation. However, their sequential raster-scan decoding relies on strictly next-token prediction, making inference prohibitively expensive. Existing acceleration methods typically either introduce entirely new generation paradigms that necessitate costly pre-training from scratch, or enable parallel generation at the expense of a training-inference gap or altered prediction objectives. In this paper, we introduce FlashAR, a lightweight post-training adaptation framework that efficiently adapts a pre-trained raster-scan autoregressive model into a highly parallel generator based on two-way next-token prediction. Our key insight is that effective adaptation should minimize modifications to the pre-trained model's original training objective to preserve its learned prior. Accordingly, we retain the original AR head as a horizontal head for row-wise prediction and introduce a complementary, lightweight vertical head for column-wise prediction. To facilitate efficient adaptation, we branch the vertical head from an intermediate layer rather than the final layer, bypassing the inherent horizontal head bias. Moreover, since horizontal and vertical predictions capture complementary dependencies whose relative importance varies across target positions, we employ a learnable fusion gate to dynamically combine the two predictions at each position. To further reduce adaptation cost, we propose a two-stage adaptation pipeline: the vertical head is first initialized through adaptation from the pre-trained autoregressive model before jointly fine-tuned with backbone to adapt to the new decoding paradigm. Extensive experiments on LlamaGen and Emu3.5 show that FlashAR achieves up to a 22.9x speedup for 512x512 image generation through a lightweight post-training with merely 0.05% of the original training data.
Junkang Zhou, Yefei He, Feng Chen +2
Zhejiang University, China · University of Adelaide, Australia
Test-time strategies have shown remarkable success in improving large language models, but their application to next-token prediction (NTP) autoregressive (AR) image generation remains largely underexplored. Existing test-time scaling (TTS) methods for visual autoregressive models (VAR) rely on frequent partial decoding and external reward models, which are inefficient and often ineffective for NTP-based image generation due to the inherent instability of intermediate decoding results. To address these limitations, we propose ScalingAR, a novel test-time scaling framework tailored for NTP-based AR image generation. ScalingAR introduces token entropy as a confidence signal and operates at two complementary levels: (i) Profile Level, integrates intrinsic uncertainty and conditional utilization into a unified confidence state, and (ii) Policy Level, leverages this state for adaptive trajectory pruning and dynamic guidance scheduling. Without requiring early decoding or auxiliary rewards, ScalingAR achieves significant improvements across diverse benchmarks. Experiments show that ScalingAR (I) improves base models by 12.5% on GenEval and 15.2% on TIIF-Bench, (II) reduces visual token consumption by 62.0% while outperforming baselines, and (III) enhances robustness, mitigating performance degradation by 26.0% in challenging scenarios. These results establish ScalingAR as a robust and efficient test-time scaling solution for autoregressive image generation.
Modern computer vision pipelines remain fragmented, with tasks such as text-to-image generation, editing, restoration, and classical perception handled by separate models. We study Unified Visual Generation (UVG), where a single model produces diverse image-valued outputs through a unified multimodal interface. While diffusion-based systems dominate UVG due to strong quality and controllability, their iterative sampling incurs substantial inference latency, limiting practical deployment. To address these limitations, we propose UniGen-AR, a framework that pairs a general-purpose multi-modal language model (MLLM) with an efficient next-scale visual auto-regressive (VAR) decoder. This design retains the flexibility of MLLM-based conditioning while leveraging the sampling efficiency and latent unification properties of VAR models. In our framework, the MLLM encodes free-form instructions and control signals into a unified sequence, which guides the VAR decoder to generate image-valued outputs for over 15 tasks spanning four families. Empirically, UniGen-AR achieves up to 19× lower inference latency than diffusion-based baselines while maintaining or improving output quality. Our ablations further reveal that VQ-VAE tokenizer design, particularly codebook size and hierarchy, is a critical factor for VAR scalability in UVG. These results establish visual auto-regressive modeling as a compelling and efficient backbone for unified visual generation. Our project page is at https://zpbao.github.io/projects/unigenar.
Zhipeng Bao, Zhen Zhu, Nupur Kumari +4
1Carnegie Mellon University · University of Illinois Urbana-Champaign · 3Toyota Research Institute