Abstract
Parameter Efficient Tuning has been a prominent approach to adapt Large Language Models (LLMs) to downstream tasks. Most previous work considers adding dense trainable parameters, where all parameters are used for adaptation. We found this less effective empirically; for example, in LoRA, introducing more trainable parameters often does not help. Motivated by this, we investigate the importance of leveraging "sparse" computation and propose SiRA: Sparse Mixture of Low Rank Adaptation. SiRA leverages the Sparse Mixture of Experts (SMoE) to boost the performance of LoRA. Specifically, it enforces top-$k$ expert routing with a capacity limit restricting the maximum number of tokens each expert can process. We also propose a novel and simple expert dropout mechanism on top of the gating network to reduce overfitting. Through extensive experiments, we verify that SiRA performs better than LoRA and other mixture of expert approaches across different single-task and multitask settings.
Introduction
Low-Rank Adaptation (LoRA) has become the de facto standard for Parameter-Efficient Fine-Tuning (PEFT) of Large Language Models. It works by adding small, trainable low-rank matrices to a frozen base model. Naturally, one might assume that increasing the "rank" (adding more parameters) would lead to better performance.
However, researchers have identified a "hidden bottleneck": increasing the rank of LoRA often fails to improve quality due to training instability and overfitting. Meanwhile, existing Mixture of Experts (MoE) approaches for PEFT either use random selection, which prevents specialization, or "dense" MoE, which activates all experts and increases computational cost. SiRA addresses these challenges by integrating sparse computation into the LoRA framework to increase capacity without sacrificing stability or efficiency.
Methods: The SiRA Architecture
SiRA treats multiple LoRA adapters as "experts" within a sparse framework. Its architecture consists of three key components designed to optimize routing and prevent overfitting.
- Top-$k$ Expert Gating: For every token, a gating network calculates scores and routes the token to only the top $k$ most relevant LoRA experts. This keeps the computational cost low while allowing for a much larger total parameter count.
- Expert Token Capacity: To prevent the model from over-relying on a single "super-expert," SiRA enforces a capacity limit. If an expert reaches its limit of tokens for a given batch, subsequent tokens are "dropped" and processed only by the frozen base model (the "overflow" path).
- Expert Dropout: This is the paper's most novel contribution to the gating logic. By applying dropout directly to the gating network's output before selecting the top $k$ experts, the authors force the model to explore different expert combinations, significantly reducing overfitting.
- Auxiliary Loss: A standard MoE technique used here to encourage balanced load across all available experts during training.
Experimental Setup
The researchers evaluated SiRA using PaLM2-FLAN XXS as the base foundation model across several diverse benchmarks:
- ForumSum: A dataset for summarizing multi-speaker internet forum conversations.
- FinQA: A challenging financial reasoning dataset requiring numerical programs to answer questions.
- XTREME-UP: A multilingual multitask benchmark, specifically focusing on underrepresented languages like Swahili (SW) and Bengali (BN) for tasks like Semantic Parsing and Named Entity Recognition (NER).
Results and Discussion
SiRA demonstrated a clear advantage over standard LoRA and other MoE variants (Adamix and MoLoRA). A key finding is that SiRA overcomes the performance plateau seen in standard LoRA as parameter counts increase.
Key Insights
- Sparse is Better than Dense: SiRA (sparse) consistently outperforms MoLoRA (dense MoE). This suggests that forcing the model to choose specific experts leads to better specialization than simply averaging all of them.
- The "Comfortable Zone": Increasing the number of experts ($k$) or capacity ($C$) doesn't yield linear improvements. There is a "comfortable zone" for these hyperparameters; exceeding it can actually degrade performance, likely due to the increased difficulty of the routing problem.
- Expert Dropout is Essential: In ablation studies, removing Expert Dropout led to a significant drop in performance. It proved more effective than standard SMoE-dropout methods, acting as a crucial regularizer for the gating mechanism.
- Specialization Happens: By measuring the entropy of the gating weights, the authors confirmed that the model actually learns to route specific types of inputs to specific experts over time.
Conclusion
SiRA effectively breaks the LoRA bottleneck by combining low-rank adaptation with sparse mixture of experts. While it introduces some serving overhead due to storing multiple experts, its sparse execution maintains computational efficiency. Future work will focus on minimizing this overhead and further refining the expert selection logic to enhance robustness across diverse tasks.
Summary updated