Paths and Ambient Spaces in Neural Loss Landscapes

Daniel Dold, Julius Kobialka, Nicolai Palm, Emanuel Sommer, David Rügamer, Oliver Dürr

Abstract

Understanding the structure of neural network loss surfaces, particularly the emergence of low-loss tunnels, is critical for advancing neural network theory and practice. In this paper, we propose a novel approach to directly embed loss tunnels into the loss landscape of neural networks. Exploring the properties of these loss tunnels offers new insights into their length and structure and sheds light on some common misconceptions. We then apply our approach to Bayesian neural networks, where we improve subspace inference by identifying pitfalls and proposing a more natural prior that better guides the sampling procedure.

Introduction

Deep neural networks operate in high-dimensional parameter spaces where finding a single "good" solution is difficult, but identifying a continuous region of high-performing solutions is even more challenging. Research into mode connectivity has demonstrated that different local minima are often connected by paths of low loss. However, existing methods for utilizing these paths for Bayesian uncertainty estimation face hurdles regarding geometric rigidity and prior mismatch. Standard methods often fix endpoints or use "volume lifting" that ignores the specific curvy geometry of the low-loss region, leading to inefficient sampling.

Methodology: Geometrically-Principled Tunnels

To address these limitations, we propose a flexible framework for embedding and optimizing "loss tunnels"—multidimensional regions of low loss—within neural network landscapes.

Our approach utilizes Flexible Bézier Paths, where all control points are optimized simultaneously to find the "path of least resistance" without being tethered to pre-defined endpoints. To transform a 1D path into a multidimensional tunnel, we employ Rotation Minimizing Frames (RMF). Unlike standard Frenet-Serret frames, which can fail or become unstable at points of zero curvature or sharp turns, RMF maintains a consistent orientation along the entire curve, providing a stable coordinate system for the tunnel's ambient space.

Comparison of Frenet-Serret and RMF frames along a curve. RMF provides a significantly more stable and consistent coordinate system for defining the tunnel's ambient space.

Furthermore, we introduce a Tunnel Prior that accounts for the path's "speed" (the parameter space covered per unit of path length). By adjusting for the Jacobian determinant of the mapping, we ensure that sampling remains uniform along the path's actual length rather than its mathematical parameterization.

Key Insights: Geometry and Scaling

A central finding of this work is the Polymer Analogy. Optimization of these paths follows scaling laws similar to polymer physics; the path behaves like a diffusing polymer chain, with its length and spread growing with the square root of training time ($\sqrt{n}$). This provides a diagnostic tool to determine if a path is "free" or constrained by the landscape.

We argue that "tunnel lifting"—building the subspace around an optimized path—is far more efficient than "volume lifting" (spanning a plane between models). Volume lifting often includes high-loss regions, whereas tunnel lifting stays within the low-loss valley.

Visualization of sampling densities across different methods. The tunnel prior (right) ensures the sampler remains concentrated within the low-loss region compared to standard volume sampling (left).

Results and Performance

Our approach was validated across simulated datasets, UCI regression benchmarks, and MNIST image classification. Key results include:

  • Sampling Efficiency: The tunnel approach achieved significantly higher Effective Sample Size (ESS) and better convergence (lower $\hat{R}$) than traditional volume-lifting methods.
  • Benchmark Superiority: On UCI regression tasks, the "Tunnel-K" method consistently outperformed Deep Ensembles and Laplace Approximation in terms of Log Pointwise Predictive Density (LPPD).
  • Dimensionality: On MNIST, increasing the tunnel's dimension ($K$) generally improved predictive performance, suggesting that the loss landscape contains complex, high-dimensional structures that simple 1D paths cannot fully capture.

Conclusion and Future Work

While our method provides a robust way to explore low-loss regions, it currently assumes a single path structure and does not account for complex topologies like branching or loops. Future work will explore pre-defining tunnel properties as a prior during the initial training phase to guide neural network optimization from the start. By treating the loss landscape as a structured geometric space rather than a collection of points, we can significantly improve the reliability of Bayesian neural networks.

Summary updated

BibTeX
@inproceedings{dold2025paths,
  author = {Daniel Dold and Julius Kobialka and Nicolai Palm and Emanuel Sommer and David Rügamer and Oliver Dürr},
  title = {{Paths and Ambient Spaces in Neural Loss Landscapes}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=bwrd3y84te},
}
Figure