A wedge landscape you can walk through

Companion to the notes on Fort & Jastrzebski, Large Scale Structure of Neural Network Loss Landscapes (NeurIPS 2019). Back to the notes.

The paper's toy: the low-loss set is a union of flat pieces (wedges) and the loss is the distance to the nearest one. With $D=3$ weights and wedges of dimension $n=2$, the wedges are the three coordinate planes, and the loss of a point is $\min(|x|,|y|,|z|)$. Put two optima on different planes, and the straight line between them leaves every plane. A path that moves within a hyperplane normal to the line and slides to a wedge at each step (the paper's tunnel algorithm) does not.
Presets:
plane xy plane xz plane yz straight line tunnel
Drag to rotate. The tunnel is built the way Section 4.2 does it: 60 segments of the line, at each a plane normal to the line, and projected gradient descent on the loss inside that plane.
A
B

What to look for