Same Tokenizer, Better Tokens: Choosing Image Tokens by MAP Inference
Piotr Kubaty (Faculty of Mathematics, Computer Science, Jagiellonian University, Krak\'ow, Poland, Doctoral School of Exact, Natural Sciences, Jagiellonian University,
Key points
From the paper's conclusion- 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.
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. 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
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Efficient Training with Foresight: Multi-Token Auxiliary Supervision for Autoregressive Image GenerationarXiv · 2026
- MixTok: Adaptive Visual Tokenization with Global 1D Tokens and Sparse 2D RefinementarXiv · 2026
- FeaTok: Feature-Loss Tokenization for Image GenerationarXiv · 2026
- Patch-Derived or Register Tokens? Comparing Variable-Length Image TokenizersarXiv · 2026
- Visual Autoregressive Generation with Next Token ImaginationarXiv · 2026
- Towards Practical 20 kbps Generative Video Compression via Adaptive Tokenization and Entropy ModelingarXiv · 2026