Compare an uncreased linear stack against piecewise-linear ReLU hinges on the exact same points. Scrub the fold slider from 0% to 100% to watch the coordinate grid deform in the right panel while the pulled-back boundary updates in the left panel.
Left · Input space x = (x₀, x₁) & crease lines
Clay circles: Class 0 · Slate squares: Class 1 · Dashed ink: hinge lines · Solid moss: pulled-back readout cut.
Right · Deformed hidden space & single linear cut
The final readout layer can only ever draw one straight moss line in this panel.
ReLU(+x₀) + ReLU(-x₀) = |x₀| fold (-2, 0) across the vertical crease directly onto (+2, 0) at |x₀| = 2, while (0, ±2) remain at |x₀| = 0. One straight vertical cut separates them cleanly—though under random SGD initialization, expanding width from H=2 (4/20 seeds) to H=8 (20/20 seeds) avoids dead-hinge traps.
Every figure below comes directly from deterministic float64 runs in verify_manifold_folding.py, cross-checked without PyTorch by recompute_check.py.
| Dataset & geometry | Model / crease budget | Active 2D regions (Zaslavsky cap) | Cross-entropy loss | Accuracy / seed reliability |
|---|---|---|---|---|
Symmetric cross (4 pts: (±2,0) vs (0,±2)) |
3-layer Linear (2→16→16→2, no ReLU) |
1 (flat shear) | 0.6931 (ln 2) |
25%–50% (collapses to 2×2 matrix to 1.3×10⁻¹⁶) |
| Symmetric cross (4 pts) | Analytic 2-hinge V-fold (ReLU(+x₀)+ReLU(-x₀)) |
2 | 0.00005 | 100.0% (exact construction) |
| Symmetric cross (4 pts, 20 SGD seeds) | Random-init ReLU: H=2 → H=4 → H=8 (4× d_in) |
2–4 → 8–14 | 0.4124 → 0.0059 → 0.0011 | 20% (4/20) → 85% (17/20) → 100% (20/20) |
Concentric rings (240 pts: r≈1.0 vs r≈2.4) |
3-layer Linear (2→16→16→2, no ReLU) |
1 (flat shear) | 0.6931 (ln 2) |
50.0% (matches single matrix to 2.5×10⁻¹⁶) |
| Concentric rings (240 pts) | ReLU H=1 / H=2 (no bounded 2D cell possible) |
2 (cap 2) / 3 (cap 4) | 0.5625 / 0.3776 | 67.5% / 85.0% (open corridor leaks outer ring) |
| Concentric rings (240 pts) | ReLU H=3 (triangle) / H=6 (polygon) |
7 (cap 7) / 14 (cap 22) | 0.0257 / 0.0061 | 100.0% / 100.0% (closed crease cage) |
x₀ across x₀ = 0 maps both (-2, 0) and (+2, 0) to |x₀| = 2 while (0, ±2) stay at 0, allowing a single straight cut at |x₀| = 1 (100% accuracy; 20/20 SGD seeds at width H=8).W_eff x + b_eff; opposite corners pull gradients in exact cancellation, trapping cross-entropy at ln 2 = 0.6931.CE = 0.6931 (50.0% accuracy).