Cooperative Graph Neural Networks
Summary
This work introduces a novel framework for training graph neural networks (GNNs) that extends the standard message-passing paradigm. Traditional GNNs follow a fixed approach where nodes simultaneously receive and send messages to all neighbors at each layer.
The proposed Cooperative Graph Neural Networks framework treats each node as an autonomous player that can dynamically choose from four communication strategies:
- Listen: Receive messages from neighbors without broadcasting
- Broadcast: Send messages to neighbors without receiving
- Listen and Broadcast: Standard message-passing behavior (receive and send)
- Isolate: Neither receive nor send messages
This flexible approach allows nodes to adapt their communication strategy based on their current state, enabling more dynamic exploration of graph topology during learning. The standard message-passing scheme becomes a special case where all nodes choose to “listen and broadcast” to all neighbors.
Motivation
The goal of this work is to generalize the message-passing scheme by allowing each node to autonomously decide how to propagate information from or to its neighbors, thus enabling a more flexible and adaptive flow of information throughout the graph.
Limitations of Standard Message-Passing
Standard message-passing GNNs operate under a fixed communication pattern: at each layer, every node simultaneously receives messages from all neighbors and broadcasts its own state to all neighbors. This rigid structure cannot handle scenarios where nodes need to condition their information gathering on multi-hop structural patterns.
Consider the example depicted in Figure 1: suppose that at every layer, the black node $w$ needs information only from neighbors which themselves have a yellow neighbor (specifically, node $v$). This requires focusing on a specific subgraph (highlighted in gray), which falls outside the capability of standard message-passing schemes because there is no mechanism to condition the propagation of information based on two-hop structural information.
Dynamic Message-Passing Across Layers
The information flow becomes even more complex when nodes make different communication choices across different layers. In such cases, we can no longer view the process as simply focusing on a static subgraph—instead, the message-passing becomes dynamic across layers.
Figure 2 illustrates this dynamic behavior through an example involving two nodes $u$ and $v$ across three layers:
Node $u$: In the first layer, it listens to every neighbor. In the second layer, it selectively listens only to node $v$. In the third layer, it listens only to nodes $s$ and $r$.
Node $v$: In the first two layers, it listens only to node $w$. In the final layer, it switches to listening only to node $u$.
This example demonstrates how different nodes can adopt different communication strategies at different layers, creating a rich and adaptive information flow that cannot be captured by traditional fixed message-passing schemes. The cooperative framework enables nodes to learn optimal communication patterns that adapt to both local graph structure and the evolving states of neighboring nodes.
Related Work
Most GNNs used in practice are instances of MPNNs (Gilmer et al., 2017) based on the message-passing approach, which has roots in classical GNN architectures (Scarselli et al., 2009; Gori et al., 2005) and their modern variations (Kipf & Welling, 2017; Xu et al., 2019; Veličković et al., 2018; Hamilton et al., 2017; Li et al., 2016). Despite their success, MPNNs have several known limitations that have motivated various research directions.
Limitations of MPNNs and Proposed Solutions
The following table summarizes the main limitations of standard message-passing GNNs and the corresponding approaches proposed to address them:
| Limitation | Description | Proposed Solutions | Key References |
|---|---|---|---|
| Expressive Power | MPNNs are upper bounded by the 1-dimensional Weisfeiler-Leman (1-WL) graph isomorphism test, meaning they cannot distinguish graphs that 1-WL cannot distinguish | • Higher-order graph neural networks • Subgraph sampling approaches • Lifting graphs to higher-dimensional topological spaces • Enriching node features with unique identifiers or random features | (Morris et al., 2019; Maron et al., 2019; Keriven & Peyré, 2019) (Bevilacqua et al., 2022; Thiede et al., 2021) (Bodnar et al., 2021) (Bouritsas et al., 2022; Loukas, 2020; You et al., 2021; Abboud et al., 2021; Sato et al., 2021) |
| Long-Range Dependencies | MPNNs generally perform poorly on long-range tasks due to information propagation bottlenecks | • Graph rewiring by connecting relevant nodes • Shortest-path distance-based architectures • Transformer-based approaches with complete node connectivity | (Klicpera et al., 2019; Topping et al., 2022; Karhadkar et al., 2023) (Abboud et al., 2022; Ying et al., 2021) (Ma et al., 2023; Ying et al., 2021; Yun et al., 2019; Kreuzer et al., 2021; Dwivedi & Bresson, 2021) |
| Synchronous Updates | Classical message passing updates nodes synchronously, preventing nodes from reacting to messages from neighbors individually | • Algorithmic alignment approaches | (Faber & Wattenhofer, 2022) |
Key Observations
Expressive Power: The 1-WL limitation has been addressed through various architectural innovations, including higher-order structures, subgraph-based methods, and feature enrichment techniques.
Long-Range Interactions: Transformer-based approaches have shown particular promise by enabling complete node connectivity, allowing for more effective modeling of long-range interactions beyond the local information captured by classical MPNNs.
Asynchronous Communication: The synchronous update limitation highlights the need for more flexible communication patterns, which is precisely what CO-GNNs address by allowing nodes to make individual decisions about information propagation.
Background
Graph Neural Networks
We consider simple, undirected attributed graphs $G = (V, E, X)$, where $X \in \mathbb{R}^{V \times d}$ is a matrix of (input) node features, and $x_v \in \mathbb{R}^d$ denotes the feature of a node $v \in V$.
We focus on message-passing neural networks (MPNNs) (Gilmer et al., 2017) that encapsulate the vast majority of GNNs. An MPNN updates the initial node representations $h_v^{(0)} = x_v$ of each node $v$ for $0 \leq l \leq L - 1$ iterations based on its own state and the state of its neighbors $\mathcal{N}_v$ as:
\[h_v^{(l+1)} = \phi^{(l)}\left(h_v^{(l)}, \psi^{(l)}\left(h_v^{(l)}, \{\{h_u^{(l)} \mid u \in \mathcal{N}_v\}\}\right)\right)\]where ${{\cdot}}$ denotes a multiset and $\phi^{(l)}$ and $\psi^{(l)}$ are differentiable update and aggregation functions, respectively. We denote by $d^{(l)}$ the dimension of the node embeddings at iteration (layer) $l$. The final representations $h_v^{(L)}$ of each node $v$ can be used for predicting node-level properties or they can be pooled to form a graph embedding vector $z_G^{(L)}$, which can be used for predicting graph-level properties. The pooling often takes the form of simple averaging, summation, or element-wise maximum.
In this paper, we largely focus on the basic MPNNs of the following form:
\[h_v^{(l+1)} = \sigma\left(W_s^{(l)} h_v^{(l)} + W_n^{(l)} \psi\left(\{\{h_u^{(l)} \mid u \in \mathcal{N}_v\}\}\right)\right)\]where $W_s^{(l)}$ and $W_n^{(l)}$ are $d^{(l)} \times d^{(l+1)}$ learnable parameter matrices acting on the node’s self-representation and on the aggregated representation of its neighbors, respectively, $\sigma$ is a non-linearity, and $\psi$ is either mean or sum aggregation function. We refer to the architecture with mean aggregation as MEANGNNs and to the architecture with sum aggregation as SUMGNNs (Hamilton, 2020). We also consider prominent models such as GCN (Kipf & Welling, 2017) and GIN (Xu et al., 2019).
Straight-through Gumbel-softmax Estimator
In our approach, we rely on an action network for predicting categorical actions for the nodes in the graph, which is not differentiable and poses a challenge for gradient-based optimization. One prominent approach to address this is given by the Gumbel-softmax estimator (Jang et al., 2017; Maddison et al., 2017) which effectively provides a differentiable, continuous approximation of discrete action sampling.
Consider a finite set $\Omega$ of actions. We are interested in learning a categorical distribution over $\Omega$, which can be represented in terms of a probability vector $p \in \mathbb{R}^{\Omega}$, whose elements store the probabilities of different actions. Let us denote by $p(a)$ the probability of an action $a \in \Omega$.
Gumbel-softmax is a special reparametrization trick that estimates the categorical distribution $p \in \mathbb{R}^{\Omega}$ with the help of a Gumbel-distributed vector $g \in \mathbb{R}^{\Omega}$, which stores an i.i.d. sample $g(a) \sim \text{GUMBEL}(0, 1)$ for each action $a$. Given a categorical distribution $p$ and a temperature parameter $\tau$, Gumbel-softmax scores can be computed as follows:
\[\text{Gumbel-softmax}(p; \tau) = \frac{\exp((\log(p) + g)/\tau)}{\sum_{a \in \Omega} \exp((\log(p(a)) + g(a))/\tau)}\]As the softmax temperature $\tau$ decreases, the resulting vector tends to a one-hot vector. Straight-through Gumbel-softmax estimator utilizes the Gumbel-softmax estimator during the backward pass only (for a differentiable update), while during the forward pass, it employs an ordinary sampling.
Cooperative Graph Neural Networks (Co-GNNs)
Architecture Overview
CO-GNNs view each node in a graph as a player in a multiplayer environment, where the state of each player is given by the representation (or state) of its corresponding node. In this cooperative framework, every node is updated following a two-stage process:
Action Selection Stage: Each node chooses an action from the set ${S, L, B, I}$ (Send, Listen, Broadcast, Isolate) based on its current state and the states of its neighboring nodes.
State Update Stage: Every node’s state gets updated based on their current state and the states of a subset of neighboring nodes, as determined by the actions selected in the first stage.
This design allows every node to autonomously determine how to propagate information from or to its neighbors, creating a flexible and adaptive message-passing scheme.
Formal Definition
A CO-GNN $(\pi, \eta)$ architecture consists of two cooperating GNNs:
- Action Network $\pi$: Chooses the best actions for each node
- Environment Network $\eta$: Updates the node representations based on the selected actions
A CO-GNN layer updates the representations $h_v^{(l)}$ of each node $v$ as follows:
Stage 1: Action Prediction
The action network $\pi$ predicts, for each node $v$, a probability distribution $p_v^{(l)} \in \mathbb{R}^4$ over the actions ${S, L, B, I}$ that $v$ can take, given its state and the state of its neighbors $\mathcal{N}_v$:
\[p_v^{(l)} = \pi\left(h_v^{(l)}, \{\{h_u^{(l)} \mid u \in \mathcal{N}_v\}\}\right)\]Stage 2: State Update
For each node $v$, an action is sampled $a_v^{(l)} \sim p_v^{(l)}$ using the Straight-through Gumbel-softmax estimator. The environment network $\eta$ then updates the state of each node in accordance with the sampled actions:
\[h_v^{(l+1)} = \begin{cases} \eta^{(l)}\left(h_v^{(l)}, \{\{\}\}\right), & \text{if } a_v^{(l)} = I \lor B \\ \eta^{(l)}\left(h_v^{(l)}, \{\{h_u^{(l)} \mid u \in \mathcal{N}_v, a_u^{(l)} = S \lor B\}\}\right), & \text{if } a_v^{(l)} = L \lor S \end{cases}\]This update rule ensures that:
- When a node chooses Isolate ($I$) or Broadcast ($B$), it updates based only on its own state (empty neighbor set).
- When a node chooses Listen ($L$) or Send ($S$), it updates based on its own state and the states of neighbors who chose to Send ($S$) or Broadcast ($B$).
By stacking $L \geq 1$ layers, we obtain the final representations $h_v^{(L)}$ for each node $v$.
Architecture Variants
In its full generality, a CO-GNN $(\pi, \eta)$ architecture can use any GNN architecture for the action network $\pi$ and the environment network $\eta$. For the purposes of this study, we focus on simple models:
- $\Sigma$: SUMGNN
- $\mu$: MEANGNN
For example, CO-GNN($\Sigma$, $\mu$) denotes a CO-GNN architecture which uses SUMGNN as its action network and MEANGNN as its environment network.
Experiments
Heterophilous Graphs
Traditional GNNs often assume homophily—the principle that connected nodes tend to have similar features or labels. However, many real-world graphs exhibit heterophily, where connected nodes may have dissimilar features or belong to different classes. In heterophilous graphs, the standard message-passing paradigm can be problematic because aggregating information from neighbors with different characteristics may dilute the signal rather than enhance it.
Co-GNNs are particularly well-suited for heterophilous graphs because they allow nodes to selectively choose which neighbors to listen to or broadcast to, enabling more adaptive information propagation. This flexibility allows nodes in heterophilous settings to avoid aggregating information from dissimilar neighbors when it would be counterproductive.
Datasets
Results
Limitations
While Co-GNNs offer a novel approach to adaptive message-passing, several limitations and concerns should be considered:
Computational Overhead and Complexity
Scalability concerns: The two-stage process (action selection followed by state update) may not scale efficiently to very large graphs, limiting practical applicability in industrial settings.
Gumbel-softmax instability: The straight-through Gumbel-softmax estimator can be sensitive to the temperature parameter $\tau$, requiring careful hyperparameter tuning. The discrete action learning process may lead to unstable gradients and slower convergence.
Convergence issues: The two-stage optimization (simultaneously learning action selection and state updates) may lead to slower convergence or convergence to suboptimal solutions compared to standard GNNs with simpler optimization landscapes.
Interpretability: While nodes learn adaptive communication strategies based on signal from the downstream task (supervised), understanding why specific actions are chosen at different layers can be difficult. The learned action patterns may not be easily interpretable, making it challenging to debug or understand model behavior.
Graph rewiring methods: Pre-computed graph rewiring techniques (e.g., adding virtual edges or using higher-order structures) might provide similar adaptive connectivity benefits with less computational overhead and training complexity.




