---
title: "On the Number of Linear Regions of Deep Neural Networks (2014)"
description: "How depth increases the expressive power of piecewise linear neural networks through space folding, and what the proofs and experiments…"
canonical: "https://research.elamur.ai/free/en/papers/montufar-2014-number-linear-regions-deep-neural/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/montufar-2014-number-linear-regions-deep-neural/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2014](https://md.research.elamur.ai/free/en/papers/2014/) / On the Number of Linear Regions of Deep Neural Networks

# On the Number of Linear Regions of Deep Neural Networks

Paper · 2014 · Guido Montúfar, Razvan Pascanu, Kyunghyun Cho et al.

**Authors:** Guido Montúfar, [Razvan Pascanu](https://md.research.elamur.ai/free/en/authors/razvan-pascanu/), [Kyunghyun Cho](https://md.research.elamur.ai/free/en/authors/kyunghyun-cho/) and [Yoshua Bengio](https://md.research.elamur.ai/free/en/authors/yoshua-bengio/) · **Year:** 2014 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**786** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2161388792) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1402.1869)
- [arXiv 1402.1869](https://arxiv.org/abs/1402.1869)
- [OpenAlex](https://openalex.org/W2161388792)

Citations: OpenAlex, 2026-10-14.

## Deep dive: On the Number of Linear Regions of Deep Neural Networks

How depth increases the expressive power of piecewise linear neural networks through space folding, and what the proofs and experiments establish. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A neural network can have many hidden units and still use them inefficiently. The question in this paper is whether arranging those units in successive layers gives the network something that a single wide layer cannot achieve as economically. The authors investigate this question for networks built from piecewise linear operations: operations whose behavior is affine within separate parts of their input space. Their measure of expressive capacity is the number of such parts, called linear regions. A network with more regions can change its response across more distinct input neighborhoods, although the count alone does not establish that its predictions will be useful.

The central explanation is geometric. An intermediate layer can send several different input neighborhoods to the same activation neighborhood. The paper describes this as folding space. Whatever a later layer computes on that shared activation neighborhood is then repeated across all the original neighborhoods that reached it. Successive layers can repeat this process, multiplying the number of places where a subsequent computation applies. Depth therefore provides a mechanism for reusing computations across input space, rather than merely adding more separate computations.

The main results turn that explanation into constructive lower bounds for rectifier and maxout networks. A rectifier returns its input when positive and otherwise returns zero. A maxout unit selects the largest value among several affine responses. For rectifier networks, the authors improve an earlier bound by arranging groups of units to fold individual input coordinates repeatedly. Combining those coordinatewise folds and composing them across layers yields a number of attainable linear regions that can grow exponentially with depth. Under the paper’s comparison, a shallow network with the same total hidden-unit count has a region count that grows only polynomially with that count when input dimension is fixed. Related arguments establish an exponential dependence on depth for maxout networks.

The empirical evidence illustrates the geometry instead of replacing the proofs. On a synthetic classification problem with a sinusoidal boundary, a network with a single hidden layer containing 20 units misclassifies 123 examples, while a network with two hidden layers containing 10 units each misclassifies 24. A separate experiment on the Toronto Faces Dataset examines the different local affine responses of individual hidden units. It shows how a higher-layer unit can respond similarly to different inputs through different local computations. Neither experiment measures the complete region count of a trained network.

The paper’s strongest conclusion concerns representational possibility: particular deep architectures can express functions with many more linear regions than shallow alternatives using comparable computational resources. It does not prove that ordinary training finds the constructions, that trained networks usually approach the bounds, or that a larger region count necessarily improves generalization. Its lasting conceptual contribution is the connection between depth, repeated identification of input neighborhoods, and structured reuse of computation.

### Ideas worth borrowing

Count the behavior that matters. The paper replaces a broad question about “expressiveness” with a concrete object: the partition of input space into regions of affine behavior. This makes a depth comparison mathematically manageable. The reusable lesson is to choose a measure that matches the operations under study. For a piecewise linear computation, counting its distinct response regions exposes structure that parameter count alone cannot describe. Elsewhere, the same approach suggests identifying the natural behavioral pieces of a system before comparing its capacity.

Look for shared intermediate images. Different inputs can become equivalent for later computation because an intermediate transformation sends them to a common set. Once that happens, subsequent processing is reused across their preimages. This is a useful way to reason about representations, invariance, and repeated structure: ask which distinctions survive a transformation and which distinctions disappear. The paper makes the question precise through identified neighborhoods, so the idea applies beyond informal claims that a representation has “abstracted away” irrelevant variation.

Separate identification from refinement. The rectifier construction gives earlier layers the job of bringing many neighborhoods together, then uses a final layer to subdivide their common image. That separation makes the lower bound easier to understand and prove. It also offers a general design principle for systems with repeated subproblems: first transform several cases into a shared working space, then apply a more detailed computation there. The benefit depends on whether those cases should receive related treatment, since shared processing also constrains their responses.

Prove capacity with a construction. Rather than trying to characterize every possible parameter setting, the authors build settings that realize many regions. A single successful construction establishes a lower bound on what an architecture can express. This strategy is useful whenever an exact maximum is difficult to obtain. It also keeps the claim honest: an exhibited behavior proves possibility, while saying little by itself about the frequency of that behavior or the ease of learning it.

Inspect local computations. A hidden unit in a deeper network does not generally have one fixed input-space template. Its effective affine response changes when earlier units switch between their operating regimes. Recovering those local responses gives a more informative account of what the unit does. For [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/), the useful object is therefore not always a single weight vector. It can be a collection of input-dependent affine maps together with the neighborhoods where each map applies.

Distinguish richness from independence. Repeated folds can create many regions without giving every region an independently adjustable response. The same higher-layer computation is replicated across multiple parts of input space. This explains how a relatively small parameterization can generate complicated behavior while retaining substantial constraints. The distinction is valuable when reasoning about compact systems: a large number of observable cases need not imply a large number of independent degrees of freedom, and apparent complexity can come from repeated structure.

Check whether an existence result survives perturbation. The paper argues that its region-rich functions are not confined to isolated parameter choices: sufficiently small parameter changes can preserve at least the established number of regions. This strengthens the interpretation of a construction without turning it into a claim about typical training outcomes. The reusable habit is to ask whether an impressive example depends on exact coincidences, then distinguish local robustness from the much stronger question of how likely an optimization procedure is to discover it.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the most defensible connection is a possible way to analyze compact computations. The paper does not study Mova, and there is no basis for claiming that Mova already implements its folding constructions or region-counting analysis. Its ideas can nevertheless guide how a small system exposes its internal behavior and how architectural choices are evaluated.

One possible application concerns any component that combines affine transformations with piecewise linear activations. If Mova contains or later adds such a component, its response can be examined locally by recording which activation branches an input selects. Within a fixed branch pattern, the component has an affine description. A transparent implementation could make that description inspectable, connecting an observed response to the sequence of transformations that produced it.

This would support a more specific explanation than displaying a unit’s stored weights alone. In a deeper component, the effective relationship between an input and a hidden activation depends on the operating regimes selected upstream. The paper’s visualization method suggests exposing both the local affine map and the conditions under which it applies. For a language system, any linguistic interpretation of that map would still need separate evidence; geometric similarity does not automatically identify a shared meaning.

A second possible application is the study of intermediate equivalences. Mova could examine whether different inputs reach similar internal states, then test which later computations are shared as a result. The paper’s exact notion of identification is stronger than approximate similarity: entire neighborhoods have a common image. An engineering investigation would therefore need to distinguish exact equality, nearby activation values, and genuinely shared local behavior. Treating those as different observations would make claims about invariance easier to audit.

The region-count argument also gives a useful caution for work on [efficient systems and compression](https://md.research.elamur.ai/free/en/topics/efficient-models/). A small component may generate complicated input-dependent behavior through composition, so parameter count alone can understate its functional richness. Conversely, a high region count would not establish linguistic accuracy, reliable reasoning, or good use of limited memory. Those properties require task-specific evaluation.

The boundary of the connection matters. The theorems concern continuous input spaces and specified piecewise linear networks. They do not directly count the behaviors of a discrete Rust program, a symbolic rule system, or an entire language-processing pipeline. For Mova, the immediate value is an analytical perspective and a possible inspection technique. Turning either into a built feature would require identifying an applicable component, implementing the analysis, and checking whether its explanations help account for actual behavior.

### The problem and its context

#### What depth might buy

The paper begins from a mismatch between practical success and theoretical understanding. Deep networks had become attractive across several [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) applications, yet the available theory did not fully explain the advantages of the architectures and activation functions being used. The introduction points to successes in image recognition, traffic-sign classification, and speech recognition. It treats these results as motivation for analysis, not as proof of any particular explanation for depth.

A natural first question is whether a shallow network can represent the desired function at all. But that question is too permissive to settle the practical comparison. The earlier universal-approximation results discussed by the authors allow a sufficiently large hidden layer to approximate broad classes of functions. Such results establish possibility with enough width. They do not tell us whether a comparable deep architecture can express relevant structure much more economically.

The paper therefore asks a resource-sensitive question. Given an arrangement of hidden units, how complicated can the resulting function become? More specifically, how does that complexity change when units are distributed across layers instead of collected in a single layer? This turns depth from a descriptive architectural feature into a variable whose effect can be analyzed.

The distinction matters because the same total hidden-unit count can be organized in very different ways. In a shallow network, each hidden unit responds directly to the original input. In a deep network, later units respond to transformed versions of that input. Their boundaries, when viewed back in the original coordinates, can inherit the structure created by earlier transformations.

That compositional difference is the subject of the paper. The authors do not argue that depth is universally preferable. They identify a mechanism through which it can enlarge the attainable family of piecewise linear behaviors under a fixed architectural budget.

#### Why the activation function changes the question

Earlier theory covered several kinds of networks, including networks with smooth bounded activations and networks with Boolean units. The authors also discuss work on deep belief networks and on sum-product networks. These results establish important capabilities for their respective settings, but the paper argues that they do not transfer automatically to rectifier and maxout architectures.

A piecewise linear activation creates a particularly useful mathematical structure. Each unit has a finite collection of simple operating regimes. Once the regimes selected throughout a network are fixed, the resulting computation is affine. The full function is assembled from these affine pieces.

The word “linear” in the paper’s region terminology includes this affine behavior. Bias terms are present, so an individual piece can contain a constant offset. The important property is that its slope and offset remain fixed within its region.

This structure makes input-space geometry a natural object of study. A region boundary marks a change in the affine rule used by the network. Counting regions therefore measures how many distinct local response regimes the architecture can support.

That count is narrower than a complete theory of function complexity. It does not describe the size, shape, placement, or usefulness of every region. Nevertheless, it provides a clear comparison that depends directly on the architecture and its operations.

#### Earlier depth results

The introduction discusses a result for sum-product networks showing that certain polynomial families require exponentially more hidden units in a shallow arrangement than in a deep one. The authors take this as an example of the kind of separation they want to investigate for more commonly used piecewise linear networks.

Their immediate starting point is the earlier rectifier analysis attributed to Pascanu and colleagues. That work had already shown an asymptotic depth advantage in the number of linear response regions, even when shallow and deep networks use the same number of units. The present paper develops a general framework for that argument and strengthens the rectifier construction.

The improvement is not merely a change in presentation. The new construction folds input space independently along its coordinates and combines those folds. This makes the input dimension appear in the exponent of the repeated depth-dependent factor, producing a stronger lower bound than the earlier construction.

The authors emphasize that the strengthened result makes the advantage visible beyond an extreme limit of very many layers. The formal bounds remain mathematical capacity statements, but their comparison can favor depth even for modest architectural sizes.

#### A shallow layer as an arrangement of boundaries

For a rectifier unit, the transition between its zero response and its non-zero affine response occurs where its preactivation equals zero. In input space, that equality defines a hyperplane. A shallow rectifier layer therefore gives an arrangement of hyperplanes.

This connects the problem to established results about how hyperplanes divide space. When their positions are sufficiently unconstrained by coincidences, the arrangement achieves a known maximum number of regions. That count supplies the shallow baseline.

Depth changes the geometry because later hyperplanes live in an intermediate activation space. Earlier transformations can fold several parts of the original space onto that intermediate space. A boundary introduced later can consequently appear in many original neighborhoods.

The resulting input-space partition is not obtained simply by placing all hidden-unit hyperplanes directly in the original coordinates. It is produced by composing transformations. Understanding that composition is the reason the authors introduce identified neighborhoods and a recursive counting argument.

#### Relation to convolutional networks and visualization

The paper cites [ImageNet Classification with Deep Convolutional Neural Networks](https://md.research.elamur.ai/free/en/papers/krizhevsky-2012-imagenet-classification-deep-convolutional/) among the practical motivations for studying deep piecewise linear computation. It later explains why convolution fits the broad framework: convolution is a linear operation, and a feature array can be represented as a vector. The associated weight matrices have restrictions, but the basic composition remains within the class considered.

This inclusion should be read carefully. A framework broad enough to describe convolutional computation does not automatically transfer every unrestricted construction to every convolutional architecture. Weight restrictions still matter. The paper offers the connection as a route towards studying related networks.

Its empirical inspection also connects to [Visualizing and Understanding Convolutional Networks](https://md.research.elamur.ai/free/en/papers/zeiler-2013-visualizing-understanding-convolutional-networks/). Both investigate what higher-layer units respond to. The distinction drawn by the authors is methodological: their approach recovers local affine maps by tracking the network’s selected pieces, whereas the earlier visualization approach is described in terms of approximately reversing the forward computation.

That distinction follows directly from the theoretical viewpoint. If a unit is a piecewise affine function of the original input, understanding it requires examining several local maps instead of assuming that a single global template explains its behavior.

### The method, step by step

#### Define the computation and the quantity to count

The paper studies a feedforward network as a composition of affine preactivations and nonlinear activations:

```
F(x; θ) = f_out ∘ g_L ∘ f_L ∘ … ∘ g_1 ∘ f_1(x)
```

Here, x is the input vector, θ collects the weights and biases, and L is the number of hidden layers. The function f_l is the preactivation transformation at layer l, while g_l applies that layer’s activation rule. The symbol ∘ denotes composition: the function on the right acts first. The final transformation is f_out.

The input has dimension n₀, and hidden layer l has width n_l. For a maxout layer of rank k, each output unit receives k preactivation values. The corresponding weight matrix therefore has k n_l rows and n_(l−1) columns. A rectifier uses k = 1.

The preactivation at an individual layer has the form:

```
f_l(x_(l−1)) = W_l x_(l−1) + b_l
```

The vector x_(l−1) contains the preceding layer’s activations. W_l is the layer’s weight matrix, and b_l is its bias vector. Although the paper sometimes calls this transformation linear, the bias makes it affine in the usual mathematical terminology.

A rectifier unit applies:

```
g(a) = max{0, a}
```

The scalar a is the unit’s preactivation. Positive values pass through, while nonpositive values produce zero.

A rank-k maxout unit applies:

```
g(a₁, …, a_k) = max{a₁, …, a_k}
```

The values a₁ through a_k are the unit’s affine preactivations. The rank k counts how many candidate responses compete to determine its output.

A linear region is a connected input-space portion on which the complete function follows a fixed affine rule, extended as far as that rule remains the relevant behavior. The analysis concerns full-dimensional regions, rather than boundaries alone. This matters because a region represents a neighborhood of inputs, not merely an isolated point or a lower-dimensional surface.

The authors seek bounds on the largest region count obtainable by varying the parameters of a specified architecture. That is different from counting the regions of an arbitrary trained instance. The architecture determines what is possible; the chosen parameters determine what is realized.

Constructing and analyzing repeated input-space folds The steps in order.

#### Establish the shallow rectifier baseline

A shallow rectifier network partitions its input space according to which side of each unit’s preactivation hyperplane an input occupies. The maximal region count is:

```
R_shallow = Σ_(j=0)^n₀ C(n₁, j)
```

R_shallow denotes the maximum number of regions for a shallow rectifier network with input dimension n₀ and hidden width n₁. The notation C(n₁, j) is the binomial coefficient that counts selections of j objects from n₁ objects. The sum runs from j = 0 through j = n₀.

The geometric requirement for attaining this count is general position of the hyperplanes. Informally, they must avoid alignments and intersections that unnecessarily reduce the partition. The paper uses the established hyperplane-arrangement result as the exact shallow reference.

This baseline also explains why adding units to a single layer has a limited rate of return when input dimension is fixed. More hyperplanes create more regions, but their intersections remain constrained by that dimension. Depth introduces a different mechanism: instead of only adding boundaries, it can replicate the effects of later boundaries across earlier folds.

#### Make identification precise

The basic operation is not merely that two inputs happen to produce equal values. The authors define identification for sets: two input neighborhoods are identified when their images under a transformation are the same set.

An intuitive example uses coordinatewise absolute value:

```
g(x₁, x₂) = (|x₁|, |x₂|)
```

The coordinates x₁ and x₂ describe an input in the plane. Taking their absolute values sends the quadrants into a common non-negative output domain. A computation performed on that output domain consequently applies to corresponding inputs from different quadrants.

The crucial feature is the shared image. The original neighborhoods can occupy different locations and orientations, yet later processing receives the same intermediate possibilities. The network has made those neighborhoods equivalent for the remaining computation.

This equivalence can be composed. If an earlier layer has already identified several neighborhoods, a later layer can identify several sets of their activations. The number of original neighborhoods reaching a common later neighborhood can then multiply.

The paper formalizes this through a recurrence:

```
N_R^l = Σ_(R′ ∈ P_R^l) N_R′^(l−1)
```

N_R^l counts the separate original-input neighborhoods that reach a common neighborhood R after layer l. The collection P_R^l contains neighborhoods R′ in the preceding activation space that layer l maps onto R. Each such R′ may itself have several preimages in the original input space, counted by N_R′^(l−1).

The recurrence begins with:

```
N_R^0 = 1
```

At the original input level, a selected neighborhood R contributes one neighborhood before any folding has occurred.

The authors then derive a lower-bound principle for the full network:

```
R_max ≥ Σ_(R ∈ P^L) N_R^(L−1)
```

R_max is the maximum attainable region count for the architecture. P^L is a collection of neighborhoods lying in different affine regions of the last hidden layer’s computation. N_R^(L−1) counts the original neighborhoods brought to each selected R by the earlier layers.

The construction strategy follows immediately. Use the earlier layers to create many preimages of a useful activation domain. Then arrange the last hidden layer to partition that domain. Each of its pieces is reproduced across the earlier preimages.

#### Build folds with rectifier groups

For rectifier networks, the authors make the strategy explicit by separating coordinates. Suppose a layer has width n and the input dimension is n₀. A simple allocation assigns the same number of rectifiers to each coordinate:

```
p = floor(n / n₀)
```

The integer p is the number of units assigned to each coordinate group. The floor operation discards any fractional remainder. In the simpler theorem statement, unused remainder units can be ignored.

Each group responds to just one input coordinate. Its units have shifted rectifier responses, and an alternating signed combination of their outputs creates a zigzag-shaped affine function. On successive intervals, the slope changes direction, making different intervals cover a common output interval.

The appendix expresses the folding behavior, on an interval indexed by k, as:

```
h̃(x) = x + 2 Σ_(i=1)^(k−1) (−1)^i (x − i)
```

The scalar x is the coordinate being folded, and it lies in the interval between k−1 and k. The index i runs over the preceding shifts. The alternating sign changes the direction of the resulting slope as the interval changes.

The same expression is written in the proof as:

```
h̃(x) = (−1)^(k−1)(x − (k−1)) − ((−1)^(k−1) − 1) / 2
```

Here, h̃ is the effective folded coordinate. On each selected interval, its endpoints map to zero and one in one order or the other. Because the function is affine inside that interval, the whole open interval maps onto the open interval between those endpoint values.

The point is the shared range. Distinct coordinate intervals become different routes to the same effective coordinate values. A later computation cannot distinguish which interval supplied an activation unless some other part of the representation retains that information.

The alternating sum does not require adding an extra nonlinear layer. It is an affine combination of the rectifier outputs, so it can be incorporated into the next layer’s preactivation. The proof sometimes treats it as a fictitious intermediate unit to make the geometry easier to follow.

Applying this construction independently across coordinates produces identified boxes. Their count for the simple equal-group allocation is:

```
N_fold = p^n₀
```

N_fold is the number of selected input boxes mapped to a common n₀-dimensional unit cube. The exponent appears because coordinate choices combine: a selected interval on each coordinate specifies a box.

This is the decisive improvement over treating the layer as producing only a single sequence of folds. The coordinatewise choices act together, giving a dimension-dependent replication factor.

#### Repeat the construction through depth

After a layer maps its selected boxes onto a common unit cube, the next layer can apply the same type of construction to that cube. Every fold introduced there is reproduced across all boxes that already reached it.

With possibly unequal group sizes, the appendix gives the accumulated count as:

```
N_((0,1)^n₀)^(L−1) = Π_(l=1)^(L−1) Π_(i=1)^n₀ p_(l,i)
```

The left side counts original-input neighborhoods mapped onto the open unit cube after the earlier hidden layers. The symbol Π denotes multiplication over the indicated indices. The quantity p_(l,i) is the number of rectifiers assigned to coordinate group i in layer l.

The first L−1 hidden layers perform these repeated identifications. The final hidden layer then introduces a general-position arrangement of its own hyperplanes within the shared effective input domain.

Combining the replication count with the final partition gives the main rectifier bound:

```
R_max ≥ (Π_(i=1)^(L−1) floor(n_i / n₀)^n₀) Σ_(j=0)^n₀ C(n_L, j)
```

Here, n_i is the width of hidden layer i, n_L is the final hidden-layer width, and every hidden width must be at least n₀. The product counts repeated folding by the earlier layers. The sum counts the regions introduced by the final layer.

This is a lower bound, not an exact formula for the maximum. It says that suitable parameters can attain at least the stated count. Other constructions might do better.

The appendix strengthens the simple allocation by distributing remainder units among coordinate groups. If m_l is the remainder when n_l is divided by n₀, some groups receive the floor-sized allocation and the others receive an additional unit:

```
R_max ≥ (Π_(l=1)^(L−1) floor(n_l/n₀)^(n₀−m_l) (floor(n_l/n₀)+1)^m_l) Σ_(j=0)^n₀ C(n_L, j)
```

The remainder m_l determines how many groups receive the larger allocation in layer l. When the widths divide evenly by the input dimension, this expression agrees with the simpler bound. Otherwise, it uses units that the simpler construction leaves aside.

There is also a general rectifier upper bound:

```
R_max ≤ 2^N
```

N is the total number of hidden rectifier units. Each unit can be active or inactive, so binary activation patterns provide an upper limit on possible regions. The bound does not say that every activation pattern is realizable or that this upper limit is reached.

#### Read the asymptotic comparison

For a network with equal hidden width n, the paper states the deep lower-bound growth as:

```
R_deep = Ω((n/n₀)^((L−1)n₀) n^n₀)
```

R_deep denotes an attainable region count in the deep setting. The notation Ω indicates an asymptotic lower bound up to a positive constant factor under the paper’s assumptions. L is depth, n is hidden width, and n₀ is the fixed input dimension.

For a shallow network with the same total hidden-unit budget, the comparison is:

```
R_shallow = O(L^n₀ n^n₀)
```

The notation O gives an asymptotic upper bound up to a constant factor. Here, the shallow layer contains Ln units.

The difference is how depth enters the expressions. In the deep construction, it appears in the exponent of a repeated folding factor. In the shallow comparison, it appears as a polynomial factor determined by input dimension. The advantage requires a nontrivial folding factor; the mere presence of additional layers is not a guarantee that every width choice yields strong multiplication.

The earlier lower bound discussed in the paper was:

```
R_previous = Ω((n/n₀)^(L−1) n^n₀)
```

R_previous denotes the earlier attainable rectifier-region bound. The new analysis strengthens the depth-dependent exponent by exploiting coordinatewise folding together.

The paper also compares region counts per parameter. Under its asymptotic assumptions, deep parameter count behaves as:

```
P_deep = Θ(L n^2)
```

P_deep is the number of deep-network parameters. The notation Θ means that the expression gives both an upper and a lower asymptotic rate, up to constant factors.

For the shallow comparison:

```
P_shallow = Θ(L n)
```

P_shallow counts the shallow network’s parameters under the same fixed-input-dimension setting.

The resulting deep rate for regions per parameter is:

```
E_deep = Ω((n/n₀)^(n₀(L−1)) n^(n₀−2) / L)
```

E_deep denotes the attainable number of regions divided by parameter count. The repeated folding term remains present after accounting for the dense connections between hidden layers.

The shallow counterpart is:

```
E_shallow = O(L^(n₀−1) n^(n₀−1))
```

E_shallow denotes the shallow region count per parameter. This comparison supports the paper’s efficiency claim while preserving its meaning: it concerns representational regions, not runtime, predictive accuracy, or optimization cost.

#### Extend the reasoning to maxout

A maxout unit selects the upper envelope of its affine candidates. If each candidate uniquely wins somewhere, the unit can have as many regions as its rank k.

For a layer, the units’ partitions must be intersected. A combination of winning candidates contributes a region only if their corresponding input sets overlap. Counting candidates independently therefore gives an upper bound, but it need not give the exact partition.

The paper establishes the following single-layer bounds:

```
k^min{n,m} ≤ R_maxout ≤ min{Σ_(j=0)^n C(k^2 m, j), k^m}
```

R_maxout is the maximum region count for a maxout layer with n input dimensions, m output units, and rank k. The lower bound comes from constructions using parallel boundaries along selected coordinates. The term k^m counts possible combinations of winning candidates. The other upper bound extends candidate-equality boundaries into complete hyperplanes and counts their arrangement.

That extension is deliberately permissive. A boundary between candidate responses may occupy only part of a hyperplane, and extending it can introduce extra subdivisions. The resulting count is an upper bound instead of a description of the exact maxout geometry.

For deep maxout networks, the authors use identified cones instead of simply copying the rectifier zigzag construction. They arrange regions whose images contain a common open cone, then use biases so that subsequent layers can operate on a suitable shared neighborhood.

The stated deep bound is:

```
R_deep,maxout ≥ k^(L−1) k^n₀
```

R_deep,maxout denotes an attainable count for a maxout network with L layers, width n₀, and rank k. The first factor reflects repeated identification by the earlier layers; the second comes from partitioning at the final stage.

The paper also gives a stronger specialized statement for rank-2 maxout:

```
R_rank-2 ≥ 2^(n₀ L)
```

R_rank-2 is the attainable region count in that particular construction. This specialized result should be distinguished from the more general rank-k bound rather than treated as the same expression.

#### Recover local maps in a trained network

The theoretical constructions motivate an empirical analysis of hidden units. For an input that stays within a fixed activation regime, a unit has an affine response:

```
f_i(x) = uᵀx + c,  x ∈ R_i
```

The set R_i is the relevant input region. The vector u determines the local response direction, uᵀ is its transpose, and c is the local bias.

For a selected unit j at layer l, the effective input-space weight vector is obtained by composing weight matrices with masks that retain active rectifiers:

```
uᵀ = (W_l)_(j:) diag(I_(f_(l−1)>0)(x)) W_(l−1) … diag(I_(f_1>0)(x)) W_1
```

The notation (W_l)_(j:) selects row j of the layer-l weight matrix. Each indicator I records which earlier preactivations are positive at x. The operator diag places those indicators on a diagonal matrix, preserving active paths and removing inactive ones. A corresponding local bias can be recovered as well.

For a hidden rectifier’s non-zero response, this affine map describes the unit on its active region. On an inactive region, the activation itself is zero. The empirical analysis concentrates on positive activations when collecting higher-layer response maps.

This procedure does not enumerate all regions. It samples local maps at chosen inputs, then uses those maps to inspect different behaviors of a unit. That distinction governs how the visualization results should be interpreted.

### Experiments and results

The paper’s central evidence is mathematical: explicit parameter constructions establish attainable region counts. Its empirical work has a narrower role. One experiment illustrates a depth advantage on a deliberately structured classification boundary. Another examines whether trained hidden units exhibit the multiple local responses suggested by the folding viewpoint.

There is no broad benchmark suite comparing many architectures across many datasets. The empirical results are most informative when read as demonstrations attached to the theory.

#### A synthetic sinusoidal decision boundary

The synthetic experiment compares a shallow network with a single hidden layer containing 20 units against a deeper network with two hidden layers containing 10 units each. Both are trained on the same synthetic data.

The target classification boundary is sinusoidal. Such a boundary repeatedly changes direction, so a piecewise linear approximation needs enough appropriately placed segments to follow it. The paper uses this setting to show why an architecture capable of more response regions can represent the desired boundary more closely.

Training uses conjugate natural gradient. The authors say this choice was intended to reduce the influence of optimization on the comparison. They report the best outcomes from several runs instead of an average with a variability estimate.

The measured result is a count of misclassified examples:

Synthetic sinusoidal boundary, misclassified examples The deeper network follows the target boundary more closely under the reported comparison.

**The numbers**

| System or setting | misclassified examples |
| --- | --- |
| Single hidden layer, 20 units | 123 |
| Two hidden layers, 10 units each (this paper) | 24 |

The chart compares equal total hidden-unit counts, not a documented equality of every resource. Dense connections between hidden layers affect parameter count, and the appendix explicitly treats parameter-based efficiency as a separate theoretical comparison.

The figure’s close-up supports the reported interpretation: the deeper boundary follows the desired shape more closely, while marked points indicate shallow-network errors. The experiment does not directly count the affine regions of either trained function.

Several evaluation details remain unspecified. The account does not give the total number of synthetic examples, so the error counts should not be converted into percentages. It also does not identify a training-versus-test split for these counts. The result establishes a concrete difference in the reported illustration, not a fully characterized generalization comparison.

#### Inspecting a network trained on faces

The second empirical setting uses the Toronto Faces Dataset, abbreviated TFD. The rectifier network has three hidden layers. Its earlier hidden layers contain 1000 units each, and its final hidden layer contains 100 units.

Training uses stochastic gradient descent with several regularization choices. The L₂ penalty coefficient is written as 10⁻³. Dropout is applied to the earlier hidden layers with probability 0.5, and weight columns are projected to unit norm after each update. The learning rate is 0.1.

The output uses sigmoid units. The authors explain these choices in terms of obtaining cleaner, sharper visualized filters. This matters because the experiment is designed to inspect learned responses, rather than to establish a new best classification result.

The network is trained on fold 1 and is reported to achieve an error of 20.49%. The paper describes that error as reasonable for the setting and a network without convolution. It provides no matched baseline in this experiment, so the number should not be interpreted as evidence of superiority over another system.

The sigmoid output also marks a boundary of the region-count theory. The hidden rectifier computation has the piecewise affine structure under study, while the sigmoid introduces a different output nonlinearity. The visualization can inspect local maps feeding output units without making the whole final response piecewise linear.

#### What the visualizations contain

For the first hidden layer, the authors display learned weight vectors from 16 randomly selected units. These units act directly on the input, so their weights provide the relevant input-space directions for their active affine responses.

For deeper hidden layers, the selection procedure is more involved. The authors randomly choose 20 units per layer, then display the most interesting four according to the maximal Euclidean separation among each unit’s local responses. This favors units whose sampled affine maps differ visibly.

For each unit, local responses are collected over training examples with positive activation. K-means groups those responses into four clusters, and representative maps from those clusters are shown. The visualization therefore presents a compact selection from sampled behavior, not every affine response of the unit.

The output inspection includes all seven units. Their class labels cover anger, disgust, fear, happy, sad, surprise, and neutral. The purpose is to compare the input-space directions associated with different regions of each output computation.

The authors interpret the differences between higher-layer maps as evidence of increasingly abstract invariances. A unit can respond through different input-space patterns while producing related activation behavior. The visualizations make that claim inspectable, but do not attach a numerical invariance score to it.

#### Matching activations from different inputs

A further demonstration starts with training inputs that produce activations near 2.5 for a selected hidden unit in the third hidden layer. Using the corresponding local affine directions, the authors perturb those inputs to obtain distinct points that activate the unit at exactly 2.5.

The resulting points are not training examples. Their purpose is to show that equal hidden-unit activation can arise from different input-space locations and different local affine responses.

The authors describe the selected unit as responding to an open mouth and open eyes while tolerating changes in other facial features. That is a qualitative interpretation of the displayed examples. It is not a dataset-wide estimate of how reliably the unit separates those properties.

The demonstration supports a limited but useful conclusion: a deeper unit can bring distinct inputs to an equal scalar response through different local computations. It does not show that the full hidden-layer activation vectors are equal, or that the complete network treats those inputs identically.

### What the ablations show

The paper contains no systematic ablation suite; its evidence instead consists of architectural comparisons, constructive analyses, a perturbation argument, and selected visualizations.

#### Holding total hidden-unit count fixed

The sinusoidal experiment is the clearest controlled empirical comparison. It changes the arrangement of hidden units while keeping their total count the same. The shallow and deep networks also use the same synthetic data and the same named optimization method.

This makes the comparison relevant to the paper’s central question: whether composition can produce a more useful boundary than a single layer using the same number of units. The reported errors support that claim for the selected runs and dataset.

The control is incomplete for broader purposes. Parameter count is not held fixed by the stated setup, and only the best of several runs is plotted. The experiment therefore does not isolate every possible architectural or training contribution.

#### Comparing successive rectifier bounds

The comparison with the earlier rectifier lower bound reveals what the new construction contributes. The earlier result already established repeated growth through depth. The stronger result uses independent coordinate groups, allowing the choices of folded intervals across coordinates to combine.

This is a mathematical analysis of the mechanism instead of a training ablation. It shows that a better construction can establish more attainable regions for the same architectural specification. It does not show that independently grouped coordinates are the way an ordinary trained network organizes itself.

The appendix’s treatment of remainder units provides another controlled refinement. The simpler bound discards units that do not fit equal groups. Allocating those units to selected groups improves the construction without changing its overall logic. This makes clear that the displayed theorem is convenient and conservative rather than necessarily optimal.

#### Comparing local responses across depth

The faces analysis compares the kinds of affine responses visible in earlier and later hidden layers. Earlier units admit a direct weight-vector interpretation. Later units can have several sampled input-space maps because their computations depend on upstream activation regimes.

This supports the claim that interpreting a deep unit through one template is incomplete. It also illustrates the connection between differing local maps and similar activation behavior.

The comparison is selected for visibility. Deeper units are screened using the separation of their responses, and the displayed maps come from clustering sampled training-set behavior. These choices are appropriate for finding illustrative examples, but they do not establish how common the same pattern is across all units.

#### Comparing ways to visualize hidden units

The discussion of earlier visualization work clarifies the authors’ analytical choice. Their method tracks the affine piece selected by an input. It does not require approximating an inverse rectifier to recover that local map.

This yields a direct connection between the displayed input-space response and the network’s actual branch choices. The analysis is exact within the selected local regime, subject to correctly following that regime.

The paper does not report a quantitative comparison of visualization quality. Its contribution is a different object of inspection and a different derivation, rather than an experimentally established ranking of visualization methods.

#### Testing whether the constructions are isolated

The perturbation argument addresses a potential objection to constructive lower bounds: perhaps the rich behavior exists only at exact, fragile parameter settings. The authors argue that sufficiently small changes can preserve at least the established region count.

That analysis supports local persistence. It does not supply the size of the relevant neighborhood, the probability that an initialization lands there, or the likelihood that training reaches it.

The distinction is essential. A construction can be robust to nearby perturbations and still occupy a small or difficult-to-reach part of parameter space. The paper recognizes that typical region counts remain an open question.

### Limitations

#### Limits the authors explicitly identify

The authors leave the distribution of region counts across parameter space unresolved. They establish that region-rich constructions need not be isolated, but ask how much parameter space corresponds to functions with particular region counts or combinatorial structures.

This is a substantial gap between architectural possibility and typical behavior. A nonzero-volume neighborhood supports an existence claim with local robustness. It does not tell us whether rich partitions are common under a chosen parameter distribution.

They also acknowledge that the combinatorics are difficult. Describing how regions touch or intersect can be hard even for ordinary hyperplane arrangements. Maxout adds the complication of intersecting upper-envelope partitions, including partitions related to Voronoi diagrams.

The maxout upper-bound proof explicitly uses a loose enlargement. Extending partial candidate-equality boundaries to whole hyperplanes simplifies counting but can create regions that the actual maxout layer does not realize. The resulting bound should not be mistaken for a tight characterization.

For empirical inspection, the authors note that visiting training inputs does not recover every local response of a hidden unit. Their method can reveal many behaviors, but its coverage depends on the sampled points. Unvisited parts of input space may contain additional maps.

Their statement about generalization is also cautious. Replicated computation imposes rigidity, and the authors suggest that this structure may help on unseen examples. They do not prove a generalization theorem or establish that explanation experimentally.

#### Limits visible in the theoretical setup

The rectifier theorem gives a lower bound on the maximum attainable count. It is not an exact maximum, and it is not an expected count for a trained network. The general activation-pattern upper bound leaves room between what is constructed and what might be possible.

The theorem also has architectural conditions. Every hidden width in the main rectifier statement must be at least the input dimension. The construction allocates coordinate groups and relies on enough units to build them.

The asymptotic comparison fixes input dimension. Its conclusions should be read under that condition, rather than transferred without qualification to settings where input dimension, width, and depth all change together.

Exponential growth through the folding factor also requires more than nominal depth. If a layer’s allocation does not provide multiple useful folds, that layer does not contribute the same multiplicative benefit. The formulas describe this directly; a slogan that “depth always creates exponentially more regions” would conceal the dependence on width and construction.

Region count itself omits important geometry. Two functions with the same count may place their regions very differently. One may put useful subdivisions near the data while another spends them elsewhere. The paper’s measure captures a form of flexibility, not its relevance to a particular task.

Nor are all those regions independently controllable. The construction produces many of them by replicating the same later computation. This is the source of its efficiency and also a constraint on the function family. Counting regions should therefore not be equated with counting arbitrary, separately tunable rules.

#### Limits of the folding interpretation

Exact identification is a strong mathematical relation: neighborhoods share an image. Equal activation at a sampled point is weaker, especially when only one unit is inspected.

The faces demonstration matches a scalar hidden response. Other units can still distinguish those inputs, and later layers may use those distinctions. It would overstate the evidence to describe the examples as equivalent for the whole network.

The same caution applies to learned invariance. A unit’s tolerance of visible differences in selected examples suggests a useful interpretation, but does not establish a complete characterization of what that unit ignores or preserves.

The geometric fold is also not required to resemble literal paper folding. The authors allow changes of size, orientation, and location. The metaphor refers to shared images under a map, not to preservation of distances or rigid motion.

For convolutional networks, inclusion in the general piecewise linear framework is broader than the specific unrestricted lower-bound construction. Convolutional weight matrices obey restrictions. Establishing a particular count for such an architecture requires respecting those restrictions, instead of importing an unrestricted parameter choice.

#### Limits of the empirical evidence

The sinusoidal task is deliberately favorable to explaining repeated linear pieces. It demonstrates a relevant possibility, but it does not establish how often the same advantage appears across unrelated tasks.

Reporting the best of several runs leaves training variability unmeasured. The text gives no spread, uncertainty interval, or full run distribution. The natural-gradient optimizer was chosen to reduce optimization effects, but the experiment does not prove that those effects disappear.

The synthetic error counts also lack a stated denominator and split designation. They should remain counts of misclassified examples. Converting them into rates or presenting them as a documented held-out result would add information the account does not supply.

The TFD experiment serves a different purpose. Its error figure gives context for the trained network used in visualization, but there is no matched shallow baseline. It cannot independently establish the theoretical depth separation.

The visual selection procedure is another boundary. Units with strongly separated local maps are especially informative illustrations, yet selecting them makes the display unsuitable as an unbiased survey of all hidden units.

Finally, none of the experiments measures an exponential increase in observed region count. The exponential statement comes from the proofs. The experiments show behaviors compatible with the geometric explanation, not a direct empirical verification of the asymptotic rate.

### What came after

The later citation connections reach work on deep architectures, convergence, and symbolic discovery. They show that the paper’s treatment of compositional expressiveness remained relevant to later research. A citation alone, however, does not establish which theorem a later paper used, whether it adopted the folding construction, or whether it tested region count.

That distinction matters here because the available later-work descriptions establish titles, dates, and citation relationships without supplying detailed accounts of technical reuse. The connections can be stated clearly, while their specific mechanisms must remain open.

#### Deep architectures and the meaning of capacity

[Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/) appeared in 2015 and cites the region-count paper. Its stated subject places it in the broader question that motivates the earlier analysis: what useful behavior can be obtained from deep architectures?

The region-count result supplies one part of that background by establishing representational possibilities for composed piecewise linear computation. It does not, on its own, establish the behavior of the later architecture or explain its image-recognition results. Those would require the later work’s own architectural and experimental account.

[Highway Networks](https://md.research.elamur.ai/free/en/papers/srivastava-2015-highway-networks/), also dated 2015, provides another citation connection to research on network architecture. The relevant distinction remains between possessing expressive capacity and making productive use of it.

The earlier paper proves that certain compositions can support rich partitions. From the citation relationship alone, it would be unjustified to claim that Highway Networks implements the coordinatewise construction, attains the same bounds, or measures its learned regions. What can be said is that the expressiveness analysis became part of the cited background for that later architectural work.

#### Large depth and convergence

[ReZero is All You Need: Fast Convergence at Large Depth](https://md.research.elamur.ai/free/en/papers/bachlechner-2020-rezero-all-need-fast-convergence/) is a 2020 citing work whose title explicitly foregrounds convergence at large depth.

That subject highlights a boundary already present in the region-count argument. Showing that an architecture can express a rich function is different from showing that an optimization process reaches a useful function efficiently. The earlier proof concerns the first question.

The citation places these concerns in a shared research context, but does not establish that ReZero’s convergence analysis follows from region counting. It also does not make the earlier construction a prediction about the number of regions learned by that later system.

#### Symbolic discovery and structured computation

[Discovering Symbolic Models from Deep Learning with Inductive Biases](https://md.research.elamur.ai/free/en/papers/cranmer-2020-discovering-symbolic-models-deep/) is another 2020 citing work. Its title connects deep learning with symbolic discovery and the constraints introduced by inductive biases.

The conceptual relevance of the region-count paper lies in its distinction between complex observable behavior and a compact, structured computation. Repeated composition can create many response regions while keeping them tied together through shared transformations.

That is a useful perspective for thinking about structured explanations, but it is not evidence that the later symbolic-discovery work used linear-region enumeration or the particular folding proof. The citation supports a relationship in the research literature; it does not specify that stronger technical claim.

Across these later connections, the earlier paper offers a durable way to formulate one question precisely: how can composition create many local behaviors from comparatively few adjustable components? Its answer is repeated identification followed by shared computation. The further questions—whether those behaviors are learned, useful, interpretable, or easy to optimize—remain separate obligations for each later system.

## Cite

Cite as Guido Montúfar, Razvan Pascanu, Kyunghyun Cho and Yoshua Bengio. 2014. On the Number of Linear Regions of Deep Neural Networks. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1402.1869](https://doi.org/10.48550/arxiv.1402.1869) · [arXiv 1402.1869](https://arxiv.org/abs/1402.1869)

```bibtex
@misc{montufar2014number,
  title = {{On the Number of Linear Regions of Deep Neural Networks}},
  author = {Guido Montúfar, Razvan Pascanu, Kyunghyun Cho and Yoshua Bengio},
  year = {2014},
  doi = {10.48550/arxiv.1402.1869},
  eprint = {1402.1869},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1402.1869}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
