Papers › ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis

ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis

11 Nov 2024arXiv:2411.06959archive 2025-07-28

Zanlin Ni, Yulin Wang, Renping Zhou, Yizeng Han, Jiayi Guo, Zhiyuan Liu, Yuan YAO, Gao Huang

Recently, token-based generation have demonstrated their effectiveness in image synthesis. As a representative example, non-autoregressive Transformers (NATs) can generate decent-quality images in a few steps. NATs perform generation in a progressive manner, where the latent tokens of a resulting image are incrementally revealed. At each step, the unrevealed image regions are padded with mask tokens and inferred by NAT. In this paper, we delve into the mechanisms behind the effectiveness of NATs and uncover two important patterns that naturally emerge from NATs: Spatially (within a step), although mask and visible tokens are processed uniformly by NATs, the interactions between them are highly asymmetric. In specific, mask tokens mainly gather information for decoding, while visible tokens tend to primarily provide information, and their deep representations can be built only upon themselves. Temporally (across steps), the interactions between adjacent generation steps mostly concentrate on updating the representations of a few critical tokens, while the computation for the majority of tokens is generally repetitive. Driven by these findings, we propose EfficientNAT (ENAT), a NAT model that explicitly encourages these critical interactions inherent in NATs. At the spatial level, we disentangle the computations of visible and mask tokens by encoding visible tokens independently, while decoding mask tokens conditioned on the fully encoded visible tokens. At the temporal level, we prioritize the computation of the critical tokens at each step, while maximally reusing previously computed token representations to supplement necessary information. ENAT improves the performance of NATs notably with significantly reduced computational cost. Experiments on ImageNet-256, ImageNet-512 and MS-COCO validate the effectiveness of ENAT. Code is available at https://github.com/LeapLabTHU/ENAT.

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

Code

Syntology Ran 5 of 16 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · our draft was wrong.

By repository: official repository: 16 samples from 1 repository, 5 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/enat 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

16 samples harvested; 5 ran; 1 honoured the contract we drafted; 11 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
4ran · our draft was wrong
11unverified

Licence: 16 of the 16 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/enat. “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 leaplabthu/enat/libs/autoencoder.py official repository ran · our draft was wrong no licence file found · pointer only · 9fcdaa6e423e8aa7 · report
add_gumbel_noise leaplabthu/enat/libs/nat_misc.py official repository ran · our draft was wrong no licence file found · pointer only · 9ef9985f5609c318 · report
get_2d_sincos_pos_embed leaplabthu/enat/libs/models.py official repository ran · honoured contract no licence file found · pointer only · c92c27c924b517e8 · report
modulate leaplabthu/enat/libs/models.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 03310bba324ae4fb · report
nonlinearity leaplabthu/enat/libs/autoencoder.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 3137073275f8c21a · report
center_crop_arr leaplabthu/enat/dataset.py official repository unverified no licence file found · pointer only · f8b4a29a52612a41 · report
customized_lr_scheduler leaplabthu/enat/utils.py official repository unverified no licence file found · pointer only · 4c4a870f0a791ce8 · report
dct2str leaplabthu/enat/utils.py official repository unverified no licence file found · pointer only · 507ea4bd829ac4b0 · report
get_2d_sincos_pos_embed_from_grid leaplabthu/enat/libs/models.py official repository unverified no licence file found · pointer only · 665d8a4e8f673a4c · report
get_logger leaplabthu/enat/taming/models/logging.py official repository unverified no licence file found · pointer only · 376bf22d5737fc2a · report
get_optimizer leaplabthu/enat/utils.py official repository unverified no licence file found · pointer only · 7328f4d3c151e58b · report
get_parameter_device leaplabthu/enat/taming/models/modeling_utils.py official repository unverified no licence file found · pointer only · bfdddec04a7257ca · report
get_parameter_dtype leaplabthu/enat/taming/models/modeling_utils.py official repository unverified no licence file found · pointer only · 4f52e71d06a15422 · report
load_state_dict leaplabthu/enat/taming/models/modeling_utils.py official repository unverified no licence file found · pointer only · 934f2eb98d647821 · report
make_attn leaplabthu/enat/libs/autoencoder.py official repository unverified no licence file found · pointer only · f97adc1ae5efb785 · report
set_split_position leaplabthu/enat/libs/multiway.py official repository unverified no licence file found · pointer only · b130dfe7aca61a56 · report

Tasks

Image Generation

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