AdapterFusion: Non-Destructive Task Composition for Transfer Learning
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Natural Language Understanding | GLUE | SST-296.1 | 452 | |
| Natural Language Understanding | GLUE (test) | SST-2 Accuracy96.6 | 416 | |
| Question Answering | SQuAD v1.1 (dev) | F1 Score90.86 | 375 | |
| Question Answering | SQuAD v2.0 (dev) | F181.84 | 158 | |
| Visual Question Answering | VQA 2.0 (val) | Accuracy (Overall)40.96 | 143 | |
| Visual Question Answering | VQA v2 (val) | -- | 99 | |
| Natural Language Understanding | SuperGLUE | SGLUE Score73.6 | 84 | |
| Natural Language Understanding | GLUE (test dev) | MRPC Accuracy90.2 | 81 | |
| Author Profiling | PAN16 (test) | Task Score87.3 | 80 | |
| Natural language generation | E2E NLG Challenge | BLEU65.53 | 58 |