SMILE: Zero-Shot Sparse Mixture of Low-Rank Experts Construction From Pre-Trained Foundation Models

Anke Tang, Li Shen, Yong Luo, Shuai Xie, Han Hu, Lefei Zhang, Bo Du, Dacheng TaoarXiv 2024 · DOI

Introduction

As foundation models scale, training them for diverse multi-task capabilities becomes prohibitively expensive. A common alternative is model fusion, where multiple models fine-tuned on distinct tasks (e.g., sentiment analysis vs. coding) are merged into a single unified model.

However, standard weight-averaging approaches suffer from parameter interference: weights optimized for one task often "clash" with those of another, leading to a merged model that performs worse than its individual ancestors. While existing methods attempt to mitigate this through pruning or scaling, they often lack interpretability and struggle with high-dimensional interference. This paper introduces SMILE (Sparse MIxture of Low-rank Experts), a zero-shot method that upscales fine-tuned models into an efficient Mixture-of-Experts (MoE) architecture without additional training or data.

Methodology: From Subspaces to Experts

SMILE shifts the perspective from squashing knowledge into a fixed parameter space to expanding it slightly to accommodate task-specific "rooms."

Subspace Analysis and Construction

Using Singular Value Decomposition (SVD), the authors demonstrate that fine-tuning primarily utilizes less significant dimensions of the pre-trained weight matrix. Task-specific knowledge effectively lives in specific low-rank subspaces. SMILE calculates the weight update ($\Delta W$) for each task-specific model relative to the pre-trained base and applies SVD to create Low-Rank Experts, similar to LoRA adapters.

Zero-Shot Routing

Unlike traditional MoE models that require a trained router, SMILE introduces a training-free router. It calculates the $L_2$ norm of the input projected onto the experts' subspaces. If an input aligns well with an expert's specific subspace, that expert is activated. This allows for immediate deployment without a single gradient step.

The SMILE architecture integrates low-rank experts with a training-free router based on subspace projection.

Key Results and Insights

The authors evaluated SMILE across Computer Vision (CLIP-ViT), NLP (Flan-T5), and LLMs (Mistral-7B). The results highlight a new frontier for model merging:

  • High Fidelity: In vision tasks, SMILE retained 98-99% of the performance of eight individual fine-tuned models.
  • Efficiency: When applied to models using LoRA, SMILE maintained near-perfect performance with only a 2% increase in total parameters.
  • Superiority over SOTA: SMILE consistently outperformed state-of-the-art merging techniques like Ties-Merging and Task Arithmetic, especially as the number of tasks increased.
SMILE (Ours) achieves a superior accuracy-to-parameter trade-off compared to traditional merging methods.

The "Room" Hypothesis

A striking insight is that fine-tuning doesn't necessarily overwrite pre-trained knowledge; it finds "empty corners" in high-dimensional space. Interference occurs when forcing these different corners back into a single flat matrix. By moving to an MoE structure, SMILE increases capacity exactly where needed while sharing the core pre-trained weights.

Limitations and Future Work

While SMILE is highly effective, it faces challenges regarding the scaling of the expert pool (e.g., merging dozens or hundreds of models) and the memory overhead required to store expert weights. Future research may explore dynamic routing, where the number of active experts ($K$) is adjusted per token to further optimize the performance-efficiency trade-off, or applying SMILE to multi-modal fusion.

Summary updated

BibTeX
@misc{tang2024smile,
  author = {Anke Tang and Li Shen and Yong Luo and Shuai Xie and Han Hu and Lefei Zhang and Bo Du and Dacheng Tao},
  title = {{SMILE: Zero-Shot Sparse Mixture of Low-Rank Experts Construction From Pre-Trained Foundation Models}},
  year = {2024},
  eprint = {2408.10174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.10174},
}
Figure