Composable Visual Tokenizers with Generator-Free Diagnostics of Learnability

Bingchen Zhao, Qiushan Guo, Ye Wang, Yixuan Huang, Zhonghua Zhai, Yu TianarXiv 2026

TL;DR

CompTok is a training framework for 1D visual tokenizers that optimizes the latent space for compositionality and learnability rather than just image reconstruction. By introducing two generator-free metrics—Average Information Gain (AvgIG) and Mode Connectivity (MC)—the authors provide a way to diagnose latent space quality and predict downstream generation performance without training expensive generative models.

What Problem Does This Paper Address?

Modern generative models (like autoregressive transformers or masked token predictors) operate on a latent space defined by a visual tokenizer, which compresses images into a grid or sequence of tokens. Historically, tokenizers are optimized and evaluated based on reconstruction fidelity, typically measured by reconstruction Fréchet Inception Distance (rFID).

However, the authors highlight a critical flaw: a tokenizer can achieve excellent rFID while inducing a fragmented, chaotic latent space that is incredibly difficult for a downstream generator to learn. This leads to a performance mismatch where a good rFID does not translate to a good generation FID (gFID). Two main failure modes cause this:

  1. Token Neglect: Powerful decoders (like diffusion models) often learn to ignore certain tokens or coordinates, making them useless control variables.
  2. Fragmented Latent Space: Valid token regions form disconnected pockets with high-loss barriers between them, preventing smooth interpolation and semantic editing.

CompTok addresses these challenges by explicitly forcing tokens to be causally effective and compositionally stable.

Methods

CompTok introduces a token-conditioned diffusion decoder trained with three core components designed to align tokenizer training with completeness and learnability:

  • Mutual-Information Token Supervision ($\mathcal{L}_{\text{MI}}$): To eliminate token neglect, an InfoGAN-style objective introduces a recognition network ($Q_\phi$) tasked with predicting the exact input tokens directly from the decoded image. This forces the decoder to remain highly sensitive to every token coordinate.
  • Swap-Regularized Compositionality ($\mathcal{L}_{\text{MI}}^{\text{swap}}$): To promote compositional control, CompTok mixes token sequences from two different images by swapping subsets of their tokens. The decoder is then trained to respect this mixed composition.
  • Manifold Constraint via Adversarial Flow Model (AFM): Because swapped token sequences lack ground-truth target images, they can easily decode into unrealistic artifacts. CompTok applies an AFM regularizer ($\mathcal{L}_{\text{AFM}}$) as a realism prior to penalize off-manifold generations, smoothing the latent landscape.
CompTok Framework Overview

Additionally, the paper introduces two generator-free diagnostic metrics to evaluate the token space landscape:

  • Average Information Gain (AvgIG): Measures the local steepness of the loss landscape by calculating how much reconstruction error drops per gradient step when optimizing a random token toward a target image. High AvgIG indicates that tokens act as effective control variables.
  • Mode Connectivity (MC): Characterizes global geometric smoothness by measuring the realism of paths interpolating between valid tokens.
AvgIG and MC Metrics Concept

Datasets

The authors evaluated CompTok across multiple distinct domains to demonstrate its robustness:

  • ImageNet: The primary benchmark used for standard class-conditioned image generation and reconstruction performance.
  • DeepGlobe (Remote Sensing): Used to evaluate downstream semantic segmentation accuracy on decoded images.
  • ChestX-ray14 (Medical): Used to evaluate downstream disease classification/segmentation utility.
  • TextOCR (Text OCR): Used to evaluate text recognition accuracy on decoded images.

Key Insights and Ideas

  • rFID is a Misleading Proxy: Standard reconstruction metrics evaluate samples only on the narrow encoder manifold. They fail to measure whether the broader token space forms a geometry that a downstream generator can actually model.
  • Decoupling via Diffusion: Utilizing a diffusion-based decoder helps decouple high-frequency pixel details from the semantic tokens, allowing the tokens to focus purely on stable, high-level control variables.
  • The Power of Unpaired Swaps: Training on synthetic, swapped token combinations—even without ground-truth image targets—is essential for building a continuous latent space capable of seamless attribute editing.

Key Results

  • State-of-the-Art Generation: On ImageNet, CompTok combined with an $\epsilon$MaskGIT generator achieved a state-of-the-art gFID of 1.60 and an Inception Score (IS) of 297.9 among 1D token-sequence tokenizers, outperforming baselines like Semanticist and FlexTok.
  • Stronger Task Correlation: Across the remote sensing, medical, and OCR domains, the proposed AvgIG and MC metrics correlated much more strongly with downstream task utility (Pearson $r$ up to 0.94) than rFID. In fact, rFID showed a negative correlation ($-0.18$) in the medical domain, proving it can be a deceptive metric for practical utility.
Qualitative results of token swapping

As shown in the qualitative results, progressively swapping tokens using CompTok cleanly transfers attributes (like zebra stripes onto a dog) while preserving a coherent scene layout, whereas baseline methods suffer from severe mixing artifacts.

Limitations and Future Work

The authors note that their downstream validation focused primarily on masked generative models (like MaskGIT). They describe these initial results as a preliminary validation and anticipate that exploring alternative generator architectures or hyperparameter configurations could yield even better performance. Additionally, the token swapping mechanism currently relies on discrete index subsets, leaving room for future work to explore continuous or adaptive token blending strategies.

Summary updated

BibTeX
@misc{zhao2026composable,
  author = {Bingchen Zhao and Qiushan Guo and Ye Wang and Yixuan Huang and Zhonghua Zhai and Yu Tian},
  title = {{Composable Visual Tokenizers with Generator-Free Diagnostics of Learnability}},
  year = {2026},
  eprint = {2602.03339},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.03339},
}
Figure