Two hidden layer suffice: the caterpillar net

Jakob Paul Zimmermann
10/19/2026
cs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zimmermann2026hidden,
  title  = {Two hidden layer suffice: the caterpillar net},
  author = {Jakob Paul Zimmermann},
  year   = {2026},
  eprint = {2610.26795},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.26795v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.26795.svg)](https://codeofpaper.com/paper/2610.26795)

Discussion