通过解耦令牌合并提升生成与表征统一性能
MergeVQ: A Unified Framework for Visual Generation and Representation with Disentangled Token Merging and Quantization
- 在编码器中用令牌合并解耦语义,实现无查找量化和全局对齐
- 解码器通过交叉注意力恢复细节,生成质量与表征能力双提升
- 支持高效逐像素生成,适合需要高效率视觉生成的场景
基于向量量化(VQ)的掩码图像建模(MIM)在自监督预训练和图像生成中取得显著进展。然而,现有方法难以平衡生成质量与表征学习、效率之间的权衡。为此,我们提出MergeVQ,将令牌合并技术引入VQ生成模型,在统一架构中弥合图像生成与视觉表征学习的差距。预训练阶段,合并模块在编码器自注意力后解耦top-k语义,实现无查找量化(LFQ)与全局对齐,并在解码器通过交叉注意力恢复细粒度细节以完成重建。第二阶段生成采用MergeAR,通过压缩键值缓存实现高效的栅格顺序预测。ImageNet上的大量实验表明,MergeVQ作为自回归生成模型,在视觉表征学习与图像生成任务中均达到竞争力表现,同时保持优异的令牌效率与推理速度。
原文摘要 · Abstract (English)
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 the 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. The code and model will be available at https://apexgen-x.github.io/MergeVQ.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。