---
title: Cooperative Sheaf Neural Networks (CSNNs)
url: https://www.emergentmind.com/topics/cooperative-sheaf-neural-networks-csnns
type: topic
---

# Cooperative Sheaf Neural Networks (CSNNs)

Cooperative Sheaf Neural Networks (CSNNs) are a class of graph neural networks (GNNs) that systematically extend sheaf-based diffusion and message passing to directed graphs while introducing cooperative communication actions at the node level. By integrating concepts from homological algebra, particularly cellular sheaves, with recent advancements in cooperative message passing, CSNNs allow each node to independently regulate whether it broadcasts or gathers information from its neighbors. This architecture provides precise control over information flow, long-range dependency modeling, and mitigation of the oversquashing phenomenon in graph learning. CSNNs generalize earlier sheaf neural network frameworks to directed graphs and demonstrate state-of-the-art performance on synthetic bottleneck tasks and real-world heterophilic graphs [2507.00647].

## 1. Background: Sheaf Neural Networks and Graph Diffusion

Sheaf Neural Networks (SheafNNs) generalize standard graph convolutional networks (GCNs) by replacing scalar-valued Laplacian-based diffusion on graphs with richer, stalk-valued diffusions parameterized by cellular sheaves [2012.06333]. In SheafNNs, each node and edge is associated with an ambient vector space (the “stalk”). Restriction maps control how signal assignments propagate between these stalks, and the sheaf Laplacian $L_\mathcal{F}$ orchestrates global diffusion. 

This approach naturally encodes complex, nonconstant, asymmetric, or signed relationships, outperforming GCNs where such edge heterogeneity is intrinsic. However, prior to CSNNs, this machinery applied only to undirected graphs and lacked explicit node-level cooperation mechanisms [2012.06333].

## 2. Cellular Sheaves for Directed Graphs

CSNNs introduce the first formulation of cellular sheaves over directed graphs $G=(V,E)$ designed for cooperative information routing. In the CSNN schema, to each node $i$ and each directed edge $ij$ is attached a feature space $\mathcal{F}(i) \cong \mathbb{R}^d$, $\mathcal{F}(ij) \cong \mathbb{R}^d$. For each incidence $i \vartriangleleft ij$ (where $i$ is the source) and $i \vartriangleleft ji$ (where $i$ is the target), linear restriction maps are defined:
- $\mathcal{F}_{i\vartriangleleft ij} : \mathcal{F}(i) \to \mathcal{F}(ij)$
- $\mathcal{F}_{i\vartriangleleft ji} : \mathcal{F}(i) \to \mathcal{F}(ji)$

General directed sheaves involve a large parameter set. For tractability, CSNNs employ a “flat-bundle” specialization: at each node $i$, all source restriction maps share a conformal matrix $\alpha_i$, and all target maps share $\beta_i$, yielding two per-node $d \times d$ learnable maps.

This construction directly addresses the central limitation of non-cooperative sheaf diffusions: the lack of message directionality and selective action [2507.00647].

## 3. Directed Sheaf Laplacians and Cooperative Message Passing

Extending the classical coboundary operator and Laplacian to directed graphs, CSNNs define two non-symmetric Laplacians:
- The out-degree sheaf Laplacian
  $$
  (L^\mathrm{out}_\mathcal{F}X)_i = \sum_{j \in N(i)}\left(\mathcal{F}_{i\vartriangleleft ij}^T\mathcal{F}_{i\vartriangleleft ij}x_i - \mathcal{F}_{i\vartriangleleft ji}^T\mathcal{F}_{j\vartriangleleft ji}x_j\right)
  $$
- The in-degree sheaf Laplacian
  $$
  (L^\mathrm{in}_\mathcal{F}X)_i = \sum_{j \in N(i)}\left(\mathcal{F}_{i\vartriangleleft ji}^T\mathcal{F}_{i\vartriangleleft ji}x_i - \mathcal{F}_{i\vartriangleleft ij}^T\mathcal{F}_{j\vartriangleleft ij}x_j\right)
  $$

In the flat-bundle case where restriction maps decompose via per-node $\alpha_i$ (source) and $\beta_i$ (target), these Laplacians simplify to expressions depending only on $\alpha_i, \beta_i$ across neighborhoods.

A key architectural choice in CSNNs is to perform message passing via a composition operator $(L^\mathrm{in})^T L^\mathrm{out}$, discretizing a directed version of the heat equation. Learnable local maps enable each node to “turn off” broadcasting, gathering, both, or neither, through zeroing $\alpha_i$ (disabling outgoing messages) and/or $\beta_i$ (disabling incoming messages). This operational flexibility underlies the cooperative architecture [2507.00647].

## 4. Layer Structure, Update Mechanism, and Action Modes

CSNN layers operate by iteratively learning nodewise source and target maps and propagating signals via normalized Laplacian compositions. At each layer $t$:
- Compute new conformal maps $\alpha_i^{(t)}$, $\beta_i^{(t)}$ for each node (via local networks or Householder layers)
- Construct and normalize Laplacians $\Delta^\mathrm{out}_t$, $\Delta^\mathrm{in}_t$
- Update node features according to
  $$
  X_{t+1} = (1+\varepsilon)X_t - \sigma\left((\Delta^\mathrm{in}_t)^T\Delta^\mathrm{out}_t (I \otimes W_{1,t}) X_t W_{2,t}\right)
  $$
  where $\varepsilon$ is a learnable self-loop vector, $\sigma$ is a pointwise nonlinearity, $W_{1,t}, W_{2,t}$ are weight matrices.

Nodes thereby independently choose among four action modes per layer:
- **Standard:** $\alpha_i, \beta_i$ nonzero (both broadcast and listen)
- **Listen-only:** $\alpha_i = 0$, $\beta_i \neq 0$
- **Broadcast-only:** $\alpha_i \neq 0$, $\beta_i = 0$
- **Isolate:** $\alpha_i = \beta_i = 0$

Sparsification of communication, both spatially and along a path, results from selective activation of these maps. Nodes can attend to or ignore information along arbitrarily chosen routes [2507.00647].

## 5. Theoretical Properties: Receptive Field, Oversquashing, and Selectivity

The CSNN model supports several provable properties relevant to graph signal propagation and bottleneck phenomena:
- **Cooperative Property:** Writing $M = (L^\mathrm{in})^T L^\mathrm{out}$, if $\beta_i = 0$ for some node $i$, then $(MX)_i = 0$—node $i$ listens to nobody. If $\alpha_k = 0$ for $k \in N(i)$, then $(MX)_i$ is independent of $x_k$—$k$ broadcasts to nobody.
- **2t-hop Reachability:** After $t$ layers, a node’s updated feature can depend on nodes at directed distance up to $2t$, confirmed by induction on the iterated composition structure.
- **Selective Long-range Attention:** For nodes $i$ and $j$ separated by directed distance $t$, the network can learn maps such that $i$ receives information exclusively from $j$ in $t$ layer updates, with all intervening nodes and paths inhibited by zeroing corresponding $\alpha$ or $\beta$. This construction enables path-specific targeted routing and mitigates oversquashing prevalent in standard GNNs [2507.00647].

## 6. Empirical Results and Comparative Benchmarks

CSNNs have been evaluated on both synthetic tasks designed to probe oversquashing and on real-world heterophilic node-labeling benchmarks:
- **Oversquashing and Signal Transmission:** On NeighborsMatch (binary tree root classification), CSNNs achieve 100% accuracy up to depth $r=8$, while GCN, GIN, GAT, GGNN baselines deteriorate for $r \geq 4$–5. This result establishes the model’s ability to preserve long-range dependencies without feature compression [2507.00647].
- **Node Classification on Heterophilic Graphs:** Across multiple datasets (Roman-empire, Amazon-ratings, Minesweeper, Tolokers, Questions), CSNNs demonstrate superior or best-in-class performance (accuracy/AUC), often by margins of 1–5 points compared to both NSD and Bundle NN, as summarized below:

| Dataset          | Best CSNN Score | Best Baseline | Baseline Model      |
|------------------|-----------------|--------------|---------------------|
| Minesweeper      | 99.07% ROC-AUC  | 98.99%       | BuNN                |
| Roman-empire     | 92.63% Accuracy | 91.75%       | BuNN                |
| Tolokers         | 85.45% ROC-AUC  | 84.78%       | BuNN                |
| Questions        | 79.31% ROC-AUC  | 78.75%       | BuNN                |

- **Ablation—Directed Sheaf Network (DSN):** Replacing per-node conformal maps with orthogonal bundles (no action flexibility) leads to a 0.3–1.3 point performance drop on four out of five benchmarks, underscoring the necessity of node-level source/target adaptivity [2507.00647].

## 7. Context: Relation to Prior SheafNNs and Directions for Extension

Earlier SheafNNs operated on undirected graphs using sheaf Laplacians to enable stalk-based message passing and were able to outperform GCNs when edge relations were nonconstant, signed, or asymmetric [2012.06333]. However, these architectures did not provide directional, node-selective, or pathwise control, which limited their ability to mimic truly cooperative multi-agent communication protocols.

CSNNs extend this by:
- Introducing directed graph sheaf Laplacians and composition-based architectures.
- Enabling independent nodewise broadcast/listen controls.
- Supporting targeted multi-hop communication and mitigating aggregation bottlenecks.
- Achieving stronger performance on tasks where standard aggregation-based graph neural approaches, regardless of advanced attention or pooling, are fundamentally constrained by oversquashing and feature dilution.

A plausible implication is that the integration of directionality, node-level action, and sheaf theory establishes a new class of architectures for structured cooperative learning over arbitrary data graphs, especially in heterophilic and complex real-world domains. The flat-bundle specialization balances model expressivity and tractability; further research could explore richer sheaf parameterizations, adaptive layer morphisms, or multi-sheaf ensembles to enhance flexibility and scalability [2507.00647], [2012.06333].

Source: https://www.emergentmind.com/topics/cooperative-sheaf-neural-networks-csnns