Curvature-based Pooling within Graph Neural Networks

Cedric Sanders, Andreas Roth, Thomas LiebigarXiv 2023

TL;DR

CurvPool is a novel graph pooling method that uses discrete graph curvature (Balanced Forman curvature) to adaptively restructure graphs. By identifying and merging nodes in areas prone to over-smoothing (dense clusters) or over-squashing (bottlenecks), it enables deeper Graph Neural Networks (GNNs) to perform better on graph classification tasks with minimal computational overhead.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful but suffer from two major topological headaches:

  1. Over-smoothing: As you add more layers, node representations in densely connected areas tend to converge and become indistinguishable, losing valuable local information.
  2. Over-squashing: Information trying to travel across long distances in a graph often gets "bottlenecked" through a few edges, leading to a loss of signal as exponentially more information is compressed into fixed-size vectors.

Existing pooling methods, which reduce graph size to improve efficiency and expressivity, often use rigid criteria (like finding cliques) or ignore the underlying topology entirely. The authors propose that graph curvature is the missing link—a geometric metric that can pinpoint exactly where these two problems are likely to occur.

Methods

The authors introduce CurvPool, which operates based on the Balanced Forman Curvature (BFC). In simple terms, curvature measures how "spread out" or "clustered" edges are around a node.

  • Negative curvature indicates a bottleneck (risk of over-squashing).
  • Positive curvature indicates redundant, dense connections (risk of over-smoothing).

CurvPool follows a three-step process:

  1. Curvature Calculation: Compute the BFC for every edge in the graph.
  2. Adaptive Clustering: Select edges based on a threshold and group their connected nodes into "pools." The paper explores three strategies:
  3. HighCurvPool: Pools nodes in dense, high-curvature areas to combat over-smoothing.
  4. LowCurvPool: Pools nodes across bottlenecks to alleviate over-squashing.
  5. MixedCurvPool: Combines both approaches.
  6. Aggregation: Merge the nodes in each pool into a single new node using an aggregation function (Sum, Mean, or Max) and remap the edges to maintain the graph's global structure.
Example of graph curvature and pooling steps. (a) shows the original graph with edges colored by curvature; (e) and (f) show steps of LowCurvPool and HighCurvPool respectively.

Datasets

The method was evaluated on four diverse graph classification benchmarks:

  • HIV & Proteins: Biological datasets representing chemical and protein structures.
  • IMDB-BINARY: A social network dataset of actor collaborations.
  • Artificial: A custom dataset of "caveman graphs" (dense cliques connected by sparse edges) designed to specifically test how pooling handles clear bottlenecks and clusters.

Key Insights and Ideas

  • Geometry as a Diagnostic: Curvature isn't just a mathematical curiosity; it acts as a direct proxy for GNN failure modes. High curvature predicts where features will wash out, and low curvature predicts where information will get stuck.
  • HighCurvPool is the Winner: Surprisingly, pooling dense areas (HighCurvPool) was the most consistently effective strategy. By merging redundant nodes, it not only stops over-smoothing but also shortens the overall path lengths in the graph, indirectly helping with over-squashing.
  • The Power of Summation: The authors found that Sum aggregation significantly outperformed Mean aggregation. Why? Because the sum preserves information about the size of the original pool, providing a structural signal that the mean discards. This makes the GNN more expressive, similar to the Weisfeiler-Leman isomorphism test.
  • Efficiency via Precomputation: Since curvature depends only on the graph's topology, it can be precomputed once before training starts. This makes CurvPool much faster than learning-based pooling methods like DiffPool.

Key Results

CurvPool consistently outperformed or matched state-of-the-art baselines like DiffPool and CliquePool:

  • Accuracy: On the HIV dataset, HighCurvPool achieved 80.06% accuracy, significantly beating DiffPool (76.66%) and CliquePool (78.33%).
  • Consistency: CurvPool variants took the top two spots in almost every tested dataset.
  • Speed: In runtime tests, CurvPool was roughly 3x to 10x faster per epoch than DiffPool on larger datasets like Proteins, as it avoids the overhead of learning an auxiliary assignment matrix.

Limitations and Future Work

  • Metric Dependency: CurvPool's success is tied to the Balanced Forman curvature. If the BFC doesn't perfectly capture the "importance" of a node for a specific task, the pooling might be suboptimal.
  • Feature Blindness: The current pooling decision is purely topological. The authors suggest that incorporating node features into the pooling criterion could further boost performance.
  • Theoretical Gap: The authors noted that existing theories for over-smoothing (like Dirichlet energy) aren't well-suited for pooled graphs, signaling a need for new theoretical frameworks to understand how pooling changes graph dynamics.
  • Task Expansion: Future work includes extending CurvPool to node classification and link prediction tasks.

Summary updated

Abstract

Over-squashing and over-smoothing are two critical issues, that limit the capabilities of graph neural networks (GNNs). While over-smoothing eliminates the differences between nodes making them indistinguishable, over-squashing refers to the inability of GNNs to propagate information over long distances, as exponentially many node states are squashed into fixed-size representations. Both phenomena share similar causes, as both are largely induced by the graph topology. To mitigate these problems in graph classification tasks, we propose CurvPool, a novel pooling method. CurvPool exploits the notion of curvature of a graph to adaptively identify structures responsible for both over-smoothing and over-squashing. By clustering nodes based on the Balanced Forman curvature, CurvPool constructs a graph with a more suitable structure, allowing deeper models and the combination of distant information. We compare it to other state-of-the-art pooling approaches and establish its competitiveness in terms of classification accuracy, computational complexity, and flexibility. CurvPool outperforms several comparable methods across all considered tasks. The most consistent results are achieved by pooling densely connected clusters using the sum aggregation, as this allows additional information about the size of each pool.
BibTeX
@misc{sanders2023curvature,
  author = {Cedric Sanders and Andreas Roth and Thomas Liebig},
  title = {{Curvature-based Pooling within Graph Neural Networks}},
  year = {2023},
  eprint = {2308.16516},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.16516},
}

Loading related content...

Figure