Papers › FlexVAR: Flexible Visual Autoregressive Modeling without Residual Prediction

FlexVAR: Flexible Visual Autoregressive Modeling without Residual Prediction

27 Feb 2025arXiv:2502.20313archive 2025-07-28

Siyu Jiao, Gengwei Zhang, Yinlong Qian, Jiancheng Huang, Yao Zhao, Humphrey Shi, Lin Ma, Yunchao Wei, Zequn Jie

This work challenges the residual prediction paradigm in visual autoregressive modeling and presents FlexVAR, a new Flexible Visual AutoRegressive image generation paradigm. FlexVAR facilitates autoregressive learning with ground-truth prediction, enabling each step to independently produce plausible images. This simple, intuitive approach swiftly learns visual distributions and makes the generation process more flexible and adaptable. Trained solely on low-resolution images (≤ 256px), FlexVAR can: (1) Generate images of various resolutions and aspect ratios, even exceeding the resolution of the training images. (2) Support various image-to-image tasks, including image refinement, in/out-painting, and image expansion. (3) Adapt to various autoregressive steps, allowing for faster inference with fewer steps or enhancing image quality with more steps. Our 1.0B model outperforms its VAR counterpart on the ImageNet 256×256 benchmark. Moreover, when zero-shot transfer the image generation process with 13 steps, the performance further improves to 2.08 FID, outperforming state-of-the-art autoregressive models AiM/VAR by 0.25/0.28 FID and popular diffusion models LDM/DiT by 1.52/0.19 FID, respectively. When transferring our 1.0B model to the ImageNet 512×512 benchmark in a zero-shot manner, FlexVAR achieves competitive results compared to the VAR 2.3B model, which is a fully supervised model trained at 512×512 resolution.

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="2502.20313")

Code

Syntology Ran 7 of 12 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 2 ran with no contract checked.

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

jiaosiyu1999/FlexVAR officialmentioned on GitHubpytorchMIT 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; 7 ran; 0 honoured the contract we drafted; 5 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.

3ran · our draft was wrong
2ran · fixture could not drive it
2ran
5unverified

Licence: 0 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 jiaosiyu1999/FlexVAR. “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.

Normalize jiaosiyu1999/FlexVAR/models/vq_llama.py official repository ran · our draft was wrong MIT (permissive) · 01b5cf639b6bac89 · report
center_crop_arr jiaosiyu1999/FlexVAR/dataset/augmentation.py official repository ran · our draft was wrong MIT (permissive) · 1712a07966b542ee · report
compute_entropy_loss jiaosiyu1999/FlexVAR/models/vq_llama.py official repository ran · fixture could not drive it MIT (permissive) · 774c95b77d7621f3 · report
drop_path jiaosiyu1999/FlexVAR/models/helpers.py official repository ran · fixture could not drive it MIT (permissive) · 971ae8d2d8313e30 · report
gumbel_softmax_with_rng jiaosiyu1999/FlexVAR/models/helpers.py official repository ran MIT (permissive) · e543491ea064c733 · report
nonlinearity jiaosiyu1999/FlexVAR/models/vq_llama.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
sample_with_top_k_top_p_ jiaosiyu1999/FlexVAR/models/helpers.py official repository ran MIT (permissive) · 80371584448f2f6e · report
allgather jiaosiyu1999/FlexVAR/dist.py official repository unverified MIT (permissive) · e847ee15f089dee6 · report
allreduce jiaosiyu1999/FlexVAR/dist.py official repository unverified MIT (permissive) · ff4c548fd07140d0 · report
build_openimage jiaosiyu1999/FlexVAR/dataset/openimage.py official repository unverified MIT (permissive) · 0a65aaf586d4f90b · report
new_group jiaosiyu1999/FlexVAR/dist.py official repository unverified MIT (permissive) · 826ea3fc406a6a09 · report
random_crop_arr jiaosiyu1999/FlexVAR/dataset/augmentation.py official repository unverified MIT (permissive) · 5c39d5cf4b4b2a41 · report

Tasks

Image GenerationPrediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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