Learning Latent Relations for Temporal Knowledge Graph Reasoning

Mengqi Zhang, Yuwei Xia, Qiang Liu, Shu Wu, Liang Wang

Abstract

Temporal Knowledge Graphs (TKGs) are essential for modeling evolving real-world events, yet they are frequently plagued by incompleteness due to the limitations of automated extraction tools. Traditional reasoning models often fail when critical associations between entities are not explicitly recorded. This paper introduces L$^2$TKG (Latent relations Learning for TKG), a novel framework designed to explicitly mine and model "latent relations"—hidden dependencies both within and across timestamps. By leveraging entity similarity and graph attention mechanisms, L$^2$TKG effectively recovers missing structural information, leading to significant improvements in future event prediction. Experimental results on four benchmark datasets demonstrate that L$^2$TKG achieves state-of-the-art performance while maintaining high computational efficiency.

1. Introduction

Temporal Knowledge Graph (TKG) reasoning involves predicting future facts based on a historical sequence of events, typically represented as quadruples $(s, r, o, t)$. While TKGs provide a structured way to represent dynamic information, they are often derived from unstructured sources like news articles, leading to many missing links. These missing links, or latent relations, represent underlying associations that drive events but are never explicitly labeled in the database.

For instance, diplomatic tensions between two nations might influence their future interactions, but if no specific "tension" event is logged, standard models may overlook this dependency. As shown in Figure 1, latent relations can exist within a single timestamp (intra-time) or bridge different historical moments (inter-time), such as linking a withdrawal event in May to a complaint in August.

Conceptual illustration of latent relations in a TKG, showing intra-time and inter-time dependencies.

2. The L$^2$TKG Framework

The proposed L$^2$TKG framework addresses the challenge of missing data by automatically discovering these hidden associations. The architecture consists of three primary components: the Structural Encoder, the Latent Relations Learning module, and the Temporal Representation Learning module.

The L$^2$TKG framework architecture, illustrating the flow from raw TKG to latent relation discovery and temporal integration.

2.1 Structural Encoder (SE)

The process begins with a Structural Encoder that utilizes a Relational Graph Convolutional Network (RGCN). This module generates initial entity representations by aggregating information from the known, explicit facts at each timestamp. This provides a baseline understanding of the graph's structure before latent relations are introduced.

2.2 Latent Relations Learning (LRL)

The LRL module is the core innovation of the framework. It operates in four steps:

  1. Mining: The model calculates a similarity matrix between entity embeddings. High similarity between unconnected entities suggests a potential latent relation.
  2. Intra-time and Inter-time Analysis: It identifies hidden links within the same timestamp and across different historical snapshots.
  3. Sparsification: To ensure the model remains computationally efficient and avoids noise, a $k$-nearest neighbors ($k$-NN) approach is applied. Only the strongest $k$ latent links for each entity are retained.
  4. Encoding: The resulting latent relational graphs are processed using a Relational Graph Attention Network (Relational GAT) to refine entity embeddings based on these newly discovered connections.

2.3 Temporal Representation Learning

To capture the evolution of entities over time, L$^2$TKG employs Gated Recurrent Units (GRUs). A unique Gating Integration mechanism is used to fuse "local" information from the original explicit graph with "global" information derived from the latent relations. This allows the model to balance observed facts with inferred dependencies when making future predictions.

3. Experimental Evaluation

L$^2$TKG was evaluated on four standard TKG benchmarks: ICEWS14, ICEWS18, ICEWS05-15 (socio-political events), and GDELT (global news).

3.1 Key Results

The model achieved state-of-the-art results across all datasets. Notably, on ICEWS14, it improved the Mean Reciprocal Rank (MRR) by nearly 10% compared to previous top-performing models like TiRGN. Furthermore, L$^2$TKG showed superior performance in Hits@1, indicating a higher precision in identifying the exact correct entity for future events.

3.2 Robustness and Efficiency

One of the most significant findings is the model's "recovering power." In stress tests where up to 90% of the original graph edges were removed, L$^2$TKG's performance degraded much more gracefully than its competitors. This confirms that the LRL module successfully reconstructs the underlying world structure even from sparse data.

Despite the additional complexity of learning latent graphs, L$^2$TKG remains highly efficient. The $k$-NN sparsification keeps the graph size manageable, and the parallelizable architecture allows it to outperform several existing SOTA baselines in terms of training and inference speed.

4. Conclusion and Future Work

L$^2$TKG demonstrates that explicitly modeling latent relations is a powerful approach for TKG reasoning, particularly when dealing with incomplete real-world data. By bridging gaps in both space (intra-time) and time (inter-time), the model provides a more holistic view of entity dynamics.

Future research directions include the automatic optimization of the $k$ parameter in $k$-NN to adapt to different dataset densities dynamically. Additionally, improving the interpretability of latent relations—mapping them to human-understandable concepts like "diplomatic pressure" or "economic alliance"—remains an open and promising challenge.

Summary updated

BibTeX
@inproceedings{zhang2023learning,
  author = {Mengqi Zhang and Yuwei Xia and Qiang Liu and Shu Wu and Liang Wang},
  title = {{Learning Latent Relations for Temporal Knowledge Graph Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.705},
}
Figure