TellWorldAI World Archive

Home›Models

Model

ERNIE 2.0

ERNIE 2.0 is Baidu's pre-trained language model framework, published in 2019, which builds pre-training tasks incrementally through continual multi-task learning and reported results above BERT and XLNet on English and Chinese benchmarks.

Status AvailableModality TextOpen weights Yes Era Large models

License
Apache-2.0
Access
Download
Release date
Developer
Baidu

What it is

ERNIE 2.0 is a pre-trained language model from Baidu, presented as a framework for learning language representations. The paper describing it was posted to arXiv on 29 July 2019 under the identifier 1907.12412 and later appeared at AAAI 2020 in the Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, issue 05, pages 8968–8975[1][2]. Its authors are Yu Sun, Shuohuan Wang, Yukun Li, Shikun Feng, Hao Tian, Hua Wu and Haifeng Wang[1].

Like other pre-trained models of its generation, it is trained on large amounts of text first and then adapted to specific downstream tasks. The difference ERNIE 2.0 proposes lies in what the model is asked to learn during that first stage.

How it works

The core idea is a continual pre-training framework: instead of a fixed set of pre-training objectives, the pre-training tasks are built incrementally and learned through continual multi-task learning[1]. The tasks are designed to cover lexical, syntactic and semantic levels of language, rather than relying only on word and sentence co-occurrence[1].

Seven types of pre-training tasks were integrated. Their targets include named entities, sentence order, sentence proximity, semantic similarity and discourse relations[3]. To let one model handle several kinds of task at once, the input embeddings sum token, sentence, position and task embeddings[3].

MIT Technology Review described the latest version of Baidu's ERNIE as masking strings of characters rather than single characters[5]. That version was also trained to tell meaningful character strings from random ones, so it could decide which combinations to mask[5]. It further takes sentence ordering and the distance between sentences into account, and uses continual training to learn new data and tasks without forgetting earlier ones[5].

Hao Tian, chief architect of Baidu Research, said the team first thought about the characteristics of Chinese but found the approach applicable beyond it[5].

Results

The paper reported that the model outperformed BERT and XLNet on 16 tasks, including English GLUE tasks and several Chinese tasks[1]. As single models, the ERNIE 2.0 variants beat BERT and XLNet on seven GLUE tasks, and beat BERT on all nine Chinese NLP tasks tested, including DuReader reading comprehension; the large model set state-of-the-art results on Chinese tasks[3].

In December 2019 the latest version of Baidu's ERNIE topped the GLUE leaderboard, making Baidu the first team to score above 90 out of 100; the average person scores around 87[5]. GLUE is a collection of English language-understanding tasks used as a common yardstick for such models, which is why a leaderboard position attracted attention.

Where it sits

The source code and pre-trained models were released on GitHub in the PaddlePaddle/ERNIE repository[1][4], so others could download the weights and reproduce or extend the work rather than only read the numbers.

ERNIE 2.0 is the successor to ERNIE 1.0, which appeared in March 2019, and it was followed by ERNIE 3.0 in July 2021[3][6]. Its place in the line is the step where Baidu moved from training on word and sentence co-occurrence to a schedule of incrementally added tasks spanning entities, sentence relationships and discourse, together with a mechanism for absorbing new data without discarding what earlier training had produced[1][5].

Version history

11
  1. 2019
    • Mar 2019 ERNIE 1.0

      Baidu's first ERNIE pre-trained language model, released in March 2019, added entity- and phrase-level masking to BERT-style pre-training and reported state-of-the-art results on five Chinese NLP tasks.

    • Jul 29, 2019 ERNIE 2.0 · This page

      ERNIE 2.0 is Baidu's pre-trained language model framework, published in 2019, which builds pre-training tasks incrementally through continual multi-task learning and reported results above BERT and XLNet on English and Chinese benchmarks.

  2. 2021
    • Jul 5, 2021 ERNIE 3.0

      ERNIE 3.0 is a 10-billion-parameter pre-trained language model from 2021 that trains on plain text plus a large-scale knowledge graph and fuses auto-encoding and auto-regressive networks, so one model handles both language understanding and generation.

    • Dec 23, 2021 ERNIE 3.0 Titan

      ERNIE 3.0 Titan is a Chinese pre-trained language model with over 260 billion parameters, described by its authors as the largest dense Chinese model of its time and reported to beat state-of-the-art systems on 68 NLP datasets.

  3. 2023
    • Jun 2023 ERNIE 3.5

      ERNIE 3.5 is a Baidu large language model announced in June 2023 as the upgrade behind the ERNIE Bot chatbot, adding a plugin architecture and, according to Baidu, outperforming ChatGPT on several benchmarked abilities.

    • Oct 17, 2023 ERNIE 4.0

      ERNIE 4.0 is Baidu's foundation model unveiled in October 2023, pitched as its most capable model and, in Robin Li's words, "not inferior in any aspect to GPT-4". It anchors Baidu's ERNIE Bot assistant and Qianfan platform.

  4. 2024
    • Jun 2024 ERNIE 4.0 Turbo

      ERNIE 4.0 Turbo is a large language model Baidu released in June 2024 as a faster, cheaper upgrade to ERNIE 4.0, sitting between ERNIE 4.0 and ERNIE 4.5 in the company's model line.

  5. 2025
    • Mar 16, 2025 ERNIE 4.5

      ERNIE 4.5 is Baidu's native multimodal foundation model, released on 16 March 2025 and handling text, images, audio and video. In June 2025 Baidu open-sourced ten models from the family under the Apache License 2.0.

    • Apr 25, 2025 ERNIE 4.5 Turbo

      ERNIE 4.5 Turbo is Baidu's multimodal large language model released on 25 April 2025, presented as a faster successor to ERNIE 4.5 with lower hallucination rates and sharply cut API prices.

    • Nov 13, 2025 ERNIE 5.0

      ERNIE 5.0 is Baidu's natively omni-modal foundation model, unveiled in November 2025 and described as having 2.4 trillion parameters. It is proprietary and was made available to enterprises and consumers in January 2026.

  6. 2026
    • May 9, 2026 ERNIE 5.1

      ERNIE 5.1 is Baidu's large language model released on 9 May 2026, derived from ERNIE 5.0's pre-training at about 6% of the usual pre-training cost, and it placed at the top of Chinese models on LMArena text and search.[^1][^3]

20191

  1. ReleaseBaidu releases ERNIE 2.0, beating BERT and XLNet on 16 tasks

    In July 2019 Baidu released ERNIE 2.0, a continual pre-training framework that adds training tasks incrementally and reported beating BERT and XLNet on 16 tasks. The work was published at AAAI 2020.

Developed by1

Baidu

Successor of1

ERNIE 1.0

Succeeded by1

ERNIE 3.0

Notes and sources

  1. ERNIE 2.0: A Continual Pre-training Framework for Language Understandinghttps://arxiv.org/pdf/1907.12412
  2. ERNIE 2.0: A Continual Pre-Training Framework for Language Understanding (AAAI 2020)https://ojs.aaai.org/index.php/aaai/article/view/6428
  3. Baidu's ERNIE 2.0 Beats BERT and XLNet on NLP Benchmarkshttps://syncedreview.com/2019/07/30/baidus-ernie-2-0-beats-bert-and-xlnet-on-nlp-benchmarks/
  4. PaddlePaddle/ERNIE repositoryhttps://github.com/PaddlePaddle/ERNIE
  5. Baidu has a new trick for teaching AI the meaning of languagehttps://www.technologyreview.com/2019/12/26/131372/ai-baidu-ernie-google-bert-natural-language-glue/amp/
  6. ERNIE 3.0: Large-scale Knowledge Enhanced Pre-training for Language Understanding and Generationhttps://arxiv.org/pdf/2107.02137

Cite this page: ERNIE 2.0. TellWorld, https://www.tellworld.net/models/ernie-2-0. Updated 2026-11-08