NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generalized Laplacian Positional Encoding for Graph Representation Learning

Sohir Maskey, Ali Parviz, Maximilian Thiessen, Hannes Stärk, Ylli Sadikaj, Haggai Maron · DOI

Abstract

Standard Graph Neural Networks (GNNs) are fundamentally limited in their ability to distinguish non-isomorphic graphs. While Laplacian Positional Encodings (LPE) have emerged as a powerful solution to this problem, they are traditionally rooted in the 2-norm (Euclidean) optimization of the graph Laplacian. This paper explores a generalization of LPE by introducing $p$-norm objectives. We demonstrate that while these generalized encodings ($p$-PE) offer unique structural insights—such as soft clustering—and theoretically enhance model expressivity beyond the 1-Weisfeiler-Lehman (1-WL) test, they present significant optimization challenges that highlight the continued practical dominance of spectral methods.

Introduction

Message Passing Neural Networks (MPNNs) serve as the foundation for most modern graph machine learning tasks. However, their expressive power is theoretically upper-bounded by the 1-WL isomorphism test. This limitation means that MPNNs cannot distinguish between certain distinct graph structures, such as a single 6-node cycle and two disjoint 3-node cycles, which is a critical failure for applications in chemistry and social network analysis.

To overcome this, researchers utilize Positional Encodings (PE) to provide nodes with structural coordinates. The most prevalent method is Laplacian Positional Encoding (LPE), derived from the eigenvectors of the Graph Laplacian. LPE is the solution to an optimization problem that minimizes the squared distance between connected nodes (the 2-norm). This paper investigates whether the 2-norm is the optimal choice for graph representation or merely a computational convenience, proposing a family of Generalized Laplacian Positional Encodings based on general $p$-norms.

Methodology

The $p$-Norm Objective

The authors define $p$-PE by generalizing the classic LPE objective. Instead of minimizing the squared Euclidean distance between node embeddings, the proposed objective minimizes the $p$-th power of the $p$-norm distance:

$$\min \sum_{(i,j) \in E} |X_i - X_j|^p$$

where $X_i$ and $X_j$ are the embeddings of adjacent nodes. By varying $p$, the encoding captures different structural properties of the graph.

Optimization Strategy

Unlike the 2-norm, which can be solved efficiently via eigendecomposition, $p$-norms do not have closed-form solutions for $p \neq 2$. The authors approach this as a constrained optimization problem on a Stiefel manifold to ensure that the resulting embeddings remain orthogonal and non-trivial. They employ Riemannian SGD to navigate this manifold.

To mitigate the risk of converging to poor local minima, a continuation method is used: the algorithm first solves the problem for $p=2$ and then iteratively "warps" the solution toward the target $p$ value (e.g., $p=1.2$). These resulting $p$-PEs are then integrated into standard GNN architectures, such as GINE and Graph Transformers, as additional node features.

Theoretical and Qualitative Insights

Breaking the 1-WL Barrier

A key theoretical contribution of this work is the proof that MPNNs augmented with at least two $p$-eigenvectors are strictly more expressive than the 1-WL test for any $p \in (1, \infty)$. This confirms that $p$-PE provides the necessary structural information to distinguish graphs that standard MPNNs cannot.

Soft Clustering vs. Smooth Waves

Qualitative analysis on the Minnesota road map graph reveals a stark difference between standard LPE and $p$-PE. While $p=2$ produces smooth, wave-like embeddings across the graph, lower values of $p$ (approaching 1) cause the embeddings to behave like a soft clustering function. The embeddings "snap" to specific graph components or clusters, effectively partitioning the graph more aggressively. This property allows the network to identify distinct structural motifs, such as rings in molecular graphs, with greater clarity.

Experimental Results

The researchers evaluated $p$-PE across several benchmarks, including ZINC (molecular regression) and Cora/Citeseer (node classification).

  • Node Classification: On the Citeseer dataset, a GCN using 1.2-PE achieved an accuracy of 75.2%, a marginal improvement over the base GCN (74.7%) and the GCN with standard LPE (74.3%).
  • Graph Regression: Results on the ZINC dataset were competitive but nuanced. GINE supplemented with 1.2-PE (via SignNet) achieved a Mean Absolute Error (MAE) of 0.18. While this outperformed models without PE, it did not consistently surpass the best-performing 2-norm LPE variants, which reached an MAE of 0.168.

These results lead to a significant observation: while $p$-PE is theoretically superior and captures unique structural data, the standard $p=2$ LPE remains an exceptionally robust baseline that is difficult to outperform in practice.

Limitations and Future Directions

The primary challenge for $p$-PE is optimization complexity. Solving for $p$-eigenvectors is computationally expensive and numerically less stable than standard eigendecomposition. This limits the scalability of the method, particularly when attempting to compute a high number of embedding dimensions ($k$).

Future research may explore:

  1. Link Prediction: Determining if the "clustering" nature of low-$p$ encodings improves edge prediction.
  2. Shortest Paths: Investigating $p \to \infty$, which theoretically relates to $L_\infty$ distances and shortest-path information.
  3. Efficiency: Developing neural approximations or "learned" mappings to generate $p$-PEs without the need for iterative Riemannian SGD during inference.

Conclusion

Generalized Laplacian Positional Encodings provide a mathematically rigorous framework for extending graph representations beyond the Euclidean norm. While the $p=2$ case remains the practical standard due to its computational efficiency, the exploration of $p$-norms reveals a deeper connection between optimization objectives and the structural properties—like soft clustering—captured by positional encodings.

Summary updated

BibTeX
@misc{maskey2022generalized,
  author = {Sohir Maskey and Ali Parviz and Maximilian Thiessen and Hannes Stärk and Ylli Sadikaj and Haggai Maron},
  title = {{Generalized Laplacian Positional Encoding for Graph Representation Learning}},
  year = {2022},
  eprint = {2210.15956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.15956},
}
Figure