Separating Common and Unique Directions for Model Merging

Shiting Wang, Yingjie Zou, Ke Li

TL;DR

Imagine trying to combine a coding model, a math model, and a multilingual model into one generalist brain—using only basic math on their weights and zero training data. Existing "model merging" recipes treat every individual parameter the same, causing specialized skills to clash and wash each other out. This paper introduces a clever geometric pre-processing step called CUSD that untangles shared knowledge from task-specific quirks before merging, giving existing merging algorithms an instant, substantial boost across vision, text, and large language models.

What Problem Does This Paper Address?

Suppose you have a base model (like Llama or ViT) and several checkpoints fine-tuned by different teams on different tasks. Training a single multi-task model from scratch is expensive, and you might not even have access to the original private training datasets. Enter data-free arithmetic model merging. You simply subtract the base weights from each fine-tuned model to get "task vectors" ($\tau_i = \theta_i - \theta_{\text{base}}$), and combine them using simple element-wise rules—adding them up, pruning small values, or resolving sign conflicts.

The catch? Merged models still noticeably lag behind the individual specialists due to inter-task interference. The authors pinpoint why: standard arithmetic rules operate blindly on individual scalar coordinates. Yet in matrix-structured neural network layers, knowledge lives in coordinated directions, not isolated numbers. Applying one uniform rule everywhere either dilutes fiercely task-specific signals or injects them as destructive noise into broadly shared updates.

Methods

Instead of inventing yet another merging rule, the authors build Common–Unique Subspace Decomposition (CUSD), a plug-and-play pre-merging filter that runs once on model weights and pairs with any downstream arithmetic merger (like Task Arithmetic, TIES, DARE, or Consensus).

Overview of the CUSD pipeline separating common subspaces and unique residuals before merging.

Here is how CUSD works layer by layer:

  1. Find a Shared Compass: Standard Singular Value Decomposition (SVD) gives every task its own incompatible coordinate system. Instead, CUSD uses a regularized Higher-Order Generalized SVD (HO-GSVD) construction to project all $K$ task matrices into a single, shared orthogonal basis $V$. Now, every task's update magnitude ("directional energy") can be compared apples-to-apples along the exact same directions.
  2. Score and Split: For each direction, CUSD calculates the standard deviation of energy across tasks (either absolute, or relative to the direction's mean energy). A Kernel Density Estimation (KDE) algorithm automatically finds the "valley" in this score distribution, cleanly splitting directions into a Common subspace (used evenly by all tasks) and a Unique residual subspace (dominated by one or a few tasks).
  3. Divide and Merge: The chosen arithmetic merging operator $\mathcal{F}$ is applied only to the harmonious Common components. Meanwhile, the feisty Unique residuals bypass the merger entirely—they are simply summed and dialed in via a single scalar knob $\beta \in [0, 1]$: $$\tau_m = \mathcal{F}(C_1, \dots, C_K) + \beta \sum_{i=1}^K R_i$$

Datasets

No new benchmarks are introduced; the authors evaluate across established multi-task model-merging suites spanning three domains:

  • Vision (CLIP ViT-B/32, ViT-B/16, ViT-L/14): Eight standard image-classification datasets.
  • Natural Language Understanding (RoBERTa-Base & Large): Eight GLUE benchmark tasks.
  • Generative LLMs (Llama-3.2-3B, Llama-3.1-8B, Instruct variants, and Gemma-2-2b/9b): MergeBench tasks covering coding, math, and multilingual capabilities.

Key Insights and Ideas

Task vectors exhibit a low-dispersion bulk of shared directions and a small high-dispersion tail carrying massive energy.

Figure 1: Direction-level heterogeneity in task vectors. Motivating examples from representative matrix layers of Llama-3.2-3B (mlp.gate_proj) and ViT-B/16 (mlp.c_proj). (a, c) Distribution of cross-task dispersion scores over shared directions. (b, d) Share of total directional energy in each dispersion-ranked decile.
  • The "Two-Regime" Geometry of Task Vectors: When viewed in a shared basis, neural network updates aren't uniform. Most directions form a quiet, low-dispersion bulk shared across tasks. However, a tiny high-dispersion tail—dominated by specific tasks—carries a massive chunk of the update energy (e.g., the top 10% most imbalanced directions hold 53% of total energy in a Llama-3B layer and 77% in ViT-B/16). These tails aren't noise; they are concentrated, task-specific heavy lifters that wreck naive merges.
  • Encoders vs. Decoders Treat Uniqueness Differently: In encoder models (ViT, RoBERTa), unique directions are ultra-sparse (<1% of directions) yet pack 12–20% of the energy. Setting $\beta = 0$ (discarding them) works best because adding them back immediately reintroduces interference. Conversely, decoder LLMs spread 17–81% of their energy across a much larger unique subspace; throwing it away erases generative skills, so LLMs thrive with moderate retention ($\beta \in [0.2, 0.5]$).
  • Scale Hides Imbalance in LLMs: In LLMs, many moderate-energy directions look balanced in raw numbers, hiding the fact that one task completely dominates them. Switching from absolute to relative dispersion scoring exposes these undercover specialists and boosts LLM merging.

Key Results

  • Near-Universal Gains: Paired with four standard arithmetic operators across 11 base models, CUSD improves 42 out of 44 combinations (with 1 tie and 1 tiny 0.3-point dip), achieving up to a +22.5 normalized point jump on RoBERTa-Large (with TIES-Merging) and ~12-point average gains on ViT-B models.
  • Measurable Interference Drop: Using a normalized parameter-space interference metric on ViT backbones, CUSD reduces cross-task interference by 9.0% to 10.2% across blocks.
  • Blink-and-You-Miss-It Compute Cost: Because CUSD depends only on task vectors, its basis decomposition is a one-time, reusable upfront cost—taking just 16.3 seconds (1.1 GB VRAM) for ViT-B/16 across 8 tasks, and 217.2 seconds (15.4 GB VRAM) for Llama-3.1-8B across 3 tasks.

Limitations and Future Work

Not explicitly discussed in a dedicated section in the main text. However, a few scope boundaries are apparent from the experiments:

  • CUSD operates specifically on matrix-structured linear layers rather than 1D parameters (like biases or layer norms).
  • Optimal configuration is not entirely hyperparameter-free across architectures: encoder models favor absolute dispersion scoring with $\beta = 0$, whereas generative decoder LLMs require relative dispersion scoring and a tuned $\beta \in [0.2, 0.5]$ to preserve task-specific generation capabilities.
  • When paired with non-arithmetic subspace/covariance methods (like WUDI and ACE-Merging), CUSD consistently helps LLMs, though results on vision and text encoders are mixed.

Summary updated

Abstract

Model merging combines multiple fine-tuned models without additional training, and arithmetic methods have emerged as a simple yet effective way to merge models without data. However, existing arithmetic methods treat task vectors in parameter space and apply a single element-wise rule to directions that can differ in mergeability. In a shared directional basis, we find a consistent two-regime structure: a low-dispersion common bulk shared across tasks and a high-dispersion task-dominated tail that carries disproportionate energy. These findings motivate Common--Unique Subspace Decomposition (CUSD), a data-free pre-merging method that separates task vectors into common and unique directional components, merges the common components with a downstream arithmetic operator, and retains unique residuals separately. Experiments across 11 base models, four model families, and four arithmetic-based merging operators show that CUSD improves 42 of 44 model--operator combinations and achieves up to 22.5% improvement over the corresponding baselines. Our code is publicly available at https://github.com/stwang666/CUSD
BibTeX
@inproceedings{wang2026separating,
  author = {Shiting Wang and Yingjie Zou and Ke Li},
  title = {{Separating Common and Unique Directions for Model Merging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=rvKcBnoRlt},
}
Figure