Source-linked AI summary

The limitation of neural nets for approximation and optimization

Tommaso Giovannelli, Oumaima Sohab, Luis Nunes Vicente

arXiv:2311.12253v1cs.LGmath.OCstat.ML

TL;DR

The paper asks whether neural networks can serve as effective surrogate models for objective-function approximation and optimization. It compares neural networks with interpolation/regression models across activation functions, approximation orders, and derivative-free optimization. SiLU performs best for approximation, but neural networks do not improve the tested optimizer and are weaker for second-order approximation.

  • Problem

    Evidence evaluating neural networks as surrogate models for optimization objective approximation and optimization itself has been limited.

    Source: §1 · p. 2, §4 · p. 17
  • Method

    The study compares neural-network surrogates with interpolation/regression models on function values, gradients, Hessians, and gradient-based updates within a derivative-free optimization method.

    Source: §1 · p. 2, §2.2 · p. 5, §3.3 · p. 15
  • Results

    SiLU performs best for objective-function approximation; neural networks are competitive for zero- and first-order approximations but underperform for second-order approximation, and no surrogate significantly enhances FLE.

    Source: §1 · p. 3, §5 · pp. 21, 23
  • Takeaways & Limitations

    Activation functions can improve quadratic surrogate bases by eliminating cross terms, but surrogate gradient approximations provide little practical benefit for the tested derivative-free optimizer.

    Source: §1 · p. 2, §5 · pp. 21, 23

    The optimization experiments assume derivatives are unavailable and focus on unconstrained, continuously differentiable objectives and the tested surrogate architectures and problem sets.

    Source: §2.1 · p. 4, §4 · p. 17, §4.2 · p. 21

Abstract

from arXiv · show

We are interested in assessing the use of neural networks as surrogate models to approximate and minimize objective functions in optimization problems. While neural networks are widely used for machine learning tasks such as classification and regression, their application in solving optimization problems has been limited. Our study begins by determining the best activation function for approximating the objective functions of popular nonlinear optimization test problems, and the evidence provided shows that~SiLU has the best performance. We then analyze the accuracy of function value, gradient, and Hessian approximations for such objective functions obtained through interpolation/regression models and neural networks. When compared to interpolation/regression models, neural networks can deliver competitive zero- and first-order approximations (at a high training cost) but underperform on second-order approximation. However, it is shown that combining a neural net activation function with the natural basis for quadratic interpolation/regression can waive the necessity of including cross terms in the natural basis, leading to models with fewer parameters to determine. Lastly, we provide evidence that the performance of a state-of-the-art derivative-free optimization algorithm can hardly be improved when the gradient of an objective function is approximated using any of the surrogate models considered, including neural networks.

1 Introduction

The paper assesses neural networks as surrogate models for approximating and optimizing objective functions, an application with limited prior evaluation. It compares neural networks with interpolation/regression models across function values, gradients, Hessians, and derivative-free optimization.

1 Introduction

  • The study evaluates feedforward neural networks as surrogate models against interpolation and regression models on nonlinear optimization test problems.It considers objective functions with varied linearity, convexity, and separability, assessing both local derivatives and broader function-value behavior.Source: §1 · p. 2
  • SiLU provides the best performance among the tested activation functions for approximating nonlinear optimization objectives.Source: §1 · p. 2
  • Neural networks are competitive for zero- and first-order approximations but underperform interpolation/regression models for second-order approximations, despite high training cost.Source: §1 · p. 2
  • Combining an activation function with the natural quadratic basis can remove cross terms and reduce the number of parameters to determine.Source: §1 · p. 2
  • Approximating gradients with the tested surrogate models hardly improves the performance of the state-of-the-art derivative-free optimization algorithm.The objective-function derivatives are evaluated for approximation accuracy but are unavailable when solving the optimization problems.Source: §1 · p. 3

2 Best activation function for approximation

This section reviews common activation functions and evaluates them as neural-network surrogates on two CUTEst problem sets. SiLU performs best on testing data across tolerances, while sigmoidal activations are consistently weaker for approximation.

2.2 Numerical experiments

  • The experiments compare ReLU, ELU, SiLU, Sigmoid, and Tanh using neural networks trained to minimize mean squared error on objective-function samples.Testing datasets measure performance on points not used during training.Source: §2.2 · p. 5
  • Performance profiles rank methods by relative convergence effort, with ρs(1) measuring efficiency and large-α values measuring robustness.Source: §2.2 · p. 5
  • The common architecture uses two hidden layers with 4n neurons per layer, 300 Adam epochs, dynamic learning-rate reduction, and normalized samples from a unit ball around the initial point.Training uses (n + 1)(n + 2)/2 points, while testing uses 0.2(n + 1)(n + 2)/2 points.Source: §2.2 · p. 6
  • SiLU achieves the best testing-dataset performance for both tolerances, followed by ELU and ReLU, across the two CUTEst problem sets.ReLU performs best on the 38-problem training set, whereas SiLU and ELU outperform it on the 53-problem training set.Source: Figure 1 · p. 7, §2.2 · p. 8, Figure 2 · p. 8

2.1 Review of popular activation functions in machine learning

  • ReLU, ELU, and SiLU outperform Sigmoid and Tanh in efficiency and robustness, while sigmoidal activations suffer from flat regions and vanishing gradients.Source: §2.1 · p. 4, §2.2 · p. 8

3 The limitation of neural nets for approximation

This section compares polynomial interpolation/regression, activation-function bases, and neural networks for approximating objective values, gradients, and Hessians. Activation-function bases can reduce quadratic model size, while neural networks remain weak for curvature approximation.

3.1 Review of polynomial interpolation and regression

  • Polynomial interpolation and regression use sample sets whose size determines whether models are underdetermined, determined, or overdetermined, with quadratics capturing curvature beyond linear models.Quadratic interpolation is determined at (n + 1)(n + 2)/2 samples, while regression uses more samples and underdetermined interpolation uses fewer.Source: §3.1 · pp. 10–11

3.2 The use of an activation function as a basis function

  • Activation-function bases that remove quadratic cross terms achieved the most accurate function, gradient, and Hessian approximations on 38 problems, while radial basis functions were slightly worse for Hessians.The reduced basis has 3n + 1 degrees of freedom, fewer than the (n + 1)(n + 2)/2 terms required for determined quadratic interpolation.Source: §3.2 · pp. 12–13, Figure 5 · p. 14
  • Across 53 problems, reduced activation-function bases performed similarly to the natural and cross-term bases, suggesting that quadratic cross terms may be unnecessary even with negative curvature.The conclusion was unchanged when evaluations used points between the origin and the initial point.Source: Figure 6 · p. 14, §3.2 · p. 15

3.3 The use of neural networks for approximation

  • Neural networks were evaluated on matched datasets using five activations and the same function-value, gradient, and Hessian error metrics as interpolation/regression models.Training used (n + 1)(n + 2)/2 randomly generated points in a unit ball around each CUTEst initial point.Source: §3.3 · p. 15, Figure 7 · p. 16, Figure 8 · p. 16
  • Neural networks approximated function values and gradients most accurately with ReLU variants, but no activation captured Hessian information accurately except that SiLU performed best.Sigmoidal activations often produced nearly zero gradients because of vanishing gradients, whereas ReLU’s curvature limitation follows from its piecewise-linear form.Source: §3.3 · pp. 15, 17, §3.2 · p. 15

4 The limitation of neural nets for optimizing without derivatives

This section evaluates surrogate-based gradient approximations within the FLE derivative-free optimization framework and finds that they do not improve the default method overall.

4.1 The use of a surrogate model for optimizing without derivatives

  • The surrogate-based method replaces finite-difference gradients requiring n additional evaluations with gradients from interpolation, regression, or neural-network models trained on collected evaluations.The model is built from the current dataset, whose accuracy can improve as more points are collected.Source: §4.1 · pp. 18–19
  • Line-search samples can be poorly distributed for interpolation or regression models, whereas neural-network surrogates may require additional points to approximate the objective accurately.A direct-search step can collect more evenly distributed points to address both limitations.Source: §4.1 · p. 19

4.2 Numerical experiments

  • The experiments compare FLE against FLE-S using polynomial and radial-basis surrogates plus ReLU and SiLU neural networks across two test-problem sets.Neural networks use all collected points for training, while interpolation or regression models use selected local samples; SiLU was chosen because it captured curvature information best among the tested neural activations.Source: §4.2 · pp. 20–21
  • FLE-S did not outperform the default FLE method with any tested surrogate, and neural-network performance deteriorated under the stricter convergence test.For larger problems with τ = 10^-2, neural-network FLE-S sometimes became more efficient but still lacked FLE's robustness; with τ = 10^-5, efficiency and robustness significantly deteriorated.Source: §4.2 · p. 21

5 Concluding remarks

Across two nonlinear optimization test sets, SiLU was the best activation function, while neural networks were competitive for function-value and gradient approximation but weak for Hessians and optimization improvement.

  • SiLU delivered the best activation-function performance on both test sets, with superior testing efficiency and robustness.The evaluation used performance profiles on sets of 38 and 53 nonlinear optimization problems.Source: §5 · p. 21
  • Activation-function composition with the natural quadratic basis improved function-value and gradient approximations without requiring cross terms.This produced models with fewer parameters to determine.Source: §5 · p. 21
  • Neural networks produced highly inaccurate Hessian approximations for most activations, except SiLU.ReLU and its variants provided better function-value and gradient approximations, but Hessian accuracy remained poor.Source: §5 · pp. 21, 23
  • Surrogate-based gradient approximations did not significantly improve the default FLE method, while neural-network surrogates were less robust but more efficient on larger problems.Experiments replacing the objective function in line searches or adding surrogate minimization also did not perform well.Source: §5 · p. 23

A Appendix: Test Problems from CUTEst

The appendix defines two CUTEst test-problem collections used throughout the study: one with 38 problems and another with 53 problems.

B Appendix: Full-Low Evaluation Methods

The appendix describes directional and model-based derivative-free methods and details the FLE method's function-search and low-evaluation iterations.

Loading 2311.12253v1…