Simple but Effective Compound Geometric Operations for Temporal Knowledge Graph Completion

Rui Ying, Mengting Hu, Jianfeng Wu, Yalan Xie, Xiaoyi Liu, Zhunheng Wang, Ming Jiang, Hang Gao, Linlin Zhang, Renhong ChengACL 2024

In the field of Artificial Intelligence, Knowledge Graphs (KGs) serve as the backbone of structured information, representing facts as triples like (Iran, Engage in diplomatic cooperation, Afghanistan). However, the real world is dynamic; relationships evolve, treaties are signed, and aid is provided at specific points in time. Temporal Knowledge Graphs (TKGs) address this by adding a timestamp to every fact.

A recent paper from researchers at Nankai University, presented at ACL 2024, introduces TCompoundE, a "simple but effective" approach to predicting missing temporal facts by rethinking geometric operations in vector spaces.

The Challenge of Temporal Evolution

Most existing methods for Temporal Knowledge Graph Embedding (TKGE) rely on a single geometric operation—such as translation (shifting) or rotation—to map entities and relations into a continuous vector space. While these methods work for static data, temporal relationships are complex. They involve patterns that are symmetric, asymmetric, or inverse, and these patterns shift over time.

Temporal evolution of relationships between entities, showing how diplomatic interactions progress from cooperation to formal agreements and aid over time.

As shown in the figure above, modeling the transition from an "intent to meet" to "making a visit" requires a more expressive toolkit than a single rigid transformation can provide. The authors argue that a single geometric trick is often too limited to capture this "temporal evolution."

Methodology: TCompoundE

The core innovation of TCompoundE is the use of compound geometric operations—specifically combining translation and scaling. The model follows a multi-step transformation process:

  1. Time-Specific Operations: The model first adjusts the relation's representation based on the timestamp. It applies a time-specific translation and scaling to the relation's scaling component, capturing how the "intensity" or "nature" of a relation varies over time.
  2. Relation-Specific Operations: These time-adjusted parameters are then used to transform the head entity's vector.
  3. Semantic Similarity: Unlike traditional models that use distance-based scoring, TCompoundE uses a dot product to measure semantic similarity. Mathematical proofs in the paper demonstrate that this approach effectively models symmetric, asymmetric, and inverse relation patterns.

Key Results and Visual Insights

TCompoundE was evaluated on standard benchmarks including ICEWS14, ICEWS05-15, and GDELT. It consistently outperformed state-of-the-art models like TeAST and BoxTE. Notably, on the challenging and noisy GDELT dataset, TCompoundE improved the Mean Reciprocal Rank (MRR) from 0.371 to 0.433.

One of the most compelling pieces of evidence for the model's effectiveness is the visualization of its embedding space. Using t-SNE, the researchers demonstrated how the compound operations organize the data.

t-SNE visualization showing (a) the initial chaotic state of entity embeddings, (b) the effect of applying translation, and (c) the final organized state after applying both translation and scaling.

As seen in the visualization, the initial "chaotic" entity embeddings are successfully moved into organized clusters where head and tail entities from the same fact are in close proximity. This confirms that the combination of translation and scaling provides the necessary flexibility to resolve complex overlaps in temporal data.

Conclusion and Future Work

TCompoundE demonstrates that complexity in results doesn't always require complexity in architecture. By combining two fundamental geometric operations, the model achieves superior performance in TKG completion.

While the model excels at high embedding dimensions (e.g., $d=6000$), this leads to larger model sizes. Future work may focus on compressing these high-dimensional embeddings or extending the model's capabilities from temporal completion to extrapolation (predicting future events).

Summary updated

BibTeX
@inproceedings{ying2024simple,
  author = {Rui Ying and Mengting Hu and Jianfeng Wu and Yalan Xie and Xiaoyi Liu and Zhunheng Wang and Ming Jiang and Hang Gao and Linlin Zhang and Renhong Cheng},
  title = {{Simple but Effective Compound Geometric Operations for Temporal Knowledge Graph Completion}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.596},
}
Figure