[Paper Review] ERNIE: Enhanced Language Representation with Informative Entities
ERNIE pre-trains a language model on text and knowledge graphs by integrating informative entity embeddings via a dedicated knowledge module and a denoising entity auto-encoder, achieving improvements on knowledge-driven tasks while remaining competitive on general NLP tasks.
Neural language representation models such as BERT pre-trained on large-scale corpora can well capture rich semantic patterns from plain text, and be fine-tuned to consistently improve the performance of various NLP tasks. However, the existing pre-trained language models rarely consider incorporating knowledge graphs (KGs), which can provide rich structured knowledge facts for better language understanding. We argue that informative entities in KGs can enhance language representation with external knowledge. In this paper, we utilize both large-scale textual corpora and KGs to train an enhanced language representation model (ERNIE), which can take full advantage of lexical, syntactic, and knowledge information simultaneously. The experimental results have demonstrated that ERNIE achieves significant improvements on various knowledge-driven tasks, and meanwhile is comparable with the state-of-the-art model BERT on other common NLP tasks. The source code of this paper can be obtained from https://github.com/thunlp/ERNIE.
Motivation & Objective
- Motivate integrating external knowledge from knowledge graphs to improve language understanding beyond plain text.
- Design a two-module architecture that fuses textual and knowledge information for richer representations.
- Propose a denoising entity auto-encoder (dEA) pre-training task to align text with KG entities.
- Demonstrate improvements on knowledge-driven tasks like entity typing and relation classification while remaining competitive on standard NLP benchmarks.
Proposed method
- Two stacked modules: a textual encoder (T-Encoder) and a knowledgeable encoder (K-Encoder) that fuses token and entity information.
- Entity representations are pre-trained with TransE and aligned to text via named entity recognition and alignment to KG entities.
- A novel pre-training objective (dEA) randomly masks token-entity alignments and trains the model to predict correct entities from KG embeddings.
- MLM and NSP objectives from BERT are retained to capture lexical and syntactic information.
- An information fusion layer within each K-Encoder aggregator combines token and entity embeddings through a learned transformation.
- Fine-tuning for tasks uses task-specific input formats, including mark tokens to highlight entity mentions for relation classification.
Experimental results
Research questions
- RQ1Does incorporating KG-derived informative entities improve performance on knowledge-driven NLP tasks?
- RQ2Can a dedicated knowledge fusion mechanism and dEA pre-training better align textual and entity information than text-only pre-training?
- RQ3How does ERNIE perform on entity typing and relation classification compared to BERT and task-specific baselines?
- RQ4What is ERNIE’s impact on standard NLP benchmarks like GLUE?
Key findings
- ERNIE significantly outperforms BERT on entity typing and relation classification tasks (e.g., FewRel/TACRED), demonstrating the benefit of informative entities.
- On Open Entity, ERNIE improves precision and recall relative to BERT, indicating better use of KG knowledge for typing.
- ERNIE achieves higher F1 on FewRel than BERT, and outperforms BERT on TACRED in micro-averaged metrics.
- GLUE results show ERNIE is comparable to BERT on large datasets, with some instability on smaller datasets.
- Ablation shows that both informative entities and the dEA pre-training contribute to performance gains.
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.