Skip to main content
QUICK REVIEW

[Paper Review] CoLAKE: Contextualized Language and Knowledge Embedding

Tianxiang Sun, Yunfan Shao|arXiv (Cornell University)|Oct 1, 2020
Topic ModelingComputer Science40 references20 citations
TL;DR

CoLAKE proposes a unified framework that jointly learns contextualized language and knowledge representations by integrating language and knowledge into a word-knowledge graph (WK graph), extending the masked language modeling objective to jointly predict masked words, entities, and relations. It achieves state-of-the-art performance on knowledge-intensive NLP tasks and a novel word-knowledge graph completion task, demonstrating superior inductive bias and structural awareness compared to prior models.

ABSTRACT

With the emerging branch of incorporating factual knowledge into pre-trained language models such as BERT, most existing models consider shallow, static, and separately pre-trained entity embeddings, which limits the performance gains of these models. Few works explore the potential of deep contextualized knowledge representation when injecting knowledge. In this paper, we propose the Contextualized Language and Knowledge Embedding (CoLAKE), which jointly learns contextualized representation for both language and knowledge with the extended MLM objective. Instead of injecting only entity embeddings, CoLAKE extracts the knowledge context of an entity from large-scale knowledge bases. To handle the heterogeneity of knowledge context and language context, we integrate them in a unified data structure, word-knowledge graph (WK graph). CoLAKE is pre-trained on large-scale WK graphs with the modified Transformer encoder. We conduct experiments on knowledge-driven tasks, knowledge probing tasks, and language understanding tasks. Experimental results show that CoLAKE outperforms previous counterparts on most of the tasks. Besides, CoLAKE achieves surprisingly high performance on our synthetic task called word-knowledge graph completion, which shows the superiority of simultaneously contextualizing language and knowledge representation.

Motivation & Objective

  • To address the limitations of static, separately pre-trained entity embeddings in existing knowledge-enhanced language models.
  • To enable dynamic, context-aware knowledge representation by incorporating sub-graphs of factual knowledge around entities.
  • To unify heterogeneous language and knowledge structures into a single, coherent input format for joint representation learning.
  • To evaluate the model's ability to generalize to unseen entities and capture both structural and semantic features of knowledge.
  • To explore the potential of the proposed word-knowledge graph as a foundation for downstream knowledge-intensive NLP applications.

Proposed method

  • Constructs a word-knowledge graph (WK graph) that integrates a fully connected word graph with knowledge sub-graphs extracted from large-scale knowledge bases.
  • Uses entity mentions in text to retrieve and mosaic knowledge sub-graphs centered on those entities into the WK graph.
  • Modifies the Transformer encoder to process the heterogeneous WK graph input, with attention mechanisms adapted to handle nodes of different types (words, entities, relations).
  • Extends the masked language modeling (MLM) objective to jointly mask and predict words, entities, and relations in the WK graph.
  • Pre-trains CoLAKE on large-scale WK graphs using the extended MLM objective, enabling joint optimization of language and knowledge representations.
  • Employs an adjacency matrix to encode graph structure and guide information flow during message passing in the encoder.

Experimental results

Research questions

  • RQ1Can jointly learning contextualized language and knowledge representations improve performance on knowledge-intensive NLP tasks compared to models with static entity embeddings?
  • RQ2How effectively can a model leverage dynamic knowledge context (i.e., sub-graphs around entities) rather than single entity embeddings to improve contextual understanding?
  • RQ3To what extent does the proposed word-knowledge graph (WK graph) structure support inductive generalization to unseen entities?
  • RQ4How well does CoLAKE perform on a novel synthetic task—word-knowledge graph completion—compared to traditional knowledge embedding models?
  • RQ5Does the joint modeling of language and knowledge representations lead to better preservation of structural and semantic features in the learned embeddings?

Key findings

  • CoLAKE outperforms previous semi-contextualized joint models on most knowledge-driven and language understanding tasks in the GLUE benchmark.
  • On the word-knowledge graph completion task, CoLAKE achieves a mean reciprocal rank (MRR) of 82.48 in the transductive setting, significantly outperforming TransE (67.30), DistMult (60.56), ComplEx (61.09), and RotatE (70.90).
  • In the inductive setting, CoLAKE achieves an MRR of 28.10, far surpassing DKRL’s MRR of 8.18, demonstrating strong generalization to unseen entities.
  • The model’s performance on the synthetic word-knowledge graph completion task confirms its ability to leverage both structural graph information and semantic text context.
  • CoLAKE shows strong inductive bias, as it generates entity representations based on neighborhood information, unlike models that rely on fixed or description-based embeddings.
  • The results suggest that the WK graph is a powerful, structure-aware representation that enables effective transfer learning and generalization in knowledge-intensive NLP applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.