AdaMoLE: Fine-Tuning Large Language Models with Adaptive Mixture of Low-Rank Adaptation Experts
Zefang Liu, Jiahua Luo
TL;DR
AdaMoLE tackles the inefficiency of static expert activation in mixture-of-experts fine-tuning for large language models by introducing a dynamic thresholding mechanism that adaptively selects LoRA experts based on input context. The approach replaces a single LoRA with multiple experts and integrates a threshold network with a gating function to balance accuracy and efficiency. Empirical results across commonsense reasoning and NLP benchmarks show AdaMoLE achieving higher accuracy than LoRA and MoLE baselines, with analyses of threshold sensitivity and expert activation guiding optimal settings. The work demonstrates the potential of adaptive expert selection to enhance LLM fine-tuning without increasing the total number of experts, suggesting promising directions for future adaptive MoE research.
Abstract
We introduce AdaMoLE, a novel method for fine-tuning large language models (LLMs) through an Adaptive Mixture of Low-Rank Adaptation (LoRA) Experts. Moving beyond conventional methods that employ a static top-k strategy for activating experts, AdaMoLE dynamically adjusts the activation threshold using a dedicated threshold network, adaptively responding to the varying complexities of different tasks. By replacing a single LoRA in a layer with multiple LoRA experts and integrating a gating function with the threshold mechanism, AdaMoLE effectively selects and activates the most appropriate experts based on the input context. Our extensive evaluations across a variety of commonsense reasoning and natural language processing tasks show that AdaMoLE exceeds baseline performance. This enhancement highlights the advantages of AdaMoLE's adaptive selection of LoRA experts, improving model effectiveness without a corresponding increase in the expert count. The experimental validation not only confirms AdaMoLE as a robust approach for enhancing LLMs but also suggests valuable directions for future research in adaptive expert selection mechanisms, potentially broadening the scope for optimizing model performance across diverse language processing tasks.
