Understanding Truncated Positional Encodings for Graph Neural Networks

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

Summary

This work initiates the study of truncated positional encodings (PEs) for graph neural networks (GNNs), which are commonly used by practitioners due to the O(n^3) time and space complexity of "complete" PEs. While complete spectral and walk-based PEs are theoretically equivalent in expressive power, falling between the 1-WL and 3-WL tests, the theoretical properties of their truncated variants have been unknown. The research demonstrates that, under truncation, several PE families exhibit fundamentally different expressive powers. A key corollary reveals that truncated spectral PEs are no longer stronger than the 1-WL test. The study also examines k-harmonic distances, a family of spectral PEs, to illustrate expressive power differences even among closely related truncated PEs. Experimentally, the paper finds that combining multiple truncated PE families yields better performance on real-world datasets than using any single family.

Key takeaway

For Machine Learning Engineers designing Graph Neural Networks, this research indicates that your choice of truncated positional encodings significantly impacts model expressivity. You should not assume truncated spectral PEs retain their full theoretical strength beyond the 1-WL test. Instead, consider experimenting with a mix of different truncated PE families, such as spectral and walk-based variants, as this approach has been shown to yield superior performance on real-world datasets compared to relying on a single family.

Key insights

Truncating positional encodings fundamentally alters their theoretical expressive power in graph neural networks.

Principles

Method

The study involves theoretical analysis of truncated spectral and walk-based PEs, including k-harmonic distances, followed by experimental validation on real-world datasets.

In practice

Topics

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.