Papers › Not All Image Regions Matter: Masked Vector Quantization for Autoregressive Image Generation

Not All Image Regions Matter: Masked Vector Quantization for Autoregressive Image Generation

23 May 2023CVPR 2023 1arXiv:2305.13607archive 2025-07-28

Mengqi Huang, Zhendong Mao, Quan Wang, Yongdong Zhang

Existing autoregressive models follow the two-stage generation paradigm that first learns a codebook in the latent space for image reconstruction and then completes the image generation autoregressively based on the learned codebook. However, existing codebook learning simply models all local region information of images without distinguishing their different perceptual importance, which brings redundancy in the learned codebook that not only limits the next stage's autoregressive model's ability to model important structure but also results in high training cost and slow generation speed. In this study, we borrow the idea of importance perception from classical image coding theory and propose a novel two-stage framework, which consists of Masked Quantization VAE (MQ-VAE) and Stackformer, to relieve the model from modeling redundancy. Specifically, MQ-VAE incorporates an adaptive mask module for masking redundant region features before quantization and an adaptive de-mask module for recovering the original grid image feature map to faithfully reconstruct the original images after quantization. Then, Stackformer learns to predict the combination of the next code and its position in the feature map. Comprehensive experiments on various image generation validate our effectiveness and efficiency. Code will be released at https://github.com/CrossmodalGroup/MaskedVectorQuantization.

PaperPDFConference PDFCodeCode 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="2305.13607")

Code

Syntology Ran 13 of 18 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · violated contract; 6 ran · our draft was wrong; 1 ran · fixture could not drive it; 1 ran with no contract checked.

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

crossmodalgroup/maskedvectorquantization officialmentioned in paperpytorchMIT 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

18 samples harvested; 13 ran; 1 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.

1ran · honoured contract
4ran · violated contract
6ran · our draft was wrong
1ran · fixture could not drive it
1ran
5unverified

Licence: 0 of the 18 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 crossmodalgroup/maskedvectorquantization. “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.

default crossmodalgroup/maskedvectorquantization/modules/discriminator/stylegan_lucidrains.py official repository ran · violated contract MIT (permissive) · 7c49b92babb27a7d · report
Normalize crossmodalgroup/maskedvectorquantization/modules/diffusionmodules/model.py official repository ran · our draft was wrong MIT (permissive) · c3a6b977022957cb · report
adopt_weight crossmodalgroup/maskedvectorquantization/modules/losses/vqperceptual.py official repository ran · honoured contract fingerprinted MIT (permissive) · 7439a9d4c6be04b0 · report
combine_contexts crossmodalgroup/maskedvectorquantization/modules/discriminator/stylegan.py official repository ran · our draft was wrong MIT (permissive) · 85f67e8fb251251f · report
default crossmodalgroup/maskedvectorquantization/modules/discriminator/stylegan.py official repository ran · violated contract MIT (permissive) · feab88ece44cfb43 · report
disabled_train crossmodalgroup/maskedvectorquantization/models/stage2/utils.py official repository ran · violated contract MIT (permissive) · 4cb732f513d69dfd · report
exists crossmodalgroup/maskedvectorquantization/modules/discriminator/stylegan.py official repository ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
get_timestep_embedding crossmodalgroup/maskedvectorquantization/modules/diffusionmodules/model.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · cb49209c125de1b4 · report
hinge_d_loss crossmodalgroup/maskedvectorquantization/modules/losses/vqperceptual.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 22a83df891d750c6 · report
nonlinearity crossmodalgroup/maskedvectorquantization/modules/diffusionmodules/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
normalize_tensor crossmodalgroup/maskedvectorquantization/modules/losses/lpips.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 7257fdf155f5ef45 · report
spatial_average crossmodalgroup/maskedvectorquantization/modules/losses/lpips.py official repository ran fingerprinted MIT (permissive) · e268053216b1dd62 · report
vanilla_d_loss crossmodalgroup/maskedvectorquantization/modules/losses/vqperceptual.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 263c54290c553ddd · report
Scheduler_LinearWarmup crossmodalgroup/maskedvectorquantization/models/stage1/utils.py official repository unverified MIT (permissive) · c9a9623e2ceb5de2 · report
fn crossmodalgroup/maskedvectorquantization/models/stage2/utils.py official repository unverified MIT (permissive) · b0d5bd17b550d589 · report
fn_LinearWarmup crossmodalgroup/maskedvectorquantization/models/stage1/utils.py official repository unverified MIT (permissive) · 524542d2884463d4 · report
fn_LinearWarmup_CosineDecay crossmodalgroup/maskedvectorquantization/models/stage1/utils.py official repository unverified MIT (permissive) · 593ed2ee1ff174b3 · report
learning_rate_schedule crossmodalgroup/maskedvectorquantization/models/stage2/utils.py official repository unverified MIT (permissive) · a7f95a154e8faecc · report

Tasks

AllImage GenerationImage ReconstructionQuantization

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