arXiv:2608.24963cs.LGAug 2026

Manuscript Offprint

arXiv:2608.24963

Why and When Neural Networks Improve Local Approximation in Optimization

Chengkuo Bian, Pengcheng Xie

Abstract

Published experience with neural surrogates in derivative-free optimisation is contradictory: the same family of models that cuts the evaluation count of one solver leaves another unchanged, or makes it worse. We show that the contradiction dissolves once three factors are stated, and that these, rather than the fit accuracy a training curve reports, are what delimit when a learned local model pays. Role: a surrogate that proposes candidates the true objective must still approve helps, while one that replaces a gradient the solver depends on hurts. Radius: a model fitted to an optimisation path is reliable only inside a bounded neighbourhood, and its error neither vanishes as that neighbourhood shrinks nor survives its growth. Room: a surrogate can only accelerate progress the base method is still able to make. We formalise radius-aware local generalisation, relate it to the classical fully linear condition, and test each factor with the surrogate class, training pipeline and base method held fixed. Over 117 benchmark instances safeguarded assistance raises the instances solved to high accuracy from 67 to 84 while gradient replacement lowers them to 65; removing the gradient term from the training loss cuts surrogate acceptance from 0.703 to 0.148; and 1000 paired comparisons over ten noise levels show no noise threshold, only a base method that stops early. The same factors bound the gain: a model-based trust-region solver, which leaves little room, drops from 88 to 86 when the identical surrogate is attached, and released interpolation software stays ahead at 103, and on a Monte-Carlo inventory model repairing the acceptance interface is worth 10.40 cost units against 0.00 for the surrogate.

Keywords: simulation optimization; derivative-free optimization; surrogate metamodels; neural networks; Sobolev training; stochastic oracles; local generalization; data profiles.

1 Introduction

We consider the unconstrained minimization problem

min⁡x∈Rnf(x),(1)\min_{x\in\mathbb{R}^{n}}f(x), \tag{1}

where each value of f comes from a simulation run rather than from a formula, and no derivative is available. This is the standard situation in simulation-based optimisation: a queueing, inventory, agent-based or physics model is executed at a candidate design x, and the resulting performance measure is all the optimiser gets to see. Runs are slow, so the currency of the problem is the number of evaluations. Derivative-free optimisation (DFO) is the branch of the field built for this currency; the monograph of Conn et al. [1] and the surveys [2, 3, 5] cover it.

An optimisation run leaves behind a record: the points visited, their simulated values, the step sizes that worked, and any finite-difference gradients that were paid for along the way. Fitting a cheap metamodel to that record and using it to guide the search is an old idea in the simulation literature, and neural networks are a natural modern choice of metamodel. We should say at the outset where our answer lands, because the title asks two questions and they have different answers. Why a learned model improves local approximation is the easier one: fitting every evaluation the run has already paid for averages away noise that differencing amplifies, and gradient information in the training loss restrains the curvature a value-only fit is free to invent. Both effects are measurable: removing the gradient term from the

*University of California, Berkeley, CA 94720, USA. Email: chengkuobian@gmail.com.

†^{\dagger}Corresponding author. Applied Mathematics and Computational Research Division, Lawrence Berkeley National Laboratory, University of California, 1 Cyclotron Road, Berkeley, CA 94720, USA. Email: pxie@lbl.gov, pxie98@gmail.com.

Why and When NNs Improve Local Approximation

loss cuts the rate at which surrogate steps survive validation by a factor of nearly five. When that better approximation reaches the optimisation is the harder question. Approximation quality is a precondition and not a sufficient one; what delimits whether it converts into fewer evaluations are three factors we identify empirically. Two are properties of the surrounding algorithm: the surrogate's role, and what the base method leaves, separated below into unused headroom and whether its acceptance test still functions. The third, the radius at which the method works, is a property of the fit read at the scale the solver operates on, so it is not independent of approximation quality but is not what a training curve reports either. Where any one fails, a better local model does not become a better optimiser, most sharply on the Monte-Carlo model of Section 9.6. Locating that boundary is the result of this paper rather than a caveat attached to it.

Among DFO methods, model-based trust-region algorithms constitute one of the most successful frameworks. These methods construct local surrogate models and compute trial steps by approximately minimizing the models within trust regions. Classical polynomial interpolation models and their theoretical foundations are well established [1,4,5]. Underdetermined quadratic interpolation, pioneered in Powell's NEWUOA [6] and refined through later model-updating strategies [7], forms the backbone of practical solvers. Finite-difference-based methods offer a complementary line whose practical performance has been reassessed in recent studies [8,9].

Despite these advances, classical model-based approaches face fundamental limitations in high-dimensional settings. Constructing and maintaining polynomial models becomes increasingly expensive due to the growth in the number of parameters, and the quality of interpolation depends critically on the geometry of sample sets. In practice, limited and potentially noisy data lead to fragile models and unreliable steps. These challenges are closely related to the curse of dimensionality and motivate the exploration of richer approximation classes and learning-based surrogates.

Neural networks (NNs) provide a flexible alternative to classical surrogate models. With smooth activation functions, NNs can approximate both function values and gradients while implicitly performing noise smoothing and feature extraction. Recent studies, however, reveal a nuanced picture. Giovannelli et al. show that although NN surrogates can achieve strong approximation accuracy for function values and gradients, they may underperform in capturing second-order information and do not necessarily improve optimization performance when directly replacing finite-difference gradients in quasi-Newton updates [10]. In contrast, Taminiau et al. demonstrate that NNs can significantly improve performance when used in a safeguarded manner, where surrogate-based steps are accepted only if the true objective decreases sufficiently [12]; related learning-augmented designs include the neural-network-accelerated implicit filtering of [13]. These contrasting findings suggest that the effectiveness of NN surrogates depends on how the surrogate is embedded in the algorithm, not on approximation accuracy alone.

From a theoretical perspective, the role of surrogate models in trust-region methods is governed by uniform approximation properties, such as fully linear and fully quadratic conditions [1]. While polynomial models can satisfy these conditions under suitable sampling geometry, it remains less understood when learned surrogates—particularly neural networks—can achieve comparable guarantees. Recent advances in neural approximation theory provide partial insights. For example, objective-value-change and shape-based perspectives offer new ways to characterize local approximation quality beyond classical interpolation error [14]. Additionally, the relationship between interpolation geometry and robustness, including Λ\Lambda-poisedness and data irregularity, has been explored in [15]. These developments indicate that learning-based surrogates should be analyzed through a combination of approximation theory, data geometry, and algorithmic integration.

Another important dimension is scalability and application context. Modern optimization problems often involve large-scale systems, distributed settings, and black-box pipelines, and applications ranging from simulation-based design to privacy-constrained and uncertainty-aware settings impose their own constraints on data access, noise, and computational cost [2]. These trends further motivate the integration of learning-based surrogates into DFO frameworks in a principled and scalable manner.

Main message. This paper is organised around one claim:

Whether an NN surrogate improves a DFO method is determined primarily by (i) the algorithmic role in which the surrogate is embedded, replacement of a core quantity of the base method versus safeguarded assistance, and (ii) whether the method operates within the surrogate's radius of reliable local generalization, with a third factor emerging from the experiments: what the base method leaves undone. Pointwise approximation accuracy alone is a poor predictor of optimization benefit.

The claim explains the disagreement described above. Under replacement, an error in the surrogate goes straight into a quantity the solver acts on, and from there into its search direction and its curvature estimates. Under assistance, the same error is filtered by a test on the true objective, which the surrogate cannot fake. The radius half of the claim is

Why and When NNs Improve Local Approximation

equally concrete: a model fitted to a handful of points collected along an optimisation path is accurate over a bounded region, and a solver working at a larger scale than that region will be misled no matter how well the model fits its training data.

The contributions are these.

  1. Three conditions, each shown necessary. A learned local model improves the optimisation only when its role is assistance rather than replacement, the working radius lies inside the region where it generalises, and the base method has budget left. Two we fail on purpose and watch the benefit go: replacement drops below the base method it was meant to help, 65 against 67; a base method with no room left gains nothing. The third we establish at the level of approximation.

  2. A measured effect and a measured boundary. Over 117 instances safeguarded assistance lifts its base method from 67 to 84 instances solved to high accuracy, a sixth of the benchmark, and the margin grows as the tolerance tightens. Released Py-BOBYQA solves 103 and ends two orders of magnitude lower at the median, so the effect is real and does not reach the state of the art. Extended Wood is the exception, and we report it as an existence result rather than a rule.

  3. ARAS, with a convergence theorem tied to a computable gate. The blended direction is provably descent and the method provably inherits the base method's O(nϵ−2)O(n\epsilon^{-2}) complexity once the blending weight is bounded by (1−θ)/(1+κk)(1-\theta)/(1+\kappa_k), the gate statistic the framework already computes. Running it shows the blended step costs more than it returns, which is what the calibration says from the other side, so the surviving instance of the framework is the one we benchmark.

  4. Radius-aware local generalisation, with elementary uniform error bounds connecting sample coverage and training error to the fully linear condition.

  5. Three self-corrections reported rather than buried: a crossover at n = 64 that was a defect in our own interpolation code, two geometric diagnostics we proposed and refuted, and a network setting used throughout an earlier version that proves undertrained, worth nine instances of 117.

  6. A warning about reference sets. Scoring the surrogate variants against each other puts assistance ahead of a model-based method; adding a released solver reverses the ordering. A Moré–Wild comparison that omits released software measures its own pool.

One caveat belongs in front of all of this rather than buried in the experimental section. This is a mechanistic study, not a solver paper. Every variant we compare shares one network class, one training pipeline and one base method, precisely so that a difference between two of them can be attributed to the mechanism we varied and not to an implementation detail; the price of that design is that none of the variants is tuned to be competitive. That design does not, however, excuse us from asking whether the surrogate's benefit merely repairs a weak base method, so Section 9.2 adds a model-based trust-region solver of the NEWUOA type [1, 6] and answers the question directly. It largely does: the strong solver alone outperforms assistance on the finite-difference method, and attaching the same surrogate to the strong solver adds nothing. We report this because it sharpens the claim rather than weakening it. What a surrogate supplies is progress the base method cannot make on its own, so its value is measured by the gap it closes, not by the model's accuracy.

Two scope decisions follow. Evaluations, not seconds, are the currency: one evaluation is a model run in the setting these experiments are about, so the wall-clock figures we report come from an unoptimised pure-NumPy implementation and locate a break-even oracle cost rather than rank algorithms. And the dimensions are small on purpose: isolating one mechanism at a time means running every variant on every instance, which at n≤16n \leq 16 we can do exhaustively and at n=128n = 128 once.

Sections 2–6 reread the two source studies through the role distinction, Section 7 makes the radius precise, Section 8 gives the embeddings and ARAS, Section 9 the experiments, and Sections 10–11 what follows from them.