Papers › ZipAR: Accelerating Auto-regressive Image Generation through Spatial Locality

ZipAR: Accelerating Auto-regressive Image Generation through Spatial Locality

5 Dec 2024arXiv:2412.04062archive 2025-07-28

Yefei He, Feng Chen, Yuanyu He, Shaoxuan He, Hong Zhou, Kaipeng Zhang, Bohan Zhuang

In this paper, we propose ZipAR, a training-free, plug-and-play parallel decoding framework for accelerating auto-regressive (AR) visual generation. The motivation stems from the observation that images exhibit local structures, and spatially distant regions tend to have minimal interdependence. Given a partially decoded set of visual tokens, in addition to the original next-token prediction scheme in the row dimension, the tokens corresponding to spatially adjacent regions in the column dimension can be decoded in parallel, enabling the ``next-set prediction'' paradigm. By decoding multiple tokens simultaneously in a single forward pass, the number of forward passes required to generate an image is significantly reduced, resulting in a substantial improvement in generation efficiency. Experiments demonstrate that ZipAR can reduce the number of model forward passes by up to 91% on the Emu3-Gen model without requiring any additional retraining. Code is available here: https://github.com/ThisisBillhe/ZipAR.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.04062")

Code

Syntology Ran 3 of 12 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong.

By repository: official repository: 12 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ThisisBillhe/ZipAR officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 3 ran; 2 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · our draft was wrong
9unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ThisisBillhe/ZipAR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

center_crop_arr ThisisBillhe/ZipAR/LlamaGen-ZipAR/dataset/augmentation.py official repository ran · our draft was wrong no licence file found · pointer only · 1712a07966b542ee · report
find_multiple ThisisBillhe/ZipAR/LlamaGen-ZipAR/autoregressive/models/gpt.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · f6ff7671338c9c92 · report
precompute_freqs_cis_2d ThisisBillhe/ZipAR/LlamaGen-ZipAR/autoregressive/models/gpt.py official repository ran · honoured contract no licence file found · pointer only · 7f53b2cdcd16fad9 · report
build_coco ThisisBillhe/ZipAR/LlamaGen-ZipAR/dataset/coco.py official repository unverified no licence file found · pointer only · a5dc3fcd09ebc843 · report
build_imagenet ThisisBillhe/ZipAR/LlamaGen-ZipAR/dataset/imagenet.py official repository unverified no licence file found · pointer only · 5cceaa9d0edbce06 · report
build_imagenet_code ThisisBillhe/ZipAR/LlamaGen-ZipAR/dataset/imagenet.py official repository unverified no licence file found · pointer only · b6635606f35f6a1a · report
build_openimage ThisisBillhe/ZipAR/LlamaGen-ZipAR/dataset/openimage.py official repository unverified no licence file found · pointer only · 0a65aaf586d4f90b · report
logits_to_probs ThisisBillhe/ZipAR/LlamaGen-ZipAR/autoregressive/models/generate.py official repository unverified no licence file found · pointer only · 9dac59261197935f · report
precompute_freqs_cis ThisisBillhe/ZipAR/LlamaGen-ZipAR/autoregressive/models/gpt.py official repository unverified no licence file found · pointer only · 0f0ff4e443413018 · report
random_crop_arr ThisisBillhe/ZipAR/LlamaGen-ZipAR/dataset/augmentation.py official repository unverified no licence file found · pointer only · 980fb099f82d8b84 · report
sample ThisisBillhe/ZipAR/LlamaGen-ZipAR/autoregressive/models/generate.py official repository unverified no licence file found · pointer only · de8908ac0f302419 · report
top_k_top_p_filtering ThisisBillhe/ZipAR/LlamaGen-ZipAR/autoregressive/models/generate.py official repository unverified no licence file found · pointer only · f2fea48028c7ae80 · report

Tasks

Image Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections