Comparing Linear Regions in ReLU-Type Networks: Theory and Monte Carlo Methods
Yuan Wang
NeurIPS 2026
TL;DR. This paper provides innovative methods (theoretical and empirical) to compare numbers of linear regions for ReLU-type networks, and shows in particular that neurons placed closer to the input layer tend to create more linear regions.
Abstract. In this work, we establish the uniqueness of linear patterns for generic fully connected neural networks activated by ReLU or leaky ReLU functions. With this result, together with several tools from geometry and probability, we compare the numbers of linear regions for a wide variety of networks from both theoretical and practical perspectives, with minimal prerequisites. More specifically, on the theoretical side, we show that networks with neurons arranged as (2 hidden layers, each having neurons) are expected to have more linear regions than those arranged as for and ; on the empirical side, we show the validity of a Monte-Carlo approach for comparing linear regions via linear patterns, and carry out experiments for networks in various scenarios. Our results indicate that neurons closer to the input layer tend to have more impact on the number of linear regions. Moreover, along the way, we find the precise value of the expected number of linear regions for networks with 2 hidden layers, and an explicit upper bound for networks whose layer widths are non-increasing. The implementations for this paper are available through the following link: https://github.com/yuanwang-research/Regions-ReLU-Network
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper studies the geometry or ReLU networks by analyzing the number of linear regions they produce upon initialization. The paper presents several new insights for multiple architecture types, as well as a Monte Carlo approach for verifying the number of linear regions in a network.
While the reviewers are overall positive about the submission and the contribution, there have been concerns raised about the level of rigor and correctness of some of the proofs. I urge the authors to address these in the rebuttal, since these are the most critical issues in the manuscript. Additionally, some clarity issues were raised, and concerns regarding the generality of the results were made. Addressing these as well would also greatly benefit this submission.
Final justification
Following a fruitful exchange during the rebuttal phase, one reviewer raised their score to 4, while another maintained a positive score of 5. The authors addressed several issues, improving the submission's clarity and rigor. However, Reviewer NLGP raised concerns regarding novelty, arguing that the contribution is incremental compared to prior work. Although the authors addressed this in detail during the rebuttal, the reviewer maintained their borderline reject assessment without specifying their considerations or addressing the authors' numerous points. In contrast, both Reviewer rWyk and the AC found the authors' response satisfactory.
Overall, I view this submission positively. It is clearly written, provides interesting insights and novelty, and has improved in overall quality thanks to a successful rebuttal.
Read meta-review
Meta-review
This paper studies the geometry or ReLU networks by analyzing the number of linear regions they produce upon initialization. The paper presents several new insights for multiple architecture types, as well as a Monte Carlo approach for verifying the number of linear regions in a network.
While the reviewers are overall positive about the submission and the contribution, there have been concerns raised about the level of rigor and correctness of some of the proofs. I urge the authors to address these in the rebuttal, since these are the most critical issues in the manuscript. Additionally, some clarity issues were raised, and concerns regarding the generality of the results were made. Addressing these as well would also greatly benefit this submission.
Final justification
Following a fruitful exchange during the rebuttal phase, one reviewer raised their score to 4, while another maintained a positive score of 5. The authors addressed several issues, improving the submission's clarity and rigor. However, Reviewer NLGP raised concerns regarding novelty, arguing that the contribution is incremental compared to prior work. Although the authors addressed this in detail during the rebuttal, the reviewer maintained their borderline reject assessment without specifying their considerations or addressing the authors' numerous points. In contrast, both Reviewer rWyk and the AC found the authors' response satisfactory.
Overall, I view this submission positively. It is clearly written, provides interesting insights and novelty, and has improved in overall quality thanks to a successful rebuttal.
1 comment
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the number of linear regions induced by (leaky-)ReLU networks. The authors demonstrate that, given the same number of neurons, shallow networks can yield a larger expected number of linear regions than deep networks. In addition, they adopt a Monte Carlo approach to compare linear regions through their associated linear patterns.
Strengths and weaknesses
Strengths
- The paper is well-organized and easy to follow, allowing readers to grasp the key contributions early on.
- The work presents a surprising result. Whereas classical results show that the upper bound on the number of linear regions grows exponentially with depth—faster than with width—this paper reveals a counterintuitive finding: given the same number of neurons, shallow networks can yield a larger expected number of linear regions than deep networks.
Weaknesses
- As the authors acknowledge, the result is similar in spirit to [Wan22], with the extensions being from fixed width to varying widths and from ReLU to leaky-ReLU activations. These extensions feel somewhat incremental.
- The significance of the result should be articulated more explicitly. Classical approximation-theoretic results for neural networks show that deep networks can approximate certain function classes with substantially fewer parameters than shallow ones. For instance, approximating special functions (e.g., polynomials) requires only parameters for deep networks, whereas shallow networks need at least parameters, where denotes the input dimension (see, e.g., [Liang & Srikant, 17; Yarotsky, 17]). While the present work establishes a surprising result on the expected number of linear regions, its practical implications remain unclear. I encourage the authors to include a more thorough discussion in this regard.
References:
Liang S, Srikant R. Why Deep Neural Networks for Function Approximation?[C]. International Conference on Learning Representations. 2017.
Yarotsky D. Error bounds for approximations with deep ReLU networks[J]. Neural networks, 2017, 94: 103-114.
Questions
Refer to the Weakness Section.
Limitations
yes
Final justification
My concerns about the incremental contribution of this work to [Wang22] remain. I will keep my borderline score.
Formatting concerns
none
1 comment
Rebuttal
Thank you for recognizing that the paper is well organized and that its main result is surprising. We appreciate the concerns about originality and significance. We respectfully believe, however, that our contributions go substantially beyond an incremental extension of [Wang22], and that the approximation results cited in the review address a different, complementary question.
Weakness 1: The extensions beyond [Wang22] feel somewhat incremental.
We agree that [Wang22] is the closest prior work, and we discuss this connection explicitly in the paper. Nevertheless, the differences are theorem-level rather than merely changes in notation or parameters:
-
A much broader comparison theorem. [Wang22, Theorem 1.1] compares only the special arrangements , , and . Our main theorem proves
for every and (by the way, this inequality cannot be rendered by this reviewing system, and we do not know why). Thus, the width of the deep network is no longer fixed at 1 or 2, and the result applies to an infinite family of width-depth comparisons. Extending a theorem to this level of generality requires new estimates and proof techniques; it does not follow from [Wang22] by substituting parameters into its formulas. Indeed, [Wang22] explicitly identifies comparisons beyond the structures in its Theorem 1.1 as a direction for future work.
-
A new general estimation theorem. The comparison above relies on Theorem 3.7, Part 1, which gives explicit upper bounds for networks with arbitrary non-increasing layer widths $ M\geq n_1\geq n_2\geq\cdots\geq n_l. $ This is an independent result and has no counterpart in [Wang22]. The latter treats only several special cases: deep networks of width 1, two-hidden-layer networks, and deep networks of width 2. Our proof instead develops an induction over layers using the orthants and strata associated with successive layer coordinates. This general estimation result is what makes the broader comparison theorem possible.
-
Exact two-layer results rather than a range. For a two-hidden-layer ReLU network, [Wang22] places the expected number of regions in an interval. Theorem 3.7, Part 2(a), gives its exact expectation. Closing this gap requires identifying how activation regions merge into linear regions and, in particular, carefully treating duplicated zero regions across strata. This reflects a substantially finer understanding of the geometry than an upper and lower estimate.
-
Leaky ReLU introduces genuinely different phenomena. [Wang22] considers ReLU networks only. We treat ReLU and leaky ReLU throughout. For two-hidden-layer leaky-ReLU networks, Theorem 3.7, Part 2(b), proves that the number of linear regions is generically constant and gives its exact value, whereas Example 3.9 shows that this constancy fails at depth 3. These results are not consequences of the ReLU analysis and require different geometric arguments.
-
Additional theoretical and computational contributions. Theorem 3.3 characterizes when linear patterns uniquely identify linear regions for generic ReLU-type networks. This result supports our Monte-Carlo method, which compares networks by sampling linear patterns and can be applied at scales where the exact region-tracking algorithm of [Wang22] is infeasible. We also study both randomly initialized and trained networks.
For these reasons, although the high-level motivation is related to [Wang22], the present paper contributes new general bounds, exact formulas, leaky-ReLU phenomena, a generic uniqueness theorem, and a scalable empirical method. We will revise the discussion of contributions to make these distinctions more explicit.
Weakness 2: The practical significance is unclear in light of approximation-theoretic results favoring depth.
Thank you for suggesting this comparison. The results of [Liang & Srikant, 2017] and [Yarotsky, 2017] do not conflict with ours because they study a different notion of expressive power under substantially different assumptions. we will cite and discuss them in the revision.
First, both cited works formulate approximation on a bounded domain. Liang and Srikant define the approximation error as the maximum pointwise error over ; their polynomial results are likewise stated on , and their networks use a combination of ReLU and binary-step units. Yarotsky studies approximation of smooth functions in Sobolev classes , again with error measured on the unit cube. In contrast, our theoretical results count all linear regions globally over the entire input space .
More importantly, the objects and quantifiers differ:
- The approximation papers ask how many units, weights, or connections are sufficient or necessary to approximate a prescribed function or function class to error . Their upper bounds use carefully constructed, target-dependent parameter choices. We ask how architectural arrangement affects the global number of linear regions for generic parameters, and its expectation under independent random parameters with continuous even densities. There is no prescribed target function, approximation tolerance, smoothness class, or optimization procedure.
- Their conclusions concern approximation efficiency as ; ours concern the average-case geometry of fixed architectures and the placement of a fixed collection of hidden neurons.
Consequently, a deep network can approximate a structured function more efficiently without having more global linear regions on average. Approximation depends not only on how many regions exist, but also on where they are placed and how composition reuses them within the domain of interest. Conversely, having more linear regions does not by itself imply better approximation or predictive performance. Our result therefore should not be interpreted as claiming that shallow networks are universally preferable to deep ones.
The significance of our result is instead that it identifies an important limitation of a common expressivity proxy. Classical maximal-region bounds are often used to motivate the advantage of depth, but our theorem shows that for generic random parameters and a fixed neuron budget, the expected global region count can favor width. It also indicates that neurons nearer the input can have a greater effect on region formation. The Monte-Carlo method makes it possible to examine the same geometric quantity in larger and trained networks.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies the number of linear regions in fully connected ReLU-type networks, including both ReLU and leaky ReLU networks. Its main theoretical contributions are: a generic uniqueness result relating non-constant linear regions to linear patterns; an upper bound on the expected number of linear regions for networks with non-increasing widths; exact formulas for two-hidden-layer networks; and a comparison showing that, under the stated random initialization assumptions, a network with two hidden layers, each of width pq, has a larger expected number of linear regions than a network with 2q hidden layers, each of width p, for p ≥ 1 and q ≥ 2. The paper also proposes a Monte-Carlo method that estimates relative linear-region complexity by sampling inputs and counting distinct linear patterns, with experiments on randomly initialized networks and a trained-network setting.
Strengths and weaknesses
The paper addresses a meaningful problem: comparing the piecewise-linear complexity of ReLU-type networks under different architectural arrangements. Since exact counting of linear regions is generally difficult, a direct comparison theorem for nontrivial network families is potentially useful. The paper also makes a reasonable attempt to connect the theory with a practical Monte-Carlo proxy based on linear patterns.
The main strength is the direction of the work. The comparison between width allocation and depth allocation is interesting, and the claimed exact formulas for two-hidden-layer networks could be valuable if the proofs are correct. The examples and visualizations also help explain the geometric intuition behind the arguments.
The main weakness is that the current theoretical presentation is not sufficiently rigorous. The key issue is Theorem 3.3. The proof claims that, generically, two points with the same non-constant linear pattern must have the same activation pattern. The main argument is that changing a weight would affect one point but not the other. As written, this is not sufficient: equality of two affine restrictions at one generic parameter setting does not by itself justify such a perturbation argument. The proof should explicitly define the parameter space, identify the exceptional measure-zero or algebraic set, and show that two distinct activation patterns cannot generically induce the same non-constant affine map. Since Theorem 3.3 is used to justify the Monte-Carlo method, this is a central gap rather than a minor technicality.
The proof of Theorem 3.7 is also hard to verify. The counting argument relies on coordinates, orthants, strata, symmetry, and an induction over layers. Several steps are plausible but under-explained. In particular, when Lemma A.1 is applied inside strata or orthants after fixing earlier parameters, the proof should state clearly which random variables remain independent and why the required symmetry still holds. The treatment of duplicated zero regions in the ReLU two-layer case is also too compressed. Since Theorem 3.7 is the main comparison result, its proof needs to be more explicit and checkable.
There are also notation and clarity problems. The paper should consistently distinguish activation regions, linear regions, linear patterns, non-constant patterns, and sampled or detected patterns. This distinction is essential because the experiments count sampled linear patterns, not exact linear regions. Some notation should also be checked carefully, including the shape and indexing convention of . The phrase “ where is the width of the first layer of ” appears to be a typo.
The empirical results are useful as supporting evidence, but the conclusions are currently stronger than what the experiments show. Counting distinct patterns from sampled inputs gives a proxy, not the true number of linear regions. In many entries of Table 1, the count saturates at . In those cases, the experiment cannot distinguish whether one architecture truly has more regions; it only shows that almost every sampled input produced a distinct detected pattern. The results also depend on the input distribution and the scale . The paper would be stronger with calibration experiments on small networks where exact counts are available, curves versus sample size, and standard deviations or confidence intervals across random networks.
Overall, the paper has a potentially interesting theoretical contribution, but the current version is not yet convincing enough. The main reasons are the incomplete genericity argument behind Theorem 3.3, the compressed proof of Theorem 3.7, and the over-interpretation of sampled-pattern counts as evidence about true linear-region counts.
Questions
-
Can the authors give a rigorous proof of Theorem 3.3? In particular, please replace the informal weight-perturbation argument with a measure-zero or algebraic-generic argument showing that two distinct activation patterns cannot induce the same non-constant affine restriction generically.
-
Can the authors expand the proof of Theorem 3.7? The induction step should explicitly state which parameters are fixed, which remain random, and why Lemma A.1 can still be applied inside the relevant strata or orthants.
-
Can the authors calibrate the Monte-Carlo estimator on small networks where exact linear-region counts are known? This would show whether sampled linear patterns are a reliable proxy, and how the answer depends on sample size and .
-
How should Table 1 be interpreted when the detected-pattern count saturates at ? In those cases, the experiment seems unable to distinguish the true number of regions across architectures.
-
Please revise the terminology so that “linear regions,” “non-constant linear regions,” “linear patterns,” and “detected linear patterns” are not used interchangeably.
My score would increase if the authors provide a rigorous proof of Theorem 3.3, clarify the proof of Theorem 3.7, and weaken or better support the empirical claims based on sampled patterns. My score would decrease if these two theoretical results cannot be justified under the stated assumptions.
Limitations
yes
Final justification
The authors addressed my concerns in their response and thus I increase my score.
Formatting concerns
No major formatting concerns.
5 comments
Rebuttal
Thank you for reading our paper and for your valuable feedback. We have done our best to answer your questions below and also address the issues and concerns raised in the "Strengths and Weaknesses" section.
- Can the authors give a rigorous proof of Theorem 3.3? In particular, please replace the informal weight-perturbation argument with a measure-zero or algebraic-generic argument showing that two distinct activation patterns cannot induce the same non-constant affine restriction generically.
This is a very good observation. We agree that the genericity of the parameters needs to be stated more rigorously. Here we explicitly define a measure-zero set in the parameter space such that, whenever the parameters are outside this set, the linear patterns of all non-constant activation regions are distinct. Observe that for every input coordinate and activation pattern, is a linear function of whose coefficient for is a distinct polynomial in and . For each pair of such polynomials , we consider the subset of the parameter space satisfying . This is well known to have measure zero. We then take the union of these sets over all pairs of polynomials corresponding to all activation patterns and denote it by . Since there are finitely many such pairs, also has measure zero.
Outside , consider any two distinct non-constant activation regions. By non-constancy, at least one region has a nonzero coefficient for some coordinate . The corresponding coefficients in the two regions must differ, so their linear patterns are different. This proves the claim.
- Can the authors expand the proof of Theorem 3.7? The induction step should explicitly state which parameters are fixed, which remain random, and why Lemma A.1 can still be applied inside the relevant strata or orthants.
The proof of Theorem 3.7 involves several objects in a multidimensional setting (e.g., layerwise weights, biases, and activations, as well as the orthants and strata they form). We re-examined the parts identified by the reviewer. Although most are already clearly stated, a few passages can still be improved:
- About the states of the weights and biases (whether fixed values or random variables): this is already clearly stated. The second paragraph of the proof of Part 1 (lines 420–435) defines the states and operations . In state , the parameters beyond the -th layer are random variables, while those up to that layer are fixed. Likewise, the neurons beyond the -th layer use the original ReLU or leaky ReLU activation, while those up to that layer use the identity function. Operation makes the weights from layer to layer , together with the biases of layer , random variables and restores the activation functions of layer . It therefore moves the network from to .
- About why Lemma A.1 still applies to the corresponding strata or orthants: This is also clear from the context. The setup appears in lines 441–449, ending with “an orthant of that affine space,” where the relevant objects are mapped to the coordinates in Lemma A.1. For dimension , the affine coordinate is , and the corresponding orthant is $ \left(\bigcap_{k=1,2,\ldots,n-d}H_{l-1}^{j_k}\right)\cap {^+\mathcal{Q}_{l-1}}. $ For a simple illustration, consider three-dimensional Euclidean space with coordinates . Its positive orthant is defined by . Each two-dimensional coordinate plane contains a positive orthant: , , or ; each is contained in the three-dimensional positive orthant.
- Although not included among the questions, the reviewer is also concerned about the treatment of duplicated zero regions in the two-layer ReLU case. We agree that the writing here needs improvement. We use Lemma 2.1, and the in this paragraph should be . Moreover, the strategy of subtracting all zero regions and adding back the -dimensional part can be stated more clearly. We therefore propose to replace the paragraph in line 482 beginning "So we discard the zero regions ..." with the following: "We discard the zero regions in all strata of layer 1 except the -dimensional one. By Lemma 2.1, the -dimensional zero locus must exist for the other zero loci to exist, so we retain the former. For the computation, we first subtract the proportion of zero linear regions from (4) and then add back the contribution from the -dimensional stratum. By symmetry, the orthants of layer 2 behave identically with respect to their intersections with the strata of layer 1. Therefore, in the subtraction step, we subtract a proportion from the term (equivalently, from the term). To add back the -dimensional part, we use the term corresponding to in (4), multiplied by :
This gives the desired result."
We understand that the proof techniques require handling several geometric objects. We have spent considerable effort organizing the argument rigorously. Although the presentation still contains many abstract notations and settings, the overall argument is coherent. Given this complexity, Section A.1 provides an example illustrating these concepts, which we hope will help readers understand them.
- Can the authors calibrate the Monte-Carlo estimator on small networks where exact linear-region counts are known? This would show whether sampled linear patterns are a reliable proxy, and how the answer depends on sample size and .
Yes. During the rebuttal period, we ran an additional experiment on the network with and the one with (still for 1000 network each with 10000 input data). The former has linear regions, while by Theorem 3.7, Part 2, the latter has 6.5 for ReLU and 11 for leaky ReLU. The results are:
| ReLU mean | ReLU std | leaky ReLU mean | leaky ReLU std | ||
|---|---|---|---|---|---|
| 1 | (1,4) | 13.650 | 1.414 | 14.550 | 1.491 |
| 1 | (2,2) | 4.224 | 1.822 | 6.587 | 1.808 |
| 2 | (1,4) | 14.321 | 0.942 | 15.265 | 0.998 |
| 2 | (2,2) | 4.630 | 1.794 | 7.154 | 1.813 |
| 4 | (1,4) | 14.586 | 0.691 | 15.557 | 0.715 |
| 4 | (2,2) | 4.876 | 1.746 | 7.512 | 1.777 |
| 8 | (1,4) | 14.669 | 0.637 | 15.650 | 0.656 |
| 8 | (2,2) | 4.948 | 1.721 | 7.704 | 1.747 |
| 16 | (1,4) | 14.681 | 0.669 | 15.658 | 0.703 |
| 16 | (2,2) | 4.965 | 1.688 | 7.894 | 1.670 |
| 32 | (1,4) | 14.683 | 0.689 | 15.657 | 0.731 |
| 32 | (2,2) | 4.918 | 1.650 | 8.215 | 1.529 |
| 64 | (1,4) | 14.686 | 0.678 | 15.660 | 0.719 |
| 64 | (2,2) | 4.788 | 1.589 | 8.645 | 1.288 |
| 128 | (1,4) | 14.689 | 0.674 | 15.662 | 0.716 |
| 128 | (2,2) | 4.653 | 1.506 | 9.093 | 1.130 |
| 256 | (1,4) | 14.687 | 0.682 | 15.661 | 0.722 |
| 256 | (2,2) | 4.561 | 1.452 | 9.321 | 0.989 |
| 512 | (1,4) | 14.685 | 0.687 | 15.659 | 0.726 |
| 512 | (2,2) | 4.430 | 1.410 | 9.248 | 0.953 |
Note that the code counts only nonzero linear regions. For leaky ReLU, all linear regions are non-constant. For ReLU, there is one constant region when , and one or two constant regions when . Moreover, for leaky ReLU, the number of linear regions is generically fixed by Theorem 3.7, Part 2(b), so the detected count cannot exceed the actual number. With these facts considered, the results are reasonable when is properly chosen. As stated in the paper, this method is intended to compare the numbers of linear regions rather than count them all, which is NP-hard. The results show the tendency for wider networks to have more linear regions than deeper ones.
- How should Table 1 be interpreted when the detected-pattern count saturates at 10,000? In those cases, the experiment seems unable to distinguish the true number of regions across architectures.
This means that a distinct linear pattern is detected for each input; in other words, the number of inputs is insufficient to show the difference. By including such cases, we show that the method's effectiveness depends on the parameter configuration. We mention in lines 314–316 that the number of inputs must be chosen appropriately, but we can elaborate further.
- Please revise the terminology so that “linear regions,” “non-constant linear regions,” “linear patterns,” and “detected linear patterns” are not used interchangeably.
The inconsistent usage of these terms occurs only in the experimental section. The program detects linear patterns using the Monte-Carlo algorithm, and each non-constant linear pattern detected by the program corresponds to a distinct linear region. We will revise this section to distinguish the terms clearly and consistently.
My main concern regarding Theorem 3.3 remains unresolved
Thank you for the detailed response. The clarifications regarding Theorem 3.7, the saturated entries in Table 1, and the terminology are helpful. The additional small-network experiment also provides useful supporting evidence. However, since the number of sampled inputs remains fixed at 10,000, it mainly studies the dependence on rather than the dependence on sample size. I therefore view the response to the Monte-Carlo calibration question as partially satisfactory.
My main concern regarding Theorem 3.3 remains unresolved. The rebuttal proposes a reasonable measure-zero argument: each activation pattern induces an affine map whose coefficients are polynomial functions of the network parameters; for each pair of activation patterns, the parameters for which the corresponding coefficients are equal are placed into an exceptional set; and a finite union of these exceptional sets is then taken.
The difficulty is that the zero set
has measure zero only when is not identically zero. The rebuttal states that the coefficient associated with an input coordinate is “a distinct polynomial” for different activation patterns, but it does not explain why the two polynomial expressions are distinct rather than identically equal. This is the key step needed for the proposed measure-zero argument.
The following step in the rebuttal is also insufficient as currently written:
“By non-constancy, at least one region has a nonzero coefficient for some coordinate . The corresponding coefficients in the two regions must differ.”
A nonzero coefficient in one region does not imply that the corresponding coefficient in the other region is different. The two affine maps may have the same nonzero coefficient for and differ only in another coefficient or in the intercept. Therefore, non-constancy alone does not justify the conclusion that the selected coefficient polynomials must differ.
The rebuttal should also clarify how its argument handles activation patterns that differ at a neuron whose output does not contribute to the final output under the remaining activation states, for example because there is no active downstream path from that neuron to the output. In such a case, changing the activation state of that neuron may not change the induced affine map. This case appears directly relevant to the claim that different activation patterns always yield distinct coefficient polynomials.
It would also help to state the polynomial dependence more precisely. For a fixed activation pattern , the induced map can be written as
The entries of are determined by the weights and activation slopes along the relevant paths, while the biases contribute mainly to the intercept . The rebuttal currently refers generally to coefficients as polynomials in both weights and biases, so a more precise separation between the linear coefficients and the intercept would make the argument easier to verify.
Could the authors clarify the missing step within their proposed proof? Specifically, after selecting two distinct activation patterns, the response should explain why the coefficient polynomials that it compares are not identically equal, or how it identifies another coefficient or intercept whose polynomial expressions differ. Without this justification, the exceptional set used in the measure-zero argument is not necessarily a measure-zero set, and the finite-union argument does not complete the proof.
At present, I regard the responses concerning Theorem 3.7, the saturation issue, and the terminology as largely satisfactory, and the Monte-Carlo calibration response as partially satisfactory. My overall evaluation still depends mainly on whether the unsupported “distinct polynomial” step in the rebuttal’s proof of Theorem 3.3 can be justified. Until this point is resolved, I plan to maintain my current score.
Resolving the issues concerning Theorem 3.3
Thank you for the follow-up. We focus here on the remaining concern about Theorem 3.3.
The main issue is why different activation patterns induce distinct, rather than identical, polynomial expressions, particularly when they "differ at a neuron whose output does not contribute to the final output under the remaining activation states." We can explicitly write the network output, including the coefficients of and the intercept. For a fixed activation pattern, consider a neuron . When it is activated, its output is , where and are the corresponding weights and bias in the notation of our paper, and is the output of the -th neuron in layer (or the corresponding input coordinate when ). When the neuron is inactivated, its output is in the ReLU case, or the original output multiplied by (the negative slope, ) in the leaky-ReLU case.
Therefore, a straightforward induction shows that the coefficient of in the final output is
- in the ReLU case, where . If no such sequence exists, is empty and the sum is zero.
- in the leaky-ReLU case, where consists of all possible sequences of neuron indices, and is the number of inactivated neurons in the corresponding sequence.
(note the output dim is 1) The constant term is
- in the ReLU case, where .
- in the leaky-ReLU case, where consists of all possible sequences of neuron indices, and is the number of inactivated neurons in the corresponding sequence.
Note that and are sets of sequences of indices (we do not know why the set symbol is not rendered). In both cases, every term in each sum is distinct because it contains a combination of weights or biases that does not occur in any other path. Thus, these terms cannot merge or cancel.
For a non-constant ReLU activation pattern, a sequence of activated neurons must therefore exist. Moreover, if is any activated neuron, then, because the network is fully connected, the sequence , obtained by replacing the -th neuron of the original sequence with , is also a sequence of activated neurons. The corresponding product of weights therefore also appears in the output. In particular, every activated neuron makes a distinct contribution to the coefficients of the final output. Thus, the case in which an activated neuron does not contribute to the output, about which the reviewer is concerned, does not arise.
Now consider two distinct non-constant activation patterns, denoted by and , and suppose that neuron is activated under but inactivated under . We consider the ReLU and leaky-ReLU cases separately:
- In the ReLU case, let be a sequence of activated neurons under (which exists by non-constancy). For any input index , the term appears in the coefficient of under but not in the corresponding coefficient under .
- In the leaky-ReLU case, because and differ, there exist an index and a sequence such that, for all , has the same activation state under and , whereas the activation state of differs. The term in the intercept therefore has different scalar coefficients under and : the activation pattern under which is inactivated contributes one additional factor of .
Therefore, and induce different linear patterns.
Finally, two affine expressions may agree in one coordinate coefficient but differ in another coefficient or in the intercept. This causes no problem: a difference in any coefficient or in the intercept already makes the two linear patterns distinct.
We hope this explicit calculation and comparison resolves the remaining concern about Theorem 3.3. Please let us know if you have any further questions.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies how many linear regions a ReLU or leaky ReLU network has. The main result, Theorem 3.7, gives an upper bound on the average number of regions for random MLPs, and an exact formula for the 2-layer case. A consequence is that neurons in early layers can matter more for the final number of linear regions, and that a 2-layer network can have, in expectation, more linear regions than a deeper one with the same number of neurons.
Strengths and weaknesses
I found the paper well written and addressing an important topic, namely understanding the number of linear regions of ReLU-type networks, which is relevant to questions around expressivity and potentially generalization.
In my view, the strongest result is the exact 2-layer formula. It gives an exact characterization of how two consecutive layers interact on average to create linear regions, and the corresponding leaky-ReLU statement is also interesting, with the number of regions being generically constant in this case.
For deeper networks, my understanding is that the authors use a layer-by-layer upper-bound argument, in the spirit of applying the reasoning behind the 2-layer characterization inductively to consecutive layers.
Questions
One natural question raised by the current proof technique for deep networks is that some multi-layer interactions might not be captured in the bound, potentially missing further reductions in the number of linear regions. I did not see a direct numerical comparison between this upper bound and the number of detected (or exactly counted) regions. Do the authors have a sense of how loose this bound is, at least on small examples where more direct counting is feasible? Any idea on the type of additional structure that could be used in the theoretical analysis, for instance on the weights, the architecture, or the input distribution?
Since the main theoretical results concern random weights, I was also curious about the trained case. In the MNIST experiment, the number of detected linear patterns seems to change substantially during training and is not monotone, while the wider-over-deeper trend appears to persist on average. Do the authors have an interpretation of this evolution? Are there quantities measured during training that seem correlated with the number of detected patterns and could be useful for future theoretical analysis beyond random initialization, already for one gradient step?
Also, the paper seems related to Goujon, Etemadi, and Unser, ``On the Number of Regions of Piecewise Linear Neural Networks'', which also studies average linear-region complexity in a stochastic framework. Could the authors clarify how their results differ from, complement, or improve on that line of work?
Limitations
yes
Final justification
The authors satisfactorily addressed my questions regarding the tightness of the bound, the interpretation of the trained-network experiment, and the relation to prior work. I remain positive about the paper and keep my score unchanged.
Formatting concerns
none
1 comment
Rebuttal
Thank you for the positive assessment and for highlighting the exact two-layer formula as a particularly strong result. Your questions identify several natural directions beyond the present paper. We respond to them below.
1. How loose is the multilayer upper bound, and any idea to sharpen it (maybe using additinal structures)?
Thank you for this question which is a very good one. The proof shows precisely that the bound is tight, or nearly tight, for networks of depth at most 2. In the leaky-ReLU two-layer case, the upper bound in Theorem 3.7, Part 1(b), is
and Theorem 3.7, Part 2(b), shows that this value is attained with probability 1. Thus, there is no gap in this case.
For a two-layer ReLU network, the Part 1(a) upper bound is
whereas the exact expectation from Part 2(a) is
Hence,
and in particular the relative gap is smaller than . The gap comes entirely from duplicated zero regions. As a concrete small example, when , the upper bound is and the exact expectation is . These exact two-layer results therefore provide the small-scale calibration requested by the reviewer.
For depth at least 3, the situation becomes substantially more complicated. The layerwise argument tracks intersections among coordinates, hyperplanes, orthants, and strata, but it does not retain their complete joint geometry across several layers. In the induction, convexity implies that a stratum intersects each downstream activation region at most once; replacing the resulting joint intersection structure by layerwise upper bounds can count combinations that are not simultaneously realizable. We therefore expect the bound to become looser as depth increases. However, we do not currently have a proof that the gap grows monotonically with depth, so we regard this as an informed conjecture rather than a conclusion of the paper. We are continuing to investigate sharper bounds for this setting.
2. How should the evolution of detected patterns during training be interpreted, and what quantities might support a theory beyond random initialization?
At present, our trained-network experiment is exploratory; this is why we placed it in the appendix. The theoretical results assume independent parameters with continuous even densities. Training immediately introduces dependencies among parameters, breaks the symmetry of their marginal distributions, and couples them to the data distribution and loss. Very little is currently known about a sufficiently tractable parameter law during training that would allow our geometric counting argument to be applied directly.
As we see it, several quantities might be useful for a future analysis, even after one gradient step. In particular, one could track:
- the margins of the preactivations and how many activation signs change after the update;
- layerwise activation sparsity and the distribution of activation patterns;
- correlations between parameters and deviations from the independence and evenness assumed at initialization.
The preactivation margin is especially natural for a one-step analysis: a sample can change its activation pattern only when the parameter update is large enough relative to its distance from an activation boundary. More broadly, it would be valuable to determine how the expected number of regions depends on non-even and correlated parameter distributions. We view both questions as important directions for future work, but we do not claim a theoretical explanation of the trained case in the current paper.
3. How does this work differ from Goujon, Etemadi, and Unser, “On the Number of Regions of Piecewise Linear Neural Networks”?
Thank you for bringing this work to our attention. It is closely related at the level of motivation, and we will cite and discuss it in the revision. The part of the paper that is most closely related to our analysis is their bound on the expected density of linear regions along a one-dimensional CPWL path. The path may lie in a higher-dimensional input space, but the quantity being measured is one-dimensional: roughly, the expected number of region boundaries crossed per unit path length. The authors explicitly use this pathwise density because estimating the expected total number of regions would require a much more complicated combination of stochastic and combinatorial geometry.
Our main quantity is different: we study the expected total number of linear regions over the entire input space for fully connected ReLU and leaky-ReLU networks. Our bounds and exact formulas do not depend on a selected path, path length, or input distribution. This distinction enables architectural comparisons such as the Theorem 1.1 as well as the exact two-layer expectations in Theorem 3.7. Conversely, Goujon et al. cover a much broader class of CPWL functions and obtain general maximal-region bounds, whereas our specialization to ReLU-type networks permits sharper results for the global expected count.
The two works are therefore complementary. Goujon et al. show that expected region density along a path grows at most linearly with depth, width, and activation complexity under their stochastic assumptions. We directly compare the expected global counts of specific architectures and show that, with a fixed neuron budget, allocating neurons toward width can produce more regions than allocating them toward depth. Both results contrast typical stochastic behavior with worst-case maximal-region bounds, but they do so using different metrics, assumptions, and geometric techniques.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to the Meta-Review
Thank you for the careful summary and guidance. We appreciate the recognition of the paper's new insights and the reviewers' overall positive assessment.
We have addressed the concerns about proof rigor and correctness, clarity, and the generality and scope of our results in detail through the individual rebuttals and subsequent discussions. These exchanges have also led to further theoretical clarifications and additional empirical validation. We will incorporate all resulting improvements into the revised manuscript. Thank you again for your consideration.