Understanding Truncated Positional Encodings for Graph Neural Networks
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
- Truncated PEs differ in expressive power.
- Truncated spectral PEs are not stronger than 1-WL.
- Mixing truncated PEs improves GNN performance.
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
- Consider combining different truncated PE families.
- Re-evaluate assumptions about spectral PE strength.
- Explore k-harmonic distances for GNNs.
Topics
- Graph Neural Networks
- Positional Encodings
- Truncated PEs
- Spectral PEs
- Walk-based PEs
- Expressive Power
Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.