TL;DR
Adaptive Message Passing (AMP) is a new variational framework that allows Graph Neural Networks (GNNs) to autonomously learn two critical things: how deep they need to be and which messages are actually worth sending. By combining adaptive depth with soft message filtering, AMP effectively neutralizes the "triple threat" of GNN limitations—oversmoothing, oversquashing, and underreaching—leading to state-of-the-art performance on tasks requiring long-range reasoning.
What Problem Does This Paper Address?
In fields like computational chemistry and physics, understanding a system often requires capturing long-range interactions (like electrostatic forces in a protein). Standard GNNs try to model these through "message passing," where nodes iteratively exchange information with their neighbors. However, this approach hits a wall due to three intrinsic flaws:
- Oversmoothing: As you add more layers to reach distant nodes, node embeddings tend to converge to the same value, washing out all useful features.
- Oversquashing: To capture info from a large neighborhood, a node must compress an exponentially growing amount of information into a fixed-size vector, creating a massive information bottleneck.
- Underreaching: If the network isn't deep enough, information simply never travels far enough to inform the final prediction.
Researchers usually try to fix these by manually tuning the number of layers (grid search) or "rewiring" the graph to add artificial edges. AMP proposes a more elegant solution: let the model learn to navigate these trade-offs dynamically.
Methods
The authors introduce Adaptive Message Passing (AMP), which treats the GNN architecture through the lens of Variational Inference.
- Adaptive Depth: Inspired by Unbounded Depth Networks (UDNs), AMP treats the network depth ($L$) as a random variable. During training, the model learns a distribution over the number of layers. It can "grow" or "shrink" its depth based on the complexity of the task, effectively solving underreaching without falling into the trap of fixed-depth oversmoothing.
- Soft Message Filtering: This is the core innovation. In standard GNNs, every node sends a message to its neighbors at every layer. In AMP, each node learns a "filter"—a value between 0 and 1—that decides how much of its information should be propagated to the next layer.
- Differentiable Framework: Unlike previous attempts at pruning messages which relied on discrete (non-differentiable) choices, AMP's filtering is "soft" and fully differentiable, allowing for standard backpropagation.
- Variational Lower Bound (ELBO): The model is trained to maximize an ELBO that balances predictive accuracy with regularizers that penalize excessive depth and unnecessary parameters.
Datasets
The authors evaluated AMP on a mix of synthetic and real-world benchmarks:
- Synthetic Long-Range Tasks: Predicting graph Diameter, Single-Source Shortest Paths (SSSP), and Node Eccentricity. These are "pure" tests of a model's ability to move information across a graph.
- Long-Range Graph Benchmark (LRGB):
peptides-func(classification) andpeptides-struct(regression). These involve molecular graphs with ~150 nodes where long-range chemical interactions are vital. - Heterophilic Node Classification: Datasets like Texas, Wisconsin, and Actor, where neighboring nodes often have different labels, making standard message passing difficult.
Key Insights and Ideas
- Filtering as a Bottleneck Reliever: The paper argues that "oversquashing" isn't just about the graph's topology; it's about noise. By filtering out irrelevant messages, AMP reduces the "volume" of information trying to squeeze through the node's bottleneck, effectively widening it.
- The "Aha" Moment on Depth: Qualitative analysis showed that for the Diameter task, the model learned it needed exactly ~20 layers to succeed. For SSSP, it learned it needed far fewer. The model "discovered" the underlying logic of the task through its learned depth distribution.
- Maintaining Energy: The authors used "Dirichlet energy" to measure oversmoothing. While standard GNNs see their energy collapse (smooth out) as depth increases, AMP maintains high energy even at great depths, proving it preserves node distinctiveness.
- Theoretical Propagation: They provide a proof showing that AMP can propagate a message unchanged across a path—a feat that synchronous, fixed-depth GNNs struggle to achieve.
Key Results
AMP consistently outperformed or matched state-of-the-art specialized architectures across the board:
- Synthetic Tasks: AMP reduced test errors by an average of 63% on Diameter, 72% on SSSP, and 32% on Eccentricity compared to base models like GCN and GIN.
- Chemical Datasets: On
peptides-func, AMP improved Average Precision by 2% to 3.4% over base models. Onpeptides-struct, it reached state-of-the-art Mean Absolute Error levels. - Heterophilic Graphs: The gains were massive. For the Texas dataset, a standard GCN achieved ~52% accuracy; when wrapped in the AMP framework, that same GCN jumped to 81.46%.
Limitations and Future Work
- Readout Overhead: Because AMP uses a "multi-output" family of architectures (it can produce a prediction at any layer), it requires a readout MLP for every layer. This increases the parameter count linearly with depth ($O(|V|L)$).
- Hyperparameter Choice: While depth is learned, the family of the depth distribution (e.g., Poisson vs. Folded Normal) and the type of filtering (input-based vs. embedding-based) are still hyperparameters that require some empirical testing.
- Scaling: While the complexity is linear with the number of nodes, the authors suggest future work could explore even more efficient ways to implement the layer-wise readouts for massive-scale graphs.
Summary updated