Same Tokenizer, Better Tokens: Choosing Image Tokens by MAP Inference

Piotr Kubaty, Jacek Tabor, Łukasz Struski
11/24/2026
cs.CVcs.LG

No confident code implementation found for this paper.

Abstract

Discrete visual tokens encode images for reconstruction and serve as training targets for autoregressive image generators. Vector-quantized tokenizers typically assign each encoder feature its nearest code independently.

Show full abstract

The decoder uses these codes jointly, so a sequence of individually nearest codes can reconstruct an image less faithfully than an alternative assignment. A local model of the reconstruction loss yields a closest-vector problem with a decoder-dependent target and metric. Reconstruction-only search improves PSNR across the frozen tokenizers we test. Different code sequences can achieve similar reconstruction quality, leaving room to favour more predictable ones. We introduce RecaP (Reconstruction and Predictability), which selects codes for a frozen tokenizer by balancing how faithfully they reconstruct the image with how likely their sequence is under a pretrained autoregressive prior. On ImageNet, LlamaGen GPT-B trained on RecaP tokens achieves lower early-checkpoint FID against training images than GPT-B trained on nearest-neighbour tokens. The difference is smaller against held-out images. On an ImageNet subset, the prior improves generation at comparable reconstruction FID. Our code is available at: https://github.com/gmum/recap

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kubaty2026same,
  title  = {Same Tokenizer, Better Tokens: Choosing Image Tokens by MAP Inference},
  author = {Piotr Kubaty and Jacek Tabor and Łukasz Struski},
  year   = {2026},
  eprint = {2611.33261},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.33261v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.33261.svg)](https://codeofpaper.com/paper/2611.33261)

Discussion