UniLiP: Adapting CLIP for Unified Multimodal Understanding, Generation and Editing

Hao Tang, Chen-Wei Xie, Xiaoyi Bao, Tingyu Weng, Pandeng Li, Yun Zheng, Liwei Wang

This paper introduces UniLIP, a novel framework designed to transform CLIP—the gold standard for image understanding—into a versatile, unified model capable of high-fidelity image generation and editing. By bridging the gap between multimodal comprehension and pixel-level generation, UniLIP establishes a new benchmark for unified vision-language models.

The Unification Gap: Understanding vs. Generation

In the landscape of Multimodal Large Language Models (MLLMs), researchers face a persistent "unification gap" between two distinct types of models:

  1. Understanding Models (e.g., CLIP): These excel at capturing high-level semantics but are largely "blind" to fine-grained pixel details. They naturally discard texture and exact spatial positioning to focus on broader concepts.
  2. Generation Models (e.g., Diffusion Transformers): These require exact pixel-level details to produce stable, consistent, and high-fidelity images.

Previous attempts to unify these tasks have typically faltered. Methods that quantize CLIP features (like VILA-U) suffer from semantic degradation, losing the model's core comprehension power. Conversely, methods that attach a diffusion decoder to a frozen CLIP (like Emu2) often result in inconsistent, "hallucinated" reconstructions because the frozen features lack sufficient structural detail.

Comparison of UniLIP against previous unified methods

The UniLIP Approach

To endow CLIP with robust reconstruction abilities while preserving its world-class comprehension, the authors introduce two primary architectural innovations:

1. Two-Stage Training with Self-Distillation

To prevent "catastrophic forgetting"—where CLIP learns to reconstruct pixels but forgets high-level semantic concepts—UniLIP employs a two-stage training scheme:

  • Stage 1 (Alignment): The CLIP encoder is frozen, and only a pixel decoder is trained to reconstruct images from CLIP’s features. While this initially produces blurry images, it successfully "locates" latent structural details.
  • Stage 2 (Refining): The CLIP encoder is unfrozen, but a self-distillation loss is applied. The original frozen CLIP acts as a "teacher," ensuring the newly generative CLIP does not drift away from its original semantic distribution. By setting the learning rate of CLIP to 0.1x the global rate and using MSE distillation, the model achieves a rare feat: it actually improves its understanding scores after learning to generate images.

2. Dual-Condition Architecture

Most unified models rely on fixed-length "query embeddings" to bridge the LLM and the image generator. However, this bottleneck often fails to capture the complex background details needed for precise image editing. UniLIP solves this using a Dual-Condition setup:

  • Multimodal Hidden States: These provide rich, spatial contextual details directly from the reference image, ensuring lossless information propagation for unedited regions.
  • Learnable Query Embeddings: These harness the LLM’s reasoning capabilities to follow complex, text-based instructions (e.g., "Replace the bird with a squirrel").

Datasets and Evaluation

UniLIP was pre-trained on a massive mixture of 27M recaptioned samples from BLIP3-o, 5M samples from CC12M, and 4M synthetic images from JourneyDB. For instruction and editing tuning, it utilized 60K high-quality GPT-4o generated pairs, 1.5M editing samples from GPT-Image-Edit, and 46K samples from ShareGPT-4o-Image.

The model was rigorously evaluated across multiple domains, including GenEval (compositional generation), WISE (world knowledge reasoning), ImgEdit (editing fidelity), and standard understanding benchmarks like MMBench and SEED.

Key Results

UniLIP achieves state-of-the-art (SOTA) results across the board, frequently outperforming models several times its size:

  • Generation: On GenEval, UniLIP-3B scored 0.90, surpassing the 7B-parameter BAGEL (0.82) and even specialized models like SD3-Medium.
  • Editing: On ImgEdit, it achieved a remarkable score of 3.94, significantly higher than OmniGen2 (3.44) and UniWorld-V1 (3.26).
  • Understanding: Unlike previous unified models that experience a performance dip, UniLIP-3B saw slight gains on benchmarks like MMVP (68.7 vs. 67.3) and AI2D (70.7 vs. 69.4) compared to its base InternViT model.
  • Efficiency: UniLIP is significantly faster at inference than autoregressive unified models (like Janus-Pro), requiring fewer sampling steps to achieve high-quality outputs.

Limitations and Future Work

While highly capable, UniLIP currently operates at a maximum resolution of 448x448, which trails the 1024px+ standards of commercial models like Midjourney. Additionally, like many diffusion-based models, it still struggles with rendering complex, accurate text within images. Future work will focus on scaling the model beyond 3B parameters and increasing the native resolution to further enhance its fine-grained editing capabilities.

Summary updated

BibTeX
@inproceedings{tang2026unilip,
  author = {Hao Tang and Chen-Wei Xie and Xiaoyi Bao and Tingyu Weng and Pandeng Li and Yun Zheng and Liwei Wang},
  title = {{UniLiP: Adapting CLIP for Unified Multimodal Understanding, Generation and Editing}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=6tx4BGjwJP},
}
Figure