arXiv:2608.25598cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25598

M-Fibration Theory with Applications to Neural Network Compression

Paolo Boldi

Abstract

The purpose of this paper is to provide a general, comprehensive, theoretical framework that allows one to deal with fibrations on graphs labelled on a commutative monoid. This is a genuine extension of the theory of graph fibrations (as introduced in [1]), that makes it possible to deal with weighted graphs, and also graphs labelled with other algebraic structures. The derived theory also lends itself naturally to consider approximate fibrations. As an example, we show how this framework can be applied to the compression of arbitrary neural networks (including CNNs), providing a strong theoretical underpinning to the recent results in [2].

Keywords: Network analysis, fibrations, neural networks

1 Introduction and Motivations

Graph fibrations were formally described in [1], derived from the much more general definition by Grothendieck [3]. The main motivation, at the time, was to have a formal tool to describe computations in distributed systems. Similar notions had already been used in very different settings, with different goals and under different names: equitable partitions [4, 5], the Weisfeiler–Leman test [6], colour refinement [7], groupoids [8].

While fibrations are still used in the context of distributed computing (see, e.g., [9]), in the last decades the fibration machinery was borrowed in other, quite different, playgrounds as means to describe symmetries in general networks: specifically, in the theory of dynamical systems [8, 10, 11] and in biology [12–14].

Although the theory of fibrations is elegant and simple, there are two important shortcomings that make its usage difficult in these more general contexts. The first is that it is challenging to adapt fibrations to weighted graphs, or more generally to graphs with labels that can be algebraically composed; the theory, as described in [1], allows for labels, but treats them in a “static” way: labels can exist on arcs, but they must be preserved exactly by morphisms. The second problem is that the presence of errors or noise is incompatible with the theory itself. One extra, or one missing arc, or even an arc with a weight that is slightly off, and everything breaks.

These problems can be overcome with ad hoc approaches, and in fact fibrations have been successfully applied also in these more general contexts [2, 13, 15]. Nonetheless, a well-grounded theoretical foundation behind their use is still missing.

The purpose of this paper is to provide a general, comprehensive, theoretical framework that allows one to deal with fibrations on graphs labelled on a commutative monoid. The idea is similar to that of weighted bisimulation of weighted automata [16], and akin to exact lumpability of Markov chains [17, 18], which is the special case in which labels are non-negative reals under addition; other instances of the same idea appear as equitable partitions of weighted graphs and their role in the spectral theory of graphs [4, 5] and, more recently, in the analysis of the expressive power of message-passing graph neural networks [19, 20], and as a tool for the lossless dimension reduction of linear programs [21]. What these approaches have in common is a partition-refinement algorithm [22]; what they lack is a common conceptual framework in which the objects being computed (bases and fibrations, rather than partitions) are first-class citizens, together with their universal properties. Providing such a framework is the purpose of this paper.

As an example of application, we show how the derived theory can be applied to the compression of arbitrary neural networks (including CNNs), providing a strong theoretical underpinning to the recent results in [2].