AdapterFusion: Non-Destructive Task Composition for Transfer Learning

Jonas Pfeiffer, Aishwarya Kamath, Andreas Rücklé, Kyunghyun Cho, Iryna Gurevych
5/1/2020
cs.CL

Official code: adapter-hub/adapters (2,829 stars, Apache-2.0, PyTorch, last commit 2026-04-26).

Abstract

Sequential fine-tuning and multi-task learning are methods aiming to incorporate knowledge from multiple tasks; however, they suffer from catastrophic forgetting and difficulties in dataset balancing. To address these shortcomings, we propose AdapterFusion, a new two stage learning algorithm that leverages knowledge from multiple tasks. First, in the knowledge extraction stage we learn task specific parameters called adapters, that encapsulate the task-specific information. We then combine the adapters in a separate knowledge composition step. We show that by separating the two stages, i.e., knowledge extraction and knowledge composition, the classifier can effectively exploit the representations learned from multiple tasks in a non-destructive manner. We empirically evaluate AdapterFusion on 16 diverse NLU tasks, and find that it effectively combines various types of knowledge at different layers of the model. We show that our approach outperforms traditional strategies such as full fine-tuning as well as multi-task learning. Our code and adapters are available at AdapterHub.ml.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

A Unified Library for Parameter-Efficient and Modular Transfer Learning

2,829374Shell, PythonApr 21, 20205 months agoApache-2.0
adaptersbertloranatural-language-processingnlp+4 more

Similar Papers

Cite this paper

@article{pfeiffer2020adapterfusion,
  title  = {AdapterFusion: Non-Destructive Task Composition for Transfer Learning},
  author = {Jonas Pfeiffer and Aishwarya Kamath and Andreas Rücklé and Kyunghyun Cho and Iryna Gurevych},
  year   = {2020},
  eprint = {2005.00247},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00247}
}

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/2005.00247.svg)](https://codeofpaper.com/paper/2005.00247)

Discussion