Loss Landscape Demo¶
Demo 0 is a notebook that streams the loss surface around a model's current weights as a mesh, with the optimizer's path across it, recomputed on the device while the model trains.
| Field | Value |
|---|---|
| ID | STR-11 |
| Status | Built |
| Scope | Core |
| Pillar | Live Data, Streaming and Recordings |
| Sprint | 4 |
| Depends On | Scene View (REN-12)Notebooks ( STR-07)caliper.scene ( STR-10) |
| Unblocks | None |
| Docs | None |
| Branches | sprint4-integ3sprint4-pr1-main2 |
| Design | None |
Coverage Ledger¶
- Branch
sprint4-build, 165 commits, none outside sprint4-integ3. Head of pull request 1 (546bacaa): sprint 4 through demo 0 with every review fix. - Branch
sprint4-build-pre-rebase, 134 commits, none outside sprint4-integ3. Build branch before the rebase on main. - Branch
sprint4-demo0, 77 commits, none outside sprint4-integ3. Demo 0, the loss landscape. - Branch
sprint4-integ3, 209 commits not on main, the superset of the finished build branches; the six branches draws, rec, tex, time, ts9, points hold 30 commits outside it. Third integration branch: every finished build branch (protocol 3.2 series, step 5, 7, 9, scale bar, up-axis, rest of scene calls, first draws commit). - Branch
sprint4-pr1-main2, 165 commits, none outside sprint4-integ3. Pull request 1 candidate, 546bacaa with main merged in. - Branch
sprint4-runbar, 137 commits, none outside sprint4-integ3. Run bar fixes with caliper.flush() and demo 0 browser row. - Branch
sprint4-integ3, 68b08a4a, 6ccaedde, f3b191f9, 2b87a023, a397a193, 58725a72, 905f6c94, 5d2a030f, 32e0a83f, b939feca, 406a2ab3, c0f2e26d, 9ca7c3d1, f9c89736, b5b86fa2, af6d4bee, 07f8df61, a4327f9a, cf8b9083, e950ec02, 3022b381, 5c9059e0, ce3a6485, 8db78455, d6528508, c2a8095c, 23629aa3, b0d1a575, effe9fd3. Demo 0, the loss landscape: a Landscape that streams the loss surface around a model's weights as a mesh with the path and PCA plane, a notebook, a tutorial, headless and capture rows, and a cost benchmark. - Branch
sprint4-integ3, e4bd1496. Costs of the scene calls and the benchmark rows for demo 0. design/demos.mdon the branchsprint4, under What is built and what is planned. Demo 0 is built on the sprint's own build branch and under verification; nothing else on the page is built. The demos rest on built pieces of sprint 2 (controls of protocol 3.1, caliper.serve, the web viewer, the live_training notebook) and on main's Python API.design/demos.mdon the branchsprint4, under The increment demo, a loss landscape. Demo 0, the loss landscape: the loss surface around the current weights over the plane of the path's two principal components, with the optimizer's path, in a notebook and the browser viewer, recomputed on the device every 2,000 steps by default.design/demos.mdon the branchsprint4, under The increment demo, a loss landscape. Demo 0's numerical module: snapshots and the plane of the path, filter-normalised random directions as a switch, the grid evaluated on the device with vmap, the projection.design/demos.mdon the branchsprint4, under The increment demo, a loss landscape. Demo 0's tutorial, headless test and cost row (python/bench/bench_landscape.py).design/demos.mdon the branchsprint4, under The order of building. Order: demo 0 first, then demo 4 (least of the scene model, newest and riskiest recordings and scrubber), then 2, 3 and 1; each about 2 builder days once dependencies exist, demo 1 needs a third day, demo 0 needs 3. The table maps each demo to the renderer core, scenes, web geometry, recordings and protocol pieces it needs.design/demos.mdon the branchsprint4, under Limits. Limits: data still to verify (film URL and size, package licences, whether a shot reconstructs), COCO-trained weights, large downloads that skip CI, zero-copy only for the app on the same machine, no bitwise determinism on MPS, demo 0's plane and omissions, a defect of the app's run bar.design/demos.mdon the branchsprint4, under Limits. Demo 0's omissions by the user's decision: evaluation mode for the surface, keeping the path inside the box at a small span, a test that the landscape leaves training unchanged, a finer grid, a switch of the height, a projected path, a span tied to the recent path.design/demos.mdon the branchsprint4, under Decisions. Demo 0 decisions: the loss landscape as the first visible increment, sprint 2's notebook model, the path's principal-component plane by default, Gram-matrix snapshots refitted every N steps, first plane at step 40, defaults and cost budget of 1.5 times, cost rows against the committed baseline, fixed box and anchor, log loss range, vmap over rows of 41 grid points.design/roadmap.mdon the branchsprint4, under Scenes and recordings. The browser part: scenes on the WebGPU backend of the renderer core, and the demos part: the loss landscape and the training run, with three other demos moved to sprint 5.design/sprint-4.mdon the branchsprint4, under 1. A loss landscape in a notebook. Increment 1 as a whole: demo 0, the loss surface around the current weights as a mesh with the optimizer's path, in a notebook widget and the browser viewer, recomputed on the device every N steps (18.5 days).design/sprint-4.mdon the branchsprint4, under 1. A loss landscape in a notebook. Demo 0, the loss landscape: notebook, landscape.py, headless test, reference captures and cost measurement (3 days, new).design/sprint-4.mdon the branchsprint4, under Decisions. Increments in order, the whole minimum cut first, then the loss landscape, then every remaining migration step; the subset of increment 1 is what demo 0 draws; the network route only in increment 1; the box and floor grid as ordinary line draws; step 6 in two halves.design/sprint-4.mdon the branchsprint4, under Decisions. Wire and demo decisions: strip break masks built by the viewer from strip_lengths, the key static travelling with scenes alone, the path's principal-component plane as demo 0's default, demo 0's defaults and cost budget, MCAP and recording only when started.design/sprint-4.mdon the branchsprint4, under Risks. Risks: the cost of the landscape's surface, its changing plane, a slower fast path with no switch back, Windows and GPU-less machines, applets outside the repository, applet pictures that change, ids under review and one browser, MCAP with no size margin, scope of 162 days.design/sprint-4.mdon the branchsprint4, under Open questions. Open question 2, drawing the landscape in the app in increment 1 or 2 (about 1.5 days); the page recommends increment 2.design/windows-parity.mdon the branchsprint4-pr1-main2, under 5. The web viewer and notebooks. Scenes reach a browser on Windows before the native app: the loss-landscape demo in Chrome and Edge through caliper.serve().design/windows-parity.mdon the branchsprint4-pr1-main2, under 5. The web viewer and notebooks. The scene parity tests of Web geometry in Chrome and Edge on Direct3D 12 and the loss-landscape demo in a notebook (1 day).design/windows-parity.mdon the branchsprint4-pr1-main2, under 10. Scenes and recordings. The loss-landscape demo and the four demos on CUDA, written for MPS (2 days).design/windows-parity.mdon the branchsprint4-pr1-main2, under 10. Scenes and recordings. Done when the training-run demo runs on a Windows machine with CUDA, its scene draws in place, and its recording reopens and scrubs in the app and a browser.- Orchestrators' notes,
_notes/HANDOFF-sprint4.md. Pull request 1 content is finished and held on sprint4-pr1-main2 at 44840c5b: graphics layer, shader generation, scene core, scene view, WebGPU backend, colormap by keys, protocol 3.2 subset, caliper.scene and demo 0. - Orchestrators' notes,
_notes/HANDOFF-sprint4.md. The run bar fixes with the caliper.flush() fix and the browser capture row's fix are on sprint4-pr2. - Orchestrators' notes,
_notes/HANDOFF-sprint4.md. Decision: demo 0's defaults and its known limits (training-mode evaluation, path leaving the box, uniform grid, no non-interference test). - Orchestrators' notes,
s4-demo0/STATUS.md. Demo 0, the loss landscape: landscape.py, the notebook, tests/demos, a cost benchmark and a docs tutorial; the cost ratio fell from about 2.0 to 1.20 with the new defaults. - Orchestrators' notes,
s4-rebase/RESULT.md. After the merge the scene view's default camera is the points view's; demo 0's pixel reference was replaced under the new camera. - Orchestrators' notes,
s4-orch/pr1/PR-1.md. Known limits of demo 0: evaluation in the current training mode, the path leaving the box below span 2/3, a uniform grid and no test that showing the surface leaves training untouched.