ERNIE: Enhanced Representation through Knowledge Integration

Yu Sun, Shuohuan Wang, Yukun Li, Shikun Feng, Xuyi Chen +5 more
4/19/2019
1,060 citations
cs.CL

Official code: PaddlePaddle/PaddleNLP (12,983 stars, Python, Apache-2.0, last commit 2025-12-17).

Abstract

We present a novel language representation model enhanced by knowledge called ERNIE (Enhanced Representation through kNowledge IntEgration). Inspired by the masking strategy of BERT, ERNIE is designed to learn language representation enhanced by knowledge masking strategies, which includes entity-level masking and phrase-level masking.

Show full abstract

Entity-level strategy masks entities which are usually composed of multiple words.Phrase-level strategy masks the whole phrase which is composed of several words standing together as a conceptual unit.Experimental results show that ERNIE outperforms other baseline methods, achieving new state-of-the-art results on five Chinese natural language processing tasks including natural language inference, semantic similarity, named entity recognition, sentiment analysis and question answering. We also demonstrate that ERNIE has more powerful knowledge inference capacity on a cloze test.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Easy-to-use and powerful LLM and SLM library with awesome model zoo.

12,9833,019Python, CudaFeb 5, 202111 months agoApache-2.0
bertcompressiondistributed-trainingdocument-intelligenceembedding+14 more

Similar Papers

Cite this paper

@article{sun2019ernie,
  title  = {ERNIE: Enhanced Representation through Knowledge Integration},
  author = {Yu Sun and Shuohuan Wang and Yukun Li and Shikun Feng and Xuyi Chen and Han Zhang and Xin Tian and Danxiang Zhu and Hao Tian and Hua Wu},
  year   = {2019},
  eprint = {1904.09223},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.09223}
}

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

Discussion