arXiv:2507.23278cs.CV2025-07被引 40

用新训练法让CLIP同时懂图像、生成和编辑,小模型胜过大模型。

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

  • 分两阶段训练+自蒸馏,让CLIP学会高质量图像重建。
  • 10亿参数小模型在生成和编辑任务上超越70亿以上大模型。
  • 融合多模态上下文与可学习查询,提升生成一致性和推理能力。

本文提出UniLIP,一种适配CLIP的统一多模态理解、生成与编辑框架。尽管CLIP在理解方面表现优异,但缺乏重建能力,难以成为统一视觉编码器。此前基于CLIP的统一方法难以平衡理解与重建,导致语义退化或重建不一致。为此,我们设计了一种新颖的两阶段训练方案,结合自蒸馏策略,逐步赋予CLIP高保真重建能力,同时保持原有理解性能。为进一步增强生成与编辑中的推理能力与一致性,我们构建了基于MetaQuery框架的双条件架构,联合利用多模态隐状态提供丰富上下文细节,以及可学习查询嵌入以发挥多模态大模型的强大推理能力。借助先进的图像表征与架构设计,UniLIP展现出卓越的指令遵循与编辑保真度。仅使用10亿和30亿参数,其在GenEval(0.90)、WISE(0.63)和ImgEdit(3.94)上均达到领先水平,超越更大规模模型如BAGEL(7B)和Uniworld-V1(12B)。结果表明,UniLIP成功拓展了CLIP的应用边界,使其不仅适合作为理解任务的最优选择,也在生成与编辑任务中达到极具竞争力的表现。代码与模型已开源。

原文摘要 · Abstract (English)

In this paper, we propose UniLIP, a unified framework that adapts CLIP for multimodal understanding, generation and editing. Although CLIP excels at understanding, it lacks reconstruction abilities required to be a unified visual encoder. However, previous CLIP-based unified methods fail to balance understanding and reconstruction, leading to semantic degradation or inconsistent reconstructions. In contrast, we introduce a novel two-stage training scheme with a self-distillation strategy that progressively endows CLIP with high-fidelity reconstruction abilities while preserving its original comprehension performance. For enhanced reasoning and consistency in generation and editing, we further develop a dual-condition architecture built upon the MetaQuery framework. Our architecture jointly utilizes multimodal hidden states for rich contextual details and learnable query embeddings to harness the powerful reasoning abilities of Multimodal Large Language Models (MLLMs). Leveraging advanced image representation and architectural design, UniLIP demonstrates superior instruction following and edit fidelity. With only 1B and 3B parameters, UniLIP can outperform larger unified models such as BAGEL (7B) and Uniworld-V1 (12B), achieving state-of-the-art performance of 0.90 on GenEval, 0.63 on WISE, and 3.94 on ImgEdit. These results demonstrate that UniLIP successfully expands the application of CLIP, establishing its continuous features to not only serve as the optimal choice for understanding tasks but also achieve highly competitive performance in generation and editing tasks. Code and models are available at https://github.com/nnnth/UniLIP.

多模态CLIP生成编辑

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。