SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.00342 · ECCV · 2024

AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation

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

arXiv · PDF · Open in the Atlas

Code that ran

12 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 10 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2409.00342.json · badge: /api/ran/2409.00342.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
leaplabthu/adanat canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
LeapLabTHU/AdaNAT community
Papers with Code archive
1 ran · 1 no recorded run
FunctionStatusWhere it lives
AdaLN Ran
ran on a synthesized input
LeapLabTHU/AdaNAT/libs/policy.py
pointer only (licence: NONE) · get_code("55096fe2cb2f34d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LeapLabTHU/AdaNAT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

center_crop Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/datasets_uvit.py
pointer only (licence: NONE) · get_code("f057bf3471d77c43")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

center_crop_arr Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/datasets_uvit.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/enat, is pointer only (licence: NONE) · get_code("f8b4a29a52612a41")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

d_vanilla Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/utils_stylegan/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from postech-cvlab/pytorch-studiogan, is pointer only (licence: NOASSERTION) · get_code("369437c0fd47b308")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dct2str Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/utils_uvit.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/enat, is pointer only (licence: NONE) · get_code("507ea4bd829ac4b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

enable_allreduce Ran
ran, honoured the contract we drafted
leaplabthu/adanat/utils_stylegan/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from postech-cvlab/pytorch-studiogan, is pointer only (licence: NOASSERTION) · get_code("233e3fc61244ce0c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_time Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/dnnlib/util.py
pointer only (licence: NONE) · get_code("a091d19d483bafe2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_time_brief Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/dnnlib/util.py
pointer only (licence: NONE) · get_code("556dd2c77ff90670")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

g_vanilla Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/utils_stylegan/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from postech-cvlab/pytorch-studiogan, is pointer only (licence: NOASSERTION) · get_code("3673b761d410798a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_optimizer Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/utils_uvit.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/enat, is pointer only (licence: NONE) · get_code("7328f4d3c151e58b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_2nd_moment Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/stylegan2.py
pointer only (licence: NONE); the stored copy get_code serves, from POSTECH-CVLab/PyTorch-StudioGAN, is pointer only (licence: NOASSERTION) · get_code("670fe68b890c9792")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

random_crop_arr Ran
ran; our contract draft was wrong, not the code
leaplabthu/adanat/datasets_uvit.py
pointer only (licence: NONE) · get_code("05d1f95a391c0ec3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PolicyNet Not yet run
unverified (harvested, no recorded run)
LeapLabTHU/AdaNAT/libs/policy.py
pointer only (licence: NONE) · get_code("2d3ac7b0ca72697b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LeapLabTHU/AdaNAT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ask_yes_no Not yet run
unverified (harvested, no recorded run)
leaplabthu/adanat/dnnlib/util.py
pointer only (licence: NONE) · get_code("9d31d2c4cd16bb2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_nnet Not yet run
unverified (harvested, no recorded run)
leaplabthu/adanat/utils_uvit.py
pointer only (licence: NONE) · get_code("45b4d5e9ee43e479")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leaplabthu/adanat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 3 the same month, 7 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
format_time 73 other papers
45 dated earlier, 1 the same month, 26 later, 1 undated
2004.00049 (2020-04)
In-Domain GAN Inversion for Real Image Editing
2004.11660 (2020-04)
Disentangled and Controllable Face Image Generation via 3D Imitative-Contrastive Learning
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 70 more not named here
ask_yes_no 69 other papers
45 dated earlier, 1 the same month, 22 later, 1 undated
2004.00049 (2020-04)
In-Domain GAN Inversion for Real Image Editing
2004.11660 (2020-04)
Disentangled and Controllable Face Image Generation via 3D Imitative-Contrastive Learning
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 66 more not named here
format_time_brief 68 other papers
40 dated earlier, 1 the same month, 26 later, 1 undated
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
2206.07695 (2022-06)
VoxGRAF: Fast 3D-Aware Image Synthesis with Sparse Voxel Grids
and 65 more not named here
center_crop_arr 33 other papers
26 dated earlier, 6 later, 1 same year, order not determinable
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.15636 (2022-03)
Diffusion Models for Counterfactual Explanations
and 30 more not named here
random_crop_arr 32 other papers
26 dated earlier, 5 later, 1 same year, order not determinable
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.04306 (2022-03)
Diffusion Models for Medical Anomaly Detection
and 29 more not named here
normalize_2nd_moment 7 other papers
6 dated earlier, 1 same year, order not determinable
2107.04589 (2021-07)
ViTGAN: Training GANs with Vision Transformers
2206.09479 (2022-06)
StudioGAN: A Taxonomy and Benchmark of GANs for Image Synthesis
2305.12734 (2023-05)
EMEF: Ensemble Multi-Exposure Image Fusion
and 4 more not named here
center_crop 4 other papers
3 dated earlier, 1 same year, order not determinable
2302.10586 (2023-02)
Diffusion Models and Semi-Supervised Learners Benefit Mutually with Few Labels
2406.05478 (2024-06)
Revisiting Non-Autoregressive Transformers for Efficient Image Synthesis
and 1 more not named here
get_optimizer 3 other papers
2 dated earlier, 1 later
2406.05478 (2024-06)
Revisiting Non-Autoregressive Transformers for Efficient Image Synthesis
2406.09416 (2024-06)
Alleviating Distortion in Image Generation via Multi-Resolution Diffusion Models and Time-Dependent Layer Normalization
2411.06959 (2024-11)
ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis
dct2str 2 other papers
1 dated earlier, 1 later
2406.09416 (2024-06)
Alleviating Distortion in Image Generation via Multi-Resolution Diffusion Models and Time-Dependent Layer Normalization
2411.06959 (2024-11)
ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis
d_vanilla 1 other paper
1 dated earlier
2111.01118 (2021-11)
Rebooting ACGAN: Auxiliary Classifier GANs with Stable Training
enable_allreduce 1 other paper
1 dated earlier
2111.01118 (2021-11)
Rebooting ACGAN: Auxiliary Classifier GANs with Stable Training
g_vanilla 1 other paper
1 dated earlier
2111.01118 (2021-11)
Rebooting ACGAN: Auxiliary Classifier GANs with Stable Training

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent studies have demonstrated the effectiveness of tokenbased 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 2 &512 2 , MS-COCO, and CC3M, validate the effectiveness of AdaNAT. Code and pre-trained models will be released at https://github.com/LeapLabTHU/AdaNAT.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2409.00342")
get_code_for_paper("2409.00342")
have("2409.00342")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2409.00342.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2409.00342.svg)](https://syntology.ai/paper/2409.00342)

Connect an agent — have() is free.