LEAP: Local ECT-Based Learnable Positional Encodings for Graphs
Juan Amboage, Ernst Röell, Patrick Schnider, Bastian Rieck
TL;DR
LEAP introduces a local, learnable positional encoding for graphs based on the differentiable local Euler Characteristic Transform ($\ell$-ECT). By normalizing $m$-hop neighborhoods and computing the ECT over a grid of directions and thresholds, LEAP produces a flexible, end-to-end trainable graph embedding, with multiple projection strategies to obtain a compact $k$-D vector. Experiments on synthetic and real-world benchmarks show LEAP, especially with learnable directions, consistently improves performance over standard baselines and static PEs, and demonstrate LEAP’s ability to capture topological structure even when node features are uninformative. The approach highlights the potential of topological encodings as powerful components in graph representation learning and lays groundwork for further integration with global PEs and higher-order topology.
Abstract
Graph neural networks (GNNs) largely rely on the message-passing paradigm, where nodes iteratively aggregate information from their neighbors. Yet, standard message passing neural networks (MPNNs) face well-documented theoretical and practical limitations. Graph positional encoding (PE) has emerged as a promising direction to address these limitations. The Euler Characteristic Transform (ECT) is an efficiently computable geometric-topological invariant that characterizes shapes and graphs. In this work, we combine the differentiable approximation of the ECT (DECT) and its local variant ($\ell$-ECT) to propose LEAP, a new end-to-end trainable local structural PE for graphs. We evaluate our approach on multiple real-world datasets as well as on a synthetic task designed to test its ability to extract topological features. Our results underline the potential of LEAP-based encodings as a powerful component for graph representation learning pipelines.
