arXiv:2611.09655cs.CVNov 2026

Manuscript Offprint

arXiv:2611.09655

Decoupled Mode Connectivity for Base-to-Novel Generalization in Vision-Language Models

Imad Eddine Marouf, Khalid Oublal, Enzo Tartaglione, Stéphane Lathuilière

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Prompt learning adapts vision-language models such as CLIP by optimizing a short learnable prompt. The cross-entropy objective pulls this prompt toward base-class specialization, whereas generalization to unseen classes benefits from staying close to CLIP's zero-shot feature space. Because both objectives act on the same prompt, their gradients conflict at convergence, and in our experiments no single-prompt loss design clearly improves on the cosine baseline. We propose Decoupled Mode Connectivity (DMC), which gives each objective its own prompt. Starting from a base-trained prompt, DMC trains a specialization prompt and a generalization prompt, and merges their text features with a fixed coefficient at test time, at the inference cost of a single prompt. A linear mode connectivity (LMC) corridor in text-feature space keeps the classification loss low for every classifier interpolated between the two endpoints, and a Visual Anchor KL term preserves CLIP's zero-shot class-similarity distribution of each image during specialization. We further argue that such regularizers should satisfy class-permutation invariance (CPI), and show via Fano's inequality, in an idealized model, that violating CPI lower-bounds the drop in novel accuracy by a term proportional to the mutual information between the prompt and the base-class labels. Across 11 datasets, DMC improves the average harmonic mean of base and novel accuracy over MERGETUNE for both CoOp and KgCoOp, and its interpolation curves pass beyond the single-prompt operating point, shifting the base–novel frontier rather than trading along it. Code is available at https://github.com/IemProg/DMC.

1 Introduction

Vision-language models such as CLIP [Radford et al., 2021] acquire broad zero-shot recognition through large-scale pretraining on image-text pairs, and prompt learning [Zhou et al., 2022b,a, Yao et al., 2023, Khattak et al., 2023a,b, Yang et al., 2024] adapts these models to downstream tasks with very few additional parameters. This adaptation comes with a tension between two objectives: supervised training on base classes pushes the learned prompt toward base-class discriminative directions, while generalization to unseen (novel) classes benefits from keeping the prompt close to CLIP's pretrained feature space. Fine-tuning on base classes thus erodes part of CLIP's zero-shot ability to recognize the novel classes, which are absent from the fine-tuning data.

Existing methods address this tension with regularizers that anchor the prompt to the zero-shot model. Cosine penalties pull the learned text features toward CLIP's frozen text features [Yao et al., 2023, Wang et al., 2026]; self-distillation constraints preserve CLIP's predictions during fine-tuning [Khattak et al., 2023b, Roy and Etemad, 2024]; and linear mode connectivity (LMC) paths enforce smooth transitions between fine-tuned and zero-shot solutions [Wang et al., 2026]. These designs differ in form, but share a common structure: a single prompt optimized under a sum of cross-entropy and a

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

regularization term. We argue that this shared structure, not the choice of regularizer, is the bottleneck. At a converged single prompt, the gradients of the two terms point in opposing directions on all eight dataset-baseline pairs we measure (four datasets, CoOp and KgCoOp; Figure 4), so the prompt sits at a compromise where reweighting the terms only moves along a trade-off. Consistently, none of seven single-prompt variants we test, including Fisher-weighted regularization and self-distillation, improves on the cosine baseline by clearly more than returning its weight (Appendix E).

We propose Decoupled Mode Connectivity (DMC), which changes the parameterization instead of the loss. DMC builds on MERGETUNE [Wang et al., 2026], a continued-training stage that refines a fine-tuned prompt with cross-entropy, a cosine regularizer toward CLIP's zero-shot text features, and an LMC path back to the fine-tuned model. DMC replaces this single refined prompt with two: a specialization prompt cspecc_{spec} trained with cross-entropy and a generalization prompt cgenc_{gen} trained with the regularizer. Each can then move toward its own optimum, and an LMC corridor in CLIP's text-feature space makes every mixture of the two a good base-class classifier. At test time, DMC merges the two text features once with a fixed coefficient, so inference costs the same as with a single prompt. Unlike post-hoc interpolation such as WiSE-FT [Wortsman et al., 2022b] or training-free merging [Yadav et al., 2023, Yu et al., 2024], the two prompts are trained jointly so that the path between them has low loss; training-free merging lowers HM in our experiments (Section 4.2). Figure 1 illustrates this geometry on Flowers102.

Freed from the cosine regularizer, the specialization prompt still needs a way to retain CLIP's knowledge. We argue that any regularizer used for this should be class-permutation invariant (CPI): it should not depend on which classes happen to be in the base set, because it must transfer to classes it never sees. The cosine regularizer is CPI but would pull cspecc_{spec} back to the zero-shot features; in an idealized model a CPI violation lower-bounds the drop in novel accuracy. Following this principle, DMC regularizes cspecc_{spec} with a label-free Visual Anchor (VA), a KL term that preserves CLIP's zero-shot class-similarity distribution of each image.

Our contributions are:

(1) We introduce Decoupled Mode Connectivity (DMC), which assigns the specialization and generalization objectives to two prompts coupled by an LMC corridor in CLIP's text-feature space, at the inference cost of a single prompt (Section 3).

(2) We argue that regularizers should satisfy class-permutation invariance (CPI), show in an idealized model that a CPI violation lower-bounds the drop in novel accuracy (Proposition 1), and use this principle to design the Visual Anchor.

(3) Across 11 datasets, DMC improves the average harmonic mean (HM) of base and novel accuracy over MERGETUNE by +0.78 (CoOp) and +0.33 (KgCoOp), with gains on 9 and 8 of the 11 datasets, and its interpolation curves pass beyond the single-prompt operating point (Section 4, Figure 2).

The gains require the two prompts to stay distinct. On the adapter-based MMA [Yang et al., 2024], their text features nearly coincide ( cos⁡≈0.99\cos \approx 0.99) and the regularizer and VA no longer help, which delimits the scope of DMC (Appendix H).