ERICA: Improving Entity and Relation Understanding for Pre-trained Language Models via Contrastive Learning

Yujia Qin, Yankai Lin, Ryuichi Takanobu, Zhiyuan Liu, Peng Li +4 more
12/30/2020
cs.CLcs.AI
contrastive-ssl

Official code: thunlp/ERICA (85 stars, Python, last commit 2021-05-26).

Abstract

Pre-trained Language Models (PLMs) have shown superior performance on various downstream Natural Language Processing (NLP) tasks. However, conventional pre-training objectives do not explicitly model relational facts in text, which are crucial for textual understanding.

Show full abstract

To address this issue, we propose a novel contrastive learning framework ERICA to obtain a deep understanding of the entities and their relations in text. Specifically, we define two novel pre-training tasks to better understand entities and relations: (1) the entity discrimination task to distinguish which tail entity can be inferred by the given head entity and relation; (2) the relation discrimination task to distinguish whether two relations are close or not semantically, which involves complex relational reasoning. Experimental results demonstrate that ERICA can improve typical PLMs (BERT and RoBERTa) on several language understanding tasks, including relation extraction, entity typing and question answering, especially under low-resource settings.

View on arXivView PDF

Code Implementations(1)

thunlp/ERICAOfficial100%

Source code for ACL 2021 paper "ERICA: Improving Entity and Relation Understanding for Pre-trained Language Models via Contrastive Learning"

8513Python, ShellMay 26, 20215 years ago

Similar Papers

Cite this paper

@article{qin2020erica,
  title  = {ERICA: Improving Entity and Relation Understanding for Pre-trained Language Models via Contrastive Learning},
  author = {Yujia Qin and Yankai Lin and Ryuichi Takanobu and Zhiyuan Liu and Peng Li and Heng Ji and Minlie Huang and Maosong Sun and Jie Zhou},
  year   = {2020},
  eprint = {2012.15022},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.15022}
}

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

Discussion