Command Palette
Search for a command to run...
Zhengyan Zhang; Xu Han; Zhiyuan Liu; Xin Jiang; Maosong Sun; Qun Liu

Abstract
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.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| entity-linking-on-figer | ERNIE | Accuracy: 57.19 Macro F1: 76.51 Micro F1: 73.39 |
| entity-typing-on-open-entity | ERNIE | F1: 75.56 Precision: 78.42 Recall: 72.9 |
| linguistic-acceptability-on-cola | ERNIE | Accuracy: 52.3% |
| natural-language-inference-on-multinli | ERNIE | Matched: 84.0 Mismatched: 83.2 |
| natural-language-inference-on-qnli | ERNIE | Accuracy: 91.3% |
| natural-language-inference-on-rte | ERNIE | Accuracy: 68.8% |
| paraphrase-identification-on-quora-question | ERNIE | F1: 71.2 |
| relation-classification-on-tacred-1 | BERT | F1: 66.0 |
| relation-classification-on-tacred-1 | ERNIE | F1: 68.0 |
| relation-extraction-on-fewrel | ERNIE | F1: 88.32 Precision: 88.49 Recall: 88.44 |
| relation-extraction-on-tacred | ERNIE | F1: 67.97 |
| semantic-textual-similarity-on-mrpc | ERNIE | Accuracy: 88.2% |
| semantic-textual-similarity-on-sts-benchmark | ERNIE | Pearson Correlation: 0.832 |
| sentiment-analysis-on-sst-2-binary | ERNIE | Accuracy: 93.5 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.