TL;DR
In the world of Graph Neural Networks (GNNs), the prevailing wisdom has been a relentless arms race for more expressive power. This paper turns that instinct on its head: by deliberately dialing down expressivity using a neat blend of walk statistics and automata theory, the author creates Caterpillar GNNs. The result is a tunable knob that shrinks computational graphs, clears out topological bottlenecks, and aligns the network's inductive bias directly with the task at hand.
What Problem Does This Paper Address?
Standard Message-Passing GNNs (MPGNNs) work by having nodes gossip with their immediate neighbors at every layer. Mathematically, their "expressive power"—their ability to tell two different graphs apart—is equivalent to counting how many ways all possible tree structures can map into the graph. Because this misses cycles and complex motifs, researchers usually try to supercharge MPGNNs to see more structure.
But more expressivity isn't always helpful. For graph-level tasks (like predicting the property of a whole molecule), seeing every intricate branching pattern can act as distracting noise—an "unaligned inductive bias"—while repeating the exact same neighborhood routing at every layer leads to notorious issues like over-smoothing and over-squashing. The author asks the complementary, largely unexplored question: what happens when we deliberately restrict expressivity downwards to strict subclasses of trees, keeping only the structural patterns relevant to prediction?
Methods
Instead of passing messages between individual vertices, the paper introduces Graph-Level Aggregation (GLA), built around colored walks—sequences of vertex colors visited along a path in the graph. Vertex colors are generated using $h$ rounds of standard color refinement (where $h=0$ gives every node the same color, and $h=1$ colors nodes by their degree).
Normally, counting colored walks is a combinatorial nightmare because the number of distinct walks grows exponentially with length. Previous methods dodge this via random-walk sampling, which sacrifices determinism and equivariance. Instead, the author organizes walk counts into a walk-incidence matrix (above), where rows are the $n$ graph vertices and columns are colored walks. Because a matrix with $n$ rows can have at most $n$ linearly independent columns, that exponential sea of walks can be losslessly compressed!
Drawing on weighted automata theory, GLA deterministically selects a canonical basis of at most $n$ walks per length in polynomial time via QR decompositions. It then projects the graph's adjacency and self-loop matrices onto these reduced walk subspaces via least-squares:
Feeding these layer-specific reduced matrices into a GNN architecture yields the Caterpillar GNN, where a single height parameter $h$ smoothly scales computation from a tiny 1-node-per-layer chain ($h=0$) all the way up to full message passing.
Datasets
- NStepAddition (New Benchmark): A synthetic graph classification task encoding two $T$-bit binary numbers along parallel graph backbones to test whether their sum equals a target $N$. It is specifically designed to contrast standard neighborhood routing with walk-incidence alignment.
- Real-World Benchmarks: Accuracy and computational graph size/density are evaluated across TUDataset (e.g., IMDB-BINARY), Open Graph Benchmark (e.g., ogbg-molpcba), Long Range Graph Benchmark / LRGB (e.g., Peptides-func), ZINC, MoleculeNet, and MalNet-Tiny.
Key Insights and Ideas
- The Caterpillar-Walk Equivalence: Why call it a Caterpillar GNN? A "caterpillar graph" is a tree that reduces to a simple path if you strip away its leaves (or $h$ layers of leaves for height-$h$ generalized caterpillars). The author proves a beautiful mathematical duality: counting colored walks after $h$ rounds of color refinement has the exact same expressive power as counting graph homomorphisms from height-$h$ caterpillar graphs.
- Rewiring Topology Without Sampling: Rather than vertices only talking to immediate neighbors, GLA induces an incidence topology: distant parts of a graph become "close" if they terminate the same colored walk pattern. For backbone-heavy structures like proteins or polymers, this lets the network align corresponding structural positions globally without losing equivariance.
- Smaller, Denser Matrices: While real-world graphs are notoriously sparse (which GPUs often struggle to utilize efficiently), projecting them into GLA's reduced spaces shrinks the number of computational nodes while making the matrices substantially denser—a sweet spot for dense linear-algebra kernels.
Key Results
- Beating Bottlenecks: On NStepAddition, standard MPGNNs fail to generalize (hovering near ~0.55–0.60 validation accuracy) because neighborhood topology forces them to memorize whole input pairs. Caterpillar GNN at $h=1$ ($\text{C}_1$) naturally aligns corresponding bit positions across the two numbers, reaching ~0.95+ validation accuracy.
- Nodal Efficiency: Across TUDataset, tuning $h$ allows massive reductions in computational graph size without obstructing learning—and sometimes improving it. On unattributed IMDB-BINARY, Caterpillar GNN improves validation accuracy while retaining only ~6% of the baseline MPGNN's computational nodes.
- Matrix Densification: At lower heights across 5 layers, absolute matrix density rises dramatically compared to standard MP: MalNet-Tiny jumps from 0.8% to 24.7%, ogbg-molpcba from 8.8% to 22.0%, and Peptides-func from 2.1% to 15.4%.
Limitations and Future Work
- Graph-Level Only (For Now): Because GLA compresses vertices into equivalence classes of colored walks, individual vertex identities are merged. Extending this to node-level prediction will require extra care to preserve output vertices.
- Discrete Tuning & Preprocessing: The height $h$ is currently chosen via validation search over discrete integers; making $h$ heuristic or differentiable is left for future work. Furthermore, while reduced matrices are precomputed once and reused across training epochs, practical runtime still depends on preprocessing overhead and graph size.
- Richer Extensions: Future directions include adapting GLA to directed or edge-labeled graphs, and building similar "expressivity dials" between higher-order architectures like 1-WL, 2-WL, and Subgraph GNNs.
Summary updated