# Comparing Linear Regions in ReLU-Type Networks: Theory and Monte Carlo Methods

*Yuan Wang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153164) · [Open on the map](../papers.html#p153164)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Neural Representation and Compression Theory](../pgroup/141.md) · Type: new method · Keywords: linear regions, ReLU networks, Monte Carlo sampling, network architecture, theoretical analysis

## Summary
The paper provides a complete characterization of linear pattern uniqueness for ReLU and leaky ReLU networks and introduces a Monte Carlo sampling method to compare linear region counts, establishing theoretical formulas and empirical results on how network architecture influences the number of linear regions.

## Explained to a 5-year-old
The researchers looked at a kind of computer brain that uses simple on/off switches. They wanted to know how many different straight-line pieces the brain could split the data into. They found that putting more tiny switches right after the first step makes the brain cut the data into more pieces. They also figured out an exact way to count those pieces for a certain kind of brain. They showed a quick way to guess the count by trying many random examples.

## Explained to a 5-year-old, longer
A computer brain is made of many tiny decision makers that turn on or off. These decision makers are called ReLU and they help the brain split information into straight lines. The researchers wanted to know how many different straight lines the brain could make. They first studied a special rule that says when the brain’s pieces are unique. Using math tools, they showed that putting more decision makers right after the start makes more pieces. They also created a fast guessing game that tries many random examples to estimate the total number of pieces. The experiments showed that the earliest switches have the biggest effect on how many pieces appear. Finally, they gave a formula that tells exactly how many pieces a simple two-layer brain can have, and a safe limit for brains that get smaller as they go deeper.

## For a technical reader
We characterize when linear regions in ReLU networks are unique and combine geometry and probability to compare region counts. Empirically, we validate a sampling technique that estimates these counts across different architectures. The results show that neuron placement near the input layer significantly influences region count. We also derive exact expected region counts for two-hidden-layer networks and provide an upper bound for non-increasing width networks.

## Problem
Understanding how many linear regions neural networks with ReLU activations can represent and how architectural choices affect this count is a fundamental question in deep learning theory.

## Method
We develop a theoretical characterization of linear pattern uniqueness and combine geometric and probabilistic tools to compare linear region counts. Empirically, we use a sampling-based technique to estimate these counts across various network architectures.

## Results
The theoretical results reveal that networks arranged as pq×2 have more linear regions than p×2q, and empirical experiments confirm that neurons near the input layer dominate region count. The paper also derives the exact expected number of linear regions for two-hidden-layer networks and provides an upper bound for networks with non-increasing widths.

## Contributions
We provide a complete characterization of linear pattern uniqueness for generic ReLU networks, derive exact expected linear region counts for two-hidden-layer architectures, and give an upper bound for non-increasing width networks. Additionally, we validate a sampling-based method for estimating region counts across diverse network configurations.

## Limitations and assumptions
The analysis assumes generic fully connected networks and does not extend to convolutional, recurrent, or other specialized architectures; the empirical validation covers only the scenarios examined.

## Research questions this paper is counted under

- [How does neural network performance scale with model size, data, and architectural choices?](../q/151.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153164)
