Skip to main content
QUICK REVIEW

[Paper Review] On the Number of Linear Regions of Convolutional Neural Networks

Huan Xiong, Lei Huang|arXiv (Cornell University)|Jun 1, 2020
Adversarial Robustness in Machine LearningComputer Science26 references25 citations
TL;DR

This paper provides the first theoretical analysis of the number of linear regions in ReLU convolutional neural networks (CNNs), deriving exact formulas for one-layer CNNs and bounds for deeper architectures. It demonstrates that deeper CNNs achieve significantly higher expressivity than shallow networks and fully-connected networks per parameter, explaining their superior performance in practice.

ABSTRACT

One fundamental problem in deep learning is understanding the outstanding performance of deep Neural Networks (NNs) in practice. One explanation for the superiority of NNs is that they can realize a large class of complicated functions, i.e., they have powerful expressivity. The expressivity of a ReLU NN can be quantified by the maximal number of linear regions it can separate its input space into. In this paper, we provide several mathematical results needed for studying the linear regions of CNNs, and use them to derive the maximal and average numbers of linear regions for one-layer ReLU CNNs. Furthermore, we obtain upper and lower bounds for the number of linear regions of multi-layer ReLU CNNs. Our results suggest that deeper CNNs have more powerful expressivity than their shallow counterparts, while CNNs have more expressivity than fully-connected NNs per parameter.

Motivation & Objective

  • To understand the expressivity of deep convolutional neural networks (CNNs) by analyzing the number of linear regions in their input space.
  • To extend existing work on linear regions in fully-connected ReLU networks to the convolutional setting.
  • To quantify how depth and architecture affect the expressivity of CNNs relative to fully-connected networks.
  • To establish exact and bounded expressions for the number of linear regions in one- and multi-layer ReLU CNNs.
  • To validate theoretical results through large-scale sampling experiments on parameter configurations.

Proposed method

  • Derives exact formulas for the maximal and average number of linear regions in one-layer ReLU CNNs using combinatorial geometry and hyperplane arrangement theory.
  • Applies Zaslavsky’s Theorem to count regions formed by hyperplanes in general position, adapted to the weight and bias structure of CNNs.
  • Uses a sampling-based method to estimate linear regions in multi-layer CNNs by evaluating sign patterns of neuron activations across 2×10⁹ input points.
  • Establishes upper and lower bounds for multi-layer ReLU CNNs by analyzing the interaction of filters, kernel size, and feature map dimensions.
  • Validates theoretical bounds by comparing sampled region counts with derived theoretical limits on synthetic CNNs.
  • Extends the analysis to include statistical expectations of region counts under random weight initialization, showing equivalence to maximum in one-layer case.

Experimental results

Research questions

  • RQ1What is the exact maximal number of linear regions that a one-layer ReLU CNN can partition its input space into?
  • RQ2How does the average number of linear regions in a one-layer ReLU CNN compare to its maximum under random weight initialization?
  • RQ3What are the theoretical upper and lower bounds on the number of linear regions in deep ReLU CNNs?
  • RQ4How does the expressivity of ReLU CNNs compare to that of fully-connected ReLU networks when normalized by parameter count?
  • RQ5How do changes in network parameters affect the number of linear regions during training or under small perturbations?

Key findings

  • For one-layer ReLU CNNs, the maximal number of linear regions is given by an exact closed-form formula derived from hyperplane arrangement theory.
  • The expected number of linear regions under random weight initialization equals the maximum number of regions for one-layer CNNs, a result consistent with one-layer fully-connected networks.
  • Multi-layer ReLU CNNs achieve exponentially more linear regions than shallow networks with the same number of parameters, indicating higher expressivity.
  • Theoretical upper and lower bounds for deep CNNs show that depth significantly increases the number of linear regions, confirming the advantage of depth in expressivity.
  • Sampling experiments validate the theoretical bounds, showing that the number of regions found via sampling closely matches the theoretical predictions for one- and two-layer CNNs.
  • ReLU CNNs exhibit higher expressivity per parameter than fully-connected ReLU networks, suggesting architectural efficiency in function representation.

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.