[Paper Review] Empirical study towards understanding line search approximations for training neural networks
This paper investigates quadratic line search approximations for stochastic neural network training using mini-batch sub-sampling, comparing the utility of function values and directional derivatives. It finds that directional derivative information—especially at the initial point—is far more critical than function values for reducing variance in step size predictions, and that selective use of minimal, relevant information outperforms using more indiscriminate data.
Choosing appropriate step sizes is critical for reducing the computational cost of training large-scale neural network models. Mini-batch sub-sampling (MBSS) is often employed for computational tractability. However, MBSS introduces a sampling error, that can manifest as a bias or variance in a line search. This is because MBSS can be performed statically, where the mini-batch is updated only when the search direction changes, or dynamically, where the mini-batch is updated every-time the function is evaluated. Static MBSS results in a smooth loss function along a search direction, reflecting low variance but large bias in the estimated "true" (or full batch) minimum. Conversely, dynamic MBSS results in a point-wise discontinuous function, with computable gradients using backpropagation, along a search direction, reflecting high variance but lower bias in the estimated "true" (or full batch) minimum. In this study, quadratic line search approximations are considered to study the quality of function and derivative information to construct approximations for dynamic MBSS loss functions. An empirical study is conducted where function and derivative information are enforced in various ways for the quadratic approximations. The results for various neural network problems show that being selective on what information is enforced helps to reduce the variance of predicted step sizes.
Motivation & Objective
- To understand the relative value of function values and directional derivatives in constructing quadratic line search approximations under dynamic mini-batch sub-sampling.
- To evaluate how different combinations of function and derivative information affect the variance and accuracy of predicted step sizes in stochastic gradient descent.
- To determine whether using more information (e.g., multiple function evaluations) improves performance or if selective, minimal information (especially directional derivatives) is more effective.
- To assess the robustness of various approximation strategies across diverse neural network architectures and datasets under stochastic optimization.
Proposed method
- Construct five distinct 1D quadratic approximations using combinations of function values and directional derivatives at different step sizes along a search direction.
- Enforce information in three ways: only function values (f-f-f), only directional derivatives (g-g), and mixed configurations including function values at α₀ and α₁ with derivatives at α₀ (fg-f), at α₁ (f-fg), or at both (fg-fg).
- Use exact line search as a baseline for comparison, evaluating performance across logistic regression, MNIST, CIFAR-10, and deeper networks.
- Measure performance via convergence speed, step size variance, and the proportion of valid (positive) step sizes, with emphasis on stability and accuracy in stochastic settings.
- Apply the approximations in a stochastic non-negative gradient projection (NN-GPP) framework to locate sign changes in directional derivatives, enabling robust step size estimation.
- Evaluate approximations on both static and dynamic mini-batch sub-sampling settings, focusing on dynamic MBSS where discontinuities complicate line search.
Experimental results
Research questions
- RQ1How does the inclusion of function values versus directional derivatives affect the variance of predicted step sizes in dynamic mini-batch sub-sampling?
- RQ2Does using more function evaluations improve the accuracy of line search approximations, or does it increase bias and instability?
- RQ3Is directional derivative information at the initial point more informative than at other points in reducing step size variance?
- RQ4Can a minimal, selective use of information (e.g., only initial directional derivative) outperform more comprehensive but indiscriminate data collection?
- RQ5Why do certain approximations (e.g., f-f-f, f-fg) fail to produce valid step sizes despite using more data, while others (e.g., fg-f, g-g) remain stable?
Key findings
- Directional derivative information at the initial point is essential for reducing variance in predicted step sizes and ensuring descent direction consistency.
- The g-g approximation (using only directional derivatives) and fg-f (function values at α₀ and α₁, derivative only at α₀) outperform all other configurations in terms of stability and convergence.
- Approximations relying solely on function values (e.g., f-f-f, f-fg) frequently produce invalid step sizes (α < 0), especially under small mini-batch settings, due to high bias in 2nd-order polynomial fits.
- The fg-fg approximation, despite using more information, still fails in some cases due to biased approximation construction, indicating that quantity does not guarantee quality.
- Even with limited data, directional derivative information leads to lower variance and better performance than larger sets of function values alone.
- The g-g and fg-f approximations achieve performance comparable to exact line search in terms of convergence, though with slightly slower initial progress, and show continuous improvement in step size selection over time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.