TL;DR
Current visual tokenizers inject semantic supervision into latent spaces to aid diffusion models, but they suffer from a mathematical mismatch: directly predicting semantics from noisy latents doesn't match the semantics decoded from the predicted clean latent. This paper introduces Semantic Affine Consistency (SAC) to bridge this gap, offering a training-free metric ($M_{SAC}$) to predict tokenizer performance and a novel training framework (AffineTok) that achieves state-of-the-art generation results on ImageNet.
What Problem Does This Paper Address?
In latent diffusion models, visual tokenizers compress images into a continuous latent space where the diffusion process takes place. To make the denoising process easier, modern tokenizers often inject semantic features from Vision Foundation Models (VFMs) like DINO.
However, existing methods train a semantic projector to predict clean-image semantics directly from a noisy latent. The authors point out a fundamental flaw here: because the semantic mapping function is highly non-linear, averaging semantics and mapping latents do not commute.
During actual diffusion generation, the model predicts a posterior-mean clean latent and then decodes its semantics. Existing supervision forces the network to predict the average of clean-image semantics, rather than the semantics of the averaged clean latent. This mismatch creates an unaddressed source of error that hinders downstream generation quality.
Methods
The authors introduce two core contributions to define, measure, and solve this alignment problem:
1. The $M_{SAC}$ Metric
To evaluate whether a tokenizer satisfies Semantic Affine Consistency without the massive computational expense of training a downstream diffusion model, the authors propose $M_{SAC}$. This training-free metric approximates local posterior averaging by interpolating between neighboring clean latents and measuring the parallel and orthogonal components of the resulting semantic deviations.
2. The AffineTok Framework
To actively enforce SAC during tokenizer training, the authors introduce AffineTok, which adds two training-only modules (both are discarded before downstream diffusion training):
- Global Semantic Coordination Token (GSCT): Prepends a learnable token to the patch embedding sequence. This token is aligned with global VFM features (e.g., DINO's class token), acting as a shared semantic anchor that coordinates patch latents across different images.
- Posterior-Mean Semantic Alignment (PMSA): Employs a lightweight posterior predictor ($G_{post}$) to estimate the posterior-mean clean latent from noisy inputs, and a semantic projector ($S_{post}$) calibrated on clean latents to explicitly supervise the semantics of these estimated posterior means.
Datasets
The method was trained and evaluated using the standard ImageNet-1K dataset at $256 \times 256$ resolution. The validation split was utilized to compute tokenizer-side metrics and evaluate downstream generation performance.
Key Insights and Ideas
- The Orthogonal Error Decomposition: The authors mathematically prove that semantic recovery error decomposes orthogonally into two terms: the error of the optimal semantic prediction directly from a noisy latent, and the consistency gap between the two semantic paths (the SAC violation). Prior methods only optimized the first term.
- A Reliable Predictor of Diffusability: The $M_{SAC}$ metric acts as an excellent proxy for downstream performance. It allows researchers to know how well a tokenizer will perform in a generative model before running expensive diffusion training.
- Global Anchoring Matters: Simply adding more capacity or unsupervised tokens doesn't fix semantic inconsistency. Aligning a global token with a VFM's class token (GSCT) provides a crucial coordinate reference frame that makes cross-image semantic averaging meaningful.
Key Results
- High Metric Correlation: The proposed $M_{SAC}$ metric achieves a Pearson correlation of 0.960 with SiT-XL gFID across 14 different visual tokenizers, proving it strongly tracks downstream generation quality.
- Faster Convergence: When training a downstream diffusion model on ImageNet $256 \times 256$, AffineTok reduces gFID by 26% at just 20 epochs compared to the RecTok baseline.
- State-of-the-Art Generation: With extended training (600 epochs), AffineTok achieves a state-of-the-art gFID of 1.21 without classifier-free guidance (CFG) and 1.10 with CFG, outperforming all existing diffusion-centric and tokenizer-centric baselines.
Limitations and Future Work
While the paper demonstrates impressive gains, a few areas remain open for exploration:
- The framework relies heavily on a frozen VFM (DINOv3-S) for semantic supervision; its sensitivity to different VFM architectures or sizes wasn't deeply explored.
- The training process introduces additional training-only modules ($G_{post}$ and $S_{post}$), which add slight computational overhead during the tokenizer training phase, even though they are discarded afterward.
- The authors note that extending this geometric organization of latent spaces to other modalities, such as video tokenization, is a promising direction for future work.
Summary updated