TL;DR
Traditional visual tokenizers focus heavily on pixel-level reconstruction, creating a latent space that lacks strong semantic grounding. This paper introduces SMAP, a tokenizer that injects semantic conditions as a prefix and uses a "tail token dropping" strategy to make high-level semantics functionally indispensable during training. Paired with a new hybrid generator called CARD, this approach achieves highly efficient, semantically controllable image generation using a fraction of the usual token budget.
What Problem Does This Paper Address?
Modern image generation models (like Latent Diffusion Models or Autoregressive Transformers) don't operate directly on raw pixels. Instead, they use a visual tokenizer to compress high-dimensional images into a compact sequence of discrete or continuous latent tokens.
However, standard tokenizers are trained primarily on reconstruction-dominated objectives (i.e., minimizing pixel-level differences). This causes the resulting latent space to be weakly aligned with high-level concepts. While some recent methods attempt to fix this by adding auxiliary semantic regularization (like aligning tokens with CLIP features), these signals act as loose constraints rather than functional necessities. Because the tokenizer doesn't have to rely on semantics to do its job, downstream generation models must waste significant capacity learning global structure and semantic relationships from scratch.
Methods
The authors introduce a two-part framework consisting of a novel tokenizer and a companion generator:
- SMAP (SeMantic-Aware Prefix Tokenizer): Building on 1D query-based tokenizers (like TiTok), SMAP explicitly injects semantic condition embeddings (such as class labels) directly into the token sequence processed by both the encoder and decoder. To force the network to actually utilize this information, they introduce Tail Token Dropping. During training, the model randomly discards a portion of the trailing latent tokens. In the extreme case, all latent tokens are dropped, forcing the decoder to reconstruct a coarse version of the image using only the semantic prefix. This enforces a strict information ordering: early tokens handle global structure and category identity, while later tokens refine instance-specific details.
- CARD (Causal AutoRegressive–Diffusion Generator): To exploit this structured latent space, CARD splits image generation into two stages. First, a causal transformer autoregressively models the high-level structural dependencies of the latent tokens. Second, a lightweight, Flow Matching-based diffusion module denoises and refines the continuous details. Crucially, CARD reuses the exact same semantic embedding space learned during tokenizer pretraining, eliminating the need for a separate class encoder on the generator side.
Datasets
The models were trained and evaluated on the standard ImageNet-1K dataset at resolutions of $256 \times 256$ and $512 \times 512$. No new datasets or benchmarks were introduced.
Key Insights and Ideas
- Functional Necessity > Loose Alignment: Simply penalizing a tokenizer to correlate with semantic features isn't enough to build a well-structured latent space. By physically dropping tokens during training, the semantic prefix is forced to carry the weight of the reconstruction task.
- Clear Division of Labor: Forcing information ordering creates a clean separation of concerns. As demonstrated by the authors' cross-reconstruction experiments, swapping the semantic prefix between two images changes the object category while perfectly preserving the fine-grained style, posture, and texture encoded by the remaining latent tokens.
- Generator-Friendly Latents: A semantically grounded latent space makes downstream generation significantly easier. The generator doesn't have to fight the tokenizer's pixel-level biases; it can build directly on top of structured, high-level concepts.
Key Results
- Superior Reconstruction Quality: SMAP consistently outperforms existing 1D tokenizers like TiTok across discrete (VQ) and continuous (KL, SoftVQ) settings. At a token length of 128, SMAP achieves a reconstruction FID (rFID) of 0.75 (KL variant) compared to TiTok's 1.02.
- High Token Efficiency: When paired with the CARD generator on ImageNet $256 \times 256$, the framework achieves a highly competitive generation FID (gFID) of 1.79 using just 128 tokens. This matches or beats the performance of traditional diffusion and autoregressive models that require anywhere from 256 to 4096 tokens.
Limitations and Future Work
- Simple Conditioning Space: The method was exclusively evaluated using class-conditional supervision (ImageNet labels). It remains an open question how well this prefix-learning strategy scales to complex, highly compositional text-to-image prompts.
- Restricted to Images: The current implementation is strictly limited to static images. The authors note that extending semantic-aware prefix learning to video generation and broader spatiotemporal modeling is a critical direction for future work.
Summary updated