Enhancing Multilingual Language Model with Massive Multilingual Knowledge Triples

Linlin Liu, Xin Li, Ruidan He, Lidong Bing, Shafiq R. Joty, Luo Si

Abstract

Pretrained Language Models (PLMs) such as BERT and XLM-R demonstrate exceptional proficiency in linguistic syntax but often lack consistent factual recall and relational reasoning. This paper introduces KMLM (Knowledge-based Multilingual Language Model), a framework that integrates structured Knowledge Graph (KG) triples into PLMs by treating them as synthetic text. By training on linearized facts and logical cycles across multiple languages, KMLM significantly improves factual accuracy and cross-lingual reasoning without increasing model parameters or inference latency.

Introduction

While modern multilingual models are masters of grammar, they are frequently "knowledge-blind." They may structure a sentence perfectly but fail to recall specific historical facts or navigate logical relationships—for instance, failing to infer that if A is the father of B and B is the father of C, then A is the grandfather of C.

Previous attempts to bridge this gap often relied on "sidecar" components, such as specialized entity encoders or fusion layers. These additions introduce architectural complexity, increase computational overhead, and create a mismatch between pretraining and downstream usage. KMLM addresses these issues by asking: Can we teach a model facts and logic using the same simple text-based training it already uses?

Methodology: Facts as Language

The core innovation of KMLM is the treatment of Knowledge Graph triples (Subject-Predicate-Object) as a specialized form of language. The researchers linearized millions of triples from Wikidata into sequences. To ensure the model could bridge linguistic gaps, they employed two primary strategies:

  1. Code-switched data: Mixing languages within a single fact (e.g., an English subject paired with a French relation).
  2. Parallel data: Expressing the same underlying fact in multiple languages.
Training KMLM using masked language modeling on synthetic fact-sentences.

KMLM utilizes a unified architecture, specifically the XLM-R base, ensuring that knowledge is baked directly into the standard vocabulary weights. The model is trained with a multi-task loss combining standard language modeling on the CC100 corpus with "Knowledge Oriented" tasks on synthetic data.

Logical Reasoning through Knowledge Cycles

Beyond isolated facts, KMLM focuses on the structural logic of knowledge. The researchers extracted cycles—loops of three or four entities—from the knowledge graph. By masking parts of these cycles during training, the model is forced to "reason" through the chain of connections to predict the missing link.

Knowledge Graph cycles used for logical reasoning training.

This approach moves the model from simple memorization to relational inference. For example, navigating a cycle of length 3 (President -> Residence -> Person -> Position) allows the model to learn the transitive properties of these relationships across different languages.

Experimental Setup and Results

The model was trained on a subset of Wikidata containing 5 million entities and 822 relations across 10 languages, including English, Vietnamese, Dutch, German, French, Italian, Spanish, Japanese, Korean, and Chinese. Evaluation was conducted across several benchmarks:

  • Factual Retrieval (X-FACTR): KMLM models consistently outperformed standard XLM-R and mBERT, often doubling accuracy in factual queries.
  • Cross-lingual Logical Reasoning (XLR): On this new benchmark designed to test cycle navigation, KMLM-XLM-R Large achieved 82.45% accuracy, compared to the baseline's 64.42%.
  • Named Entity Recognition (NER): The model saw an average F1 improvement of +2.28 on CoNLL datasets, suggesting that factual knowledge aids in entity identification.

Crucially, these gains were achieved with zero additional parameters, maintaining the inference efficiency of the original architecture.

Discussion and Future Work

While KMLM shows significant promise, it faces certain trade-offs. The authors noted a slight decrease in Part-of-Speech (POS) tagging performance, likely due to the "unnatural" syntax of the synthetic KG sentences. Future work may involve using more sophisticated "verbalizers" or GPT-style templates to make synthetic data more linguistically fluid. Additionally, scaling the approach from 10 to hundreds of languages remains a key challenge for global deployment.

Conclusion

KMLM demonstrates that structured knowledge can be effectively injected into language models through simple text-based pretraining. By leveraging the power of logical cycles and code-switched synthetic data, the model achieves a deeper understanding of the world's facts and the relationships between them, paving the way for more reliable and reasoning-capable AI.

Summary updated

BibTeX
@inproceedings{liu2022enhancing,
  author = {Linlin Liu and Xin Li and Ruidan He and Lidong Bing and Shafiq R. Joty and Luo Si},
  title = {{Enhancing Multilingual Language Model with Massive Multilingual Knowledge Triples}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.462},
}
Figure