cs.LGOct 19, 2026

Two hidden layer suffice: the caterpillar net

Authors: Jakob Paul Zimmermann

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 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.

Figures & tables

Explore similar work

CardsList
  1. Shallower ReLU Network Representations via Exact Linear Algebra

    Jul 22, 2026Kilian Rueß, Gennadiy Averkov, Florestan Brunck +7Shallow Neural NetworksReLU Neural Networks

  2. Representing MAX functions using two-hidden-layer ReLU networks

    Aug 25, 2026Zhimao Wang, Amitabh BasuReLU Neural NetworksNeural Network Expressivity