Common Sense or World Knowledge? Investigating Adapter-Based Knowledge Injection into Pretrained Transformers

Anne Lauscher, Olga Majewska, Leonardo F. R. Ribeiro, Iryna Gurevych, Nikolai Rozanov +1 more
5/24/2020
cs.CL
transformer-attentionlora-peft-merging

Official code: Wluper/Retrograph (20 stars, Python, Apache-2.0, last commit 2021-02-22).

Abstract

Following the major success of neural language models (LMs) such as BERT or GPT-2 on a variety of language understanding tasks, recent work focused on injecting (structured) knowledge from external resources into these models. While on the one hand, joint pretraining (i.e., training from scratch, adding objectives based on external knowledge to the primary LM objective) may be prohibitively computationally expensive, post-hoc fine-tuning on external knowledge, on the other hand, may lead to the catastrophic forgetting of distributional knowledge.

Show full abstract

In this work, we investigate models for complementing the distributional knowledge of BERT with conceptual knowledge from ConceptNet and its corresponding Open Mind Common Sense (OMCS) corpus, respectively, using adapter training. While overall results on the GLUE benchmark paint an inconclusive picture, a deeper analysis reveals that our adapter-based models substantially outperform BERT (up to 15-20 performance points) on inference tasks that require the type of conceptual knowledge explicitly present in ConceptNet and OMCS. All code and experiments are open sourced under: https://github.com/wluper/retrograph .

View on arXivView PDF

Code Implementations(1)

Wluper/RetrographOfficial100%
Apache-2.0

Common Sense or World Knowledge? Investigating Adapter-Based Knowledge Injection into Pretrained Transformers

205Python, ShellJan 16, 20205 years agoApache-2.0

Similar Papers

Cite this paper

@article{lauscher2020common,
  title  = {Common Sense or World Knowledge? Investigating Adapter-Based Knowledge Injection into Pretrained Transformers},
  author = {Anne Lauscher and Olga Majewska and Leonardo F. R. Ribeiro and Iryna Gurevych and Nikolai Rozanov and Goran Glavaš},
  year   = {2020},
  eprint = {2005.11787},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.11787}
}

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

Discussion