Papers › AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation

AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation

31 Aug 2024arXiv:2409.00342archive 2025-07-28

Zanlin Ni, Yulin Wang, Renping Zhou, Rui Lu, Jiayi Guo, Jinyi Hu, Zhiyuan Liu, Yuan YAO, Gao Huang

Recent studies have demonstrated the effectiveness of token-based methods for visual content generation. As a representative work, non-autoregressive Transformers (NATs) are able to synthesize images with decent quality in a small number of steps. However, NATs usually necessitate configuring a complicated generation policy comprising multiple manually-designed scheduling rules. These heuristic-driven rules are prone to sub-optimality and come with the requirements of expert knowledge and labor-intensive efforts. Moreover, their one-size-fits-all nature cannot flexibly adapt to the diverse characteristics of each individual sample. To address these issues, we propose AdaNAT, a learnable approach that automatically configures a suitable policy tailored for every sample to be generated. In specific, we formulate the determination of generation policies as a Markov decision process. Under this framework, a lightweight policy network for generation can be learned via reinforcement learning. Importantly, we demonstrate that simple reward designs such as FID or pre-trained reward models, may not reliably guarantee the desired quality or diversity of generated samples. Therefore, we propose an adversarial reward design to guide the training of policy networks effectively. Comprehensive experiments on four benchmark datasets, i.e., ImageNet-256 & 512, MS-COCO, and CC3M, validate the effectiveness of AdaNAT. Code and pre-trained models will be released at https://github.com/LeapLabTHU/AdaNAT.

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

Code

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

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

leaplabthu/adanat 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

15 samples harvested; 9 ran; 1 honoured the contract we drafted; 6 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.

1ran · honoured contract
3ran · our draft was wrong
5ran
6unverified

Licence: 15 of the 15 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 LeapLabTHU/AdaNAT. “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.

AdaLN LeapLabTHU/AdaNAT/libs/policy.py official repository ran · metamorphic tier: invariant no licence file found · pointer only · 55096fe2cb2f34d2 · report
center_crop leaplabthu/adanat/datasets_uvit.py official repository ran no licence file found · pointer only · f057bf3471d77c43 · report
d_vanilla leaplabthu/adanat/utils_stylegan/losses.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 369437c0fd47b308 · report
enable_allreduce leaplabthu/adanat/utils_stylegan/losses.py official repository ran · honoured contract no licence file found · pointer only · 233e3fc61244ce0c · report
format_time leaplabthu/adanat/dnnlib/util.py official repository ran fingerprinted no licence file found · pointer only · a091d19d483bafe2 · report
format_time_brief leaplabthu/adanat/dnnlib/util.py official repository ran fingerprinted no licence file found · pointer only · 556dd2c77ff90670 · report
g_vanilla leaplabthu/adanat/utils_stylegan/losses.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 3673b761d410798a · report
normalize_2nd_moment leaplabthu/adanat/stylegan2.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 670fe68b890c9792 · report
random_crop_arr leaplabthu/adanat/datasets_uvit.py official repository ran no licence file found · pointer only · 05d1f95a391c0ec3 · report
PolicyNet LeapLabTHU/AdaNAT/libs/policy.py official repository unverified no licence file found · pointer only · 2d3ac7b0ca72697b · report
ask_yes_no leaplabthu/adanat/dnnlib/util.py official repository unverified no licence file found · pointer only · 9d31d2c4cd16bb2d · report
center_crop_arr leaplabthu/adanat/datasets_uvit.py official repository unverified no licence file found · pointer only · f8b4a29a52612a41 · report
dct2str leaplabthu/adanat/utils_uvit.py official repository unverified no licence file found · pointer only · 507ea4bd829ac4b0 · report
get_nnet leaplabthu/adanat/utils_uvit.py official repository unverified no licence file found · pointer only · 45b4d5e9ee43e479 · report
get_optimizer leaplabthu/adanat/utils_uvit.py official repository unverified no licence file found · pointer only · 7328f4d3c151e58b · report

Tasks

Image GenerationScheduling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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