[Paper Review] ERICA: Improving Entity and Relation Understanding for Pre-trained Language Models via Contrastive Learning
ERICA proposes a contrastive learning framework to enhance pre-trained language models' understanding of entities and their relations by introducing two novel pre-training tasks: entity discrimination and relation discrimination. By jointly optimizing masked language modeling with these tasks, ERICA significantly improves BERT and RoBERTa on entity typing, relation extraction, and question answering—especially under low-resource conditions.
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. 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.
Motivation & Objective
- To address the limitation of conventional pre-training objectives in explicitly modeling relational facts in text.
- To improve entity and relation understanding in pre-trained language models (PLMs) by capturing interactions among multiple entities and complex reasoning patterns across sentences.
- To develop a generalizable framework that enhances PLMs' ability to perform multi-hop reasoning and contextual entity representation.
- To demonstrate effectiveness under low-resource settings, where relational fact extraction is most challenging.
- To provide a contrastive learning-based pre-training approach that improves downstream language understanding tasks without requiring external knowledge graphs.
Proposed method
- Introduces the entity discrimination task, where the model distinguishes the correct tail entity given a head entity and a relation, improving entity-level understanding through relational context.
- Proposes the relation discrimination task, which classifies whether two relations are semantically similar, implicitly modeling complex relational reasoning chains.
- Uses document-level distant supervision to construct negative and positive relation pairs, enabling the model to learn semantic similarity between relations.
- Combines the new contrastive objectives (entity and relation discrimination) with standard masked language modeling (MLM) during pre-training.
- Employs contrastive learning with instance-level negatives, where positive pairs are constructed based on shared entities or semantically similar relations.
- Supports multiple entity encoding strategies (mean pooling and marker-based encoding), ensuring compatibility with various downstream setups.
Experimental results
Research questions
- RQ1Can contrastive learning improve pre-trained language models' understanding of entities and their relations in context?
- RQ2How effective is the proposed entity discrimination task in enhancing entity representation through relational context?
- RQ3To what extent does the relation discrimination task improve the model’s ability to capture semantic similarity between relations and support multi-hop reasoning?
- RQ4Does ERICA generalize across different entity encoding methods and downstream tasks?
- RQ5How does ERICA perform under low-resource settings compared to standard fine-tuning and baselines?
Key findings
- ERICA improves BERT and RoBERTa across multiple NLP tasks, including relation extraction, entity typing, and question answering, with consistent gains on the DocRED benchmark.
- On the 1% training data split of DocRED, ERICA boosts F1 by 11.4 points (from 30.4 to 38.5) and IgF1 by 7.4 points (from 28.9 to 36.3) over standard BERT.
- With 100% training data, ERICA achieves an F1 of 58.2 and IgF1 of 55.9 on DocRED, outperforming standard BERT and other baselines.
- The entity marker encoding strategy yields higher performance than mean pooling under large-scale pre-training, while mean pooling performs better in low-resource settings.
- t-SNE visualization confirms that ERICA learns more compact and semantically meaningful clusters for entities and relations compared to standard BERT.
- The framework is robust across different entity encoding methods, showing consistent improvements regardless of representation strategy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.