cs.CCOct 20, 2026
SaveTwo Layers is All You Need
Abstract
We prove that every network can be exactly simulated by a network with two hidden layers. We present two proofs: one that is based on fillings in homological algebra and a direct combinatorial proof.
Figures & tables
Figure 1. The depth hierarchy of networks collapses to its first 3 levels.
Figure 2. A paramid given as the pyramid over a two-dimensional parallelepiped with apex .
Figure 3. This triangle cannot be a boundary because it does not have the augmentation property.
Figure 4. The hexagon has the augmentation property, so it can be filled.
Figure 5. The doubling map scales a parallelogram in by a factor of , then subdivides the parallelepiped face into pieces, which are each a translated copy of the original parallelepiped face. In , this corresponds to scaling a paramid by and then subdividing into pieces. But subdivision does not change a class in , so is equal to .
Figure 6. On left, a partition of the simplex to simplices with . On middle and right, the two pyramids for and .
Figure 7. At the top, the parallelepipeds and the simplices together with their respective coefficients. At the bottom, the total sum is the same for the parallelepipeds and for the simplices.
Figure 8. Top: the dilation of a parallelogram by can be subdivided into copies of the original parallelogram. Middle: the dilation of a triangle by can be subdivided into two copies of the original triangle and one parallelogram. So the difference of a triangle and a rectangle of the same area is in (bottom).
Figure 9. Top: Using inclusion-exclusion, we can write the union of the standard -simplex – with vertices at and – and the paramid – with vertices and – as the sum of the simplex and the paramid minus their intersection – the triangular face with vertices , and . Bottom: is also the Minkowski sum of the triangular face with vertices at and and the segment with vertices at and .
Figure 10. A thermostat walk obtained by merging the ordered positive and negative coordinate lists shown above it. Take the next positive step below level and the next negative step above level .
Figure 11. Two subdivisions of the tetrahedron into the simplices for .
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