Skip to main content
QUICK REVIEW

[Paper Review] Bounding and Counting Linear Regions of Deep Neural Networks

Thiago Serra, Christian Tjandraatmadja|arXiv (Cornell University)|Nov 6, 2017
Advanced Neural Network ApplicationsComputer Science22 references47 citations
TL;DR

This paper presents tighter theoretical bounds on the maximum number of linear regions in deep ReLU and maxout networks, introduces a mixed-integer linear programming formulation for exact counting of these regions in trained networks, and demonstrates that shallow networks can outperform deep ones in region count when input dimension exceeds neuron count—offering new insights into network expressiveness and capacity.

ABSTRACT

We investigate the complexity of deep neural networks (DNN) that represent piecewise linear (PWL) functions. In particular, we study the number of linear regions, i.e. pieces, that a PWL function represented by a DNN can attain, both theoretically and empirically. We present (i) tighter upper and lower bounds for the maximum number of linear regions on rectifier networks, which are exact for inputs of dimension one; (ii) a first upper bound for multi-layer maxout networks; and (iii) a first method to perform exact enumeration or counting of the number of regions by modeling the DNN with a mixed-integer linear formulation. These bounds come from leveraging the dimension of the space defining each linear region. The results also indicate that a deep rectifier network can only have more linear regions than every shallow counterpart with same number of neurons if that number exceeds the dimension of the input.

Motivation & Objective

  • To improve theoretical bounds on the maximum number of linear regions in deep neural networks (DNNs) with piecewise linear (PWL) activation functions.
  • To address the lack of exact counting methods for linear regions in trained DNNs, especially for ReLU and maxout architectures.
  • To investigate the relationship between network depth, width, input dimension, and the resulting number of linear regions.
  • To evaluate whether the number of linear regions correlates with generalization performance and model capacity.
  • To identify conditions under which shallow networks may surpass deep networks in region count, challenging conventional assumptions about depth benefits.

Proposed method

  • Derives tighter upper and lower bounds on the maximum number of linear regions in deep ReLU networks by analyzing the dimensionality of the space defining each region.
  • Introduces a mixed-integer linear programming (MILP) formulation to model the piecewise linear behavior of ReLU and maxout networks, enabling exact enumeration of linear regions.
  • Uses the MILP formulation to perform exact counting of linear regions in small, trained ReLU networks on the MNIST dataset with 22 total neurons across two hidden layers.
  • Applies the MILP approach to derive the first upper bound for multi-layer maxout networks.
  • Employs a 1D construction to prove exact maximal region counts when input dimension is one, validating theoretical bounds.
  • Validates the method using CPLEX on a high-performance machine, measuring runtime and region counts across multiple network configurations.

Experimental results

Research questions

  • RQ1What are the tightest possible upper and lower bounds on the number of linear regions in deep ReLU networks, especially for one-dimensional inputs?
  • RQ2Can exact counting of linear regions be achieved in trained DNNs, and how does this help evaluate the tightness of theoretical bounds?
  • RQ3Under what conditions can shallow networks achieve more linear regions than deep networks with the same number of neurons?
  • RQ4How does the number of linear regions correlate with training and test performance in practical DNNs?
  • RQ5What is the first theoretical upper bound for multi-layer maxout networks in terms of linear regions?

Key findings

  • The proposed upper bound for ReLU networks is tighter than prior work, with exact results confirmed for one-dimensional inputs.
  • For ReLU networks, shallow architectures can achieve more linear regions than deep ones when the input dimension exceeds the total number of neurons.
  • The first upper bound for multi-layer maxout networks is derived, extending theoretical analysis to this class of activation functions.
  • Exact counting via MILP reveals that actual region counts in trained MNIST networks are significantly lower than previous theoretical upper bounds, validating the need for tighter bounds.
  • A bottleneck effect is observed: reducing the width of early layers drastically limits the number of linear regions, regardless of depth in later layers.
  • There is a non-monotonic relationship between depth and region count, with optimal depth increasing with network size and decreasing with input dimension, suggesting depth should be tuned based on these factors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.