S²MoE: Shared-Subspace Mixture of Sparse Experts for Model Merging

Feihong He, Anke Tang, Enneng Yang, Hao Jiang, Guojie Zhu, Gang Li, Xiaochun Cao, Li ShenNeurIPS 2026

TL;DR

Suppose you have eight fine-tuned models, each brilliant at one specific task, and you want to fuse them into a single multi-task master without retraining or touching any data. Current state-of-the-art merging methods compress and align model weights using Singular Value Decomposition (SVD), which accidentally throws away crucial task-specific nuances. $\text{S}^2\text{MoE}$ rescues those discarded nuances by packing them into ultra-lightweight sparse "experts" and routing inputs to them on the fly using pure geometry—no training required.

What Problem Does This Paper Address?

In modern deep learning, we constantly fine-tune base models for specific downstream tasks, leaving us with a fleet of specialized models. Model merging tries to combine their weights directly in parameter space—often using task vectors (the weight differences between a fine-tuned model and its pretrained parent)—to create one unified model for free.

The catch? Parameter interference. When you mash weights together, tasks step on each other's toes. Recent state-of-the-art methods like Task Singular Vector Merge (TSVM) tackle this by applying SVD to task vectors, keeping only the top singular components, and orthogonalizing them so they don't clash. However, to keep the merged model the same size when merging $N$ tasks, these methods only keep $1/N$ of the singular ranks per task. Merge eight models, and you throw away 87.5% of the rank components!

Figure 1: Experiment on the low-rank property of models (ViT-B/32). The left figure shows model performance after applying SVD to the weights and retaining different fractions of ranks. The right figure reports the subspace similarity of linear layers between two fine-tuned models (Sun397 and Stanford-cars). We argue that the rank-one component with lower similarity capture more task- specific discriminative knowledge. The results indicate that such low-similarity subspaces (<0.3) account for more than 40% of the overall subspace.

As the authors show above, once rank retention drops below ~20%, accuracy falls off a cliff. Worse yet, the high-singular-value components that SVD keeps tend to be shared, task-agnostic features, while the low-similarity components at the tail—over 40% of the subspace—hold the unique, task-specific knowledge. Truncating them lobotomizes the specialist skills you wanted to merge in the first place.

Methods

To get the best of both worlds—clean shared representations and preserved specialist knowledge—the authors propose Shared-Subspace Mixture of Sparse Experts ($\text{S}^2\text{MoE}$). It transforms separate fine-tuned models into a training-free Mixture-of-Experts (MoE) architecture in three steps:

Figure 2: S2MoE Overview. The left panel illustrates shared module construction, while the right presents expert module sparsification and the S2MoE framework’s workflow.
  1. Shared Module Construction (Standard SVD + Whitening): Like prior SVD merging, $\text{S}^2\text{MoE}$ decomposes each model's task vector via SVD, truncates to the top-$r$ components, concatenates them across all $N$ tasks, and applies SVD-based whitening to make the directions orthogonal. Adding this back to the pretrained weights forms a dense shared backbone ($\theta_s$) packed with common multi-task knowledge.
  2. Sparse Experts Construction (Novel Recovery): Instead of throwing away the leftovers, the authors look at the residual difference between each original fine-tuned model and the new shared backbone ($\theta_i = \Theta_i - \theta_s$). Because the shared backbone already handles general knowledge, they can aggressively prune this residual, keeping only the top-$k$ largest-magnitude parameters. This creates $N$ sparse experts with minimal memory overhead.
  3. Subspace Mapping-Based Routing (Novel Training-Free Router): Standard MoEs need data to train a router network. $\text{S}^2\text{MoE}$ skips training entirely by reusing the truncated right singular matrices ($V_i^{(r)}$) computed in Step 1. Geometrically, $V_i^{(r)}$ spans the input subspace where task $i$ made its biggest updates. When an input $x$ arrives, the router projects $x$ onto each task's subspace and measures the $L_2$ projection residual ($||x - V_i^{(r)}V_i^{(r)\top}x||_2$). Smaller residual means stronger alignment! A Softmax over negative residuals followed by Top-$K$ masking dynamically activates only the most relevant sparse experts.

Datasets

Because $\text{S}^2\text{MoE}$ is completely data-free and training-free, datasets are used strictly for evaluating merged checkpoints:

  • Vision (8-task benchmark on ViT-B/32): SUN397, Stanford-Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, and DTD.
  • Natural Language (Newly curated multi-capability suites): Noting the lack of a unified LLM merging benchmark, the authors assemble two broad evaluation suites for LLaMA-3.2-3B and LLaMA-2-7B. These span math reasoning (GSM8K-CoT), multilingual understanding (ARC, HellaSwag, MMLU), instruction following (IFEval), coding (HumanEval-Plus, MBPP-Plus), safety (ToxiGen, TruthfulQA, Winogender), and classic NLU (SST2, MNLI, MRPC). They also run cross-dataset evaluations using models fine-tuned on GSM8K-RFT, CodeAlpaca, and ShareGPT.

Key Insights and Ideas

  • SVD truncation throws out the baby with the bathwater: High singular values in task vectors mostly capture shared, task-agnostic adaptations across models, whereas the discarded tail components hold the actual task-discriminative magic.
  • Shared backbones unlock extreme sparsity: Usually, pruning a neural network past 90% sparsity wrecks accuracy. Here, because the SVD-merged shared module acts as a safety net for general features, the task-specific residual experts tolerate aggressive magnitude pruning gracefully.
  • SVD gives you a router for free: Reusing the right singular vectors as orthogonal projection bases turns routing into a simple geometric distance check—eliminating the data and compute bottleneck of traditional MoE routers.

Key Results

Across models scaling from 80M to 7B parameters, $\text{S}^2\text{MoE}$ consistently beats both parameter-merging baselines (like TSVM, Ties, DARE) and training-free MoE baselines (SMILE):

  • Vision (ViT-B/32): Achieves an 89.6% average accuracy across 8 tasks—beating TSVM by +6.56 percentage points and SMILE by +1.61 percentage points (statistically verified via 10,000 bootstrap replicates). Remarkably, it sits just 0.7% shy of the 90.3% upper bound of running 8 separate single-task models!
  • Language (LLaMA-3.2-3B & LLaMA-2-7B): Hits 54.6% average accuracy on LLaMA-3.2-3B (+1.2% over TSVM, and even surpassing the 51.5% single-task average on coding, multilingual, and instruction-following thanks to positive cross-task transfer) and 71.8% on LLaMA-2-7B (just 0.3% below single-task learning).
  • Zero Seed Variance: Because construction is purely deterministic linear algebra, variance across random seeds is literally 0.0000.

Limitations and Future Work

The authors candidly note that $\text{S}^2\text{MoE}$ is built around linear layers, which dominate Transformer architectures. Because both the SVD merging and the subspace projection router rely on linear algebraic structure, extending this framework to architectures dominated by highly non-linear structural components remains an open challenge—one they plan to tackle in future work.

Summary updated

Abstract

Model merging offers a training-free paradigm for integrating multiple specialized models into a unified multi-task system, enabling efficient knowledge reuse from models. However, parameter interference remains a critical challenge, limiting the scalability and efficacy of merged models. SVD-based merging techniques represent the current state-of-the-art, excelling in alleviating interference through task-specific knowledge extraction and subspace orthogonalization. % due to aggressive parameter truncation Despite these advances, they inevitably incur performance degradation due to aggressive parameter truncation, which discards valuable information and hinders inference accuracy. Our analysis reveals this truncation-induced knowledge loss as the fundamental bottleneck, motivating the need for mechanisms that preserve and recover discarded expertise without retraining. To address this, we introduce S MoE, a novel framework that augments SVD-based merging with a mixture of sparse experts to refine the truncation gap. S MoE comprises three key components: (1) a shared module that aggregates multi-task knowledge, (2) sparse experts that selectively recover truncation knowledge, and (3) a subspace mapping router to achieve precise training-free routing. Extensive experiments across vision and language benchmarks demonstrate up to 1.6% and 1.2% performance gains over SOTA methods, effectively validating robust and scalable model merging.
BibTeX
@inproceedings{he2026s,
  author = {Feihong He and Anke Tang and Enneng Yang and Hao Jiang and Guojie Zhu and Gang Li and Xiaochun Cao and Li Shen},
  title = {{S²MoE: Shared-Subspace Mixture of Sparse Experts for Model Merging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=SmZteLWKCK},
}
Figure