GAT — Talks, Press, and Discussion

Press & Blog Coverage

  1. Graph Attention Networks project page, Petar Veličković. The first author’s page for the paper.

  2. PetarV-/GAT, GitHub. The authors’ TensorFlow implementation, linked from the paper (Section 3.3, footnote 1).

  3. OpenReview forum for the ICLR 2018 paper, OpenReview. The reviews and discussion of the conference submission.

  4. GATConv in PyTorch Geometric, documentation. A library layer that implements the paper’s attention mechanism.

Q&A (answers from the paper)

Q1: What does GAT add over GCN? GCN fixes each neighbour’s weight from the graph structure. GAT allows “assigning different importances to nodes of a same neighborhood”, which the authors call “a leap in model capacity” (Section 2.2).

Q2: How is an attention coefficient computed? A shared linear map W is applied to both nodes, the two results are concatenated, multiplied by a learned vector a and passed through LeakyReLU with negative slope 0.2. A softmax over the node’s neighbours (including itself) turns the scores into weights (Section 2.1, Eqs. 1–3).

Q3: Why multiple heads, and why average in the last layer? K independent heads are concatenated in hidden layers. In the final prediction layer “concatenation is no longer sensible”, so the heads are averaged before the softmax (Section 2.1, Eq. 6).

Q4: Can GAT handle graphs it has never seen? Yes. Attention is applied in a shared way to every edge, so it does not need the global graph structure up front. On PPI, where the two test graphs are unseen during training, GAT reached a micro-F1 of 0.973 (Sections 2.2 and 3.4, Table 3).

Q5: Does the attention itself matter? On PPI, the same architecture with constant attention (every neighbour weighted the same) scored 0.934 ± 0.006 against 0.973 ± 0.002 for GAT (Section 3.4, Table 3). On Cora, GAT scored 83.0% against 81.4% for a GCN with 64 hidden features (Table 2).

Q6: How expensive is it? One head costs O(|V|FF′ + |E|F′), on par with GCN; multiple heads multiply storage and parameters by K but can run in parallel (Section 2.2).

Common Misconceptions

  1. “GAT is always much better than GCN.” Correction: on Pubmed both scored 79.0% (Table 2). The gains were 1.5 points on Cora (83.0% vs 81.5%) and 2.2 points on Citeseer (72.5% vs 70.3%).

  2. “The attention weights directly explain the model.” Correction: the paper says properly interpreting them “will require further domain knowledge about the dataset under study, and is left for future work” (Section 3.4).

  3. “GAT attends over the whole graph.” Correction: attention is masked to first-order neighbours, including the node itself (Section 2.1).

  4. “The notebook shows a large GAT advantage.” Correction: on the 34-node karate club graph, GAT averaged 0.9214 and GCN 0.8571 on the unlabelled nodes over 5 seeds, about 2 nodes out of 28. The earlier version of the notebook claimed an advantage even though its GCN scored higher.

Real Citations

  • Veličković, P., Cucurull, G., Casanova, A., Romero, A., Liò, P., & Bengio, Y. (2018). Graph Attention Networks. ICLR 2018. arXiv:1710.10903.
  • Kipf, T. N., & Welling, M. (2017). Semi-Supervised Classification with Graph Convolutional Networks. ICLR 2017. (GCN baseline)
  • Bahdanau, D., Cho, K., & Bengio, Y. (2015). Neural Machine Translation by Jointly Learning to Align and Translate. ICLR 2015. (The attention setup GAT follows, Section 2.1)
  • Vaswani, A., et al. (2017). Attention Is All You Need. NIPS 2017. (Self-attention that inspired GAT, Section 1)
  • Hamilton, W. L., Ying, R., & Leskovec, J. (2017). Inductive Representation Learning on Large Graphs. NIPS 2017. (GraphSAGE, the inductive baseline)