Harmonizing and Merging Source Models for CLIP-based Domain Generalization

Yuhe Ding, Jian Liang, Bo Jiang, Zi Wang, Aihua Zheng +1 more
6/11/2025
cs.CV
lora-peft-merging

No confident code implementation found for this paper.

Abstract

CLIP-based domain generalization aims to improve model generalization to unseen domains by leveraging the powerful zero-shot classification capabilities of CLIP and multiple source datasets. Existing methods typically train a single model across multiple source domains to capture domain-shared information.

Show full abstract

However, this paradigm inherently suffers from two types of conflicts: 1) sample conflicts, arising from noisy samples and extreme domain shifts among sources; and 2) optimization conflicts, stemming from competition and trade-offs during multi-source training. Both hinder the generalization and lead to suboptimal solutions. Recent studies have shown that model merging can effectively mitigate the competition of multi-objective optimization and improve generalization performance. Inspired by these findings, we propose Harmonizing and Merging (HAM), a novel source model merging framework for CLIP-based domain generalization. During the training process of the source models, HAM enriches the source samples without conflicting samples, and harmonizes the update directions of all models. Then, a redundancy-aware historical model merging method is introduced to effectively integrate knowledge across all source models. HAM comprehensively consolidates source domain information while enabling mutual enhancement among source models, ultimately yielding a final model with optimal generalization capabilities. Extensive experiments on five widely used benchmark datasets demonstrate the effectiveness of our approach, achieving state-of-the-art performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ding2025harmonizing,
  title  = {Harmonizing and Merging Source Models for CLIP-based Domain Generalization},
  author = {Yuhe Ding and Jian Liang and Bo Jiang and Zi Wang and Aihua Zheng and Bin Luo},
  year   = {2025},
  eprint = {2506.09446},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.09446v1}
}

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

Discussion