Abstract
Path-based Graph Neural Networks (GNNs) have established themselves as state-of-the-art for Knowledge Graph Completion (KGC). However, their computational cost is high due to redundant and empty message passing. This paper introduces TAGNet (TruncAted propaGation Network), which leverages the shortest-path distance between nodes to prune unnecessary computations. By restricting message aggregation to a specific temporal window, TAGNet achieves up to a 90% reduction in message overhead while maintaining or improving predictive accuracy.
Introduction
Knowledge Graph Completion (KGC) involves predicting missing relations between entities. Path-based GNNs, such as NBFNet, are highly effective because they explicitly model the connectivity between nodes. Despite their success, these models suffer from significant inefficiencies. In a standard $T$-layer GNN, every node aggregates messages at every layer. This leads to "empty messages" where distant nodes process zeros before the signal reaches them, and "redundant messages" where nearby nodes continue to aggregate increasingly long, noisy paths.
The TAGNet Approach
TAGNet addresses these inefficiencies through a distance-based pruning strategy called Truncated Bellman-Ford. Instead of universal participation, a node $o$ only updates its state during a specific window of iterations. Specifically, propagation occurs only when the iteration $t$ falls within $[dist(s, o), dist(s, o) + \delta]$, where $dist(s, o)$ is the shortest path distance from the source $s$ to node $o$, and $\delta$ is a small non-negative integer offset.
This windowing ensures that nodes only process information when it is most likely to be fresh and relevant. To prevent the loss of structural information due to pruning, TAGNet incorporates "Degree Messages"—pseudo-messages that account for the total number of neighbors, even those currently pruned. Furthermore, an attention-based mechanism allows the model to dynamically learn the optimal $\delta$ for different source-target pairs.
Experimental Results
The authors evaluated TAGNet on standard benchmarks, including FB15k-237 and WN18RR, in both transductive and inductive settings. TAGNet demonstrates remarkable efficiency gains: on the sparse WN18RR dataset, it reduces the number of propagated messages by 90% compared to NBFNet. On FB15k-237, the reduction ranges from 40% to 60%.
Crucially, this reduction does not come at the cost of accuracy. TAGNet matches or exceeds the performance of previous state-of-the-art models across metrics like MRR and Hits@10. As shown in the figure above, the model's performance is robust to the choice of $\delta$. Even with small values of $\delta$, TAGNet captures sufficient path information to outperform more complex pruning baselines like A*Net and AdaProp. This aligns with the "Katz Index" intuition—that shorter paths are generally more informative than long, redundant ones.
Conclusion
TAGNet provides a scalable and efficient framework for path-based reasoning. By aligning the propagation process with the underlying graph distance, it eliminates the vast majority of redundant computations. This approach allows for deeper graph exploration without the typical linear increase in computational cost, paving the way for more efficient large-scale knowledge graph analysis.
Summary updated