Key takeaways
- Natural Language Processing is rapidly evolving, with significant potential for improvement and high rewards for success.
- Neural networks typically generate language representations by aggregating information from surrounding words for context.
- Knowledge Graphs enhance NLP applications but are often incomplete, necessitating reinforcement learning for improved targeted searches.
- Incorporating Knowledge Graphs into language models presents challenges in structured knowledge encoding and heterogeneous information fusion.

- Structured Knowledge Encoding: extracting and encoding related informative facts in KGs for language representation models is an important problem.
- Heterogeneous Information Fusion: the pre-training procedure for language representation is quite different from the knowledge representation procedure, leading to two individual vector spaces.
- Designing a special to fuse lexical, syntactic, and knowledge information.
How ERNIE Got The Better Of BERT
Pre-training a binarised prediction model helps understanding common NLP tasks like Question Answering or Natural language Inference.
Unidirectional models are efficiently trained by predicting each word conditioned on the previous words in the sentence. However, it is not possible to train bidirectional models by simply conditioning each word on its previous and next words, since this would allow the word that’s being predicted to indirectly “see itself” in a multi-layer model.
Bidirectional Encoder Representations from Transformers or BERT, which was open sourced late 2018, offered a new ground to embattle the intricacies involved in understanding the language models.
BERT boasts of training any question answering model under 30 minutes. Given the number of steps BERT operates on, this is quite remarkable. And, this was only made possible by Google’s custom-built cloud TPUs which can accelerate dense matrix multiplications and convolutions and, minimize the time-to-accuracy while training large models.

The above figure is an example of incorporating extra knowledge information for language understanding. The solid lines present the existing knowledge facts. The red dotted lines present the facts extracted from the sentence in red. The green dot-dash lines present the facts extracted from the sentence in green.
As shown above, without knowing Blowin’ in the Wind and Chronicles: Volume One is song and book respectively, it is difficult to recognize the two occupations of Bob Dylan, i.e., songwriter and writer, on the entity typing task. Furthermore, it is nearly impossible to extract the fine-grained relations, such as composer and author on the relation classification task. For the existing pre-trained language representation models.
To evaluate ERNIE’s performance, experiments were conducted primarily on two knowledge driven NLP tasks: Entity typing and Relation classification. English Wikipedia was used as the corpus for pretraining, and Wikidata was used to align the text (Knowledge embeddings were trained on Wikidata with TransE).
Future Of ERNIE
Large scale knowledge graphs are usually known for their ability to support NLP applications like semantic search or dialogue generation. Whereas, companies like Pinterest already have opted for a graph-based system(Pixie) for real-time high-performance tasks. The researchers behind ERNIE believe that there are three important directions remain for future research:- Inject knowledge into feature-based pre-training models such as ELMo.
- Introduce diverse structured knowledge into language representation models
- Annotate more real-world corpora heuristically for building larger pre-training data.
Spotted an error? Tell our editors. Read our editorial standards and corrections.
Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign




