Lune

NeurIPS2023Top-tier venue

Multi-Head Adapter Routing for Cross-Task Generalization

Lucas Page-Caccia, Edoardo Maria Ponti, Zhan Su, Matheus Pereira, Nicolas Le Roux, Alessandro Sordoni

Abstract

Parameter-efficient fine-tuning (PEFT) for cross-task generalization consists in pre-training adapters on a multi-task training set before few-shot adaptation to test tasks. Polytropon [Ponti et al., 2023] (Poly\texttt{Poly}) jointly learns an inventory of adapters and a routing function that selects a (variable-size) subset of adapters for each task during both pre-training and few-shot adaptation. In this paper, we investigate the role that adapter routing plays in its success and design new variants based on our findings. First, we build on the intuition that finer-grained routing provides more expressivity. Hence, we propose MHR\texttt{MHR} (Multi-Head Routing) which combines subsets of adapter parameters and outperforms Poly\texttt{Poly} under a comparable parameter budget; by only fine-tuning the routing function and not the adapters (MHR\texttt{MHR}-zz) we achieve competitive performance with extreme parameter efficiency. Second, we find that Poly\texttt{Poly}/MHR\texttt{MHR} performance is a result of better multi-task optimization, rather than modular inductive biases that facilitate adapter recombination and local adaptation, as previously hypothesized. In fact, we find that MHR\texttt{MHR} exhibits high gradient alignment between training tasks. We find that routing is most beneficial during multi-task pre-training rather than during few-shot adaptation and propose MHR\texttt{MHR}-μ\mu, which discards routing and fine-tunes the average of the pre-trained adapters on each downstream tasks. This establishes MHR\texttt{MHR}-μ\mu as an effective method for single-adapter fine-tuning. We also show that MHR\texttt{MHR}-μ\mu can be used as an effective zero-shot transfer method by training the average of the pre-trained adapters for a few additional steps on the multi-task training set: this yields gains up to 3% on absolute accuracy w.r.t. the baselines.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LoRA: Low-Rank Adaptation of Large Language Models cites Language Models are Few-Shot Learners
  • Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuning cites LoRA: Low-Rank Adaptation of Large Language Models
  • Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuning cites Multitask Prompted Training Enables Zero-Shot Task Generalization
  • Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuning cites Language Models are Few-Shot Learners
  • Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuning cites Finetuned Language Models are Zero-Shot Learners
  • Learning to Route Among Specialized Experts for Zero-Shot Generalization cites Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuning
  • Learning to Route Among Specialized Experts for Zero-Shot Generalization cites Multitask Prompted Training Enables Zero-Shot Task Generalization
  • Learning to Route Among Specialized Experts for Zero-Shot Generalization cites Finetuned Language Models are Zero-Shot Learners
  • Learning to Route Among Specialized Experts for Zero-Shot Generalization cites Towards Modular LLMs by Building and Reusing a Library of LoRAs
  • Towards Modular LLMs by Building and Reusing a Library of LoRAs cites Learning to Route Among Specialized Experts for Zero-Shot Generalization
  • Multitask Prompted Training Enables Zero-Shot Task Generalization cites Language Models are Few-Shot Learners
  • Multitask Prompted Training Enables Zero-Shot Task Generalization cites Finetuned Language Models are Zero-Shot Learners
  • Finetuned Language Models are Zero-Shot Learners cites Multitask Prompted Training Enables Zero-Shot Task Generalization
  • VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks cites LoRA: Low-Rank Adaptation of Large Language Models
  • VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks cites Language Models are Few-Shot Learners
  • Finetuned Language Models are Zero-Shot Learners cites Language Models are Few-Shot Learners
  • Towards Modular LLMs by Building and Reusing a Library of LoRAs cites Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuning
  • Multi-Task Vehicle Routing Solver via Mixture of Specialized Experts under State-Decomposable MDP cites LoRA: Low-Rank Adaptation of Large Language Models
  • Multi-Task Vehicle Routing Solver via Mixture of Specialized Experts under State-Decomposable MDP cites Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuning
  • Multi-Task Vehicle Routing Solver via Mixture of Specialized Experts under State-Decomposable MDP cites Learning to Route Among Specialized Experts for Zero-Shot Generalization
  • Multi-Task Vehicle Routing Solver via Mixture of Specialized Experts under State-Decomposable MDP cites Towards Modular LLMs by Building and Reusing a Library of LoRAs
  • Calibrate Before Use: Improving Few-shot Performance of Language Models cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction TuningTed Zadouri, Ahmet Üstün, Arash Ahmadian, Beyza Ermis et al.ICLR 2024 · 169 citations
  2. Towards Modular LLMs by Building and Reusing a Library of LoRAsOleksiy Ostapenko, Zhan Su, Edoardo M. Ponti, Laurent Charlin et al.ICML 2024 · 70 citations
  3. Learning to Route Among Specialized Experts for Zero-Shot GeneralizationMohammed Muqeeth, Haokun Liu, Yufan Liu, Colin RaffelICML 2024 · 63 citations
  4. VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector BanksYang Li, Shaobo Han, Shihao JiNeurIPS 2024 · 61 citations
  5. Multi-Task Vehicle Routing Solver via Mixture of Specialized Experts under State-Decomposable MDPYuxin Pan, Zhiguang Cao, Chengyang Gu, Liu Liu et al.NeurIPS 2025 · 7 citations

Builds on21

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  3. Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu et al.ICLR 2022 · 4,966 citations
  4. Multitask Prompted Training Enables Zero-Shot Task GeneralizationVictor Sanh, Albert Webson, Colin Raffel, Stephen H. Bach et al.ICLR 2022 · 1,976 citations
  5. Calibrate Before Use: Improving Few-shot Performance of Language ModelsZihao Zhao, Eric Wallace, Shi Feng, Dan Klein et al.ICML 2021 · 1,843 citations

Related papers

  1. AdaMix: Mixture-of-Adaptations for Parameter-efficient Model TuningYaqing Wang, Sahaj Agarwal, Subhabrata Mukherjee, Xiaodong Liu et al.EMNLP 2022 · 65 citations
  2. PEMT: Multi-Task Correlation Guided Mixture-of-Experts Enables Parameter-Efficient Transfer LearningZhisheng Lin, Han Fu, Chenghao Liu, Zhuo Li et al.ACL Findings 2024 · 2 citations
  3. LiME: Lightweight Mixture of Experts for Efficient Multimodal Multi-task LearningMd Kowsher, Haris Mansoor, Nusrat Prottasha, Ozlem Garibay et al.ICML 2026
  4. Parameters as Experts: Adapting Vision Models with Dynamic Parameter RoutingMeng Lou, Stanley Yu, Yizhou YuICML 2026 · 1 citation
  5. Bilevel ZOFO: Efficient LLM Fine-Tuning and Meta-TrainingReza Shirkavand, Peiran Yu, Qi He, Heng HuangNeurIPS 2025 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines