# Caterpillar GNN: Replacing Message Passing with Graph-Level Aggregation

DevFeed: [Caterpillar GNN: Replacing Message Passing with Graph-Level Aggregation](<https://devfeed.tech/articles/caterpillar-gnn-replacing-message-passing-with-graph-level-aggregation-123063.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2506.06784>)

Author: Marek \\v{C}ern\\'y

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [graph theory](<https://devfeed.tech/topics/graph-theory.md>)

Tags: [aggregation](<https://devfeed.tech/tags/aggregation.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [bias](<https://devfeed.tech/tags/bias.md>), [caterpillar](<https://devfeed.tech/tags/caterpillar.md>), [counts](<https://devfeed.tech/tags/counts.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [gnn](<https://devfeed.tech/tags/gnn.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graph-neural-networks](<https://devfeed.tech/tags/graph-neural-networks.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [layers](<https://devfeed.tech/tags/layers.md>), [learning](<https://devfeed.tech/tags/learning.md>), [matrices](<https://devfeed.tech/tags/matrices.md>), [message](<https://devfeed.tech/tags/message.md>), [order](<https://devfeed.tech/tags/order.md>), [power](<https://devfeed.tech/tags/power.md>), [real-world](<https://devfeed.tech/tags/real-world.md>), [reduce](<https://devfeed.tech/tags/reduce.md>), [reduction](<https://devfeed.tech/tags/reduction.md>)

## AI overview

Caterpillar GNNs replace adjacency-based message passing with graph-level aggregation over walk-incidence matrices, deliberately trading some expressive power for a more structured inductive bias. Weighted automata enable a polynomial-time progression between classical message passing and simpler walk-based methods while avoiding the combinatorial explosion of colored walks. The paper characterizes each level through homomorphism counts over generalized caterpillar graphs. On real-world datasets, the approach substantially reduces hidden-layer computation-graph node counts without obstructing learning; the authors also describe benchmark settings where task-aligned expressivity supports learning.

## Source excerpt

arXiv:2506.06784v3 Announce Type: replace Abstract: Message-passing graph neural networks (MPGNNs) dominate modern graph learning. Typical efforts enhance MPGNN's expressive power by enriching the adjacency-based aggregation. In contrast, we introduce a graph-level aggregation over walk incidence-based matrices that are constructed to deliberately trade off some expressivity for stronger and more structured inductive bias. This approach allows for gradual scaling between classical message-passing and simpler methods based on walks. Drawing on weighted automata, we ensure our gradual scaling is polynomial-time and avoids the combinatorial explosion of colored walks. Our second result characterizes the expressive power at each scale using homomorphism counts over a hierarchy of generalized caterpillar graphs. Based on these foundations, we propose Caterpillar GNNs that substantially reduce the number of nodes in the hidden layers of the computational graphs on real-world datasets. This gradual reduction does not obstruct learning, enabling a systematic study of lower-order expressivity. We further describe benchmark settings where task-aligned expressivity supports learning.