ScanAR: Parallel Row-Scan Decoding for Efficient Image Generation in Unified Autoregressive Models
Qu et al. in Inference & systems
Can a unified image model decode a whole row at once?
ScanAR: Parallel Row-Scan Decoding for Efficient Image Generation in Unified Autoregressive Models
The bottleneck is the image grid
Text and image tokens share one next-token interface, but raster decoding serializes an H×W grid into HW decisions.
ScanAR keeps the grid, backbone, vocabulary and shared head; only visual-token predecessors change, enabling later rows to run in parallel.
For H>1, effective depth is H+W instead of HW, with no added parameters.
How one image block moves through the scan
- 1
Sample the first row
Generate it left to right with standard causal attention, one visual token per step.
- 2
Commit full first-row context
Reprocess the sampled row with full within-row visibility to produce fully visible states for row two; no extra tokens are sampled.
- 3
Scan later rows together
Each later token uses the committed state above its column; sample all columns together, then process the row as a group. Nonvisual tokens stay causal.
Training follows the scan dependency

Figure 3 maps each visual token to its prediction predecessor and shows training visibility: later rows see all previous rows plus their full row; text and structure stay causal.
Why train for the row-scan conditionals?
On ImageNet 256×256 with GPT-B, default w=8 uses 144 passes (FID 5.69); at w=4 it uses 88 passes, but FID (lower is better) worsens to 16.59.
In the same GPT-B setting, 300-epoch ScanAR uses 32 passes at FID 5.59, learning the row-scan conditionals used at inference.
This trades training for fewer inference passes; it is not a training-free shortcut.
ScanAR leads same-data GenEval accelerators
Emu3.5-Image-34B, 512×512; accelerators use 80M tokens. Delta vs FlashAR. Raster ref: same data/init/batch/schedule, 5-seed mean.
Mixed text-image sequences stayed fast
Same engine, same 80 embodied-planning cases: raster U0-Seq took 57.3 s per generated image.
It took 5.2 s per image end to end (11.1× faster); valid output rose from 81.3% to 91.3%. Ground-truth image fidelity stayed close; scene and temporal consistency dipped slightly.
The 80 cases came from post-training sources' training splits, not a held-out test.
Where the speedup has boundaries
Parallel rows are approximate
Later-row tokens are conditionally independent; each omits up to W-1 left neighbors. The first row still takes W serial samples plus a non-sampling commit.
U0 comparisons are confounded
Raster references differ in checkpoint or post-training, and video uses default samplers; U0 metric shifts cannot be assigned to decoding alone.
Why it matters
- Matched raster-to-ScanAR latency at 512×512 fell from 64.60 to 4.69 s (13.8×), with CFG branches batched.
- Practitioners can keep the unified backbone and output head, but must train or post-train on the row-parallel visual conditionals used at inference.
- How much within-row detail can be predicted independently before image quality suffers on a particular task?
9 slides, 2 min
5 days ago