AdaMoLE: Fine-Tuning Large Language Models with Adaptive Mixture of Low-Rank Adaptation Experts

Zefang Liu, Jiahua Luo
5/1/2024
cs.CL

No official code found. Best implementation: zefang-liu/AdaMoLE (38 stars, MIT, last commit 2024-10-11).

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.

View on arXivView PDF

Code Implementations(1)

zefang-liu/AdaMoLECommunity100%
MIT

AdaMoLE: Adaptive Mixture of LoRA Experts

386PythonApr 28, 20242 years agoMIT

Similar Papers

Cite this paper

@article{liu2024adamole,
  title  = {AdaMoLE: Fine-Tuning Large Language Models with Adaptive Mixture of Low-Rank Adaptation Experts},
  author = {Zefang Liu and Jiahua Luo},
  year   = {2024},
  eprint = {2405.00361},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.00361v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.00361.svg)](https://codeofpaper.com/paper/2405.00361)

Discussion