Model Merging in the Essential Subspace

Longhua Li, Lei Qi, Qi Tian, Xin GengCVPR 2026

TL;DR

The paper introduces Essential Subspace Merging (ESM), a novel framework that combines multiple task-specific fine-tuned models into a single multi-task model without any additional training. By analyzing activation shifts rather than raw weight matrices, ESM isolates a highly concentrated "essential subspace" that preserves critical task knowledge while drastically reducing inter-task interference.

What Problem Does This Paper Address?

Fine-tuning a large pre-trained model (like CLIP) on specific downstream tasks creates highly specialized expert models. However, deploying a separate model for every single task is computationally expensive. Model merging aims to solve this by blending multiple task-specific models into a single, versatile multi-task model without the cost of retraining or joint fine-tuning.

The primary obstacle in model merging is task interference: different tasks often push the model's parameters in conflicting directions. Recent advanced methods have used Singular Value Decomposition (SVD) to find low-rank subspaces to compress and merge these updates. However, the authors point out a major flaw: SVD is feature-agnostic. It looks only at parameter weights and ignores the actual distribution of input data. If the input tokens happen to align with the truncated (discarded) singular vectors, the model suffers massive performance drops because functionally critical information was thrown away.

Methods

To overcome the limitations of traditional SVD, the authors propose two core techniques:

1. Essential Subspace Decomposition (ESD)

Instead of directly decomposing the task weight matrix, ESD passes a tiny proxy dataset (just 32 unlabeled samples) through the model to observe the activation shifts caused by the fine-tuning updates. It then performs Principal Component Analysis (PCA) on these activation shifts.

This shifts the perspective from parameter energy to functional impact. The resulting principal directions form an "essential subspace" directly tied to the output feature space. When components are truncated here, the mathematical error is entirely decoupled from the input distribution, ensuring maximum knowledge retention with fewer components.

Figure 1. Essential Subspace Decomposition (ESD) versus Singular Value Decomposition (SVD). Unlike SVD, which decomposes the task matrix solely based on weights, ESD decomposes them based on feature shift distributions. When truncating components for merging, ESD’s expected truncation error is directly related to the magnitude of the discarded eigenvalues and yields higher knowledge retention.

2. Polarized Scaling (PS)

Even within the essential subspace, intense competition between multiple tasks during fusion can overwhelm critical knowledge. The authors observed that the magnitude (norm) of parameter updates reflects directional confidence and inter-task consensus.

They introduced a three-level Polarized Scaling mechanism that adaptively rescales the task matrices across three hierarchies:

  • Inter-Task Scaling: Prevents important task signals from being masked by noise from competing tasks.
  • Inter-Dimension Scaling: Focuses representation on input dimensions effective for every task.
  • Inter-Layer Scaling: Mitigates inter-layer competition introduced by residual connections.

This polarization amplifies high-norm (strong-signal) components while suppressing low-norm (weak-noise) components.

Datasets

The authors evaluated ESM using three variants of the CLIP model (ViT-B/32, ViT-B/16, and ViT-L/14) across three multi-task benchmarks:

  • 8-Task Benchmark: Cars, DTD, EuroSAT, GTSRB, MNIST, RESISC45, SUN397, and SVHN.
  • 14-Task Benchmark: Adds CIFAR100, STL10, Flowers102, OxfordIIITPet, PCAM, and FER2013.
  • 20-Task Benchmark: Further incorporates EMNIST, CIFAR10, Food101, FashionMNIST, RenderedSST2, and KMNIST.

Key Insights and Ideas

  • SVD is Blind to Data: Traditional low-rank merging minimizes weight reconstruction error but provides no guarantees for preserving functional output. ESD proves that data-driven subspace selection is far superior for maintaining task fidelity.
  • High-Norm Updates are Consensus Directions: Prioritizing updates with larger norms yields superior merged performance. These high-norm components represent consistent, task-aligned directions in the optimization landscape—essentially acting as an inter-task consensus.
Performance under different layer-wise task matrix loading orders
  • Insensitivity to Proxy Data Distribution: Remarkably, ESM is highly robust to the composition of the proxy dataset. It achieves stable performance even under extreme class imbalances or when using completely out-of-distribution data (like ImageNet-1k) as a proxy.

Key Results

ESM achieves state-of-the-art performance across all benchmark settings and model scales, narrowing the gap between merged models and individual expert models:

  • On the challenging 20-task benchmark using ViT-B/32, ESM achieved an absolute accuracy of 81.3% (88.9% normalized), significantly outperforming baseline Weight Averaging (61.0%) and advanced SVD methods like Iso-CTS (78.1%).
  • On the larger ViT-L/14 model (20 tasks), ESM reached 90.4% absolute accuracy, coming incredibly close to the single-task fine-tuned upper bound of 94.7%.
  • Minimal Overhead: The forward pass for the 32 proxy samples takes less than 0.06 seconds per task, making the data-aware alignment highly efficient.

Limitations and Future Work

While Polarized Scaling successfully eliminates the need for a validation set to determine layer-wise scaling coefficients (unlike competing methods like LiNeS), the final merged model still relies on a global scaling hyperparameter ($\alpha$) that must be tuned on a held-out validation set.

Additionally, the current evaluation is focused on vision-language encoders (CLIP). Extending this data-aware essential subspace approach to autoregressive Large Language Models (LLMs) remains an open and promising direction for future research.

Summary updated

BibTeX
@inproceedings{li2026model,
  author = {Longhua Li and Lei Qi and Qi Tian and Xin Geng},
  title = {{Model Merging in the Essential Subspace}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=DuHtP5Nz5f},
}
Figure