Compelling ReLU Networks to Exhibit Exponentially Many Linear Regions at Initialization and During Training

Max Milkert, David Hyde, Forrest John Laine

TL;DR

This paper introduces a novel network reparameterization and pretraining strategy that forces ReLU networks to achieve their theoretical maximum expressivity—$2^d$ linear regions for a depth $d$ network—at initialization. By moving away from standard random initialization, the authors achieve regression errors several orders of magnitude lower than standard methods and demonstrate a path toward more efficient, smaller architectures.

The Limits of Random Initialization

Rectified Linear Unit (ReLU) networks are essentially piecewise linear functions. Their "expressivity"—the complexity of the functions they can represent—is often measured by the number of linear regions they create. Theoretically, this number can grow exponentially with the depth of the network.

However, in practice, we almost never reach this theoretical limit. Standard random initialization methods (like Kaiming or Xavier) result in a number of linear regions that is essentially invariant with depth. Furthermore, gradient descent is notoriously bad at creating new activation regions during training. This leads to inefficient networks where depth is added to gain performance, but the network fails to utilize that depth to its full mathematical potential.

Composing triangle waves to exponentially increase linear regions

A Novel Reparameterization Strategy

To ensure a network starts and stays in a high-expressivity state, the authors propose a structured three-phase approach based on a specific architectural reparameterization:

  1. Triangle Wave Reparameterization: Instead of training raw weights and biases from scratch, the authors reparameterize a 4-neuron-wide network. Each layer is explicitly designed to implement a "triangle wave" function. By composing these layers, a depth $d$ network creates exactly $2^d$ linear regions. The trainable parameters become the locations of the triangle peaks ($a_i$) rather than individual weights.
  2. Differentiable Constraints: Rapidly oscillating triangle waves can create fractal-like outputs that fail to generalize. To counter this, the authors derive a specific mathematical relationship (Theorem 3.1) for scaling coefficients. This ensures the network output remains differentiable in the infinite-depth limit, acting as a natural regularizer.
Network architecture for the triangle function and multilayer pretraining
  1. Three-Phase Training:
  2. Initialization: Weights are deterministically set based on the triangle wave construction.
  3. Pretraining: The network is trained using only the $a_i$ parameters (peak locations), acting as a guide through the loss landscape.
  4. Direct Training: The strict constraints are released, and the network is fine-tuned using standard gradient descent on the raw weights.

Key Results and Insights

The authors evaluated their method across various tasks, including 1D regression (approximating functions like $x^3$, $\sin(x)$), real-world regression (UCI Concrete dataset), and classification (Two-Spirals, ImageNet via VGG-16).

  • Orders of Magnitude Improvement: In 1D regression tasks, the proposed method achieved Mean Squared Error (MSE) values three orders of magnitude lower than standard Kaiming initialization.
  • Solving the "Dying ReLU" Problem: Random initialization often leads to dead neurons that permanently output zero, halting gradient flow. This triangle-wave construction enforces a structure that ensures neurons remain active and useful throughout training.
  • Efficiency in Classification: On the Two-Spirals dataset, a block-diagonal version of their network successfully learned an accurate decision boundary where a standard Kaiming-initialized network of the same structure failed completely.
  • 1D Foundations for Multidimensional Tasks: While the core mathematics rely on 1D functions, these "convex blocks" can serve as activation functions within larger, multidimensional architectures, suggesting that standard dense layers could be replaced with more structured, efficient components.

Limitations and Future Work

The primary limitation of this approach is its extension to high-dimensional spaces. Currently, the multidimensional implementation relies on sparse block-diagonal matrices, which does not fully utilize the potential of dense weight matrices.

Future work will focus on finding a more natural representation for multidimensional functions directly within this framework. Additionally, while this method is a game-changer for regression tasks requiring high precision, the benefits for pure classification are less pronounced, as classification is generally more robust to the pathological properties of random initialization. Finally, the authors hint at exploring the controlled generation of fractals by intentionally relaxing their differentiability constraints.

Summary updated

BibTeX
@inproceedings{milkert2025compelling,
  author = {Max Milkert and David Hyde and Forrest John Laine},
  title = {{Compelling ReLU Networks to Exhibit Exponentially Many Linear Regions at Initialization and During Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=5KICQlFN4s},
}
Figure