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

ENADPool: The Edge-Node Attention-based Differentiable Pooling for Graph Neural Networks

Zhehan Zhao, Lu Bai, Lixin Cui, Ming Li, Yue Wang, Lixiang Xu, Edwin R. HancockarXiv 2024 · DOI

Abstract

Graph Neural Networks (GNNs) face significant challenges in graph-level tasks, primarily due to inefficient pooling methods and the over-smoothing of node features in deep architectures. We introduce ENADPool, a hierarchical graph pooling method that employs a deterministic "hard" clustering assignment and dual-attention mechanisms to preserve node feature integrity and capture structural importance. Complementing this is the Multi-distance GNN (MD-GNN), which aggregates information from various neighbor distances in parallel to mitigate over-smoothing. Our framework achieves state-of-the-art performance across multiple benchmarks, demonstrating substantial improvements in accuracy and structural preservation.

1. Introduction

Graph Neural Networks (GNNs) have revolutionized the analysis of structured data, yet their application to graph-level tasks like classification remains non-trivial. Two primary hurdles persist: inefficient pooling and over-smoothing. Global pooling methods, while simple, often discard vital structural information. Conversely, hierarchical methods like DiffPool utilize "soft" assignments, where nodes belong to multiple clusters probabilistically. This often acts as a low-pass filter, "blurring" original node features and disrupting the graph's identity. Furthermore, as GNNs increase in depth to capture long-range dependencies, node representations tend to converge, leading to the over-smoothing problem where features become indistinguishable.

2. Methodology

To address these challenges, we propose a unified framework consisting of the ENADPool operation and the MD-GNN base model. This architecture is designed to maintain feature resolution while effectively capturing both local and global graph structures.

Overall architecture of the ENADPool and MD-GNN framework showing the integration of MD-GNN layers and hierarchical pooling.

2.1 ENADPool: Preserving Identity through Hard Assignment

ENADPool (Edge-Node Attention-based Differentiable Pooling) departs from traditional soft-assignment strategies by implementing a "hard" node assignment. Each node is deterministically assigned to exactly one cluster, ensuring that node features remain distinct and unblurred during the coarsening process.

The ENADPool process: Hard assignment followed by node-based attention aggregation to form higher-level features.

The pooling operation follows a three-step process:

  1. Hard Node Assignment: Nodes are mapped to unique clusters, preserving the completeness of the data.
  2. Node-based Attention: Instead of simple averaging, attention scores are calculated within each cluster to identify the most representative nodes. The coarsened node feature is then derived as a weighted sum of these scores.
  3. Edge-based Attention: A key novelty of ENADPool is its focus on edge importance. When two clusters are connected in the coarsened graph, the model evaluates the significance of the edges between the original constituent nodes. This ensures that the coarsened adjacency matrix reflects the most structurally vital connections.

2.2 MD-GNN: Mitigating Over-smoothing

The Multi-distance GNN (MD-GNN) is designed to capture long-range dependencies without the need for excessively deep networks. It utilizes a masking mechanism based on random walks to create multiple topology structures representing neighbors at specific distances (e.g., exactly $h$ steps away). By performing graph convolutions on these distances in parallel and concatenating the results, MD-GNN allows the model to "see" distant neighbors directly, bypassing the information dilution that occurs in standard deep GNNs.

3. Experimental Evaluation

The proposed framework was evaluated on six standard graph classification benchmarks, including bioinformatics datasets (D&D, PROTEINS, NCI1, NCI109, FRANKENSTEIN) and social network data (REDDIT-B).

3.1 Key Results

The ENADPool + MD-GNN architecture achieved state-of-the-art (SOTA) performance across nearly all tested datasets:

  • Significant Accuracy Gains: On the REDDIT-B dataset, the model achieved 88.46% accuracy, a substantial leap over the previous SOTA (DiffPool at 82.12%).
  • Consistency: On NCI109, it reached 78.67%, outperforming both DiffPool (75.70%) and DGCNN (69.79%).
  • Ablation Insights: Studies confirmed that hard clustering consistently outperforms soft clustering (e.g., 78.34% vs 77.33% on D&D). Furthermore, the combination of both node and edge attention (ENADPool-NE) provided the most stable and highest performance.

4. Discussion and Conclusion

The success of ENADPool highlights that "hard assignment" is a feature, not a bug; maintaining node identity is crucial for preserving high-frequency feature information. Additionally, the inclusion of edge-based attention acknowledges that the strength of connections between clusters is as vital as the nodes themselves. By shortcutting the hierarchy with MD-GNN, we demonstrate that smarter indexing of neighborhoods can replace the need for deep, over-smoothed networks.

While the dual-attention mechanism adds some computational complexity, the gains in accuracy and structural preservation make it a compelling choice for complex graph classification tasks. Future work will explore the scalability of this approach to massive industrial-scale graphs and its applicability to other graph-related tasks such as link prediction.

Summary updated

BibTeX
@misc{zhao2024enadpool,
  author = {Zhehan Zhao and Lu Bai and Lixin Cui and Ming Li and Yue Wang and Lixiang Xu and Edwin R. Hancock},
  title = {{ENADPool: The Edge-Node Attention-based Differentiable Pooling for Graph Neural Networks}},
  year = {2024},
  eprint = {2405.10218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.10218},
}
Figure