Massive Activations in Graph Neural Networks: Decoding Attention for Domain-Dependent Interpretability
Not on the map. Why?
Abstract (arXiv)
Graph Neural Networks (GNNs) have become increasingly popular for effectively modeling graph-structured data, and attention mechanisms have been pivotal in enabling these models to capture complex patterns. In our study, we reveal a critical yet underexplored consequence of integrating attention into edge-featured GNNs: the emergence of Massive Activations (MAs) within attention layers. By developing a novel method for detecting MAs on edge features, we show that these extreme activations are not only activation anomalies but encode domain-relevant signals. Our post-hoc interpretability analysis demonstrates that, in molecular graphs, MAs aggregate predominantly on common bond types (e.g., single and double bonds) while sparing more informative ones (e.g., triple bonds). Furthermore, our ablation studies confirm that MAs can serve as natural attribution indicators, reallocating to less informative edges. Our study assesses various edge-featured attention-based GNN models using benchmark datasets, including ZINC, TOX21, and PROTEINS. Key contributions include (1) establishing the direct link between attention mechanisms and MAs generation in edge-featured GNNs, (2) developing a robust definition and detection method for MAs enabling reliable post-hoc interpretability. Overall, our study reveals the complex interplay between attention mechanisms, edge-featured GNNs model, and MAs emergence, providing crucial insights for relating GNNs internals to domain knowledge.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 18 of its 38 references that are in the map. First posted on arXiv 5 Sep 2024.
Builds on
18 of 38 references.
References · 18
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2017Graph Attention Networkscited by 8,923
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2023Vision Transformers Need Registerscited by 871
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2017Network Dissection: Quantifying Interpretability of Deep Visual Representationscited by 708
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
- 2020Explainability in Graph Neural Networks: A Taxonomic Surveycited by 384
6 more
- 2024Massive Activations in Large Language Modelscited by 294
- 2020Understanding the Role of Individual Units in a Deep Neural Networkcited by 255
- 2021GraphiT: Encoding Graph Structure in Transformerscited by 147
- 2022FP-GNN: a versatile deep learning architecture for enhanced molecular property predictioncited by 31
- 2023A Comprehensive Review of Community Detection in Graphscited by 12
- 2024FlowCyt: A Comparative Study of Deep Learning Approaches for Multi-Class Classification in Flow Cytometry Benchmarkingcited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.