Every region is one matrix, and its rank is the count of live units
symbolic▲▲△Symbolic.
STATEMENT
Derive, in general, the affine map a two-layer ReLU network applies inside a single linear region. Then read two facts off the derivation: that the network is piecewise affine, and that the rank of the map on a region is bounded by the number of units switched on in it.
GIVEN
A network with , and .
Fix an input and let be the diagonal matrix of its activation pattern, with units on.
FIND
The effective and with for every in the region containing , and a bound on .
STRATEGY
The one step that matters is replacing by . That substitution is exact — not an approximation — precisely on the set where the pattern does not change, and everything after it is matrix algebra.
SOLUTION
Step 1 — ReLU becomes a matrix. On the region, every unit’s sign is fixed. For a unit that is on, ; for one that is off, . Applying ReLU is therefore the same as multiplying on the right by :
This is an identity on that set, not a linearisation.
Step 2 — substitute and expand.
which is equation (I.5.3). The network is affine on the region, with a and that depend on and on nothing else.
Step 3 — piecewise affine. The regions are indexed by the finitely many patterns that occur. Each contributes one affine map, and the maps agree on shared boundaries because a unit crossing zero contributes zero on both sides. So the network is a continuous piecewise affine function — a statement about the whole model, obtained without any assumption about the weights.
Step 4 — the rank bound. Rank cannot exceed that of any factor, and :
using Rank, eigenvalues and the singular value decomposition 0.LA.04. So on a region where only units are live, the network’s output lies in a subspace of dimension at most , whatever the widths are elsewhere.
Step 5 — what that means. Width does not act on a single input. On any one input only the live units count, and the network behaves like a much smaller model. Width buys variety across regions, not capacity within one.
Answer
exactly, on the whole region; and where is the number of units switched on. The network is continuous and piecewise affine, with one such map per realised activation pattern.
Check — sanity
It reproduces I.5.B01. There , , , and . The formula gives and , which is what the direct forward pass returned.
The rank bound is not vacuous there. , and has rank 1. The bound is tight in that case.
Every ReLU disappears. If any survived, the expression would not be affine, and the substitution in Step 1 would have been wrong. Counting them is a real check: three units in, three columns of , none left over.
Where this breaks
Two assumptions are load-bearing, and both fail for activations other than ReLU.
must be piecewise linear for to exist at all. With GELU or tanh there is no diagonal matrix of ones and zeros that reproduces the activation on any open set, so the network has no linear regions, is not piecewise affine, and none of the region-counting in I.5.B07 applies to it. What survives is a local statement — the Jacobian at a point — which is a different and weaker object.
must be elementwise for to be diagonal. Softmax is not, so the same substitution would produce a dense matrix and the rank argument would say nothing. That is I.3.X08 seen from the other side.
Variation
Extend the derivation to layers: show that on a region the network is plus a bias, and state the rank bound in terms of the smallest live count across layers. Then say which single layer decides it.