Manuscript Offprint
arXiv:2610.13931Constructive Bounds for the Topological Expressivity of Neural Networks
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
The expressivity of a neural network 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 . 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 . We formally prove that a ReLU network with architecture can express spaces homotopy equivalent to wedge sums of spheres with arbitrary Betti numbers. This gives upper bounds for any arbitrary connected sequence of Betti numbers, but by constructing spaces homotopy equivalent to products of spheres of dimension we achieve much better bounds for Betti numbers given by . Finally we conjecture a much stronger tight bound which gives the architectural bound 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-
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 its topological expressivity is defined as , where denotes the vector of Betti numbers and 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 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 , 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 . 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 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 . 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.
We construct a set of PWL functions whose image is homotopy equivalent to that of a d-sphere and then construct a neural network that implements exactly these functions. Following this, we show how one can compose such networks to generate spaces that are homotopy equivalent to wedge sums and products of spheres. Finally, we conjecture a much stronger tight bound that provides the optimal architecture for expressing spaces homeomorphic to spheres.
2. Results
Before we begin with proving our main results, let us outline our assumptions along with the notation that we use. We will often interchangeably speak about the image of a map and a restricted version of this map where is some compact contractible set. Usually this should not cause confusion, as our constructions either have compact supports or for a compact set . Unless otherwise stated we will work with reduced singular homology groups with coefficients in , which we will briefly write as . We use the symbol to denote homotopy equivalence and for homeomorphism or isomorphism which should be clear from context. To avoid disturbing the flow of the argumentation we have moved the longest proofs to the Appendix A and only provide proof sketches in the main text.
To find an upper bound for a neural architecture that can express a particular combination of Betti numbers we take the following approach. Using the fact that every ReLU network is a PWL map (Arora et al., 2018) we start with an explicit construction of a PWL map that provably maps a contractible set in to a space homotopy equivalent to . We prove that this map can be implemented by a neural network with architecture , with . This gives us a net-work expressing Betti number for and 0 otherwise. By repeatedly applying several such maps to different subsets of , we are able to achieve arbitrary . This repeated application amounts to repeatedly adding subnetworks from which we get the architecture which is the upper bound in question. Alternatively, by expanding the input domain and stacking independent networks we get architecture , with .
2.1. Expressing the d-sphere
In the first part we show how a network can be used to express . We begin by introducing some helpful functions that can be combined to create the PWL map whose image is a space homotopy equivalent to .
Definition 2.1. The hat function centered at is given by the expression,
Next we show that such functions can be easily represented by a neural network.
Proposition 2.2. A single hat function can be realized by a neural network with an architecture . Additionally, after setting , the ordered set of hat functions (we will from now on index the order rather than the center ) can be realized by a neural network architecture or .
Proof. The proof of this is constructive. The absolute value in on each coordinate can also be written as . This corresponds to two ReLU neurons with weights and biases . This pattern repeats times, once for every input coordinate. After setting all weights from the second to the third layer to and setting the bias of the last neuron to 1 one gets the same expression as the definition of . Since there are input dimensions and 2 neurons are required to express the absolute value, there need to be neurons in the second layer. Therefore the network will have architecture.
The construction of follows simply from stacking subnetworks that realize different hat functions . Since the input space is shared, the architecture becomes . A visual intuition for the proof is given in Figure 1.
For the bound, let be the l-th entry of the k-th center. Then and . So we write . From this we have an expression for each of the functions in terms of ReLU activations. The constructed centers have three values , so we need 3d neurons realizing them the extra two terms and add two more neurons to the width giving the architecture .
Next we have to show that this image of this function is in fact homotopy equivalent to . The support of a hat function, which we denote by , is an ball, which is an open convex set with the shape of a cross-polytope. Consider the following arrangement of such hat functions.
Definition 2.3. Given an ordered set of hat functions with supports , we will say that is in a Helly-arrangement if .
The Helly arrangement property guarantees that, if we define , then for any we also have and for all . Furthermore, the fact that every is convex implies that is convex and there is a retraction to a point . Therefore is star-shaped and the supports form a good cover for it. Such an arrangement is shown in panel C of Figure 1 and can be constructed by the following choice of centers for the hat functions.
Proposition 2.4. The open cover generated by the supports of hat functions with centers (where is the standard basis) for and forms a Helly-arrangement.
Proof. We only need to confirm that the maximal intersection is not empty. If we plug the zero vector into the collection of hat functions , we get for all and . Therefore the zero vector is in the support of all the functions and the maximal intersection is non-empty.
The fact that is star-shaped implies that for all , but this can also be seen by the nerve of the cover which in this case is a -simplex and therefore has trivial homology groups (see (Hatcher, 2002) for more information). The interesting question is to understand what happens to after it is mapped by the PWL map . For this we prove the following lemma.
A

B



C


Figure 1. An illustration of how hat functions can be expressed by a neural network.
A. A diagram of the ReLU neural network that expresses a single hat function in one dimension. Below it we show how one can stack several hat functions by varying the biases in the middle layer and adding additional output neurons.
B. We use a rectangle to express the subnetwork in the middle layer that implements one absolute value function per input neuron. The arrow points to an example of such a layer in two dimensions. To the right we show how such a network would look like in d dimensions.
C. The corresponding network in two dimensions along with the Helly-arrangement described in Proposition 2.4.
Lemma 2.5. Given a cover of defined by the supports of , the intersections can be expressed as .
Proof. Every set corresponds to an ball and . Then looking at an arbitrary intersection , we can also write . What about ? We can write out the sets,
Since we can do this for arbitrary intersections this concludes the proof.
It is clear that using the supports of P to define a cover on leads to some nice relation to its the nerve. It turns out that the two nerves are actually isomorphic.
Theorem 2.6. Given a good cover in Helly arrangement
and a map such that
, there is an isomorphism between
and as sets.
Proof. This amounts to showing that .
The first direction is straightforward, if , then , as hat functions are supported on this set.
For the second direction, implies that and by applying Lemma 2.5 we can write it as , which can only be true if is non-empty. is non-empty for any since and .
Therefore as sets.
If we extend to we have . Then we can prove the following theorem.
Theorem 2.7. Consider , then has a good cover , where and . This implies that and therefore
Proof. sketch:
The full proof of this statement can be found in Appendix A. The intuition is that since is starshaped, then is homeomorphic to the disk , additionally we know that glues its boundary to a point. This means that acts similarly to a quotient map on the boundary of which gives . What remains to be shown is that does not lead to non-homotopic identifications elsewhere on .
To do that we take proposed cover and prove that all possible intersections of its subsets are contractible. Then by Borsuk's nerve theorem (Borsuk, 1948) we show that the nerve of this cover has the structure of the boundary of the simplex . This simplex is exactly homotopy equivalent to .
2.2. Extending the construction to wedge sums of spheres
So far we have shown that our construction is capable of representing spaces that have the homology of a sphere and therefore have Betti numbers of the form for and . We now show that it is possible to extend our result to represent wedge sums of spheres. As a reminder the wedge sum of two spaces is defined as , where indicates that the two spaces are glued at those two points.
First off, let us explicitly add the centers of the different hat functions in , where and each is a vector denoting the center of the hat function. Notice that the function is invariant under the transformation . Geometrically, this means that if we shift all hat functions in the same way as we shift the inputs the output will be the same. Also notice that the support of the construction we defined in Proposition 2.4 is strictly contained in the hypercube . Therefore, if we repeat the same construction outside of this hypercube, we can expect to get a new sphere in the image of the collective map . This means that we can tile by different families of hat functions, which leads us to the following construction.
Definition 2.8. Define the family of maps such that , where is different for all and is the Helly arrangement defined in Proposition 2.4.
Every is supported on a set that is contained in and is disjoint from the supports of other such functions (this is guaranteed by picking ). Furthermore, we already know that . This motivates our following theorem,
Theorem 2.9. Given the family of maps acting on , we have .
Proof. The wedge sum of two spaces is defined by , where implies identifying to each other. The image of each lives in a separate subspace and we can consider the disjoint union .
However, every projects the complement of its support to , which implies that the images of all intersect in the origin. Therefore, we need to identify all (which are separate elements in the disjoint union) with each other. This is equivalent to gluing all at the origin, which gives . Therefore follows from the homotopy invariance of homology. From the fact that the wedge sum of spaces reduces to the direct sum of their homology groups, we have and
This construction is more powerful than the previous one as it can express Betti numbers of the form for and for . Since we are simply repeatedly adding the same amount of hat functions for each sphere and we project them to independent spaces, the network architecture that can express this is . Concrete examples of this can be seen in Figure 2.
Finally, it is straightforward to see that one can use a subset of coordinates for to express spheres of lower dimension, though some care has to be taken in choosing . Assuming , a safe strategy is to choose . In a neural network this would correspond to setting the weights between the first and the second layer to 0 for the neurons not in . This brings us to our final construction, which establishes the most general bound on homology groups.
Theorem 2.10. A neural network of architecture can express a space of Betti numbers . Additionally, for this network .
Proof. Start with the full dimensional spheres. Representing each such sphere requires a network of architecture . We can pick to have support over a subset of . We can pick the next function to have support over a subset . We can repeat this for all spheres, by picking while and since the input space is shared we only need to
A

B


Figure 2. A. An example of the wedge of two spheres that arises through the Helly-arrangement living within and . B. An example of the wedge of two spheres and two circles along with an arrangement that defines it. The four sets are defined strictly within , , and respectively. Notice that the configurations generating the circles span the whole direction, thus it is important to always choose the shifts on the axis, otherwise two circles might end up intersecting in more places than the origin.
stack the middle and the last layer of the network. Therefore we get the architecture .
Next we represent the , -spheres. Each such sphere requires neurons. We have to define their supports such that . We inductively do this for the spheres of any dimension. Since we know that copies of -dimensional spheres are expressed by architectures . Summing over all dimensions gives us the bound .
Finally, the fact that is essentially a restatement of the result in Theorem 2.9, but with the inclusion of lower-dimensional spheres. Panel B in Figure 2 provides an example of the space , which can be represented by a network with architecture (2,24,10).
This result is much more powerful as it provides a bound for the network size required to express a space with any possible Betti numbers. As we will see below it is very unlikely that this is the best possible bound. However, it is worth noting that its linear relation to Bettin numbers indicates that neural networks can be an efficient way to represent complex topological spaces.
2.3. Exponential complexity in products of spheres
The wedge sum bound is useful to demonstrate that any sequence of Betti numbers can be expressed by a neural network. However, it constructs spaces homotopy equivalent to wedge sums of spheres, but not to products of spheres and is provably less than optimal for certain Betti number sequences.
To see this, take the torus . It has and which, by the wedge sum bound, would require an architecture of . But we can do much better if we take two networks of shape realizing and stack them together to get a larger network of shape . Given the following lemma, this is a torus realized with less total neurons.
Lemma 2.11. Let and be maps realized by networks of shape and respectively. The product map is realized by a network with architecture and .
Proof. Simply stack the two networks without connecting them in any way. This corresponds to a block diagonal weight matrix and concatenated biases. Each block acts independently on the input, so applying the function to the product is the same as taking the product of the function applied to X and .
Corollary 2.12. For an arbitrary set of target spaces realized by architectures , we simply sum each architecture to get the total architecture realizing such a space. This gives .
For , we have repeated twice so we get .
This construction a case in which linear scaling of network size leads to exponential scaling in the Betti numbers. From the Künneth formula on torsion-free spaces (Hatcher, 2002) (which spheres are) we have,
This implies that which by writing out the Poincaré polynomials gives the generating functions . For spheres, these are so the total generating function for products of spheres is,
To see how the Betti numbers are generated by such polynomials, consider the space . Its Poincaré polynomial is given by . By reading off the coefficients of this polynomial we get the Betti numbers . In principle, the sum of such Betti numbers scales exponentially with the number of spheres in the product, whereas the network size scales linearly.
Theorem 2.13. can scale exponentially as , whereas the corresponding architecture scales linearly as 7N.
Proof. Take the N-torus given by , its Poincaré polynomial is given by . The coefficients of such a polynomial are the binomial coefficients and the sum of binomial coefficients is .
The corresponding architecture for one circle is and by Lemma 2.11 after stacking N copies of it we get which can realize an N-torus. So the number of neurons scales as 7N which is linear.
The fact that exponential growth in Betti numbers is realized by linear growth in the number of neurons shows that it is quite easy to realize spaces with high representational topological complexity. However, it is worth pointing out that this bound only works on palindromic Betti numbers. The wedge bound applies for any possible sequence of them, but also requires an exponential number of neurons since the Betti numbers appear in the bound. Finally, we state these results as a theorem analogous to Theorem 2.10 for products of spheres.
Theorem 2.14. A neural network of shape can express a space with Betti numbers given by the coefficients of the Poincaré polynomials, . Additionally, for this network .
Remark 2.15. Notice that we can also get bounds for products of wedge sums. Poincaré polynomials have the property that . Combined with the product rule from the Künneth formula , the Betti numbers of products of wedge sums are given by,
With being the number of copies of -dimensional spheres in the -th factor, the corresponding architecture realizing such a space is
2.4. Conjectured tight and lower bounds
So far we have only provided constructive upper bounds on representational topological expressivity. Two natural questions to ask are how tight these bounds are and whether we can also come up with lower bounds. Regarding the former, it is clear to see that the wedge sum bounds are not tight as we could do much better with the product bounds. The more interesting and tractable question is whether the bounds for the sphere construction are tight enough. The input and output layers are fixed so this amounts to arguing about the tightness of . With the help of Claude Opus 5.5, we explored alternative architectures that might realize a sphere and empirically found that for there is a construction of an architecture of shape that does this.
Conjecture 2.16. Denote hidden neurons by and output neurons by , the following equations provide a tight upper bound on architectures expressing the sphere .
No architecture of shape can express such a sphere. With this bound, the wedge sum bound becomes and the product bound becomes .
A

B


Figure 3. A. The active regions of the functions defining the proposed construction. B. The birth-death diagrams for the bottom four homology groups of (left) and (right).
One can see how the supports of these functions look in Figure 3 and it is worth pointing out that their intersection pattern is exactly the same as the construction we proved in Theorem A.1. While we are unable to prove this bound for spheres of arbitrary dimension in this work, we provide some empirical evidence to support its validity. For we applied the network to points from a regular mesh on and for we used points on . We then applied the construction on the mesh and computed the persistent homology of the output using Ripser (Bauer, 2021) with 800 landmarks. As one can see, the birth-death diagrams in panel B of Figure 3 clearly reflect the structure of the sphere with . While this is not a proof of the conjecture, it demonstrates that this construction likely works for . We believe that the conjecture can be rigorously proven in future work.
3. Discussion
We have derived, what is to our knowledge, the first bounds on the representational topological expressivity of neural networks. This is in contrast to the many known results for the topological expressivity of decision boundaries. Below we discuss some consequences of our work, along with some ideas for future directions.
3.1. Topological hierarchy for neural networks
The bound that we derive can be easily adapted to classify networks into different complexity classes in terms of the number of neurons or parameters. For example, if we fix one needs neurons to represent a d-sphere, then it is clearly easier to express a -sphere for . On the other hand, representing requires a total of parameters (biases excluded), whereas requires parameters. The difference between them becomes . Therefore is easier to express while , equally difficult to express for and harder to express while . Products require . The difference between products and wedge sums gives implying that that products between high dimensional spheres are harder to express than wedge sums. So while it is easy to get exponential Betti numbers through products, spaces homotopy equivalent to products of spheres are harder to express than wedge sums.
We can generalize this and relate any family of wedges or products of spheres and describe how easy they are to express through the provided bounds. More research is required to gain a better understanding of the relationships between spaces and the size of the networks that can express them. However, it is important to keep in mind that these bounds are likely not optimal and if the conjectured bound applies the theory would be significantly simplified.
3.2. Topological guarantees for learning
Another way to leverage our results is as a theoretical guarantee that a particular architecture is sufficient to perform a task. This can be used when training networks to generate data with a particular topology as in (Brüel-Gabrielsson et al., 2020) or when one wants to enforce particular geometric features in the output of a network.
However, note that we prove that a network that can express arbitrary Betti numbers exists, not that it is consistently reachable through algorithms such as gradient descent and backpropagation. As noted in (Hanin & Rolnick, 2019) the class of functions that a network can learn from an initialization is typically smaller than the number of functions that a network can express. Therefore our result might be used as a lower bound on the architecture that can learn functions with arbitrary Betti numbers in their output. Additional work is needed to clarify the relation between learning and representational topological expressivity.
3.3. Different input spaces
Due to analytical tractability we have assumed that our input space is a compact contractible set in , this is often the case in practical applications of machine learning. For example, this is true if the data comes from a Gaussian distribution on or from a uniform distribution in some box . It does not apply when the data is normalized as then the input lives on a sphere. In such cases our theory would need to be adapted to that setting.
It is also possible that the data comes from disjoint spaces, which is often the starting assumption in classification tasks. In such settings the standard notion of topological expressivity, which studies the topology of decision regions, is likely more applicable. If one is interested in non-classification tasks on such spaces, then our theory would have to also be extended to deal with . We have ignored this homology group since ReLU networks are continuous PWL functions and therefore cannot cut the connected input domain and it is always true that .
3.4. Other invariants
Our results rely on showing that a particular construction, realizable by a ReLU neural network, is homotopy equivalent to wedge sums and products of spheres. We then used that fact to derive a bound for the Betti numbers, which track the number of holes in a space. Homotopy equivalence is a stronger property than the Betti numbers, but the features it encodes are harder to interpret. Therefore it will be useful to consider other finer invariants of topological structure.
For example homotopy equivalence between spaces implies that they have the same cohomology ring structure. Therefore our results could be reinterpreted to classify spaces based on their cohomology ring. This is enough to differentiate the torus from the wedge space and our product bounds for the torus are not an improvement on the network architecture needed to express the wedge sum of spheres, but is an independent bound for tori.
Another potential angle to approach the problem of expressivity comes from tropical geometry. ReLU neural networks have been shown to be equivalent to tropical rational functions (Zhang et al., 2018; Brandenburg et al., 2024) and there are other works connecting varieties to network function (Marchetti et al., 2025). This perspective implies that it might be possible to extend tools from algebraic geometry to study properties of neural representations that are not simply related to counting holes.
AI usage disclosure
Claude Mythos and Opus (Anthropic) models have been used for literature search, text refinement and conducting the research. Specifically, we used Claude to come up with better bounds for our construction and the LLM discovered the bound and proposed the conjectured tight bound. We also used these models to discuss and refine the proofs in the appendix.
References
Abramson, J., Adler, J., Dunger, J., Evans, R., Green, T., Pritzel, A., Ronneberger, O., Willmore, L., Ballard, A. J., Bambrick, J., et al. Accurate structure prediction of biomolecular interactions with alphafold 3. Nature, 630(8016):493–500, 2024.
Arora, R., Basu, A., Mianjy, P., and Mukherjee, A. Understanding deep neural networks with rectified linear units. In International Conference on Learning Representations, 2018.
Bartlett, P. L. and Mendelson, S. Rademacher and gaussian complexities: Risk bounds and structural results. Journal of machine learning research, 3(Nov):463–482, 2002.
Bauer, U. Ripser: efficient computation of Vietoris-Rips persistence barcodes. Journal of Applied and Computational Topology, 5(3):391–423, 2021. ISSN 2367-1726. doi: 10.1007/s41468-021-00071-5. URL https://doi.org/10.1007/s41468-021-00071-5.
Baum, E. and Haussler, D. What size net gives valid generalization? Advances in neural information processing systems, 1, 1988.
Beshkov, K. A quotient homology theory of representation in neural networks. arXiv preprint arXiv:2502.01360, 2025.
Bianchini, M. and Scarselli, F. On the Complexity of Neural Network Classifiers: A Comparison Between Shallow and Deep Architectures. IEEE Transactions on Neural Networks and Learning Systems, 25(8):1553–1565, August 2014. ISSN 2162-237X, 2162-2388. doi: 10.1109/TNNLS.2013.2293637. URL http://ieeexplore.ieee.org/document/6697897/.
Borsuk, K. On the imbedding of systems of compacta in simplicial complexes. Fundamenta Mathematicae, 35: 217–234, 1948.
Brandenburg, M.-C., Loho, G., and Montúfar, G. The real tropical geometry of neural networks. arXiv preprint arXiv:2403.11871, 2024.
Brüel-Gabrielsson, R., Nelson, B. J., Dwaraknath, A., Skraba, P., Guibas, L. J., and Carlsson, G. A Topology Layer for Machine Learning. arXiv:1905.12200 [cs, math, stat], April 2020. URL http://arxiv.org/abs/1905.12200.
Carlsson, G. Topology and data. Bulletin of the American Mathematical Society, 46(2):255–308, January 2009. ISSN 0273-0979. doi: 10.1090/S0273-0979-09-01249-X. URL http://www.ams.org/journal-getitem?pii=S0273-0979-09-01249-X.
Chen, R. T., Rubanova, Y., Bettencourt, J., and Duvenaud, D. K. Neural ordinary differential equations. Advances in neural information processing systems, 31, 2018.
Cybenko, G. Approximation by superpositions of a sigmoidal function. Mathematics of control, signals and systems, 2(4):303–314, 1989.
Ergen, E. and Grillo, M. Topological expressivity of relu neural networks. In The Thirty Seventh Annual Conference on Learning Theory, pp. 1599–1642. PMLR, 2024.
Gao, S., Liu, X., Zeng, B., Xu, S., Li, Y., Luo, X., Liu, J., Zhen, X., and Zhang, B. Implicit diffusion models for continuous super-resolution. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10021–10030, 2023.
Grigsby, J. E. and Lindsey, K. On transversality of bent hyperplane arrangements and the topological expressiveness of ReLU neural networks, December 2021. URL http://arxiv.org/abs/2008.09052. arXiv:2008.09052 [math].
Guss, W. H. and Salakhutdinov, R. On Characterizing the Capacity of Neural Networks using Algebraic Topology. arXiv:1802.04443 [cs, math, stat], February 2018. URL http://arxiv.org/abs/1802.04443. arXiv:1802.04443.
Hanin, B. and Rolnick, D. Deep relu networks have surprisingly few activation patterns. Advances in neural information processing systems, 32, 2019.
Hatcher, A. Algebraic topology, pp. 456–460. Cambridge University Press, 2002.
Hayes, T., Rao, R., Akin, H., Sofroniew, N. J., Oktay, D., Lin, Z., Verkuil, R., Tran, V. Q., Deaton, J., Wiggert, M., et al. Simulating 500 million years of evolution with a language model. Science, 387(6736):850–858, 2025.
Hewage, P., Trovati, M., Pereira, E., and Behera, A. Deep learning-based effective fine-grained weather forecasting model. Pattern Analysis and Applications, 24(1):343–366, 2021.
Hornik, K. Approximation capabilities of multilayer feedforward networks. Neural networks, 4(2):251–257, 1991. Publisher: Elsevier.
Kingma, D. P. and Welling, M. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., and Anandkumar, A. Fourier neural operator for parametric partial differential equations. arXiv preprint arXiv:2010.08895, 2020.
Marchetti, G. L., Shahverdi, V., Mereta, S., Trager, M., and Kohn, K. Algebra unveils deep learning—an invitation to neuroalgebraic geometry. arXiv preprint arXiv:2501.18915, 2025.
Mikolov, T., Chen, K., Corrado, G., and Dean, J. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
Montúfar, G., Pascanu, R., Cho, K., and Bengio, Y. On the number of linear regions of deep neural networks. Advances in neural information processing systems, 27, 2014.
Naitzat, G., Zhitnikov, A., and Lim, L.-H. Topology of deep neural networks. Journal of Machine Learning Research, 21(184):1–40, 2020.
Papamakarios, G., Nalisnick, E., Rezende, D. J., Mohamed, S., and Lakshminarayanan, B. Normalizing flows for probabilistic modeling and inference. Journal of Machine Learning Research, 22(57):1–64, 2021.
Pei, F., Ye, J., Zoltowski, D., Wu, A., Chowdhury, R. H., Sohn, H., O'Doherty, J. E., Shenoy, K. V., Kaufman, M. T., Churchland, M., et al. Neural latents benchmark'21: evaluating latent variable models of neural population activity. arXiv preprint arXiv:2109.04463, 2021.
Petri, G. and Leitão, A. On the topological expressive power of neural networks. In TDA & Beyond, 2020.
Raghu, M., Poole, B., Kleinberg, J., Ganguli, S., and Sohl-Dickstein, J. On the expressive power of deep neural networks. In international conference on machine learning, pp. 2847–2854. PMLR, 2017.
Raissi, M., Perdikaris, P., and Karniadakis, G. E. Physics informed deep learning (part i): Data-driven solutions of nonlinear partial differential equations. arXiv preprint arXiv:1711.10561, 2017.
Ren, J. and Lim, L.-H. Low-dimensional topology of deep neural networks. arXiv preprint arXiv:2606.31856, 2026.
Wheeler, M., Bouza, J., and Bubenik, P. Activation landscapes as a topological summary of neural network performance. In 2021 IEEE International Conference on Big Data (Big Data), pp. 3865–3870. IEEE, 2021.
Yamins, D. L., Hong, H., Cadieu, C. F., Solomon, E. A., Seibert, D., and DiCarlo, J. J. Performance-optimized hierarchical models predict neural responses in higher visual cortex. Proceedings of the national academy of sciences, 111(23):8619–8624, 2014.
Zhang, L., Naitzat, G., and Lim, L.-H. Tropical geometry of deep neural networks. In International Conference on Machine Learning, pp. 5824–5832. PMLR, 2018.
Zheng, C., Wu, W., Chen, C., Yang, T., Zhu, S., Shen, J., Kehtarnavaz, N., and Shah, M. Deep learning-based human pose estimation: A survey. ACM computing surveys, 56(1):1–37, 2023.
A. Proofs
Before delving into the proofs we summarize the notation we use. The full set of indices is given by , we will denote and use to refer to arbitrary subsets of . It is convenient to write to denote the function inside the ReLU and denote . Coordinates in the image space are given as , the set of active coordinates is given by and its cardinality is . The closed strata in image space are given by . We call the set the -th facet and the set the core. It is worth noting that and which shows that intersections between the facets can produce any closed stratum.
Theorem A.1. The cover is a good cover of .
Every either has some and is in or has all and is in . Thus is a cover. The difficult part of the proof is in showing that it is a good cover or that and are contractible. Then by using the fact that the full intersection is empty , we can use the nerve argument to conclude that the image is homotopy equivalent to a sphere.
For convenience we will split the proof of the good cover property into three lemmas proving contractibility of with A.3, with and . First we introduce some more useful notation and identities.
Lemma A.2. Define , and , then the following facts hold.
-
-
-
If , then for every .
-
If some , then and for every .
Proof. The first identity comes from the fact that we can write .
The second identity is similar namely, . For the third property, notice that can be written in piecewise-linear form as,
Then by the first identity we have , so which by the PWL form implies that .
The fourth property has two cases, when , we have and (the maximum of is ). This implies so . When , we have so the same conclusion follows. Combining this with fact 3, implies that for every .
Given these facts we now proceed to prove the first contractibility case. The goal of the proof is to establish that with is the geometric realization of a simplex and is therefore contractible.
Lemma A.3. (Simplex lemma) and . Every such is contractible.
Proof. There are two directions to prove, we begin with . We write the sum . Fact 4 also implies that for and is implied by being a norm. Therefore by using the inequality we get,
Then from the fact that we get which implies that the image is in the simplex. The bound is trivial when .
For the second direction , let and because all coordinates of the simplex are non-negative (we also have that ). For each we have to pick a region in which is affine and then find an that realizes that while keeping .
For take , from facts 1 and 2 along with the expansions of and each equation can be written as,
From solving these equations we get and since (fact 4 and ), we can write . After rearranging, we get and therefore,
It remains to show that these solutions are in fact in the interval . follows from . For , we have . The worst case scenario is when and the expression becomes . After simplifying we get and therefore when (for we get 0). Therefore, for any we can construct an such that .
For we can explicitly guess the solution when . Then we get and thus . From we get and . Then the equations for become,
Then by symmetry, when , the solutions are given by switching the arguments in .
For we have .
Given that we have established both and , we conclude that . Furthermore, we have that are faces of . Therefore, any such set is contractible.
Next we prove the case in which , it turns out that in this case is not a simplex so the proof will proceed by constructing a strong deformation retraction to which is a simplex by Lemma A.3. Before jumping into the proof, we state a useful definition for labeling the different regions of the domain.
Definition A.4. The sign vector at a point is given by a map with components,
Then the full sign vector is , we also define and . By abuse of notation we will, for example, write to mean .
Lemma A.5. (Lowering lemma) Given , the simplex (Lemma A.3) is a strong deformation retract of . Therefore is contractible.
Proof. Let with . Our goal will be to show that for every the set is a lower set of which implies that and the straight-line homotopy maps into . Such a homotopy has the properties of a strong deformation retract.
-
is continuous, as can be seen from its formula.
-
, since the zero pattern outside never changes and .
-
It is a strong deformation retraction because , and for all (this is the "strong" condition).
We again have to split the proof into two cases depending on how many coordinates of are positive.
Case 1: . Let and be some preimage of so that . By facts 3 and 4 from Lemma A.2, the active coordinates are positive or . Furthermore, if for some and (such a exists when ), then we can write the equations and . Adding the two gives,
The sum of norms can be split by the index-ordered pairs. For the -th entry we get . For the others we can use the triangle inequality to write . Summing all of these terms together gives
Therefore the assumption that implies that at least one of the two positive coordinates are negative. This is a contradiction, so and have to hold. This allows us to write an affine expression for all active coordinates ,
Notice that the flow we wish to define keeps every coordinate fixed except . Therefore, the active coordinates should not change, the inactive ones can change as long as they don't become active and the coordinate has to move so that decreases. We take a single inactive coordinate with , which exists because otherwise we get and . From fact 4, this contradicts . A set of flow equations satisfying the conditions above is given by,
Observe what this does to the derivative , where we used for , and for and . This implies that for . Additionally for , we have since , which means that including stays 0 for small . What remains to be shown is that decreases along the flow. There are two cases to separate depending on whether or .
By applying fact 2 we have . One can see that the only contributing term is from the derivatives of ,
Then if , we have and . If , then we have and . In both cases this derivative is negative so decreases along the flow. Using this property we can now prove that .
First off, vanishes outside of so it is compact, which implies that is a closed subset. Let , by the closed property we have . Assume that and apply the flow at a preimage of which moves the point to and therefore . This is a contradiction, so and and maps into and is a strong deformation retract onto the simplex .
Case 2: . Using the previous flow equations does not work for as then we cannot derive that active coordinates have and get in the regime. This setting only has two equations to keep track of so we opt for a more explicit approach where we show that the set is a lower set with respect to . For the bounds, take , by the triangle inequality we have the sum,
hence . Then using facts 2 and 4 we can also write . From the expression of we have and we have,
therefore Then to realize the points satisfying both bounds we take the same approach as in Lemma A.3. Specifically, we solve for a point . When and , we get the solutions,
One can check these solutions apply when . Otherwise, we consider and which gives the solutions,
As one can check these solutions are consistent with . This argument applies for any due to the symmetry of the construction.
Finally, for we have . This is a lower set wrt. realized by with . Every and where at we have and at , we have . Since we know that this completes the proof.
Every has , so by the cases above for every , i.e. is a lower set with respect to . Hence items 1–3 hold, and is a strong deformation retraction of onto .
To conclude, for any , we have for all cases . This implies is a lower set wrt. and all three properties of hold. This implies that is a strong deformation retract onto the simplex .
The last lemma needed to establish the good cover property of is the contractibility of the core and its intersections . We split this into two lemmas.
Lemma A.6. (Contractible core lemma) The core is contractible.
Proof. Step 1: .
Consider the open set on which all functions are active. We have . If , then by the triangle inequality we have , which implies . Since is the closure of , we get . Conversely, suppose that all and . Then from fact 3 we get . This implies that , so . This is a contradiction so .
It is convenient to rewrite the equations again given that (which follows from ). Define , then we get the expressions,
Step 2: contracts to and this factors through .
We now proceed to prove the contractibility of by first constructing a contraction in the domain and then showing that factors through the image map , which is equivalent to requiring that implies .
Take the contraction to given by . This is a contraction of since , that set is convex and makes linear in from the equality,
This property does not hold for the other functions , so instead we show that they are determined by . Use the equality and equation 4 to express,
By rearranging the individual terms we get and . This implies that at least one , since either for some and thus implying or implying and and . We also have from the fact that the formulas in 4 add a positive term to . Therefore, only depends on , so and .
It remains to show that and . We can define the set where and have non-positive values as . Off this set we have . On this set we have, and . In other words, the different preimages of only differ only in coordinates in . Then summing over gives , with the last equality coming from the fact that is the same for both points. Thus, we get that off the coordinates agree and on the sums of the absolute values agree, this implies and . From this we see that implies .
Step 3: is contractible.
Notice that since all functions are active we can freely write .
Constructive Bounds for Topological Expressivity From the previous step we concluded that Pˆ(x(t)) = y(t) is independent of the choice of the starting point x(0) ∈ U¯ I with P(x(0)) = y. Another way to state this property is to say that the map F(x, t) = Pˆ(x(t)) factors through Pˆ × id, meaning that the following diagram commutes, U¯ I × [0, 1] V¯ I V¯ I × [0, 1] F Pˆ×id Φ Pˆ is continuous, U¯ × [0, 1] is compact and P ×id is a continuous surjection (simply because V¯ I = Pˆ(U¯ I )) onto a Hausdorff space. Thus it is closed and a quotient map. F(x, t) = Pˆ(x(t)) = Φ ◦ P × id is also continuous due to the continuity of Pˆ, so Φ is continuous. This allows us to write the retraction on the image space V¯ × [0, 1] as Φ(Pˆ(x), t). We then have Φ(Pˆ(x), 0) = Pˆ(x) because x(0) = x and Φ(Pˆ(x), 1) = ed+1 because x(1) = ad+1 and Pˆ(ad+1) = ed+1. Thus Φ is a homotopy starting from the identity and ending at the constant map with value ed+1. Therefore the identity is null-homotopic and V¯ I is contractible. The final step to establishing that C is a good cover is to confirm that intersections of the type R¯ J ∩ V¯ I are contractible. Lemma A.7. (Contractible intersection lemma) For ∅ ̸= J ⊊ I, the intersections R¯ J ∩ V¯ I are contractible. Proof. It is again easier if we split the proof depending on whether d + 1 ∈ J. Step 1: d + 1 ∈/ J. On V¯ I we have S ≤ 1 2 and on R¯ J , with J = T, we have S ≥ 1 2 . Therefore, on their intersection we have S = 1 2 and pd+1(x) = 0. In addition, fact 3 implies that S = Pxk = 1 2 and we can write the equations on this intersection as, pk(x) = 2xk, pd+1(x) = 0. From here we see that Ppk(x) = 2Pxk, which by the fact that Pxk = 1 2 implies that P k pk(x) = 1. Furthermore, pk(ak) = ek and pl(ak) = 0 when l ̸= k, meaning that the image under Pˆ is the simplex. Choosing J ⊂ T, simply restricts the simplex to some lower-dimensional face. In any case these intersections are convex and contractible simplices. Step 2: d + 1 ∈ J. Denote the base of R¯ J ∩ V¯ I , excluding pd+1, by ∆J = {yk ≥ 0 : P k∈J{d+1} yk ≤ 1}. Γ ⊂ R¯ J ∩ V¯ I is a graph over this base in which, for y ∈ ∆J , points in the intersection are given by (y, yd+1). Our goal is to show that R¯ J ∩ V¯ I deformation retracts to such a graph Γ ≃ ∆J . We can write the expression for pd+1(x) = yd+1 as, pd+1(x) = 1 2 − Xh(xl)
1 2 − d 2d
- 2Xmin(x − l , 1 2d ) = 2Xmin(x − l , 1 2d ). We can decompose every x ∈ ΣJ = {x : xl ≤ 0 for l /∈ J, ∥x∥1 = 1 2 } into its positive and negative parts. Then for some index j0 ∈ T \ J (which exists since J ̸= I), we can write a new point as xˆ = x
- − ∥x −∥1ej0 . Since the l1 norm splits componentwise, the norm of this new point is still ∥xˆ∥1 = ∥x +∥1 + ∥x −∥1 = 1 2 which means that xˆ ∈ ΣJ . The positive parts of x and xˆ are the same so we get pk(x) = pk(ˆx) = 2xk. For pd+1 the positive parts contribute 0 and we have pd+1(ˆx) = 2 min(∥x −∥1, 1 2d ). The positive sum ∥x +∥1 can also be written as 1 2 Pyl = ∥x +∥1, which gives ∥x −∥1 = 1 2 − ∥x +∥1 = 1 2 (1 − Pyl). So pd+1(ˆx) can be realized through the image coordinates y as pd+1(ˆx) = min(1 − Pyl , 1 d ). This last expression will be useful later so we use a new function z ∗ (y) = min(1 − Pyl , 1 d ) and define Γ as, 17
Since they share signs, and are in the same closed orthant on which is linear. Therefore, the segment between them stays in a convex set. Let this segment be parametrized as . The image of the positive maps on this path is constant by,
The remaining negative coordinates map to 0 and for we have a continuous function,
By substitution, we can check that and . Given the continuity of , any value in the interval is realized for some . By the fact that there is at least one negative coordinate we have for some , which implies that both extremes of this interval are positive. Therefore, stays in .
Finally, we can define a homotopy on the image. It is continuous, is the identity and since is fixed throughout, maps into a graph over . When restricted to , the homotopy keeps fixed, since . Since the base is a convex set, hence contractible, it is enough to establish that . This can be done through the projection , which is continuous and has a continuous inverse given by . Therefore, the homotopy is a deformation retract of to which is homeomorphic to a convex set and is therefore contractible. This concludes the proof.
With this last lemma, we have now checked all possible intersections of the cover and we can now prove Theorem A.1.
Proof. The proof consists in showing that every intersection of the cover is contractible, which we have done in the previous four lemmas. Here we simply list them.
-
Intersections of the type with are simplices by Lemma A.3.
-
Intersections of the type with are (strong) deformation retract to simplices by Lemma A.5.
-
The core is contractible by Lemma A.6.
-
Intersections of the type , with contract to simplices when or to a graph over simplices when by Lemma A.7.
Given that all this list exhausts all possible intersections, is a good cover of .
The fact that C is a good cover allows us to apply the nerve theorem, which leads to our final theorem.
Theorem A.8. is homotopy equivalent to the sphere .
Proof. This simply follows by looking at the intersection pattern of all pieces of the cover. The conditions along with the intersections imply that the nerve contains every proper subset of the possible vertices. The only special intersections are the one including all closed strata and its intersection with the core . Therefore, the nerve has vertices which realize all intersections except for the face. This is equivalent to taking the boundary , which is homotopy equivalent to .