math.ATMar 16, 2026

Neural Networks as Local-to-Global Computations

Authors: Vicente Bosca, Robert Ghrist

Organizations: Department of Mathematics, University of Pennsylvania

Abstract

We construct a cellular sheaf from any feedforward ReLU neural network by placing one vertex for each intermediate quantity in the forward pass and encoding each computational step - affine transformation, activation, output - as a restriction map on an edge. The restricted coboundary operator on the free coordinates is unitriangular, so its determinant is 11 and the restricted Laplacian is positive definite for every activation pattern. It follows that the relative cohomology vanishes and the forward pass output is the unique harmonic extension of the boundary data. The sheaf heat equation converges exponentially to this output despite the state-dependent switching introduced by piecewise linear activations. Unlike the forward pass, the heat equation propagates information bidirectionally across layers, enabling pinned neurons that impose constraints in both directions, training through local discrepancy minimization without a backward pass, and per-edge diagnostics that decompose network behavior by layer and operation type. We validate the framework experimentally on small synthetic tasks, confirming the convergence theorems and demonstrating that sheaf-based training, while not yet competitive with stochastic gradient descent, obeys quantitative scaling laws predicted by the theory.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. On the Necessity of Learnable Sheaf Laplacians

    Mar 5, 2026Ferran Hernandez Caralt, Mar Gonzàlez i Català, Adrián Bazaga +1GNN OversmoothingSheaf Neural Networks

  2. A Bochner Weitzenböck Decomposition for Cellular Sheaf Laplacians, Curvature and Neural Sheaf Diffusion

    Oct 20, 2026Francesco Maria Guadagnuolo, Alessio Borgi, Dorina Thanou +1Sheaf Neural Networks

  3. Fixed Points Without Fixed Diffusion: Implicit Neural Sheaves for Convergent Test-Time Computation

    Aug 12, 2026Rémi Bourgerie, Šarūnas Girdzijauskas, Viktoria FodorGraph Neural NetworksSheaf Neural Networks