TL;DR
GAttNHP introduces a unified framework for forecasting both "what" will happen and "when" in Temporal Knowledge Graphs by combining continuous-time neural Hawkes processes with semantic soft grouping. By replacing standard mean-based time regression with a Non-Crossing Quantile head, it achieves state-of-the-art performance while remaining highly parameter-efficient and robust to heavy-tailed event distributions.
What Problem Does This Paper Address?
Temporal Knowledge Graphs (TKGs) track real-world facts as timestamped quadruples—such as (Barack Obama, Make a visit, China, 2024-02-09). The goal of TKG extrapolation is to predict future events: both future link prediction (predicting what object will interact next) and occurrence-time estimation (predicting when it will happen).
Existing methods struggle with three core challenges:
- Snapshot Discretization: Most models slice time into discrete snapshots, failing to capture the fluid, continuous nature of time and long-range historical dependencies.
- Isolated Event Chains: They treat subject-relation pairs in isolation, ignoring how an event in one chain might trigger or inhibit an event in another (known as mutual excitation).
- Heavy-Tailed Time Intervals: Real-world event intervals are highly irregular—often characterized by long periods of silence followed by sudden bursts of activity. Standard mean-squared error (MSE) predictors fail catastrophically under these heavy-tailed distributions.
Methods
The authors propose the Group Attention Neural Hawkes Process (GAttNHP), which integrates three novel components:
- Continuous-Time Self-Excitation Encoder (AttNHP): Instead of static snapshots, each subject-relation pair is modeled as a continuous-time marked temporal point process. A self-attention mechanism tracks how past events dynamically influence future intensity.
- Semantic Soft Grouping: To model cross-chain interactions without an expensive $O(B^2)$ pairwise computation over all event chains, GAttNHP dynamically maps chains into $G$ latent semantic groups. It translates globally learned group-level Hawkes priors into an analytical cross-attention mask, letting chains efficiently "borrow" excitation patterns from similar groups.
- Non-Crossing Quantile (NCQ) Regression Head: To handle unpredictable time gaps, the authors swap out standard mean regression for a quantile-based approach. The NCQ head predicts a full set of ordered quantiles and structurally prevents "quantile crossing" (e.g., predicting that the 10th percentile happens after the 90th percentile) by enforcing positive increments via a softplus function.
Datasets
The model was evaluated on six standard benchmark datasets:
- Event-centric (political/international events): ICEWS14, ICEWS18, ICEWS05-15, and the massive, noisy GDELT dataset.
- Knowledge-centric (longer-term stable facts): WIKI and YAGO.
Key Insights and Ideas
- The "Toxic Gradient" Problem: One of the paper's most striking findings is that using standard MSE for time prediction actually ruins entity prediction performance. Because time intervals are heavy-tailed, outliers generate massive, unstable gradients during backpropagation that distort the shared latent space. Switching to a bounded pinball loss via quantile regression stabilizes the entire multi-task learning process.
- Information Borrowing for the Long Tail: Rare or low-frequency event chains suffer from severe data sparsity. Semantic soft grouping acts as an implicit data augmentation mechanism, allowing rare chains to inherit robust temporal dynamics from data-rich semantic neighbors.
- Hawkes as an Attention Mask: The authors elegantly demonstrate that the classic mathematical formulation of a Hawkes process (excitation + decay) can be baked directly into a Transformer's softmax layer as an additive attention mask.
Key Results
GAttNHP achieves substantial improvements over previous state-of-the-art (SOTA) models across both tasks:
- Link Prediction: On ICEWS14, GAttNHP achieves a Mean Reciprocal Rank (MRR) of
0.5068, outperforming the previous best transformer baseline (ECEformer) by over 8 absolute percentage points.
- Time Prediction: It slashes Mean Absolute Error (MAE) dramatically. On ICEWS14, it achieves an MAE of
1.33 days, compared to2.52 daysfor an MSE-based variant and2.95 daysfor the external baseline GHT. - Hardware Efficiency: Despite its performance, GAttNHP uses only 2.8M–8.5M parameters—making it 12× to 35× smaller than ECEformer (88M–107M parameters). It trains comfortably on a single consumer GPU (RTX 4080) with a peak memory footprint under 3.2 GB.
Limitations and Future Work
While GAttNHP dominates on bursty, event-driven datasets like ICEWS and GDELT, its advantages are more modest on knowledge-centric datasets like YAGO. This is because YAGO is dominated by long-term, stable facts (like entity attributes) rather than instantaneous, mutually exciting interactions.
For future work, the authors suggest exploring adaptive group structures that can dynamically adjust the number of latent groups $G$, as well as extending this point-process framework to handle multi-hop relational reasoning.
Summary updated