arXiv:2610.01625cs.CVOct 2026

Manuscript Offprint

arXiv:2610.01625

Beyond Domain-Level Adaptation: Margin-Oriented Semantic-Appearance Interaction Correction for Personalized Federated Vision-Language Models

Wentao Yue, Qingyu Mao, Tianyou Lai, Ahmed M. Abdelmoniem, Qilei Li

Abstract

Federated parameter-efficient fine-tuning enables distributed clients to adapt pretrained vision-language models without sharing raw data or updating the full backbone. Its effectiveness, however, is limited by domain heterogeneity across clients. Existing personalized methods separate globally shared knowledge from client-specific style, but they largely treat each domain as a class-agnostic transformation. We show that this abstraction is insufficient: the cross-domain displacement associated with a fixed domain varies across semantic classes, and only a subset of these class-domain residuals damages the image-text decision margin. We therefore propose Margin-Oriented Semantic-Appearance Interaction Correction (MOSAIC), which first constructs a decision-aware harmfulness score that measures whether a training-derived class-domain residual favors a competing text prototype over the true class. It then models fine-grained class-domain interactions with a low-rank residual adapter whose class factors and residual basis are globally shared while domain factors remain client-private. An image-conditioned gate further controls candidate-wise correction, and harmful-pair-aware reweighting prioritizes decision-relevant residuals during local optimization. Extensive experiments on Office31, OfficeHome, and DomainNet100 demonstrate that MOSAIC consistently improves macro-client top-1 accuracy across all evaluated domain-shift and joint domain-label-shift settings.

Introduction

Pretrained vision-language models (VLMs), such as Contrastive Language–Image Pre-training (CLIP) (Radford et al. 2021), acquire transferable visual concepts through large-scale image-text alignment. The zero-shot CLIP classifier uses this alignment without downstream adaptation and provides an unadapted reference for prompt-based methods. Parameter-efficient fine-tuning (PEFT) adapts this knowledge to downstream tasks by updating only compact prompts or adapters while keeping the backbone frozen. Prompt-learning methods, including CoOp (Zhou et al. 2022b) and its conditional extension CoCoOp (Zhou et al. 2022a), demonstrate that a small number of learned context tokens can effectively adapt a frozen VLM. Combining PEFT with federated learning (FL) yields an efficient and privacy-conscious paradigm in which distributed clients collaboratively adapt a VLM without exchanging their raw images. This combination is particularly attractive for multi-source visual recognition.

Figure

Figure 1: Motivation of MOSAIC. Existing personalized federated VLM tuning usually treats each domain as a class-agnostic style, while the same domain can shift different semantic classes differently and only some class-domain residuals harm the decision margin.

tion, where data ownership and communication cost prevent centralized training.

The main obstacle is client heterogeneity. Images collected by different clients may differ in acquisition conditions, rendering conventions, and background statistics, producing domain-dependent feature distributions (Yue et al. 2026; Li et al. 2026). Classical federated optimization addresses this mismatch with a shared model (FedAvg (McMahan et al. 2017)) or by constraining local updates around the global solution (FedProx (Li et al. 2020)). Personalized FL instead preserves client-specific parameters, for example local normalization statistics in FedBN (Li et al. 2021) or private prediction heads in FedRep (Collins et al. 2021). These approaches are valuable foundations, but they do not specify how a frozen image-text representation should distinguish transferable semantic structure from domain-dependent visual variation. Personalized federated VLM fine-tuning mitigates this problem by separating globally shared knowledge from client-private style. For example, FedDDA (Yang et al. 2025) decouples global and local textual prompts and combines shared and client-specific visual adapters through a dynamic gate. However, this family of designs makes a coarse modeling choice: it treats a domain as a client-level, largely class-agnostic transformation.

Our starting observation is that this abstraction leaves a structured residual. A domain does not act identically on every semantic class: a sketch changes a dog's fur, pose, and curved contours differently from how it changes a chair's geometry, straight edges, and viewpoint. Thus, after accounting for class semantics and a common domain effect, the displacement of class c in domain d still contains a class-conditioned domain residual. Figure 1 summarizes the resulting gap: the upper panel shows the class-agnostic shared/private decomposition used by existing personalized VLM tuning, the lower-left panel illustrates class-dependent visual changes within one domain, and the lower-right panel distinguishes residuals that reduce the true-versus-competitor margin from harmless ones. Figure 2 expands this observation to all six DomainNet rendering domains using dog and chair as representative classes. Across a row, one class shifts differently across domains; down a column, one domain shifts dog and chair differently. A class-agnostic domain vector would produce aligned class shifts, but these different directions reveal a class-domain interaction.

Feature-space evidence makes the diagnosis quantitative. In the left panel of Figure 3, the shifts of four classes into the sketch domain point in different directions, and one shared shift cannot reconstruct them. This verifies that the residual is not merely a visual anecdote. Yet a geometric residual alone does not specify what to correct: the dog residual is visible but does not damage classification, whereas the residuals of chair, bush, and chandelier move their features toward competing text prototypes. We therefore score each class-domain residual by how strongly it favors the most competitive incorrect text prototype over the true class; the exact definition is given in Eq. 8. The right panel yields our second key finding: only decision-harmful class-domain residuals should be corrected. Principal component analysis (PCA) is used only for visualization; all residual and margin calculations use the original VLM feature space.

These two findings expose three requirements. First, a correction must represent the interaction between semantic class and local domain rather than adding one domain vector to every class. Second, it must be decision-aware, because residual norm is not equivalent to classification harm. Third, in a federated system it must preserve transferable class structure without averaging away client-private domain effects, and it must avoid perturbing samples whose residuals are harmless.

To meet these requirements, we propose MOSAIC, a decision-aware residual framework for personalized federated VLM tuning. Its factorized adapter represents class-domain residuals through a shared low-rank basis and compact class and private-domain coefficients, avoiding an independent high-dimensional vector for every pair. Its harmfulness score measures the change in the true-versus-competitor text margin and drives harmful-pair-aware local optimization. Finally, MOSAIC aggregates only shared class-side structure and uses an image-conditioned, candidate-wise gate to subtract a residual only when it is useful. The design therefore turns the problem discovery into a targeted correction mechanism while preserving the parameter efficiency of compact textual and visual adaptation.

Our contributions are summarized as follows:

• We identify harmful class-conditioned domain drift as an overlooked source of degradation in personalized federated VLM fine-tuning, and formulate it as the class-domain interaction that remains beyond class semantics and a common domain effect.

• We introduce a decision-aware harmfulness score that measures whether a class-domain residual reduces the image-text classification margin, avoiding the unreliable assumption that larger residuals are more harmful.

• We develop MOSAIC, a low-rank factorized residual adapter with globally shared class structure, client-private domain factors, image-conditioned candidate-wise correction, and harmful-pair-aware local optimization.

References (27)