Introduction
In the current machine learning landscape, foundation models like CLIP are frequently fine-tuned for a multitude of specialized downstream tasks. However, deploying these specialized models presents a dilemma: keeping individual fine-tuned models (ensembling) is storage-prohibitive, while merging them into a single set of parameters (static merging) often leads to significant performance degradation due to parameter interference.
MASS (MoErging through Adaptive Subspace Selection) introduces a novel "MoErging" framework that bridges this gap. By treating merged models as a Mixture-of-Experts (MoE) system, MASS dynamically activates task-specific subspaces at inference time, recovering nearly 98% of the performance of individual fine-tuned models with a fraction of the storage cost.
Methodology
The MASS framework operates through three primary components designed to minimize interference while maintaining efficiency.
Task Singular Vectors (TSV)
Rather than treating weight updates as simple vectors, MASS utilizes Singular Value Decomposition (SVD) to decompose task-specific updates into low-rank subspaces. By retaining only the top singular vectors, the model captures the essential "signal" of a task in a highly compressed format, significantly reducing the storage overhead compared to full model ensembles.
The Projection-Based Router
A critical innovation of MASS is its data-free, training-free router. Traditional MoE systems require a router trained on specific data to select experts. In contrast, MASS determines task relevance by projecting intermediate features onto the candidate task subspaces. The router calculates the projection error (residual); a lower error indicates that the input features align well with a specific task's subspace, allowing the system to identify the correct "expert" dynamically.
Two-Pass Inference
To implement this dynamic selection, MASS employs a two-pass inference strategy. The first pass processes the input through a base merged model to allow the router to identify relevant task subspaces. In the second pass, only the selected subspaces are activated to perform the final classification, ensuring that the model utilizes the most pertinent specialized knowledge for each specific input.
Experimental Results
The authors evaluated MASS using CLIP backbones (ViT-B-32, ViT-B-16, and ViT-L-14) across benchmarks ranging from 8 to 20 tasks.
As shown in the results table, MASS consistently outperforms existing state-of-the-art merging methods. On the 20-task benchmark with a ViT-B-32 backbone, MASS achieved a +7.4% absolute accuracy improvement over the previous best method (TSV-M). Across all configurations, MASS recovers approximately 98% of the average accuracy of individual fine-tuned models while maintaining a storage footprint of only ~2x that of a single model—a significant improvement over the 20x storage required for a full ensemble of 20 tasks.
Discussion and Insights
Analysis of the task subspaces revealed that they possess inherent semantic meaning. Using the TextSpan algorithm, the authors found that mathematical subspaces often align with human-readable concepts (e.g., a "Cars" task subspace decodes to "Image of a car"). Furthermore, the study identified that the middle-to-late layers of the Vision Transformer (e.g., layers 9–10) are the most effective for task routing, as features at these stages are sufficiently developed to be discriminative without being overly task-specific.
Limitations
While MASS offers superior performance and storage efficiency, it introduces a trade-off in inference latency. The two-pass approach effectively doubles the computation time compared to a standard single-pass model. Additionally, while 2x storage is vastly superior to full ensembling, it remains higher than the 1x storage achieved by flat, static merging methods.
Summary updated