NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Why Line Search when you can Plane Search? SO-Friendly Neural Networks allow Per-Iteration Optimization of Learning and Momentum Rates for Every Layer

Betty Shea, Mark SchmidtarXiv 2024 · DOI

Abstract

Training neural networks typically requires extensive hyperparameter searches to identify optimal learning and momentum rates. This paper introduces SO-friendly (Subspace Optimization-friendly) neural networks, a class of architectures where these parameters can be mathematically optimized at every iteration for negligible additional computational cost. By transitioning from 1D line searches to 2D "plane searches," the authors achieve faster, more robust convergence, effectively eliminating the need for manual tuning schedules in specific network types.

Introduction: The Hyperparameter Bottleneck

In modern deep learning, optimizers like SGD or Adam rely on fixed hyperparameters—specifically the learning rate ($\alpha$) and momentum ($\beta$). Incorrect settings can lead to slow convergence or training instability. While classical optimization often employs a line search to find the best step size along a gradient, this is generally avoided in deep learning due to the high cost of multiple forward passes.

The authors identify a specific architectural "gap": for many networks, the computational bottleneck is the initial large matrix multiplication with the input data. By reusing the results of this multiplication, it becomes possible to optimize step sizes "for free."

SO-Friendly Neural Networks

The core contribution is the definition of SO-friendly neural networks. These are models where the cost of evaluating the loss function is dominated by the initial matrix multiplication with a data matrix $X$. By tracking a "memory" vector ($m_k = Xw_k$), the authors demonstrate that evaluating the objective function within a low-dimensional subspace costs only $O(n)$, whereas the full gradient calculation costs $O(nd)$. In high-dimensional settings where $d \gg 1$, the search cost becomes negligible.

Line Optimization (LO)

Instead of using heuristics like the Armijo condition to find a "good enough" step size, the authors propose Line Optimization (LO). This method numerically identifies the specific $\alpha$ that minimizes the loss function along the gradient direction.

Comparison of Armijo-based line search vs. exact Line Optimization (LO).

The "Aha!" moment comes from extending LO to include momentum. If a 1D line search is computationally inexpensive, a 2D plane search—optimizing both the gradient step ($\alpha$) and the momentum step ($\beta$) simultaneously—is equally viable. This "Subspace Optimization" (SO) provides a much more powerful update than standard first-order methods.

Per-Layer Optimization

The authors further extend SO to tune separate learning and momentum rates for every layer in the network during every iteration. For a 2-layer network, this involves dynamically tuning four parameters ($\alpha_1, \alpha_2, \beta_1, \beta_2$). To prevent the optimizer from becoming "too aggressive" and causing parameter weights to explode, L2-regularization is employed to stabilize the per-layer updates.

Key Results and Insights

The researchers evaluated these methods across 16 diverse datasets (e.g., mushrooms, phishing, a1a) and discussed their relevance to large-scale benchmarks like ImageNet in "wide-then-narrow" or transfer learning contexts.

  • Performance Dominance: GD+M(SO) consistently outperformed standard line searches and theoretically-motivated fixed step sizes. It frequently surpassed Nesterov’s Accelerated Gradient (NAG), the traditional gold standard.
  • Robustness: Augmenting Adam with multi-direction subspace search (Adam2(SO)) significantly increased its robustness and speed on Linear Composition Problems (LCP).
  • Curvature Adaptation: Unlike linear models, neural networks exhibit the "Edge of Stability," where curvature adapts to the step size. While fixed rates can work, precise per-iteration tuning still offers substantial speedups.

Limitations and Future Outlook

While powerful, these techniques are currently constrained to "SO-friendly" architectures—specifically those where the first layer is wide and subsequent layers are narrower, or where only the final layers are being trained. Additionally, this study focuses on deterministic (full-batch) optimization. Extending these principles to stochastic (mini-batch) training and addressing the non-convexity of the subspace search itself remain key areas for future research.

Summary updated

BibTeX
@misc{shea2024why,
  author = {Betty Shea and Mark Schmidt},
  title = {{Why Line Search when you can Plane Search? SO-Friendly Neural Networks allow Per-Iteration Optimization of Learning and Momentum Rates for Every Layer}},
  year = {2024},
  eprint = {2406.17954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.17954},
}
Figure