Learnable Diffusion-based Positional Encodings for Link Prediction

Jiaji Ma, Murad Huseynli, Danai KoutraNeurIPS 2026

TL;DR

Standard Graph Neural Networks (GNNs) learn great node-level features, but they often stumble on link prediction because two nodes having similar neighborhoods doesn't mean they actually share a structural connection. Instead of building a heavy, specialized model architecture from scratch to fix this, LINKDPE injects learnable, multi-scale graph diffusion directly into individual node features. You compute these positional encodings once per node, append them to your existing features, and suddenly even a basic MLP can "see" complex pairwise graph topology.

What Problem Does This Paper Address?

Imagine trying to predict whether two people at a massive conference will become collaborators. A standard GNN looks at Person A and Person B independently, summarizing their local circles. If both are surrounded by physicists, their node embeddings look identical—even if they exist in completely disconnected cliques on opposite sides of the convention center. Link prediction is inherently relational: it depends on pairwise proximity, like shared friends or short connecting paths.

Historically, researchers bridged this gap in one of two ways: using rigid, hand-crafted heuristics (like counting Common Neighbors or running Personalized PageRank), or engineering bespoke, computationally expensive GNNs that extract subgraphs for every single candidate link. Graph Positional Encodings (PEs)—extra features tacked onto nodes to give them spatial awareness—seem like a lighter, data-centric alternative. However, standard PEs are designed to give nodes "global coordinates" rather than ensuring that the mathematical interaction between two nodes reflects how strongly the graph topology wants them connected.

Methods

LINKDPE solves this by turning pairwise proximity into reusable, node-wise features across three intuitive stages:

Figure 1: Overview of LINKDPE: it constructs truncated diffusion factors, selects complementary scales using a DPP objective over spectral response vectors, then applies Chebyshev-parameterized spectral projections and learnable scale gates to obtain task-adaptive multi-scale positional encodings.
  1. Spectral Diffusion Factorization (S1): Imagine dropping ink on a node and watching it diffuse across the graph's edges over time (a process captured mathematically by diffusion kernels like heat kernels or Personalized PageRank). Because valid diffusion kernels are positive semidefinite matrices, they can be factored into node-wise vectors whose inner products recover the exact pairwise diffusion similarity between any two nodes. For scalability on large graphs, LINKDPE computes only the top-$K$ eigenvalues and eigenvectors of the normalized adjacency matrix, capturing the dominant structural modes without blowing up memory.
  2. Diversity-Driven Multi-Scale Selection (S2): Link formation happens at different ranges—some networks care about immediate 2-hop triangles, while others rely on broader community structure. Instead of guessing which diffusion timescales ($\tau$) to use—or picking redundant ones—LINKDPE evaluates candidate scales and uses a Determinantal Point Process (DPP). Think of the DPP as a geometric volume-maximizer: it automatically selects a subset of scales whose spectral responses point in maximally different directions.
  3. Learnable Spectral Weighting (S3): Not every graph frequency or timescale matters equally for your specific task. Rather than keeping the encodings static, LINKDPE passes the spectral responses through a learnable Chebyshev polynomial projection to amplify useful frequencies, calibrates each scale with a learnable scalar gate, and concatenates the final result directly onto the original node features. Any off-the-shelf link predictor can then ingest them without architectural changes.

Datasets

The authors evaluate LINKDPE across 8 real-world transductive link prediction benchmarks (no new datasets are introduced, though controlled semi-synthetic graphs are used in the appendix to test robustness):

  • Citation networks: Cora, Citeseer, Pubmed
  • Social & Collaboration networks: facebook, ogbl-collab
  • Co-purchase networks: Amazon-Computers, Amazon-Sports, Amazon-Clothing

Key Insights and Ideas

  • One Subspace to Rule Them All: You might worry that truncating to the top-$K$ eigenvectors means you need a different set of eigenvectors for every diffusion timescale. The authors prove (via the Eckart-Young-Mirsky theorem) that for any monotone nonnegative diffusion kernel, the exact same top-$K$ eigenspace provides the mathematically optimal low-rank approximation across all scales simultaneously.
  • Heuristics Under the Hood: Classic link-prediction heuristics aren't separate ad-hoc tricks; they live inside this exact walk-and-diffusion family. For instance, the second-order normalized walk operator naturally recovers an endpoint-normalized Resource Allocation overlap (and Common Neighbors on regular graphs). LINKDPE generalizes these fixed rules into a learnable spectrum.
  • Diversity Equals Expressivity: The authors prove that the dimension of structural patterns the model can express equals the matrix rank of the selected scale responses—providing a clean theoretical justification for why DPP-based diversity selection beats picking scales uniformly or at random.

Key Results

Tested across all 8 datasets and 5 distinct base predictors (MLP, GCN, GraphSAGE, GAE, and the structure-aware SOTA model BUDDY), LINKDPE achieves an average performance gain of 6.97% over unaugmented base models, consistently outperforming 7 competing feature-augmentation and PE baselines.

Table 1: Link prediction performance (%, higher is better) across datasets and base models. Best performance per dataset is highlighted in bold. LINKDPE achieves the best overall performance.
  • Giving Sight to the Graph-Blind: When paired with a simple MLP—which performs zero message passing and ignores edges—LINKDPE boosts Mean Reciprocal Rank (MRR) by 3.5% to 13.7% across datasets (e.g., jumping from 30.94% to 43.69% on Cora, and 42.46% to 56.11% on Citeseer). The encodings alone carry potent relational topology.
  • Helping the Experts: Even on BUDDY, an architecture explicitly built around pairwise structural descriptors, LINKDPE pushes Pubmed MRR from 20.64% to 33.18% and Citeseer from 60.18% to 65.41%, showing it captures complementary multi-scale signals.
  • Ablation Takeaways: Stripping away the multi-scale basis causes the steepest drop on GCN (-6.10% average), while removing the learnable Chebyshev weighting drops performance by 4.62%, confirming both diversity and task-adaptability do heavy lifting.

Limitations and Future Work

  • Topology Assumption: LINKDPE assumes graph diffusion proximity actually drives link formation; in networks where links form purely due to node attributes (e.g., matching user profiles regardless of network distance), its impact will naturally be muted.
  • Preprocessing Overhead: While Lanczos eigensolvers keep top-$K$ extraction scalable, computing spectral decompositions still adds preprocessing time and memory overhead compared to running a raw GNN.
  • Transductive Only: Because the encodings are factored directly from the observed training graph, LINKDPE currently applies only to static, transductive settings. Extending this spectral diffusion framework to inductive (unseen graphs), temporal (evolving edges), and heterogeneous networks remains open for future work.

Summary updated

Abstract

Link prediction relies on pairwise structural proximity, but standard node representations are not explicitly designed so that their interactions reflect such signals. Existing structure-aware approaches address this gap through specialized architectures or handcrafted proximity features, often at the expense of generality or additional computational cost. In this work, we take a data-centric approach and propose $\text{LinkDPE}$, a learnable $\underline{\text{d}}$iffusion-based $\underline{\text{p}}$ositional $\underline{\text{e}}$ncoding framework that injects structural proximity into the node features. Our key idea is that diffusion kernels, which capture multi-scale connectivity patterns, admit a factorization into node-wise embeddings whose inner products recover pairwise proximity scores. Based only on the observed training graph, $\text{LinkDPE}$ constructs diffusion-based encodings across scales, adaptively selects complementary diffusion scales, and learns task-specific spectral weightings, enabling a wide range of link predictors to exploit structural information without architectural modification. Theoretically, we show that (i) diffusion proximity admits a node-wise kernel factorization, (ii) many classical link prediction heuristics are recovered as special cases of low-order walk and diffusion operators, and (iii) multi-scale spectral responses allow the model to capture a richer set of structural similarity patterns within a shared truncated spectral basis. Across 8 benchmark datasets and 5 representative base models, $\text{LinkDPE}$ consistently improves link prediction performance over original features and positional-encoding baselines, yielding average gains of 6.97\% over the unaugmented base models.
BibTeX
@inproceedings{ma2026learnable,
  author = {Jiaji Ma and Murad Huseynli and Danai Koutra},
  title = {{Learnable Diffusion-based Positional Encodings for Link Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PBFzkDs0PP},
}
Figure