[Paper Review] How Attentive are Graph Attention Networks?
The paper shows that standard Graph Attention Networks (GATs) implement static rather than dynamic attention, proves the limitation theoretically, and introduces GATv2, a simple reordering of operations that achieves dynamic attention and superior performance across multiple benchmarks.
Graph Attention Networks (GATs) are one of the most popular GNN architectures and are considered as the state-of-the-art architecture for representation learning with graphs. In GAT, every node attends to its neighbors given its own representation as the query. However, in this paper we show that GAT computes a very limited kind of attention: the ranking of the attention scores is unconditioned on the query node. We formally define this restricted kind of attention as static attention and distinguish it from a strictly more expressive dynamic attention. Because GATs use a static attention mechanism, there are simple graph problems that GAT cannot express: in a controlled problem, we show that static attention hinders GAT from even fitting the training data. To remove this limitation, we introduce a simple fix by modifying the order of operations and propose GATv2: a dynamic graph attention variant that is strictly more expressive than GAT. We perform an extensive evaluation and show that GATv2 outperforms GAT across 11 OGB and other benchmarks while we match their parametric costs. Our code is available at https://github.com/tech-srl/how_attentive_are_gats . GATv2 is available as part of the PyTorch Geometric library, the Deep Graph Library, and the TensorFlow GNN library.
Motivation & Objective
- Identify whether GATs compute dynamic attention as in classic attention mechanisms.
- Theoretically characterize the limitation of GAT’s attention as static and query-independent.
- Propose a minimal modification to transform GAT into a dynamic attention model (GATv2).
- Empirically compare GAT and GATv2 across diverse benchmarks to assess performance and robustness.
- Provide practical guidance on when to use GATv2 over GAT based on dataset properties.
Proposed method
- Define static vs. dynamic attention and formalize their properties.
- Prove that a standard GAT layer computes only static attention (Theorem 1).
- Propose GATv2 by rearranging the order of linear and nonlinearity operations to enable dynamic attention (Theorem 2).
- Evaluate on synthetic and real datasets (node-, link-, graph-prediction) including OGB benchmarks and QM9.
- Compare robustness to edge noise and performance with varying attention heads.
- Release implementation and integration with major frameworks.
Experimental results
Research questions
- RQ1Does standard GAT implement dynamic attention or only static attention?
- RQ2Can a minimal modification to GAT enable dynamic attention without increasing parameter count dramatically?
- RQ3Does GATv2 improve accuracy and robustness across diverse graph tasks compared to GAT?
- RQ4In which benchmarks does dynamic attention yield the most benefit?
Key findings
- GAT is limited to static attention where the ranking of neighbor importance is query-independent.
- GATv2, by reordering operations, achieves dynamic attention and strictly more expressiveness than GAT.
- GATv2 outperforms GAT across 12 benchmarks including Open Graph Benchmark tasks and QM9 properties.
- GATv2 shows greater robustness to structural noise than GAT.
- On the DictionaryLookup synthetic task, GAT fails to fit training data with a single head but GATv2 succeeds.
- In some tasks, non-attentive GNNs (GCN/GIN) can outperform attention-based models, highlighting task-dependent benefits of attention.
Better researchstarts right now
From reading papers to final review, dramatically reduce your research time.
No credit card · Free plan available
This review was created by AI and reviewed by human editors.