Harmonizing Visual Representations for Unified Multimodal Understanding and Generation

Size Wu, Wenwei Zhang, Lumin Xu, Sheng Jin, Zhonghua Wu +4 more
3/27/2025
cs.CV

Official code: wusize/Harmon (193 stars, last commit 2025-05-21).

Abstract

Unifying visual understanding and generation within a single multimodal framework remains a significant challenge, as the two inherently heterogeneous tasks require representations at different levels of granularity. Current approaches that utilize vector quantization (VQ) or variational autoencoders (VAE) for unified visual representation prioritize intrinsic imagery features over semantics, compromising understanding performance. In this work, we take inspiration from masked image modelling (MIM) that learns rich semantics via a mask-and-reconstruct pre-training and its successful extension to masked autoregressive (MAR) image generation. A preliminary study on the MAR encoder's representation reveals exceptional linear probing accuracy and precise feature response to visual concepts, which indicates MAR's potential for visual understanding tasks beyond its original generation role. Based on these insights, we present \emph{Harmon}, a unified autoregressive framework that harmonizes understanding and generation tasks with a shared MAR encoder. Through a three-stage training procedure that progressively optimizes understanding and generation capabilities, Harmon achieves state-of-the-art image generation results on the GenEval, MJHQ30K and WISE benchmarks while matching the performance of methods with dedicated semantic encoders (e.g., Janus) on image understanding benchmarks. Our code and models will be available at https://github.com/wusize/Harmon.

View on arXivView PDF

Code Implementations(1)

wusize/HarmonOfficial100%

[ICCV2025]Code Release of Harmonizing Visual Representations for Unified Multimodal Understanding and Generation

1936PythonMar 25, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{wu2025harmonizing,
  title  = {Harmonizing Visual Representations for Unified Multimodal Understanding and Generation},
  author = {Size Wu and Wenwei Zhang and Lumin Xu and Sheng Jin and Zhonghua Wu and Qingyi Tao and Wentao Liu and Wei Li and Chen Change Loy},
  year   = {2025},
  eprint = {2503.21979},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.21979v2}
}

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/2503.21979.svg)](https://codeofpaper.com/paper/2503.21979)

Discussion