SiGMA: Learning under Graph-Level Heterogeneity with Gated Message-Passing and Attention

Raphaël Pellegrin, Lukas Fesser, Melanie WeberLOG 2026 Poster 2026

TL;DR

Standard graph neural networks treat every graph in a dataset with the exact same computational recipe—same depth, same local message-passing rule, and same global attention. This paper shows that graphs within the same dataset actually have wildly different needs, and introduces SiGMA, a hybrid architecture that uses learned sigmoid gates to dynamically dial local message passing and global attention up or down for every node, layer, and graph.

What Problem Does This Paper Address?

If you're building a model to classify molecules or segment superpixel images, you usually pick one architecture—say, a 4-layer Graph Convolutional Network (GCN) or a Graph Transformer—and run every single input graph through that exact same pipeline.

The authors argue this "one-size-fits-all" template is flawed because of graph-level heterogeneity. Even within a single dataset, some graphs are consistently easy to predict while others are stubbornly difficult. More importantly, difficulty isn't just a property of the graph itself; it emerges from the interaction between the graph and the model's inductive bias. A graph that depends on local motifs might thrive under a shallow message-passing network, while another graph in the same dataset might need long-range attention to bypass structural bottlenecks (avoiding over-squashing) or need fewer layers to avoid blurring node features together (over-smoothing).

Figure 2: Examples of heterogeneity profiles. From left to right: GCN on MUTAG, GIN on MUTAG, GCN on ZINC, and GIN on ZINC. Profiles like these allow us to study optimal message- passing mechanisms and model depths at the level of the individual graph.

Methods

To let the model adapt its computation on the fly, the authors propose SiGMA (Sigmoid Gated Message-Passing and Attention).

In a standard hybrid model like GraphGPS, local message passing and global attention are combined in a fixed way. SiGMA takes a more flexible approach:

  • Parallel Heterogeneous Heads: Each SiGMA layer normalizes node features and runs a collection of parallel heads—both attention heads (for global, non-local communication) and message-passing heads (which can mix different local operators like GCN, GIN, or GatedGCN).
  • Node-Wise Sigmoid Gates: Inspired by gated attention in LLMs and vision transformers, each head's output is multiplied by a learned, node-wise sigmoid gate (computed jointly with the head's query/representation) before being concatenated and projected.
  • Input-Dependent Depth: Because the gated outputs are added to the node representations via a residual connection, the model can effectively "turn off" specific heads—or even skip entire layers—for a given node or graph.

Theoretically, this gives SiGMA a neat trifecta of properties: it inherits the expressivity of its message-passing backbones (like GIN's 1-WL power), avoids forced over-smoothing (since near-zero gates create near-identity residual paths), and avoids forced over-squashing (thanks to direct non-local attention).

Figure 1: The SiGMA architecture. Node features, positional encodings, and edge features are processed by a stack of SiGMA layers followed by feed-forward blocks. Each SiGMA layer normalizes node representations, applies one or more parallel message-passing (here GCN and GIN) and attention heads, modulates each head with a learned sigmoid gate, concatenates and projects the gated heads, and updates the representation through a residual connection (optionally with dropout). The gating allows the model to ignore individual heads for a given input graph, or skip entire layers.

Datasets

The authors evaluate SiGMA across a broad suite of graph-level classification and regression benchmarks:

  • Dwivedi et al. benchmarks: ZINC (molecular regression), MNIST and CIFAR10 (image-derived superpixel graphs), and PATTERN and CLUSTER (synthetic pattern recognition).
  • Long-Range Graph Benchmarks (LRGB) & MalNet-Tiny: Peptides-func, Peptides-struct, PascalVOC-SP, COCO-SP, and MalNet-Tiny, which test long-range molecular, superpixel, and program-analysis tasks.
  • TU Datasets (for heterogeneity profiling): MUTAG, ENZYMES, PROTEINS, IMDB, COLLAB, and REDDIT.

No new benchmarks were introduced; all evaluations use standard, official splits.

Key Insights and Ideas

  • No single operator or depth rules them all: By profiling repeated held-out splits, the authors found that no message-passing operator (GCN, GIN, or GatedGCN) or depth (2, 4, or 8 layers) is universally preferred across all graphs in a dataset. For example, on PROTEINS, 51% of graphs perform best with GCN, while 27% prefer GIN and 22.1% prefer GatedGCN.
  • Topology alone doesn't explain difficulty: Simple graph statistics like size or connectivity barely explain why some graphs are harder than others. A richer measure combining topology and node attributes (Tree Mover's Distance) is much more informative: graphs whose nearest structural/feature neighbors belong to competing classes tend to be harder.
  • Gating buys consistency: In ablation studies, an ungated hybrid model (MMA) occasionally topped individual datasets, but SiGMA achieved the best overall average rank (2.21) across seven benchmarks, consistently landing in the top three.

Key Results

SiGMA matches or outperforms competitive graph transformers and hybrid baselines across the board:

  • CIFAR10 & PATTERN: Achieves 79.528% and 87.395% accuracy respectively, surpassing baselines like GRIT, GRED, GEAET, and Graph-Mamba.
  • Superpixel LRGB tasks: Reaches F1 scores of 0.4687 on PascalVOC-SP and 0.4215 on COCO-SP, outperforming the strongest graph transformers tested.
  • Competitive elsewhere: Scores 98.628% accuracy on MNIST, 0.060 MAE on ZINC, 0.7080 AP on Peptides-func, and 0.2441 MAE on Peptides-struct.

Limitations and Future Work

  • No computational savings yet: Even when a sigmoid gate suppresses a head or layer to near zero, the current implementation still computes it. Turning this selectivity into actual sparse or conditional execution to speed up inference is left for future work.
  • Mechanistic interpretability: While a synthetic benchmark in the appendix confirms SiGMA routes different graph types to appropriate operators, analyzing how learned gates behave on real-world datasets remains an open direction.
  • Broader scope: Future work could explore more diverse message-passing operators, scalable alternatives to full attention, and extensions to directed graphs and hypergraphs.

Summary updated

BibTeX
@inproceedings{pellegrin2026sigma,
  author = {Raphaël Pellegrin and Lukas Fesser and Melanie Weber},
  title = {{SiGMA: Learning under Graph-Level Heterogeneity with Gated Message-Passing and Attention}},
  booktitle = {LOG 2026 Poster},
  year = {2026},
  url = {https://openreview.net/forum?id=OgURj8X2sT},
}
Figure