HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

ERNIE: Enhanced Language Representation with Informative Entities

Zhengyan Zhang; Xu Han; Zhiyuan Liu; Xin Jiang; Maosong Sun; Qun Liu

ERNIE: Enhanced Language Representation with Informative Entities

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

thunlp/ERNIE
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
entity-linking-on-figerERNIE
Accuracy: 57.19
Macro F1: 76.51
Micro F1: 73.39
entity-typing-on-open-entityERNIE
F1: 75.56
Precision: 78.42
Recall: 72.9
linguistic-acceptability-on-colaERNIE
Accuracy: 52.3%
natural-language-inference-on-multinliERNIE
Matched: 84.0
Mismatched: 83.2
natural-language-inference-on-qnliERNIE
Accuracy: 91.3%
natural-language-inference-on-rteERNIE
Accuracy: 68.8%
paraphrase-identification-on-quora-questionERNIE
F1: 71.2
relation-classification-on-tacred-1BERT
F1: 66.0
relation-classification-on-tacred-1ERNIE
F1: 68.0
relation-extraction-on-fewrelERNIE
F1: 88.32
Precision: 88.49
Recall: 88.44
relation-extraction-on-tacredERNIE
F1: 67.97
semantic-textual-similarity-on-mrpcERNIE
Accuracy: 88.2%
semantic-textual-similarity-on-sts-benchmarkERNIE
Pearson Correlation: 0.832
sentiment-analysis-on-sst-2-binaryERNIE
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.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
ERNIE: Enhanced Language Representation with Informative Entities | Papers | HyperAI