MoSLD: An Extremely Parameter-Efficient Mixture-of-Shared LoRAs for Multi-Task Learning

Lulu Zhao, Weihao Zeng, Xiaofeng Shi, Hua Zhou

Abstract

Recently, LoRA has emerged as a crucial technique for fine-tuning large pre-trained models, yet its performance in multi-task learning scenarios often falls short. In contrast, the MoE architecture presents a natural solution to this issue. However, it introduces challenges such as mutual interference of data across multiple domains and knowledge forgetting of various tasks. Additionally, MoE significantly increases the number of parameters, posing a computational cost challenge. Therefore, in this paper, we propose MoSLD, a mixture-of-shared-LoRAs model with a dropout strategy. MoSLD addresses these challenges by sharing the upper projection matrix in LoRA among different experts, encouraging the model to learn general knowledge across tasks, while still allowing the lower projection matrix to focus on the unique features of each task. The application of dropout alleviates the imbalanced update of parameter matrix and mitigates parameter overfitting in LoRA. Extensive experiments demonstrate that our model exhibits excellent performance in both single-task and multi-task scenarios, with robust out-of-domain generalization capabilities.

Introduction

Parameter-Efficient Fine-Tuning (PEFT) methods, particularly Low-Rank Adaptation (LoRA), have become the standard for adapting Large Language Models (LLMs) to new tasks without the computational burden of full-parameter fine-tuning. However, plain LoRA is highly sensitive to training data configuration and struggles in multi-task learning scenarios. When trained on heterogeneous datasets, data from different domains often interferes, causing the model to forget knowledge and degrading overall performance.

While combining LoRA with a Mixture-of-Experts (MoE) architecture is a natural solution to handle diverse tasks, existing MoE-LoRA methods have significant drawbacks. They either linearly combine pre-trained LoRAs—ignoring the transfer of general knowledge—or require training many separate LoRA modules from scratch. This drastically increases the number of trainable parameters and computational costs, defeating the original purpose of using a parameter-efficient method.

Methodology

To address these challenges, we propose MoSLD (Mixture-of-Shared-LoRAs with Dropout). In standard LoRA, weight updates are decomposed into two low-rank matrices: an upper projection matrix ($A$) and a lower projection matrix ($B$). MoSLD cleverly decouples these components to balance general and task-specific learning.

The MoSLD architecture featuring shared Matrix A and expert-specific Matrix B with targeted dropout.

The Sharing Mechanism

In our MoE setup, MoSLD treats matrix $A$ as a "general-feature" matrix and shares it across all experts within a given transformer layer. Meanwhile, matrix $B$ acts as a "specific-feature" matrix and remains unique to each expert. This architecture forces the model to learn broad, cross-task knowledge in $A$, while allowing $B$ to specialize in the unique quirks of individual tasks.

Targeted Dropout

Because the shared matrix $A$ is updated by every active expert during training, it is updated much more frequently than the individual $B$ matrices. To prevent optimization imbalance and severe overfitting, we apply a dropout strategy specifically to matrix $A$, randomly ignoring a proportion of its weight updates during iterations. Like standard sparse MoE models, MoSLD uses a routing mechanism to select the top-2 experts for each input token.

Experimental Setup

We evaluated MoSLD on six commonsense reasoning datasets: OBQA, CSQA (QA tasks), Race, MCTest (Reading Comprehension), and Arc-e, Arc-c (Subject Knowledge). These were tested in both a "single" setting (trained individually) and a "mixture" setting (combined into one multi-task dataset). Additionally, we utilized MMLU for out-of-domain generalization testing, GSM8K for tasks with low commonality, and OpenOrca to test the effects of general instruction data.

Results and Discussion

MoSLD demonstrates superior performance and efficiency across several dimensions:

  • Multi-Task Performance: In the mixed-dataset setting, MoSLD achieved an average score of 71.56% across the six core datasets, outperforming plain LoRA (69.15%) and the best-performing MoE-LoRA baseline, MoLA (70.00%).
  • Parameter Efficiency: Despite the MoE framework, the sharing mechanism keeps MoSLD lightweight. It requires only 1.389B trainable parameters compared to MoLA's 2.228B, while delivering better performance.
  • Generalization and Scalability: MoSLD consistently outperformed baselines on the unseen MMLU benchmark, proving the shared matrix successfully captures transferable general knowledge. The method also scales effectively with model size, showing consistent gains on LLaMA2-7B, 13B, and 33B.
Performance comparison of MoSLD against LoRA and MoE-LoRA baselines on the Arc-c dataset.

Our analysis suggests that disentangling knowledge is highly efficient. By splitting LoRA into shared and expert-specific matrices, we reduce the parameter redundancy found in standard MoE models. Furthermore, we found that allocating fewer experts to lower layers and more to higher layers (e.g., a 2-4-6-8 split) yields the best results, as higher layers handle more complex, task-specific features.

Conclusion and Future Work

MoSLD offers a highly parameter-efficient approach to multi-task fine-tuning by sharing general-feature matrices across experts and employing a targeted dropout strategy. While effective, current limitations include its application primarily to attention layers (Q and V matrices). Future work will explore extending this method to Feed-Forward Network (FFN) layers, investigating the impact of varying data mixing ratios, and providing more detailed interpretability of the feature extraction in matrices $A$ and $B$.

Summary updated

BibTeX
@inproceedings{zhao2025mosld,
  author = {Lulu Zhao and Weihao Zeng and Xiaofeng Shi and Hua Zhou},
  title = {{MoSLD: An Extremely Parameter-Efficient Mixture-of-Shared LoRAs for Multi-Task Learning}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=0Mqtg0dBxr},
}
Figure