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

GAMMA: Gated Multi-hop Message Passing for Homophily-Agnostic Node Representation in GNNs

Amir Ghazizadeh Ahsaei, Rickard Ewetz, Hao ZhengNeurIPS 2025

TL;DR

GAMMA is a new Graph Neural Network (GNN) architecture designed for "heterophilic" graphs—where connected nodes often have different labels. By using a clever iterative gating mechanism and a weight-sharing scheme, GAMMA achieves state-of-the-art accuracy while being up to 20× faster and significantly more memory-efficient than existing specialized models.

What Problem Does This Paper Address?

Most standard GNNs (like GCN or GAT) rely on the homophily assumption: the idea that "birds of a feather flock together." In these models, a node's representation is updated by averaging the features of its immediate neighbors. This works great for citation networks where similar papers link to each other, but it fails in heterophilic graphs—like fraud detection networks (where fraudsters link to legitimate users) or protein-protein interactions.

In heterophilic graphs, the useful information might be two or three "hops" away. While recent "multi-hop" GNNs try to fix this by looking at larger neighborhoods, they usually do so by concatenating features from every hop. This leads to a "parameter explosion" and massive memory usage. The authors point out that some state-of-the-art models are 33× slower and use 6× more GPU memory than a basic GCN, making them impractical for large-scale, real-world applications.

Methods

The authors introduce GAMMA (Gated Amorphous Multi-hop Message Aggregation), which uses two primary innovations to balance performance and efficiency:

Overview of GAMMA's Gated Multi-hop Message Passing
  1. Adaptive Node-Specific Gating: Inspired by Capsule Networks, GAMMA doesn't just blindly combine information from different hop distances. Instead, it uses an iterative "routing" process. Each node looks at the aggregated information from its 1-hop, 2-hop, and $k$-hop neighbors and calculates an "agreement" score (via dot product). It then dynamically weights the most relevant hops, allowing each individual node to decide which neighborhood distance is most informative for its specific context.
  2. Efficient Weight Sharing: To avoid the memory overhead of separate weight matrices for every hop, GAMMA uses a single shared linear transformation for all distances. To maintain the ability to distinguish between hops, it applies lightweight, learnable channel-wise scaling vectors. This keeps the feature dimensionality constant, making the model much more "GPU-friendly."

Datasets

The researchers evaluated GAMMA across a massive suite of 16 datasets:

  • Homophilic Benchmarks: Cora, CiteSeer, and PubMed.
  • Small Heterophilic Benchmarks: Texas, Wisconsin, Actor, Squirrel, Chameleon, and Cornell.
  • Large-Scale Heterophilic Benchmarks: ogbn-arxiv, roman-empire, ogbn-products (2.4M nodes), minesweeper, amazon-ratings, amazon-photos, and tolokers.

Key Insights and Ideas

  • Heterophily is not monolithic: The authors show that heterophily isn't just a graph-level property; it varies significantly from node to node. A global rule (e.g., "always look at 2-hop neighbors") is suboptimal. GAMMA’s per-node adaptivity is the "aha moment" that allows it to handle mixed homophily-heterophily patterns.
  • The "Memory Wall" is Real: The paper provides a systematic analysis of why current heterophilic GNNs struggle. Many rely on recursive operations or feature concatenation that break "kernel fusion" on GPUs, leading to hundreds of tiny, slow memory transactions.
  • Agreement as a Filter: By using iterative routing, the model effectively learns to ignore "noisy" hops that don't align with the emerging consensus of a node's representation.

Key Results

GAMMA proves that you don't need massive parameter counts to achieve high performance on complex graphs.

Computation time and memory usage comparison of various GNNs
  • Speed and Efficiency: GAMMA is a speed demon. It achieves up to 20× faster inference than H2GCN and uses significantly less memory. On the Flickr dataset, it ran in ~23ms compared to H2GCN’s ~463ms.
  • Scalability: While many competitors hit "Out-Of-Memory" (OOM) errors on the 2.4-million-node ogbn-products dataset, GAMMA handled it easily thanks to its fixed-dimensionality design.
  • Accuracy: Despite being much leaner, GAMMA matched or exceeded the accuracy of state-of-the-art models across almost all benchmarks. It achieved the top accuracy on 6 out of 7 large-scale datasets.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Fixed Iteration Count: Currently, GAMMA uses a fixed number of routing iterations (usually 2 or 3) for all nodes. Some nodes might benefit from more "thinking time," while others might need less.
  • Routing Complexity: While dot-product agreement works well, more sophisticated routing strategies could potentially capture even more complex structural relationships.
  • Extreme Scale: While it handles millions of nodes, the gating mechanism itself might need further optimization for "web-scale" graphs with billions of edges.

Summary updated

BibTeX
@inproceedings{ahsaei2025gamma,
  author = {Amir Ghazizadeh Ahsaei and Rickard Ewetz and Hao Zheng},
  title = {{GAMMA: Gated Multi-hop Message Passing for Homophily-Agnostic Node Representation in GNNs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=S9YexPytpi},
}
Figure