SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.08309 · ICML · 2025

Learnable Spatial-Temporal Positional Encoding for Link Prediction

Jingrui He, Zihao Li, Dongqi Fu, Katherine Tieu, Ross Maciejewski

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
kthrn22/l-step canonical 5 of 5
FunctionStatusWhere it lives
compute_src_dst_node_time_shifts Ran kthrn22/l-step/models/MemoryModel.py
code served (permissive licence) · get_code("727d90514a9a5475")
edge_bank_time_window_memory Ran kthrn22/l-step/models/EdgeBank.py
code served (permissive licence) · get_code("1de6e005e59cdf96")
edge_bank_unlimited_memory Ran kthrn22/l-step/models/EdgeBank.py
code served (permissive licence) · get_code("0f56e3ae8a152b2b")
modify_tensor Ran kthrn22/l-step/models/LSTEP.py
code served (permissive licence) · get_code("5bfa121b245f475d")
predict_link_probabilities Ran kthrn22/l-step/models/EdgeBank.py
code served (permissive licence) · get_code("8bcef3dc22f0489a")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Accurate predictions rely on the expressiveness power of graph deep learning frameworks like graph neural networks and graph transformers, where a positional encoding mechanism has become much more indispensable in recent state-ofthe-art works to record the canonical position information. However, the current positional encoding is limited in three aspects: (1) most positional encoding methods use pre-defined, and fixed functions, which are inadequate to adapt to the complex attributed graphs; (2) a few pioneering works proposed the learnable positional encoding but are still limited to the structural information, not considering the real-world time-evolving topological and feature information; (3) most positional encoding methods are equipped with transformers' attention mechanism to fully leverage their capabilities, where the dense or relational attention is often unaffordable on large-scale structured data. Hence, we aim to develop Learnable Spatial-Temporal Positional Encoding in an effective and efficient manner and propose a simple temporal link prediction model named L-STEP. Briefly, for L-STEP, we (1) prove the proposed positional learning scheme can preserve the graph property from the spatial-temporal spectral viewpoint, (2) verify that MLPs can fully exploit the expressiveness and reach transformers' performance on that encoding, (3) change different initial positional encoding inputs to show robustness, (4) analyze the theoretical complexity and obtain less empirical running time than SOTA, and (5) demonstrate its temporal link prediction out-performance on 13 classic datasets and with 10 algorithms in both transductive and inductive settings using 3 different sampling strategies. Also, L-STEP obtains the leading performance in the newest large-scale

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.08309")
get_code_for_paper("2506.08309")
have("2506.08309")

Connect an agent — have() is free.