paper-with-me

홈 › Papers

K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapters

2020-02-05 · Findings (ACL) 2021 8 · Ruize Wang, Duyu Tang, Nan Duan, Zhongyu Wei, Xuanjing Huang, Jianshu ji, Guihong Cao, Daxin Jiang, Ming Zhou

We study the problem of injecting knowledge into large pre-trained models like BERT and RoBERTa. Existing methods typically update the original parameters of pre-trained models when injecting knowledge. However, when multiple kinds of knowledge are injected, the historically injected knowledge would be flushed away. To address this, we propose K-Adapter, a framework that retains the original parameters of the pre-trained model fixed and supports the development of versatile knowledge-infused model. Taking RoBERTa as the backbone model, K-Adapter has a neural adapter for each kind of infused knowledge, like a plug-in connected to RoBERTa. There is no information flow between different adapters, thus multiple adapters can be efficiently trained in a distributed way. As a case study, we inject two kinds of knowledge in this work, including (1) factual knowledge obtained from automatically aligned text-triplets on Wikipedia and Wikidata and (2) linguistic knowledge obtained via dependency parsing. Results on three knowledge-driven tasks, including relation classification, entity typing, and question answering, demonstrate that each adapter improves the performance and the combination of both adapters brings further improvements. Further analysis indicates that K-Adapter captures versatile knowledge than RoBERTa.

📄 PDF Abstract BibTeX arXiv:2002.01808

Code (2)

microsoft/K-Adapter pytorch
stevekgyang/sccl pytorch

Tasks

Dependency ParsingEntity TypingQuestion AnsweringRelation ClassificationRelation Extraction

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
Weight Decay 설명 없음
RoBERTa 설명 없음
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

Mixture-of-Partitions: Infusing Large Biomedical Knowledge Graphs into BERT

2021-09-10 · EMNLP 2021 11 · Zaiqiao Meng, Fangyu Liu, Thomas Hikaru Clark, Ehsan Shareghi 외

Infusing factual knowledge into pre-trained models is fundamental for many knowledge-intensive tasks. In this paper, we proposed Mixture-of-Partitions (MoP), an infusion approach that can handle a very large knowledge gr…

Knowledge Graphs

Infusing Linguistic Knowledge of SMILES into Chemical Language Models

2022-04-20 · Ingoo Lee, Hojung Nam

The simplified molecular-input line-entry system (SMILES) is the most popular representation of chemical compounds. Therefore, many SMILES-based molecular property prediction models have been developed. In particular, tr…

Molecular Property PredictionProperty PredictionSelf-Supervised Learning

I2I: Initializing Adapters with Improvised Knowledge

2023-04-04 · Tejas Srinivasan, Furong Jia, Mohammad Rostami, Jesse Thomason

Adapters present a promising solution to the catastrophic forgetting problem in continual learning. However, training independent Adapter modules for every new task misses an opportunity for cross-task knowledge transfer…

Continual LearningQuestion AnsweringTransfer LearningVisual Question Answering

Mixture-of-Domain-Adapters: Decoupling and Injecting Domain Knowledge to Pre-trained Language Models Memories

2023-06-08 · Shizhe Diao, Tianyang Xu, Ruijia Xu, Jiawei Wang 외

Pre-trained language models (PLMs) demonstrate excellent abilities to understand texts in the generic domain while struggling in a specific domain. Although continued pre-training on a large domain-specific corpus is eff…

Domain Adaptation

On The Cross-Modal Transfer from Natural Language to Code through Adapter Modules

2022-04-19 · Divyam Goel, Ramansh Grover, Fatemeh H. Fard

Pre-trained neural Language Models (PTLM), such as CodeBERT, are recently used in software engineering as models pre-trained on large source code corpora. Their knowledge is transferred to downstream tasks (e.g. code clo…

Clone DetectionCloze TestTransfer Learning