cs.LGOct 19, 2026
SaveTwo hidden layer suffice: the caterpillar net
Organizations: FU Berlin · TU Berlin
Abstract
Every continuous piecewise linear (CPWL) function is a finite signed sum of maxima of affine functions, making maximum representation a central problem in the study of the expressiveness of ReLU networks. A now-disproved conjecture predicted logarithmic depth for maxima. Inspired by the proof by Brunck et al. (2026) that two hidden layers suffice for general CPWL functions, we give the Caterpillar Net, a nonrecursive construction for the maximum of inputs with two hidden layers of widths and . The construction has a direct geometric interpretation.
Figures & tables
Figure 1: A labelled caterpillar with and . The spine has two leaves at each vertex; all arrows point from parent to child. The apex is separate from the tree. The last spine position is , so the head function is .
More in this topic
ReLU Neural Networks
Rectified linear unit (ReLU) neural networks use piecewise-linear activations to study approximation, learning dynamics, expressivity, and verification.
See all 113 papers