ECOLA: Enhancing Temporal Knowledge Embeddings with Contextualized Language Representations

Zhen Han, Ruotong Liao, Jindong Gu, Yao Zhang, Zifeng Ding, Yujia Gu, Heinz Koeppl, Hinrich Schütze, Volker Tresp

Abstract

ECOLA is a novel framework designed to bridge the gap between structured temporal knowledge graphs (tKGs) and unstructured text. By jointly training temporal embeddings with a pre-trained language model (PLM) through a specialized "Knowledge-Text Prediction" task, it achieves significant performance gains—including up to a 287% relative improvement in link prediction—while solving the difficult problem of aligning evolving entity representations with time-specific textual descriptions.

Introduction

Knowledge Graphs (KGs) are essential for storing structured facts, but they are often sparse. While researchers have previously used text descriptions to enhance entity embeddings, most work assumes KGs are static. In reality, facts change over time. Temporal Knowledge Graphs (tKGs) account for this by using quadruples—(Subject, Predicate, Object, Timestamp)—to represent events at specific moments.

This dynamic nature introduces two primary challenges: Temporal Alignment and Dynamic Embeddings. Temporal alignment involves identifying which specific text description is relevant to an event at a given time. Dynamic embeddings are necessary because an entity's representation should evolve as it participates in different events. Existing models using static text descriptions fail to capture this fluidity.

Methodology

The authors introduce ECOLA (Enhanced Temporal Knowledge Embeddings with Contextualized Language Representations), a framework that fuses structured temporal data with contextualized language representations.

The ECOLA framework architecture, illustrating the Knowledge-Text Prediction (KTP) task and the joint optimization of temporal knowledge embedding (tKE) and KTP losses.

Knowledge-Text Prediction (KTP) Task

The core innovation is the KTP task, an evolution of Masked Language Modeling (MLM). ECOLA masks elements of the tKG quadruple (subject, predicate, or timestamp) alongside words in the associated event description. To successfully predict these masked elements, the model must learn to align linguistic mentions in the text with structured embeddings in the KG.

Joint Optimization and Model-Agnostic Design

ECOLA minimizes two losses simultaneously: a temporal knowledge embedding (tKE) loss for graph accuracy and the KTP loss for semantic alignment. The framework is model-agnostic and has been successfully integrated with state-of-the-art tKG models such as DyERNIE, UTEE, and DE-SimplE. Notably, at inference time, the model does not require textual data, maintaining high prediction speeds by using the enhanced embeddings learned during training.

Datasets

To evaluate ECOLA, the authors developed three new datasets pairing tKG quadruples with relevant text:

  • GDELT: Based on the Global Data on Events, Location, and Tone, paired with news report sentences.
  • Wiki: A temporal version of Wikipedia facts paired with entity descriptions.
  • DuEE: A Chinese-language event extraction dataset reformatted for tKG tasks.

Key Insights and Results

ECOLA demonstrates that an entity's meaning in a tKG is defined by its neighbors at a specific time. By forcing the model to predict masked entities using temporal context, it learns richer, time-aware representations. The results are particularly striking on the GDELT dataset, where ECOLA-UTEE improved the baseline UTEE model's Hits@1 score by 287%.

Performance comparison on the CronKGQA temporal question-answering task, demonstrating that ECOLA-CronKGQA significantly outperforms standard BERT and CronKGQA baselines.

Beyond link prediction, ECOLA's mutual enrichment benefits language models as well. When tested on the temporal question-answering task CronKGQA, the ECOLA-enhanced model significantly outperformed standard BERT, proving it had acquired a deeper understanding of temporal reasoning.

Limitations and Future Work

The primary bottleneck for ECOLA is the requirement for high-quality quadruple-text pairs, which can be expensive to obtain. Future work will focus on scaling the framework to handle large-scale, noisier unstructured data where the alignment between facts and sentences is less clear. Making the alignment process robust to these real-world data sources remains the next frontier for temporal knowledge embedding research.

Summary updated

BibTeX
@inproceedings{han2023ecola,
  author = {Zhen Han and Ruotong Liao and Jindong Gu and Yao Zhang and Zifeng Ding and Yujia Gu and Heinz Koeppl and Hinrich Schütze and Volker Tresp},
  title = {{ECOLA: Enhancing Temporal Knowledge Embeddings with Contextualized Language Representations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.335},
}
Figure