Papers › Exploration into Translation-Equivariant Image Quantization

Exploration into Translation-Equivariant Image Quantization

1 Dec 2021arXiv:2112.00384archive 2025-07-28

Woncheol Shin, Gyubok Lee, Jiyoung Lee, Eunyi Lyou, Joonseok Lee, Edward Choi

This is an exploratory study that discovers the current image quantization (vector quantization) do not satisfy translation equivariance in the quantized space due to aliasing. Instead of focusing on anti-aliasing, we propose a simple yet effective way to achieve translation-equivariant image quantization by enforcing orthogonality among the codebook embeddings. To explore the advantages of translation-equivariant image quantization, we conduct three proof-of-concept experiments with a carefully controlled dataset: (1) text-to-image generation, where the quantized image indices are the target to predict, (2) image-to-text generation, where the quantized image indices are given as a condition, (3) using a smaller training set to analyze sample efficiency. From the strictly controlled experiments, we empirically verify that the translation-equivariant image quantizer improves not only sample efficiency but also the accuracy over VQGAN up to +11.9% in text-to-image generation and +3.9% in image-to-text generation.

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

Code

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

By repository: official repository: 14 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.

wcshin-git/te-vqgan officialmentioned in papermentioned on GitHubpytorchMIT report
lucidrains/vector-quantize-pytorch mentioned 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

14 samples harvested; 13 ran; 1 honoured the contract we drafted; 1 has 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
7ran · our draft was wrong
1ran · fixture could not drive it
4ran
1unverified

Licence: 0 of the 14 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 wcshin-git/te-vqgan. “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.

adopt_weight wcshin-git/te-vqgan/taming/modules/losses/vqperceptual.py official repository ran · honoured contract fingerprinted MIT (permissive) · 7439a9d4c6be04b0 · report
count_params wcshin-git/te-vqgan/taming/modules/util.py official repository ran MIT (permissive) · 5ef87f1a172f152b · report
get_ckpt_path wcshin-git/te-vqgan/taming/util.py official repository ran MIT (permissive) · e70eb36cf08faee4 · report
get_obj_from_str wcshin-git/te-vqgan/taming/models/vqgan.py official repository ran · our draft was wrong MIT (permissive) · 221b2d116fdf1032 · report
get_pad_layer wcshin-git/te-vqgan/taming/modules/diffusionmodules/model.py official repository ran · our draft was wrong MIT (permissive) · 50aa4a59fe718c61 · report
get_timestep_embedding wcshin-git/te-vqgan/taming/modules/diffusionmodules/model.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · cb49209c125de1b4 · report
hinge_d_loss wcshin-git/te-vqgan/taming/modules/losses/vqperceptual.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 22a83df891d750c6 · report
md5_hash wcshin-git/te-vqgan/taming/util.py official repository ran · our draft was wrong MIT (permissive) · 07d90bd6ae1be7db · report
nonlinearity wcshin-git/te-vqgan/taming/modules/diffusionmodules/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
normalize_tensor wcshin-git/te-vqgan/taming/modules/losses/lpips.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 7257fdf155f5ef45 · report
retrieve wcshin-git/te-vqgan/taming/util.py official repository ran MIT (permissive) · 31543f3e2c18272e · report
spatial_average wcshin-git/te-vqgan/taming/modules/losses/lpips.py official repository ran fingerprinted MIT (permissive) · e268053216b1dd62 · report
vanilla_d_loss wcshin-git/te-vqgan/taming/modules/losses/vqperceptual.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 263c54290c553ddd · report
instantiate_from_config wcshin-git/te-vqgan/taming/models/vqgan.py official repository unverified MIT (permissive) · f0ac78b4e05be194 · report

Tasks

Image GenerationImage to textQuantizationText GenerationText to Image GenerationText-to-Image GenerationTranslation

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