MASS: MoErging through Adaptive Subspace Selection

Donato Crisostomi, Alessandro Zirilli, Antonio Andrea Gargiulo, Maria Sofia Bucarelli, Simone Scardapane, Fabrizio Silvestri, Iacopo Masi, Emanuele Rodolà

Introduction & The Merging Dilemma

In the era of foundation models, the standard workflow involves taking a massive pretrained backbone (like CLIP) and fine-tuning it for specific tasks, such as medical imaging, satellite photos, or digit recognition. While this produces thousands of highly capable "expert" models, utilizing them simultaneously presents a significant challenge. Ensembling them is computationally prohibitive, and storing them requires massive disk space.

Model Merging attempts to solve this by squashing these experts into a single set of parameters.

Standard Model Merging

However, existing merging methods face two major hurdles:

  1. The Performance Gap: Merged models usually perform significantly worse than the original individual experts.
  2. The Oracle Assumption: Most current "Mixture-of-Experts" (MoE) merging techniques assume that at test time, the system already knows which task it is performing so it can pick the right "head." In reality, a generalist model should be able to evaluate an input and determine the task autonomously.

To address these issues, researchers introduce MASS (MoErging through Adaptive Subspace Selection), a training-free method for merging multiple specialized models into one without losing their individual expert performance.

The MASS Approach

MASS is a fully training-free and data-free approach to "MoErging." It eliminates the need for "oracle" knowledge of the task at inference time and relies on two main phases:

1. Fixed Merging (The Storage Phase)

Instead of simply averaging weights, MASS performs a Low-Rank Decomposition (SVD) on the "task vectors"—the difference between the fine-tuned and pretrained weights. It identifies the most important singular vectors for each task. To maintain storage efficiency, it only merges sufficiently distinct task updates, ensuring that redundant information doesn't overshadow unique task features. This results in a model that takes up roughly 2x the space of a single model, regardless of how many tasks are merged.

2. Adaptive Subspace Selection (The Routing Phase)

At inference time, MASS employs a clever two-pass system to dynamically route inputs:

  • First Pass: The input goes through a base merged model to extract intermediate features (activations).
  • The Router: MASS projects these activations onto the task-specific subspaces defined during the merging phase. It calculates the "projection error," essentially asking, "Which task's specialized weights best explain this specific input?"
  • Second Pass: The router selects the top-performing subspaces (and their corresponding classification heads) and performs a dynamic, weighted merge to produce the final prediction.
MASS Routing Mechanism

Experimental Validation & Key Insights

The researchers evaluated MASS primarily on open-vocabulary image classification using CLIP backbones (ViT-B-16, ViT-B-32, and ViT-L-14). They tested on vision benchmark suites of 8, 14, and 20 tasks, including diverse datasets like Cars, DTD (textures), EuroSAT (satellite), GTSRB (traffic signs), MNIST, and SUN397 (scenes). They also validated the method on the GLUE benchmark (8 tasks) using a Flan-T5-Base model to prove it is modality-agnostic.

Key Results: * Near-Expert Performance: MASS recovers approximately 98% of the average accuracy of individual fine-tuned models, setting a new state-of-the-art for MoErging. * Beating the Oracle: It outperforms existing methods like SMILE and WeMoE, even when those methods are given "oracle" knowledge of the task and MASS is not. * Robust Scaling: While traditional merging (Task Arithmetic) sees performance plummet as more tasks are added, MASS remains stable even when scaling up to 33 different datasets.

Core Insights: The most striking insight from MASS is that you don't need to train a router. The geometry of the weight updates themselves contains enough information to route inputs correctly; the "subspace" where a task lives acts as a unique signature. By measuring how well an input's features fit into a task's low-rank subspace, the model can "find back" the correct expert. Furthermore, these task-specific singular vectors are semantically meaningful. When decoded into text, the vectors for the "Cars" task actually mapped to concepts like "image of a car," proving that the low-rank updates capture high-level task semantics.

Limitations and Future Work

While highly effective, MASS does have limitations. The requirement for two forward passes effectively doubles the inference latency per image, though batching multiple images from the same domain can mitigate this. Additionally, the "best" layer to perform routing varies slightly by architecture (e.g., layer 9 or 10 works well for ViT-B), requiring some empirical testing to optimize.

Finally, while MASS handles unseen, out-of-distribution (OOD) tasks better than static merging, future work could explore "composing" entirely new experts on the fly by dynamically combining existing singular vectors.

Summary updated

BibTeX
@inproceedings{crisostomi2026mass,
  author = {Donato Crisostomi and Alessandro Zirilli and Antonio Andrea Gargiulo and Maria Sofia Bucarelli and Simone Scardapane and Fabrizio Silvestri and Iacopo Masi and Emanuele Rodolà},
  title = {{MASS: MoErging through Adaptive Subspace Selection}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=CRBt6DNaBE},
}
Figure