GEM: A Dual-Scale Architecture for Graph-Level Hierarchical Representation Learning

Zhaowei Wu, Kaizhong Zheng, Shuai Jiang, Guangmingzi Yang, Liangjun Chen, Badong ChenNeurIPS 2026

TL;DR

Real-world networks—from molecules to human brains—operate on three distinct scales at once: tight local cliques, intermediate communities, and long-range global shortcuts. Existing graph models usually sacrifice one scale to capture another, or become computationally explosive trying to see everything. Graph Encoding Mamba (GEM) solves this by pairing a local Graph Neural Network with a linear-time Mamba sequence model, grouping nodes into communities via modularity, and using an Information Bottleneck to prune away redundant noise—yielding faster, more accurate, and inherently interpretable predictions.

What Problem Does This Paper Address?

Think about a social network or a brain connectome. They exhibit "small-world" organization: individual nodes form tight micro-scale motifs, which group into meso-scale communities, linked across the network by sparse macro-scale shortcuts.

Figure 1: Hierarchical graph structures across local, community, and global scales.

When we want an AI to classify an entire graph (say, predicting if a brain scan indicates autism or if a molecule is mutagenic), current architectures hit a wall:

  • Graph Neural Networks (GNNs) pass messages between immediate neighbors. They excel at local geometry, but if you stack layers to reach across the graph, node features blur together (over-smoothing).
  • Graph Transformers let every node attend to every other node, capturing global context, but their quadratic $O(N^2)$ memory cost makes them choke on large graphs.
  • State Space Models (like Mamba) scale linearly, but flattening a web-like graph into a 1D sequence destroys its local topological structure.

Worse, when squashing node features down into a single graph-level prediction ("pooling"), standard methods average everything flatly, obliterating community structures. And fusing local and global views tends to introduce noisy, spurious correlations that make the model a black box.

Methods

GEM tackles all three scales explicitly while simultaneously cleaning up its own representations.

Figure 2: Overview of GEM. (A) Shared training pipeline on the original graph and the distilled subgraph. (B) Subgraph Generator for structural distillation. (C) Bidirectional Mamba for long-range dependency modeling. (D) Hierarchical Pooling for modularity-aware graph summarization.
  1. Dual-Scale Parallel Encoder (Micro + Macro): Instead of forcing one architecture to do two jobs, GEM runs two branches in parallel. A local message-passing GNN captures immediate neighborhood motifs. Meanwhile, the graph is flattened into a sequence sorted by node degree (using hubs as proxies for global flow) and fed into a Bidirectional Mamba block. Scanning forward and backward reduces directional bias while capturing long-range shortcuts in linear time.
  2. Modularity-Aware Hierarchical Pooling (Meso): Rather than flatly summing nodes at the end, GEM groups nodes into soft clusters guided by the classic Newman-Girvan modularity metric—explicitly rewarding communities with denser-than-random internal connections. It then applies Second-Order Pooling (computing a feature Gram matrix) to capture pairwise feature interactions across communities.
  3. Information Bottleneck (IB) Distillation: To prevent multi-scale fusion from hoarding redundant noise, a learnable Subgraph Generator assigns keep/drop probabilities to edges (via Gumbel-Softmax). During training, GEM processes both the original graph and this distilled subgraph, using a closed-form Cauchy-Schwarz Quadratic Mutual Information (CS-QMI) estimator to squeeze out task-irrelevant edges. At inference, GEM classifies only the distilled subgraph, giving you built-in explanations for free.

Datasets

The authors did not introduce new datasets, instead evaluating GEM across a diverse suite of established benchmarks:

  • Classification: Bioinformatics (MUTAG, PROTEINS, NCI1), Social Networks (COLLAB, REDDIT-BINARY), and Brain Connectomes (ABIDE, SRPBS).
  • Scalability & Long-Range: MalNet-Tiny, OGB graph benchmarks, and LRGB (in the appendix).
  • Interpretability: BA-2Motifs (synthetic ground-truth motifs) and MUTAG.

Key Insights and Ideas

  • Different domains lean on different scales: Ablation studies show that dropping the global Mamba branch hurts performance most on PROTEINS and ABIDE (brain networks), where long-range interactions are critical. Conversely, dropping the local GNN branch hurts most on REDDIT-BINARY, where local star/clique discussion structures dominate. Having both makes GEM adaptable.
  • Preserving communities matters: Comparing GEM's two-stage readout against seven standard pooling methods (like Sum, Mean, TopK, and Set2Set) shows consistent accuracy boosts, proving that meso-scale modular organization holds vital predictive signal that flat readouts throw away.
  • Compression breeds interpretability: Using the Information Bottleneck doesn't just regularize the multi-scale features to boost accuracy—it forces the subgraph generator to isolate compact, faithful rationales (like recovering an entire "house" motif while post-hoc explainers only find fragments).

Key Results

GEM takes first place in mean accuracy across all seven classification benchmarks, beating classic GNNs, Graph Transformers, Graph-Mamba variants, and interpretable GNNs.

Table 1: Overall performance comparison on graph classification benchmarks. We report mean accuracy (%) with standard deviation as subscript. Bold and underline denote the best and second- best mean results, respectively.
  • Standout Accuracy: GEM shines brightest on brain connectomes—which naturally feature strong modular communities and global shortcuts—beating the runner-up by +5.45% on SRPBS (reaching 93.68%) and +2.16% on ABIDE (71.09%). It also hits 94.74% on MUTAG and 81.96% on PROTEINS.
  • Linear Scalability: On MalNet-Tiny, Graphormer and GraphGPS run out of memory as graphs pass ~400–600 nodes. GEM achieves the lowest GPU memory footprint of all tested models, and as average graph size grows nearly 18x (from 76 to 1,370 nodes), training time per epoch rises gently from 19.5s to 32.0s.
  • Faithful Explanations: On BA-2Motifs, GEM achieves 0.97 AUC in recovering ground-truth motifs (beating GSAT's 0.95 and PGExplainer's 0.86), alongside superior necessity (Fidelity+: 0.81) and sufficiency (Fidelity-: 0.11) on MUTAG.

Limitations and Future Work

  • Graph-Level Focus: Because modularity-based community pooling and global readout are baked into the core pipeline, GEM is tailored specifically for graph-level classification. Adapting it cleanly to node-level or link-prediction tasks remains open work.
  • Fixed Node Ordering: To feed graphs into Mamba, GEM relies on an explicit heuristic—sorting nodes by degree centrality. While bidirectional scanning softens the blow of flattening a graph, exploring learnable, adaptive node-ordering strategies could make the global branch even more flexible.

Summary updated

Abstract

Real-world networks often exhibit small-world properties: dense local clustering yet efficient global propagation. However, current methods struggle to reconcile this hierarchy: Graph Neural Networks (GNNs) suffer from over-smoothing in long-range modeling, while sequence/state-space models often lack the inductive bias to preserve complex graph topology. To bridge this gap, we propose Graph Encoding Mamba (GEM), a dual-scale architecture for graph-level hierarchical representation learning. First, GEM employs a dual-branch encoder that synergizes the local sensitivity of GNNs with the selective scanning of Mamba, effectively capturing both local topology and global shortcuts. Second, a modularity-aware hierarchical pooling mechanism is designed to retain salient community structures during graph coarsening. Crucially, to mitigate structural redundancy from multi-scale fusion, we incorporate an Information Bottleneck objective to distill task-relevant structural patterns, encouraging compact representations and supporting intrinsic interpretability. Extensive experiments on graph-level benchmarks demonstrate that GEM improves performance across biological, social, and brain network datasets.
BibTeX
@inproceedings{wu2026gem,
  author = {Zhaowei Wu and Kaizhong Zheng and Shuai Jiang and Guangmingzi Yang and Liangjun Chen and Badong Chen},
  title = {{GEM: A Dual-Scale Architecture for Graph-Level Hierarchical Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pad2MT4H9X},
}
Figure