NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TokBench: Evaluating Your Visual Tokenizer before Visual Generation

Junfeng Wu, Dongliang Luo, Weizhi Zhao, Zhihao Xie, Yuanhao Wang, Junyi Li, Xudong Xie, Yuliang Liu, Xiang BaiarXiv 2025

Abstract

In this work, we reveal the limitations of visual tokenizers and VAEs in preserving fine-grained features, and propose a benchmark to evaluate reconstruction performance for two challenging visual contents: text and face. Visual tokenizers and VAEs have significantly advanced visual generation and multimodal modeling by providing more efficient compressed or quantized image representations. However, while helping production models reduce computational burdens, the information loss from image compression fundamentally limits the upper bound of visual generation quality. To evaluate this upper bound, we focus on assessing reconstructed text and facial features since they typically: 1) exist at smaller scales, 2) contain dense and rich textures, 3) are prone to collapse, and 4) are highly sensitive to human vision. We first collect and curate a diverse set of clear text and face images from existing datasets. Unlike approaches using VLM models, we employ established OCR and face recognition models for evaluation, ensuring accuracy while maintaining an exceptionally lightweight assessment process requiring just 2GB memory and 4 minutes to complete. Using our benchmark, we analyze text and face reconstruction quality across various scales for different image tokenizers and VAEs. Our results show modern visual tokenizers still struggle to preserve fine-grained features, especially at smaller scales. We further extend this evaluation framework to video, conducting comprehensive analysis of video tokenizers. Additionally, we demonstrate that traditional metrics fail to accurately reflect reconstruction performance for faces and text, while our proposed metrics serve as an effective complement.

Introduction

Modern visual generation models, including Diffusion models like Stable Diffusion and Autoregressive models like LlamaGen, typically operate within a compressed latent space rather than directly on pixels. This compression is handled by visual tokenizers (such as VAEs or VQ-VAEs). While efficient, this process is inherently lossy. If a tokenizer fails to accurately reconstruct critical features like human faces or legible text, the generative model built upon it is fundamentally limited in its output quality.

TokBench is introduced as a lightweight, task-aware benchmark designed to evaluate this "upper bound" of generation by focusing on the preservation of human-critical details that traditional metrics often overlook.

Methodology

TokBench evaluates tokenizers through a reconstruction-based pipeline. An image is encoded into tokens and subsequently decoded back into pixel space. The quality of this reconstruction is then assessed using specialized models:

  1. Text Analysis: A pretrained OCR model (PARSeq) reads text from the reconstructed image. Performance is measured via T-ACC (Text Recognition Accuracy) and T-NED (Normalized Edit Distance).
  2. Face Analysis: A face recognition model (insightface) extracts feature vectors from original and reconstructed faces. The F-Sim (Facial Similarity) metric calculates the cosine similarity between these vectors to determine identity preservation.
The TokBench evaluation pipeline for text and face reconstruction.

The framework is highly efficient, requiring only 2GB of VRAM and approximately 4 minutes for a standard evaluation on a single GPU.

Datasets

The benchmark utilizes two curated datasets:

  • TokBench-Image: Contains 12,398 images with 76,126 text instances and 17,700 face instances, cleaned from sources like TextOCR and WFLW.
  • TokBench-Video: Includes 403 video clips (51,590 frames) to assess temporal compression in video tokenizers.

Data is categorized by scale (Small, Medium, Large) to pinpoint exactly where different tokenizer architectures begin to lose semantic information.

Key Insights and Results

The Failure of Traditional Metrics

A primary finding of TokBench is that traditional metrics like PSNR, SSIM, and LPIPS are often "blind" to semantic collapse. An image may achieve a high PSNR score even if the text is unreadable or a face's identity is completely altered. TokBench's metrics provide a necessary semantic ground truth that aligns more closely with human perception.

Comparison showing how traditional metrics (PSNR, SSIM, LPIPS) fail to capture semantic errors that TokBench metrics identify.
  • The Scale Wall: Most tokenizers perform adequately on large features but fail catastrophically at smaller scales. For small-scale text, many popular tokenizers exhibit a T-ACC near 0%.
  • Architecture vs. Data: Ablation studies indicate that the structural design of the tokenizer (e.g., downsampling factor and codebook dimensionality) is a more significant bottleneck for detail preservation than the volume of training data. Models with 8x downsampling (F8) consistently outperform 16x (F16) variants.
  • Top Performers: VAEs from FLUX.1-dev and SD-3.5 currently lead in reconstruction quality. Among discrete tokenizers, UniTok showed superior performance in text reconstruction due to its multi-codebook design.

Conclusion

TokBench serves as a vital "sanity check" for the foundational components of generative AI. By highlighting the semantic gaps in current visual tokenizers, it provides a roadmap for developing more robust architectures capable of preserving the fine-grained details essential for high-quality visual synthesis.

Summary updated

BibTeX
@misc{wu2025tokbench,
  author = {Junfeng Wu and Dongliang Luo and Weizhi Zhao and Zhihao Xie and Yuanhao Wang and Junyi Li and Xudong Xie and Yuliang Liu and Xiang Bai},
  title = {{TokBench: Evaluating Your Visual Tokenizer before Visual Generation}},
  year = {2025},
  eprint = {2505.18142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18142},
}
Figure