Abstract
Temporal Knowledge Graphs (TKGs) extend standard knowledge graphs by incorporating timestamps, yet they often struggle to model continuous time and complex logical patterns simultaneously. This paper introduces PTBox, a novel embedding framework that utilizes polynomial approximation to represent arbitrary timestamps and box embeddings to capture rich logical inference patterns. By treating time as a continuous function and entities as hyperrectangles, PTBox enables zero-shot temporal generalization and robust reasoning. Experimental results on YAGO11k and WikiData demonstrate that PTBox achieves state-of-the-art performance in link prediction and relation prediction tasks.
Introduction
Standard Knowledge Graphs (KGs) represent facts as static triples $(s, r, o)$. However, real-world information is often dynamic; for instance, a political office is held only for a specific duration. Temporal Knowledge Graphs (TKGs) address this by adding a temporal dimension, forming quadruples $(s, r, o, \tau)$.
Existing Temporal Knowledge Graph Embedding (TKGE) methods face two primary challenges. First, many models treat time as a discrete feature, which hinders their ability to generalize to unseen timestamps or model continuous temporal evolution. Second, representing entities as point vectors in a latent space limits the model's ability to capture complex logical constraints, such as hierarchy or mutual exclusion, under temporal conditions.
Methodology: The PTBox Framework
PTBox addresses these limitations through a dual-module architecture consisting of Polynomial Decomposition-based Temporal Representation (PTR) and Box Embedding-based Entity Representation (BER).
Continuous Time Modeling
Instead of static vectors, PTBox treats time as a continuous function. Leveraging the Weierstrass approximation theorem, the model uses Bernstein polynomials to decompose timestamps into a coefficient vector and a learnable temporal basis tensor. This approach allows the model to generate embeddings for any continuous point in time, facilitating reasoning over arbitrary timestamps.
Logical Inference with Box Embeddings
Entities are modeled as $n$-dimensional hyperrectangles (Gumbel boxes). Unlike point embeddings, boxes naturally support set-theoretic operations. Relations are defined as affine transformations—translation and scaling—applied to these boxes. To evaluate a fact's validity at time $\tau$, the model applies a temporal projection to the entity boxes, transforms them via the relation, and calculates the volume of their intersection. This geometric approach natively supports seven key inference patterns, including symmetry, composition, and mutual exclusion.
Experimental Results
The model was evaluated on two benchmark datasets: YAGO11k and WikiData. These datasets contain facts with associated time intervals, providing a rigorous test for temporal reasoning.
Link Prediction Performance
PTBox demonstrates superior performance in link prediction tasks, particularly in recall metrics. As shown in the results table, PTBox achieves state-of-the-art Hits@3 and Hits@10 scores on both datasets.
On YAGO11k, PTBox reached a Hits@10 of 34.7% and an MRR of 16.2%. On WikiData, it achieved a Hits@10 of 52.7% and an MRR of 29.0%. In relation prediction, the model significantly outperformed baselines, reaching 89.6% Hits@1 on YAGO11k and 93.4% on WikiData.
Discussion and Insights
A key insight from this work is the effectiveness of continuous time approximation. Ablation studies confirmed that the polynomial temporal representation (PTR) provides a significant performance boost, suggesting that discrete time modeling is a major bottleneck in current TKGE research. Furthermore, the use of box embeddings allows the model to "move" and "reshape" an entity's probability space over time, mirroring real-world evolutionary dynamics.
Limitations
While PTBox excels in flexibility and recall, it occasionally lags behind specialized baselines like TeRo or RotateQVS in top-1 accuracy (MRR) on seen timestamps. This is attributed to a trade-off: while baselines may overfit to specific discrete timestamps, PTBox prioritizes generalization to arbitrary time points, which is more representative of real-world requirements.
Conclusion
PTBox provides a flexible and theoretically grounded framework for modeling temporal knowledge. By combining continuous polynomial time representations with the logical expressivity of box embeddings, it sets a new standard for reasoning in dynamic environments. Future work may extend this framework to higher-arity relations and real-time knowledge graph completion.
Summary updated