MoDE: Effective Multi-task Parameter Efficient Fine-Tuning with a Mixture of Dyadic Experts

Lin Ning, Harsh Lara, Meiqi Guo, Abhinav Rastogi

Introduction

Adapting Large Language Models (LLMs) to hundreds of diverse tasks simultaneously remains a significant challenge in machine learning. While Low-Rank Adaptation (LoRA) has become the standard for parameter-efficient fine-tuning (PEFT) in single-task scenarios, scaling it to multi-task environments often involves "Mixture-of-Experts" (MoE) architectures. However, current LoRA-MoE designs suffer from significant parameter redundancy.

MoDE (Mixture of Dyadic Experts) addresses this by introducing a novel framework that shares "task-agnostic" components across experts and employs fine-grained routing at the level of individual rank-one adapters. This approach achieves higher expressivity and superior task specialization without increasing the overall parameter count.

The MoDE Framework

MoDE introduces two primary architectural innovations to eliminate redundancy and enhance model capacity:

  1. Shared Down-Projection Matrix: Traditional MoE-LoRA assigns a unique pair of low-rank matrices ($A$ and $B$) to each expert. MoDE utilizes a single, shared down-projection matrix ($A$) for all experts within a layer. This design choice is based on the observation that the initial dimensionality reduction is largely task-agnostic, allowing the parameter budget to be reallocated to more diverse, task-specific up-projection components.
  2. Fine-Grained Dyadic Routing: Instead of selecting an entire LoRA module, MoDE decomposes a LoRA update into its "dyadic" components—the sum of rank-one outer products. It employs an independent router for each rank dimension. For a rank-$r$ adapter with $m$ expert choices per rank, MoDE enables $m^r$ possible combinations. This "combinatorial expressivity" allows the model to surgically compose a unique adapter for every specific input or task.
The MoDE architecture featuring a shared down-projection matrix and dyadic routing for up-projection experts.

Motivation: Redundancy in LoRA Matrices

The design of MoDE is motivated by a critical insight into how LoRA adapters learn across different tasks. Through Principal Component Analysis (PCA) of learned LoRA matrices, researchers discovered a stark contrast between down-projection and up-projection behavior.

As shown in the visualization below, the principal components of down-projection matrices ($A$) cluster tightly regardless of the task, indicating they perform a general dimensionality reduction. In contrast, the up-projection matrices ($B$) are highly scattered, confirming that task-specific specialization primarily occurs during the reconstruction phase. By sharing the $A$ matrix, MoDE focuses its parameters where they are most effective.

PCA visualization of LoRA matrices across different tasks, showing clustered (task-agnostic) down-projections and scattered (task-specific) up-projections.

Experimental Evaluation

MoDE was evaluated using the Supernatural Instructions (SNI) benchmark, a massive collection of over 1,600 instruction-following tasks. The primary evaluation focused on 756 English-only tasks using the Gemma-2B model.

Key Results

  • Superior Performance: MoDE 16x4 (rank 16, 4 experts per rank) achieved a 60.00 ROUGE-L score, significantly outperforming vanilla LoRA 64 (56.11) and state-of-the-art MoLORA (57.77).
  • High Win Rate: In head-to-head comparisons, MoDE outperformed the standard LoRA baseline on 78% of tasks.
  • Robustness: In fixed-parameter budget scenarios (approximately 6 million parameters), MoDE consistently outperformed full fine-tuning, suggesting the architecture effectively mitigates overfitting on limited task-specific data.

Conclusion and Future Work

MoDE demonstrates that fine-grained, dyadic routing combined with shared task-agnostic projections provides a more efficient path for multi-task LLM adaptation. While the current implementation introduces some inference overhead due to the routing mechanism, its combinatorial expressivity offers a significant leap in performance over traditional module-level MoE.

Future research will explore more sophisticated routing strategies—such as those incorporating task relationships—and investigate how the benefits of dyadic experts scale to much larger models (70B+) and naturally MoE-based backbones like Mixtral.

Summary updated

BibTeX
@inproceedings{ning2025mode,
  author = {Lin Ning and Harsh Lara and Meiqi Guo and Abhinav Rastogi},
  title = {{MoDE: Effective Multi-task Parameter Efficient Fine-Tuning with a Mixture of Dyadic Experts}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.460},
}
Figure