NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Empirical Studies on the Properties of Linear Regions in Deep Neural Networks

Xiao Zhang, Dongrui Wu · DOI

Abstract: A deep neural network (DNN) with piecewise linear activations can partition the input space into numerous small linear regions, where different linear functions are fitted. It is believed that the number of these regions represents the expressivity of the DNN. This paper provides a novel and meticulous perspective to look into DNNs: Instead of just counting the number of the linear regions, we study their local properties, such as the inspheres, the directions of the corresponding hyperplanes, the decision boundaries, and the relevance of the surrounding regions. We empirically observed that different optimization techniques lead to completely different linear regions, even though they result in similar classification accuracies. We hope our study can inspire the design of novel optimization techniques, and help discover and analyze the behaviors of DNNs.

TL;DR

Deep Neural Networks (DNNs) with ReLU activations are essentially massive collections of local linear functions. This paper moves beyond simply counting these "linear regions" to analyze their geometric properties—like size, orientation, and boundary locations—revealing that Batch Normalization and Dropout fundamentally reshape the network's internal logic in surprisingly different ways, even when they produce identical accuracy.

What Problem Does This Paper Address?

Standard DNNs using piecewise linear activations (like ReLU) partition the input space into a complex patchwork of "linear regions." Within each patch, the network behaves like a simple affine transformation. While researchers previously believed that having more regions meant a more expressive network, the specific "geography" of these regions remained poorly understood.

The authors address a fundamental gap: How do common optimization techniques—specifically Batch Normalization (BN) and Dropout—actually change the shape and distribution of these regions? By looking under the hood at the geometric properties of these patches, the authors aim to explain why certain training tricks work and how they influence a model's behavior and robustness.

Methods

The authors treat each linear region as a convex polytope (a multi-dimensional polygon). They employ several specialized techniques to probe these shapes:

  • Depth-wise Exclusion Search: A systematic way to identify the exact boundaries (halfspaces) that define the linear region containing a specific input point.
  • Insphere Calculation: They solve a convex optimization problem to find the "inradius"—the largest sphere that can fit inside a region—to measure how "narrow" or "roomy" a region is.
  • Hyperplane Analysis: They measure the angles between the "walls" (hyperplanes) of these regions to see if they are orthogonal (independent) or aligned.
  • Decision Boundary Probing: They search within a single linear region to see if the network changes its classification prediction inside that specific patch.
  • Gradient Relevance: They compare the gradients of neighboring regions using cosine similarity to see how much the network's "direction" changes as you move from one patch to the next.

Key Insights and Ideas

  • BN vs. Dropout Geometry: Batch Normalization tends to partition the space into many small, uniform regions. In contrast, Dropout creates fewer regions overall but makes them significantly narrower specifically around the decision boundaries.
  • Orthogonality is Key: BN encourages the boundaries of these regions to be orthogonal (at 90-degree angles) to each other. This effectively decorrelates the hidden units. Conversely, Dropout and large learning rates tend to make these boundaries more aligned.
Visual comparison of linear and classification regions across different optimization techniques.
  • The "Decision Boundary" Surprise: Contrary to some previous theories, a single linear region can contain a decision boundary. However, Dropout makes it much less likely for a region containing a real data point to also contain a classification flip, potentially explaining its regularization benefits.
  • Gradient Continuity: Gradients in neighboring regions are actually highly correlated (relevant), which helps optimization. BN slightly reduces this relevance, which might be related to how it prevents the "shattered gradient" problem.

Key Results

  • Region Size: Models trained with BN have significantly smaller "inradiuses" than vanilla models, indicating a much finer partitioning of the input space. This is quantitatively shown in the distribution of inradiuses across different learning rates.
Distribution of inradiuses (region sizes) for Vanilla, BN, and Dropout models.
  • Classification Stability: In a vanilla model with a small learning rate, a single manifold region contained an average of 8.76 different classification zones. Applying Dropout reduced this to nearly 1.0, meaning the network becomes much more "certain" and stable around data points.
  • Distortion: BN significantly decreases "distortion" (the distance to the nearest decision boundary), which implies that while it creates more regions, it keeps the local linear models more compact.

Limitations and Future Work

  • Computational Complexity: The current approach is computationally expensive, especially for very deep or wide networks, as it requires solving many optimization problems to define the polytopes.
  • Smooth Activations: The method is designed for piecewise linear activations (ReLU). It doesn't naturally apply to smooth activations like Sigmoid or Swish without using piecewise linear approximations.
  • Theoretical Framework: While the paper provides excellent empirical evidence, the authors note the need for a formal theoretical framework to explain why these specific optimization techniques lead to these specific geometric outcomes.

Summary updated

BibTeX
@inproceedings{zhang2020empirical,
  author = {Xiao Zhang and Dongrui Wu},
  title = {{Empirical Studies on the Properties of Linear Regions in Deep Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure