arXiv:2610.26795cs.LGOct 2026

Manuscript Offprint

arXiv:2610.26795

Two hidden layer suffice: the caterpillar net

Jakob Paul Zimmermann

TWO HIDDEN LAYERS SUFFICE: THE CATERPILLAR NET

Jakob Paul Zimmermann

FU Berlin, TU Berlin

jakob.paul.zimmermann@campus.tu-berlin.de

https://jakob-paul-zimmermann.com

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 NN inputs with two hidden layers of widths O(N2)O(N^2) and 2O(Nlog⁡N)2^{O(N\log N)}. The construction has a direct geometric interpretation.1^1