All work

Research · Data Analytics Group, Moscow · 2019

Barcodes of Loss Landscapes

Measuring how hard a neural network's loss surface is to descend.

Surface plots of two test functions, the correspondence between their minima and saddles, and the resulting barcodes.
Test functions, the pairing of each minimum with its saddle, and the barcodes the algorithm computes.

Topological data analysis of neural-network loss surfaces. An algorithm computes the barcodes of local minima, and experiments show that deeper and wider networks have friendlier landscapes.

The problem

Gradient descent finds good solutions on loss surfaces that are wildly non-convex, and nobody fully understands why. To study the question you first need a way to measure how bad a landscape’s local minima really are.

The idea

Borrow from topology. Each local minimum is paired with the saddle point at which its basin merges into a deeper one. The height difference between the two is a topological invariant: the penalty an optimiser must pay to escape that minimum. The collection of these segments is the barcode of the loss function.

Existing software computed barcodes on grids with cubic worst-case cost and stalled beyond six dimensions. We described an algorithm that works on arbitrarily sampled point clouds, whose principal part runs in O(N log N), and tested it in up to 15 dimensions on as many as 10⁹ points.

What it showed

  • The barcodes of local minima sit in a small lower part of the range of the loss.
  • Increasing a network’s depth and width lowers those barcodes.

Both observations point the same way: larger networks have landscapes that are easier to optimise, with implications for learning and generalisation.

With Serguei Barannikov, Alexander Korotin, Dmitry Oganesyan and Evgeny Burnaev. Published in Doklady Rossiiskoi Akademii Nauk. Matematika, Informatika, Protsessy Upravleniya, vol. 514 (2023).

Documents

Figures

Three diagrams of a one-dimensional function showing connected components of sublevel sets merging at saddle points.
How a barcode is born. As the level rises, each local minimum starts a component that later merges into a lower one at a saddle.

Open this page on your phone

Point your camera at the code.

demtsev.com/work/loss-landscape-barcodes

Open PDF(opens in a new tab)

Pages are shown as images. Open the PDF or the original for a text version.

Ask about Daniil

Loading…