TL;DR
Selftok introduces a novel, non-spatial 1D visual tokenizer that maps images to an autoregressive (AR) prior by leveraging the reverse diffusion process. By abandoning traditional spatial grids, Selftok allows Vision-Language Models (VLMs) to operate as pure discrete autoregressive sequence models that mathematically satisfy the Bellman equation, unlocking highly effective reinforcement learning (RL) for visual generation.
What Problem Does This Paper Address?
Autoregressive large language models (LLMs) have achieved immense success, largely driven by their ability to scale via next-token prediction and post-training reinforcement learning (RL). However, extending this paradigm to the visual domain has hit a major roadblock. Traditional visual tokenizers (like VQGAN) represent images as spatial grids or patches.
The authors argue that spatial tokens are fundamentally incompatible with pure autoregressive modeling and RL for two reasons:
- The Collider Effect: Because spatial pixels collectively form the final image (the effect), observing any part of the image during spatial encoding introduces spurious, non-causal dependencies among tokens.
- Violation of the Bellman Equation: In a spatial grid, a token predicted at a later step can anti-causally influence the context of tokens predicted in earlier steps. This violation of the Markov Decision Process (MDP) structure means that optimizing a policy for later tokens can contradict and degrade earlier optimized policies, making standard RL highly ineffective.
Methods
To solve this, the authors introduce Selftok (Self-consistency Tokenizer), which completely discards spatial priors. Instead of discretizing coordinates, Selftok discretizes the continuous velocity field of an image's reverse diffusion trajectory.
Key components of the architecture include:
- Autoregressive Diffusion Mapping: The tokenizer encodes an image into $K$ discrete tokens, where each token corresponds to a specific diffusion time-step. The decoder is trained to reconstruct the clean image from a noisy midway point conditioned on the remaining future tokens.
- Dual-Stream Transformer Backbone: Utilizing an MMDiT-like architecture, the model processes an image stream and a token stream independently, using token-aware adaptive layer normalization (AdaLN) and cross-attention masks to enforce causal dependencies.
- One-step Renderer: Because decoding via standard multi-step diffusion sampling is slow, the authors freeze the tokenizer and train a dedicated renderer. Optimized with a combination of MSE, LPIPS, and GAN losses, it reconstructs high-fidelity images from the discrete tokens in a single forward pass.
- Visual RL via GRPO: Thanks to the strict AR property of the tokens, the authors apply a simplified version of Group Relative Policy Optimization (GRPO) to fine-tune the VLM using automated reward models (such as object detectors for counting/positioning or VQA models for complex prompts) without any ground-truth image supervision.
Datasets
- Tokenizer Training & Evaluation: Trained on the train split of ImageNet-1k and evaluated on its 50k validation set.
- VLM Pretraining: A massive dataset of 530 million image-text pairs compiled from public sources (COYO-700M, DataComp, LAION-5B subsets) and in-house text datasets, augmented with multi-level captions generated by QwenVL and MiniCPM.
- Supervised Fine-Tuning (SFT): Curated datasets for text-to-image generation (252k samples), image editing (PIPE, UltraEdit, OmniEdit), and vision-language comprehension (VQAv2, OKVQA, GQA, TextVQA, Molmo/PixMo, etc.).
- Downstream Benchmarks: Evaluated using GenEval (object alignment), DPG-Bench (text-to-image prompts), MME (multimodal comprehension), and PIE-Bench (image editing).
Key Insights and Ideas
- Diffusion Trajectories as Causal Sequences: The reverse diffusion process provides a natural, mathematically sound 1D ordering for visual data. By treating time-steps as sequence positions, the model mirrors the causal structure of human language.
- Unlocking the Bellman Equation for Vision: Because Selftok tokens strictly depend only on their predecessors, the generation process satisfies the Bellman optimality condition. This bridges the gap that previously prevented visual generation models from benefiting from RL alignment paradigms like those used in LLMs (e.g., RLHF or R1-style reasoning).
- Positive Synergy Between Tasks: Unlike spatial tokenizers, which often exhibit a performance trade-off (negative synergy) when jointly trained on comprehension and generation, Selftok demonstrates a clear positive synergy where dual-task training improves performance on both benchmarks.
Key Results
- State-of-the-Art Reconstruction: On 256×256 ImageNet, Selftok with 1,024 tokens achieves an rFID of 0.54 and a PSNR of 26.30, outperforming existing 1D tokenizers like TiTok and diffusion-decoder baselines like FlowMo.
- Unprecedented RL Gains: Applying visual RL to the SFT baseline triggered massive performance leaps on text-to-image alignment. On GenEval, the overall score jumped from 74 to 95, drastically outperforming CogView4-6B (73) and Janus-Pro-7B-Zero (85). Notably, the sub-task score for Position skyrocketed from 45 to 98.
- DPG-Bench Superiority: Selftok-Zero achieved an overall score of 85.57, surpassing specialized generation models like SD3-Medium (84.08) and Janus-Pro-7B (84.19).
Limitations and Future Work
- Generation Throughput: Generating images token-by-token using an LLM architecture is significantly slower than parallelized diffusion models. For instance, extending this to video generation presents a massive computational bottleneck (e.g., over 730k tokens for a 1-minute clip). The authors propose exploring spatial-temporal compression to mitigate this.
- Resolution Constraints: The current implementation is bounded to 256×256 resolutions. The authors note ongoing work on a "Multi-resolution Selftok" that scales up to 512×512 by reusing lower-resolution token extractions.
- Model Scale: At 8B parameters, the VLM has not yet been scaled sufficiently to observe potential emergent multimodal reasoning capabilities.
Summary updated