TokenFlow: Unified Image Tokenizer for Multimodal Understanding and Generation
Abstract
We present TokenFlow, a novel unified image tokenizer that bridges the long-standing gap between multimodal understanding and generation. Prior research attempt to employ a single reconstruction-targeted Vector Quantization (VQ) encoder for unifying these two tasks. We observe that understanding and generation require fundamentally different granularities of visual information. This leads to a critical trade-off, particularly compromising performance in multimodal understanding tasks. TokenFlow addresses this challenge through an innovative dual-codebook architecture that decouples semantic and pixel-level feature learning while maintaining their alignment via a shared mapping mechanism. This design enables direct access to both high-level semantic representations crucial for understanding tasks and fine-grained visual features essential for generation through shared indices. Our extensive experiments demonstrate TokenFlow's superiority across multiple dimensions. Leveraging TokenFlow, we demonstrate for the first time that discrete visual input can surpass LLaVA-1.5 13B in understanding performance, achieving a 7.2\% average improvement. For image reconstruction, we achieve a strong FID score of 0.63 at 384*384 resolution. Moreover, TokenFlow establishes state-of-the-art performance in autoregressive image generation with a GenEval score of 0.55 at 256*256 resolution, achieving comparable results to SDXL.
Community
project page: https://byteflow-ai.github.io/TokenFlow/
github repo: https://github.com/ByteFlow-AI/TokenFlow
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Taming Scalable Visual Tokenizer for Autoregressive Image Generation (2024)
- MUSE-VL: Modeling Unified VLM through Semantic Discrete Encoding (2024)
- Factorized Visual Tokenization and Generation (2024)
- Janus: Decoupling Visual Encoding for Unified Multimodal Understanding and Generation (2024)
- PUMA: Empowering Unified MLLM with Multi-granular Visual Generation (2024)
- Image Understanding Makes for A Good Tokenizer for Image Generation (2024)
- High-Resolution Image Synthesis via Next-Token Prediction (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper