Same Tokenizer, Better Tokens: Choosing Image Tokens by MAP Inference
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
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
Related papers
Measuring and Predicting Image-Token Repair Boundaries in Vision-Language Models
Shared title terminologycs.CVVishal Bhutani, Prasang Gupta, Sumanth Chundru et al.
DualCast: Dual-Image Conditioned Diffusion Transformers for Digital Human E-Commerce Video Generation
Shared title terminologycs.CVLifan Jiang, Yifan Huang, Jixuan Zhang et al.
MOVR-SAR: A Multi-resolution SAR Registration Dataset under Orbit-crossing and View-variant Imaging Differences
Shared title terminologycs.CVYuchi Pu, Bosong Qi, Pengcheng Shi et al.
What Is Redundant at High Resolution? Efficient Attention and Feed-Forward Design for All-in-One Image Restoration
Shared title terminologycs.CVDongheon Lee, DongJae Lee, Sewhan Chun et al.
A 3D Simulator for Passive SPAD Imaging
Shared title terminologycs.CVElia Mergaert, Rong Zou, Roberto Pellerito et al.
What Does RL Post-Training Teach Text-to-Image Models? A Skill-Wise Analysis of Flow-GRPO
Shared title terminologycs.CVCheng Zhang, Jiesong Liu