arXiv:2610.13931math.ATOct 2026

Manuscript Offprint

arXiv:2610.13931

Constructive Bounds for the Topological Expressivity of Neural Networks

Kosio Beshkov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The expressivity of a neural network Φ\Phi describes the class of functions that a network can express. The term topological expressivity refers to a family of measures particularly suited to understand binary classification and is often formulated in terms of the Betti numbers of a decision boundary β(Φ−1(0))\beta(\Phi^{-1}(0)). Despite its popularity, this measure is not as useful for regression and other problems that do not involve a decision boundary. Instead, we propose to study topological expressivity in terms of the Betti numbers of the output of a neural network β(Φ(X))\beta(\Phi(X)). We formally prove that a ReLU network with architecture (d,∑k=1dβk(3k+2),∑k=1dβk(k+1))(d, \sum_{k=1}^{d} \beta_k(3k+2), \sum_{k=1}^{d} \beta_k(k+1)) can express spaces homotopy equivalent to wedge sums of spheres with arbitrary Betti numbers. This gives upper bounds for any arbitrary connected (β0=1)(\beta_0=1) sequence of Betti numbers, but by constructing spaces homotopy equivalent to products of NN spheres of dimension d1,...,dNd_1, ..., d_N we achieve much better bounds (∑n=1ddn,3∑n=1Ndn+2N,∑n=1Ndn+N)(\sum_{n=1}^{d} d_n, 3 \sum_{n=1}^{N} d_n + 2N, \sum_{n=1}^{N} d_n + N) for Betti numbers given by ∏n(1+xdn)\prod_n(1 + x^{d_n}). Finally we conjecture a much stronger tight bound which gives the architectural bound (d,d+1,d+1)(d, d+1, d+1) for a space homeomorphic to the sphere.

1. Introduction

One of the fundamental problems in machine learning is to determine what model one needs to perform a given task or to learn a given function. Once such a model is selected it fixes a corresponding class of functions that it can implement. The nature of this class is usually described by a vast number of different measures of model expressivity.

In the context of neural networks there are several univer-

1^{1}Department of Physics, University of Oslo, Oslo, Norway. Correspondence to: Kosio Beshkov kosio.neuro@gmail.com.

sal approximation theorems (Cybenko, 1989; Hornik, 1991; Arora et al., 2018) that guarantee that there is some network that will perform the task we are interested in. What then remains to be answered is not if such a network exists, but rather which networks are capable of completing the task and how does the class of functions that a network can express depend on its architecture. There are several measures of expressivity that attempt to illuminate this problem. Some essential examples are Vapnik-Chervonenkis dimension (Baum & Haussler, 1988), Rademacher complexity (Bartlett & Mendelson, 2002), the number of linear regions in networks with piecewise-linear (PWL) activations (Montúfar et al., 2014), the length of the output trajectory (Raghu et al., 2017) and the topological complexity of decision boundaries (Bianchini & Scarselli, 2014).

The last example of expressivity, namely that of topological expressivity, is particularly relevant for the present work. Given a neural network Φ:Rd→R\Phi : \mathbb{R}^d \to \mathbb{R} its topological expressivity is defined as β(Φ−1([0,∞)))\beta(\Phi^{-1}([0, \infty))), where β\beta denotes the vector of Betti numbers and Φ−1([0,∞))\Phi^{-1}([0, \infty)) is one of two decision regions. Conceptually, this measures the complexity of the decision boundary separating two classes in the context of binary classification.

Several papers have pushed this idea further. Two examples in which the authors empirically explore which architectures are capable of expressing particular decision boundaries are (Guss & Salakhutdinov, 2018; Petri & Leitão, 2020). On the more theoretical side, (Grigsby & Lindsey, 2021) prove that networks with one hidden layer of dimension d+1d+1 have decision regions with at most one bounded connected component and (Ergen & Grillo, 2024) constructively derive both upper and lower bounds on the Betti numbers of the decision regions.

While all measures of expressivity have their advantages, it is important to highlight that most of them are especially suited for classification problems and are therefore harder to understand when working with regression tasks. This is clearly the case when looking at the topology of the decision boundary as in problems that are not about classification, the notion of a decision boundary is undefined. Furthermore, as illustrated by (Petri & Leitão, 2020), it is possible to have data that is highly topologically complex but still separable by a hyperplane (imagine two tori separated by

Preprint. October 12, 2026.

a hyperplane). This means that this notion of topological complexity ignores the topology of the data and is not applicable to our understanding of the plethora of topological transformations that a network needs to perform in non-classification tasks.

A different set of works studies the topology of neural representations, by which we mean β(Φ(X))\beta(\Phi(X)), where X is some dataset. For example Naitzat et al. (2020) use persistent homology (Carlsson, 2009) to look at how topology evolves through the hidden layers of a network, Wheeler et al. (2021) use persistence landscapes to explore the same question, Beshkov (2025) uses quotient homology to study how neural networks can glue data and generate non-trivial topologies and Ren & Lim (2026) studies how low-dimensional topological invariants are transformed through the layers of networks. We will use the term representational topological expressivity to talk about the Betti numbers of the image of a network β(Φ(X))\beta(\Phi(X)). This measure takes both the data as well as the task into account. It therefore aligns much better with non-classification tasks which are abundant in many scientific fields. Let us list some examples of such tasks to highlight its importance.

• Regression tasks require one to find a map f:X→Rmf : X \to \mathbb{R}^m and are used in protein structure prediction (Abramson et al., 2024), weather forecasting (Hewage et al., 2021), predicting neural population activity (Yamins et al., 2014) and 3D pose estimation (Zheng et al., 2023).

• Density estimation tasks require one to fit a distribution using a map f:X→R+f : X \to \mathbb{R}^+. This type of tasks is the main motivation behind methods such as normalizing flows (Papamakarios et al., 2021), latent densities in variational autoencoders (Kingma & Welling, 2013) and some diffusion models (Gao et al., 2023).

• Representation learning requires one to optimize the representation of data so that it can be used to solve other tasks more efficiently. Examples of this are learning good word embeddings (Mikolov et al., 2013), protein embeddings (Hayes et al., 2025) and finding low dimensional latent spaces for the generation of neural activity (Pei et al., 2021).

• Differential equation tasks require that one find a way to map states to a function. Examples of this are physics informed neural networks (Raissi et al., 2017), neural ODEs (Chen et al., 2018) and neural operators (Li et al., 2020).

This is not nearly an exhaustive list and it should be clear that our current notion of topological expressivity cannot be applied in the context of these tasks. Therefore, it is important to extend our theory to match the needs of machine learning practitioners.