Graph Ordering Attention Networks

Michail Chatzianastasis, Johannes F. Lutzeyer, George Dasoulas, Michalis Vazirgiannis

Abstract

Standard Graph Neural Networks (GNNs) treat a node’s neighbors as an unordered set, which prevents them from capturing complex interactions between those neighbors. Graph Ordering Attention Networks (GOAT) solve this by using an attention mechanism to learn a meaningful "ranking" of neighbors, then processing them as a sequence through an RNN to capture synergistic information while remaining mathematically "fair" (permutation-equivariant).

Introduction: The Synergy Gap in GNNs

Most GNNs follow a "message-passing" scheme where a node aggregates information from its neighbors using functions like sum, mean, or max. By definition, these functions are permutation-invariant—they do not account for the order of neighbors. While this ensures mathematical consistency on graphs, it comes with a hidden cost: standard aggregators treat neighbors as independent entities, failing to capture synergy.

Synergy occurs when the combined information from a group of neighbors is greater than the sum of their individual parts. For example, in a citation network, the presence of two specific keywords in neighboring papers might reveal more about a node's category than seeing either keyword alone. Current GNNs are often "blind" to these multi-node interactions.

Methods: The GOAT Layer

The authors introduce the GOAT layer, which moves beyond simple aggregation by treating the neighborhood as a sequence. The process consists of two main stages:

  1. The Ordering Module: Instead of just using attention to weight neighbors (as in GAT), GOAT uses a self-attention mechanism to calculate a score for every neighbor. It then sorts the neighbors based on these scores, creating a deterministic, learned ordering of the neighborhood.
  2. The Sequence Modeling Part: Once ordered, the neighbors are fed into a Recurrent Neural Network (RNN), typically a Bidirectional LSTM.
The GOAT layer architecture: neighbors are ordered via an attention-based module and then processed as a sequence by an LSTM.

The authors use the framework of Partial Information Decomposition (PID) to justify the use of an LSTM. They argue that an LSTM’s architecture—specifically its "forget gate" and internal memory—is uniquely suited to capture synergistic interactions and filter out redundant information. Crucially, because the sorting is based on node features, the entire layer remains permutation-equivariant.

Experimental Results

The researchers evaluated GOAT on a mix of synthetic and real-world benchmarks.

Synthetic Tasks

On tasks designed to test structural properties—such as "Top-2 pooling" (identifying nodes with specific high-value neighbors), Betweenness Centrality, and Effective Size—GOAT demonstrated significant dominance. For instance, on the Top-2 pooling task, GOAT outperformed GAT by 18.36% and GraphSAGE(lstm) by 6.65%.

Real-World Node Classification

GOAT was tested across various domains, including citation networks (Cora, CiteSeer, ogbn-arxiv), social networks (LastFM Asia), and co-authorship graphs (CS, Physics).

Performance comparison of GOAT against standard GNN baselines across multiple real-world node classification datasets.

As shown in the results, GOAT achieved the highest accuracy on 8 out of 9 real-world datasets compared to baselines like GCN, GIN, GAT, and PNA. Ablation studies further revealed that the learned attention-based ordering was significantly more effective than random ordering, confirming that the specific sequence matters.

Conclusion

GOAT addresses the "synergy gap" in message-passing GNNs by introducing a learned ordering mechanism. By transforming neighborhoods into sequences, it allows for more expressive aggregation via RNNs while maintaining the necessary equivariance properties. While the approach introduces some computational overhead due to sorting and sequential processing, its superior performance on complex relational tasks suggests that neighbor order is a vital, yet often overlooked, component of graph representation learning.

Summary updated

BibTeX
@inproceedings{chatzianastasis2023graph,
  author = {Michail Chatzianastasis and Johannes F. Lutzeyer and George Dasoulas and Michalis Vazirgiannis},
  title = {{Graph Ordering Attention Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25856},
}
Figure