The two-teacher census

Explore every critical point of the Gaussian population loss landscape with a two hidden neuron student and teacher network.

Understanding loss landscapes is central to explaining neural-network training, yet their structure remains only partially understood even in simple models. In the project Learning Polytopes, which led to the paper Removing spurious minima for planar features by skip connections, we started by studying the smallest interesting case of teacher–student training: teacher and student networks with two hidden neurons on planar Gaussian input. Even this case turned out to be surprisingly rich — but with agentic proof search we found closed formulas for all critical points for any teacher, and we mapped the sets of teacher-network parameters on which the types of local minima agree, the census. Below is an interactive presentation of that result. Choose the network type — plain or skip — in the drop-down of the page header; then drag and drop the teacher network's parameters and study every critical point the resulting student landscape admits.

plain network x₁x₂ Σ w₀w₁ s₀s₁ skip network b₁b₂ x₁x₂ Σ w₀w₁ s₀s₁

Both networks read a planar Gaussian input \(x\sim\mathcal N(0,I_2)\) through two hidden neurons. The teacher network with parameters \((s,\beta)\) and the student network with parameters \((c,\theta)\) have the same shape, \[f_{s,\beta}(x)=\sum_{i=0}^{1} s_i\,\mathrm{ReLU}(\langle w_i,x\rangle)\;[\,+\langle b,x\rangle\,],\qquad w_i=(\cos\beta_i,\sin\beta_i),\] with \(\mathrm{ReLU}(z)=\max(z,0)\) and unit directions \(w_i\). For a neuron with general first-layer weight \(\tilde w_i\) and second-layer weight \(\tilde s_i\), the generator is \(g_i=\tilde s_i\,\tilde w_i\), and its mass is the second-layer weight times the norm of the first-layer weight, \(s_i=\tilde s_i\lVert\tilde w_i\rVert\) — positive or negative — with direction \(w_i=\tilde w_i/\lVert\tilde w_i\rVert\), so \(g_i=s_iw_i\). Plain network: the formula without the bracket. Skip network: with the learned linear skip \(\langle b,x\rangle\). The skip makes the sign of a direction irrelevant (see the paper), so the explorer draws a skip-network generator as a segment through the origin.

Scaling symmetry. ReLU is positively homogeneous, \(\mathrm{ReLU}(\lambda z)=\lambda\,\mathrm{ReLU}(z)\) for \(\lambda>0\), so \((\tilde s_i,\tilde w_i)\mapsto(\tilde s_i/\lambda,\lambda\tilde w_i)\) changes neither the generator nor the network function: the loss depends on a neuron only through its generator, and the critical points of the full parametrisation are those of the (mass, direction) parametrisation used here.

drag the teacher generators, scroll to zoom, double-click to reset

the teacher gap against the teacher mass ratio — click a region to load a teacher network from it; zero- and one-dimensional censuses are not plotted

classification angles θ₀, θ₁ masses c₀, c₁ type status

About

This census is part of the project behind Removing spurious minima for planar features by skip connections (Zimmermann, Grillo, Balakin, Loho, 2026), where the two-neuron classification serves as the laboratory for the paper's general-width results; it is not itself part of the paper. Every row of the table is a family of critical points with its proved type, evaluated from closed forms; nothing on this page is a numerical Hessian. The explorer, the map generator and the certificates are in the code repository. Page by Jakob Paul Zimmermann. Critique and proposals to make these interactive widgets more accessible and better are welcome (jakob.paul.zimmermann@campus.tu-berlin.de).