MergeVQ: A Unified Framework for Visual Generation and Representation with Disentangled Token Merging and Quantization

Siyuan Li, Luyuan Zhang, Zedong Wang, Juanxi Tian, Cheng Tan +6 more
2/10/2026

No official code found. Best implementation: ApexGen-X/MergeVQ (51 stars, Apache-2.0, last commit 2025-07-22).

Abstract

Masked Image Modeling (MIM) with Vector Quantization (VQ) has achieved great success in both self-supervised pre-training and image generation. However, most existing methods struggle to address the trade-off in shared latent space for generation quality vs. representation learning and efficiency. To push the limits of this paradigm, we propose MergeVQ, which incorporates token merging techniques into VQ-based generative models to bridge the gap between image generation and visual representation learning in a unified architecture. During pre-training, MergeVQ decouples top-k semantics from latent space with the token merge module after self-attention blocks in the encoder for subsequent Look-up Free Quantization (LFQ) and global alignment and recovers their fine-grained details through cross-attention in the decoder for reconstruction. As for second-stage generation, we introduce MergeAR, which performs KV Cache compression for efficient raster-order prediction. Extensive experiments on ImageNet verify that MergeVQ as an AR generative model achieves competitive performance in both visual representation learning and image generation tasks while maintaining favorable token efficiency and inference speed. Code and model will be available at https://apexgen-x.github.io/MergeVQ.

View on arXivView PDF

Code Implementations(1)

ApexGen-X/MergeVQCommunity100%
Apache-2.0

[CVPR'25] MergeVQ: A Unified Framework for Visual Generation and Representation with Token Merging and Quantization

513HTML, ShellMar 24, 20251 years agoApache-2.0
deep-learningimage-generationimagenetmachine-learningrepresentation-learning+1 more

Similar Papers

Cite this paper

@article{li2026mergevq,
  title  = {MergeVQ: A Unified Framework for Visual Generation and Representation with Disentangled Token Merging and Quantization},
  author = {Siyuan Li and Luyuan Zhang and Zedong Wang and Juanxi Tian and Cheng Tan and Zicheng Liu and Chang Yu and Qingsong Xie and Haonan Lu and Haoqian Wang and Zhen Lei},
  year   = {2026},
  eprint = {2504.00999},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2504.00999},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.00999.svg)](https://codeofpaper.com/paper/2504.00999)

Discussion