44.03.10 · optimization-control / 03-unconstrained-optimization

Derivative-Free Optimization: Nelder-Mead and Model-Based Trust-Region Methods

shipped3 tiersLean: none

Anchor (Master): Conn, Scheinberg & Vicente 2009 Introduction to Derivative-Free Optimization (SIAM/MPS) Ch. 2-6 (polynomial interpolation and regression models, poisedness and -poisedness, error bounds for fully linear and fully quadratic models, the model-based trust-region algorithm with criticality and geometry-improvement steps and its global convergence) and Ch. 7 (generalized pattern search / MADS convergence via the Clarke derivative); Audet & Hare 2017 Derivative-Free and Blackbox Optimization (Springer) Ch. 7-8 (MADS, the Clarke stationarity result)

Intuition Beginner

Sometimes you want to minimise a function but you cannot ask it for its slope. Maybe the function is the output of a long simulation, or a physical experiment, or a piece of legacy code nobody can differentiate by hand. You hand it a set of input numbers and it hands you back a single value, and that is all you get. The slope, which gradient methods lean on completely, is simply not on the menu.

You could try to estimate the slope by nudging each input a little and seeing how the output changes. That works when the function is smooth and clean. But if the output is noisy — the simulation has random jitter, the measurement has error — those tiny nudges get swamped by the noise, and your estimated slope points in a random direction. So the honest situation is: no reliable slope, only function values, sometimes noisy and often expensive to get.

Derivative-free optimisation is the family of methods built for exactly this. The idea is to learn about the landscape only from the values you can sample, and to spend those samples wisely because each one costs you. Two broad strategies appear. One keeps a small cluster of sample points and crawls it downhill by replacing its worst member, like an amoeba feeling its way along the floor of a valley. The other fits a smooth approximate bowl through the sample points and minimises the bowl instead, trusting it only nearby — the same caution you would use with any guess built from limited data.

Visual Beginner

Picture three points marking a triangle on a hilly floor, one at each corner. You measure the height at all three. The highest corner is the one you most want to get rid of, so you flip it across the line joining the other two — reflecting it to the opposite side, where the ground is likely lower. If the new spot is great, you push a little further in that direction; if it is still bad, you pull the corner partway back instead. If nothing helps, you shrink the whole triangle toward its best corner and try again. Over many such moves the triangle tumbles and contracts its way toward a low point.

move when it is used what it does to the simplex
reflect first try each step flips the worst vertex across the others
expand reflection found the new best stretches further in that direction
contract reflection did not help pulls the worst vertex partway in
shrink even contraction failed shrinks everything toward the best vertex

The takeaway: with no slope to follow, a handful of sampled heights and a few simple geometric moves still let you walk downhill — slowly, and with no promise of reaching the true bottom, but using only the values you can actually get.

Worked example Beginner

Take the bowl and one reflection step of the simplex method. Start with the triangle whose corners are

Measure the heights: , , . The best corner is (height ), the middle is (height ), and the worst is (height ). We will try to replace the worst corner .

First find the centroid of the other two corners, and :

Now reflect the worst corner through this centroid. The reflected point is , that is one full step from to the far side of the centroid:

Measure its height: .

Compare. The reflected height is lower than the current best , so reflection did not merely help — it gave the new best corner. The simplex method's rule says: when the reflection is the new best, try expanding further. But even without expanding, we already replace the worst corner with , and the new triangle has corners , , .

What this tells us: by flipping the worst corner across the other two and measuring one new height, the triangle moved its worst vertex from height all the way to height , the exact bottom of this bowl — and we never computed a single slope, only four function values.

Check your understanding Beginner

Formal definition Intermediate+

Let be the objective, accessible only through a zeroth-order oracle that returns (possibly with bounded noise) and never . Derivative-free optimization (DFO) seeks a (local) minimiser of using only sampled values. Three families are standard.

Nelder-Mead simplex method. Maintain a non-degenerate simplex of vertices , ordered so . Let be the centroid of the best vertices. With reflection , expansion , and contraction coefficients (classically ) and shrink factor , one iteration computes the reflected point and, by comparing to the ordered vertex values, either accepts , computes an expanded point , computes a contracted point , or shrinks every vertex toward via . The method is a heuristic: no general convergence guarantee holds, and the McKinnon example exhibits a strictly convex on which it converges to a nonstationary point.

Directional direct search (GPS / MADS). A finite set is a positive spanning set if every is a nonnegative combination with ; equivalently the positively span . Generalized pattern search (GPS) keeps a current iterate and a mesh of size parameter ; a poll step evaluates for (a positive spanning set scaled to the mesh) and accepts any giving (simple or sufficient) decrease, otherwise shrinks . Mesh-adaptive direct search (MADS) lets the set of poll directions become asymptotically dense in the unit sphere.

Model-based trust-region DFO. On a sample set build an interpolation (or regression) model by requiring . In a polynomial basis the coefficients solve with sample matrix . The set is poised when is nonsingular, and -poised on a region when the Lagrange polynomials (defined by ) satisfy . The model is then minimised over a trust region as in 44.03.02. The symbols (poll set), (mesh / trust radius), (sample matrix), (Lagrange polynomial), (poisedness constant), (Clarke derivative), and (model) are recorded in _meta/NOTATION.md.

Counterexamples to common slips Intermediate+

  • "Nelder-Mead is a convergent optimisation algorithm." It is a heuristic. On the strictly convex McKinnon family the standard Nelder-Mead simplex collapses into a degenerate shape and converges to a point with nonzero gradient. It is robust and popular but carries no general guarantee; the convergence theory of DFO lives with the direct-search and model-based methods, not Nelder-Mead.

  • "Any directions that span suffice for a poll." Spanning is not enough: a basis spans but does not positively span, so polling only can miss every descent direction. A positive spanning set needs at least directions (e.g. ) or the coordinate set , guaranteeing some poll direction is descent at any nonstationary point.

  • "More sample points always give a better model." Accuracy is governed by the geometry of the sample set, not its size. A sample set with points nearly collinear is ill-poised: is near-singular, is huge, and the model gradient can be arbitrarily wrong even with many points. Controlling -poisedness, via geometry-improvement steps, is what makes the model trustworthy.

  • "Finite differences are just a slower gradient method." Under noise they can fail outright: a difference quotient with noise of size has error , minimised at with irreducible error . Implicit filtering exploits this by shrinking only as the iterates settle, treating the noise floor explicitly rather than pretending the gradient is exact.

Key theorem with proof Intermediate+

The signature result underpinning model-based DFO is the fully-linear error bound: a model built on a -poised sample set approximates and its gradient to an accuracy that scales with the trust radius, with a constant controlled by alone. This is the inequality that replaces the exact gradient in the convergence theory: wherever a gradient method uses , model-based DFO uses and pays an error proportional to .

Theorem (fully-linear model from a -poised set). Let be continuously differentiable with -Lipschitz gradient on an open set containing the ball , and let be -poised for linear interpolation on . Let be the linear interpolation model, . Then there are constants depending only on , , and such that for all ,

Proof. Center coordinates at and write , so . Interpolation gives for each . Taylor's theorem 02.05.05 with the -Lipschitz gradient gives, for each ,

Subtracting the interpolation identity from the Taylor identity yields, for ,

Collect these into the matrix whose rows are , so with . The rows of have norm , and -poisedness for linear models is equivalent to a bound on the (scaled) inverse, where depends only on : poisedness is exactly nonsingularity of , and the Lagrange-polynomial bound controls the conditioning of . Hence

For a general , . For the value bound, . The first bracket is by Taylor, the second is , and the third is controlled by evaluating the interpolation identity at ; combining gives .

Bridge. This bound is the foundational reason model-based DFO converges without ever seeing a derivative: it certifies that on a geometrically well-placed sample set the model gradient tracks the true gradient with error , so a step that produces Cauchy decrease for the model 44.03.02 produces real decrease for up to a controllable error — this is exactly the role the exact gradient plays in line-search theory 44.03.01, with standing in for the (now unavailable) gradient evaluation. The central insight is that geometry replaces differentiation: the single scalar that measures how well the sample points are spread plays the part that the Lipschitz constant plays in gradient methods, and the geometry-improvement step that keeps bounded is the price paid for working blind. The bound builds toward the global-convergence theorem of the Advanced results, where the criticality step shrinks precisely so that certifies is small, and it appears again in the contrast with positive-spanning direct search, whose convergence instead generalises the gradient through the Clarke derivative rather than through an interpolation model. Putting these together, the two halves of DFO — sampling geometry and nonsmooth calculus — are the two ways to recover stationarity certificates once the gradient is gone; the bridge is that both reduce, in the smooth case, to the same statement that .

Exercises Intermediate+

Advanced results Master

The fully-linear bound certifies model accuracy; the results below build the convergence theory of derivative-free methods on top of it — the global convergence of the model-based trust-region algorithm, the Clarke-stationarity convergence of mesh-adaptive direct search through nonsmooth calculus, the geometry-management machinery that keeps bounded, and the implicit-filtering treatment of noise.

Theorem 1 (global convergence of model-based trust-region DFO). Let be bounded below and continuously differentiable with -Lipschitz gradient. Run the trust-region algorithm in which, at each iteration, the model is fully linear on with uniform constants (enforced by geometry-improvement steps), a criticality step shrinks until when is small, the step satisfies the fraction-of-Cauchy-decrease condition of 44.03.02, and the ratio test accepts or rejects and updates . Then , and with the stronger acceptance rule, . The proof mirrors the derivative-based trust-region argument: the Cauchy decrease in the model, transferred to via the fully-linear bound (an correction to ), forces for small so the radius cannot collapse while stays bounded away from zero, contradicting boundedness below [Conn, A. R., Scheinberg, K. & Vicente, L. N. — Introduction to Derivative-Free Optimization].

Theorem 2 (Clarke stationarity of MADS). Let be Lipschitz near a limit point of the sequence of mesh-adaptive direct-search iterates, and let the set of normalized poll directions used infinitely often be dense in the unit sphere (the defining property of MADS, which GPS lacks). Then is Clarke stationary: the generalized directional derivative

satisfies for every direction . When is strictly differentiable at , this collapses to . The mechanism is the failed poll: if is an unsuccessful poll center with mesh size along a refining subsequence, then for the poll directions , and taking limits along directions converging to any gives ; density of the directions extends this to all . Simple decrease suffices on a rational mesh; for general meshes a sufficient-decrease condition with a forcing function is used [Kolda, T. G., Lewis, R. M. & Torczon, V. — Optimization by Direct Search: New Perspectives on Some Classical and Modern Methods].

Theorem 3 (poisedness control and the geometry-improvement step). For any region and any , there is an algorithm that, given a sample set , produces in finitely many model evaluations a -poised set on differing from in at most one point per call. The construction works through the Lagrange polynomials: if some , replace by a maximizer , which strictly increases by the factor ; iterating drives the Lagrange polynomials below . The bound then controls the fully-linear constants of the Key theorem, so a uniform bound on across iterations is exactly the uniform model accuracy that Theorem 1 requires. This decouples the optimization progress (the trust-region step) from the geometry maintenance (the poisedness step), the two being interleaved by the criticality test [Conn, A. R., Scheinberg, K. & Vicente, L. N. — Introduction to Derivative-Free Optimization].

Theorem 4 (implicit filtering for noisy objectives). Suppose the oracle returns with on the region of interest and smooth. Implicit filtering computes a forward-difference (or central-difference) gradient with stencil width and takes a (projected) quasi-Newton step, reducing only when the line search along fails or the difference gradient falls below a multiple of . By Exercise 6 the difference gradient has error , so for above the noise scale it is a usable descent direction; shrinking as the iterates settle tracks the descending noise floor. The method converges to a point where , the irreducible accuracy set by the noise — the honest ceiling for a finite-difference method on a noisy objective, and the reason model-based and direct-search methods, which never differentiate, are preferred when is large relative to the curvature scale [Nocedal, J. & Wright, S. J. — Numerical Optimization (2nd ed.)].

Synthesis. Derivative-free optimization is one problem — minimise from values alone — answered by three strategies, and the foundational reason the rigorous ones converge is that each manufactures a stationarity certificate to replace the missing gradient. The central insight is that there are two such certificates: the model-based methods build a fully-linear model whose gradient tracks with error , so the trust-region machinery of 44.03.02 transfers verbatim once -poisedness is maintained; the direct-search methods instead poll a positive spanning set, and a failed poll on a refining mesh is a certificate of Clarke stationarity, the nonsmooth generalisation of . This is exactly the duality between geometry and nonsmooth calculus: a bounded poisedness constant is dual to a dense set of refining poll directions, and both reduce, in the smooth case, to .

The criticality step is the bridge inside the model-based method — it refines until a small model gradient provably implies a small true gradient, generalising the radius management of 44.03.02 to the case where the gradient is itself estimated. Nelder-Mead sits outside this theory as a robust heuristic with no guarantee, and implicit filtering occupies the noisy middle ground where finite differences survive only down to the floor. Putting these together, the chapter's gradient-based globalisation — the Wolfe line search of 44.03.01 and the Cauchy-decrease trust region of 44.03.02 — is recovered without derivatives, the price being model evaluations spent on geometry rather than on differentiation, and the convergence theorem appears again wherever an optimisation method must certify stationarity from incomplete first-order information.

Full proof set Master

Proposition 1 (positive spanning sets contain a descent direction). If positively spans and , then for some . Consequently if , some is a descent direction at .

Proof. Write with , possible by positive spanning. Then . If every the sum would be , contradicting positivity; so for some . Taking gives , a descent direction.

Proposition 2 (fully-linear error bound, -poised linear model). Under the hypotheses of the Key theorem there are depending only on with and on .

Proof. As in the Key theorem. Centering at , the interpolation and Taylor identities give with rows of equal to and . -poisedness bounds , so ; extending to by the -Lipschitz gradient gives the gradient bound with . The value bound follows by writing as the Taylor remainder plus the gradient-error term plus the constant-fit error, each .

Proposition 3 (criticality certificate). If is fully linear on with constant and the criticality step enforces , then .

Proof. From Proposition 2 at , . The triangle inequality gives , and rearranging yields the claim.

Proposition 4 ( global convergence of model-based DFO). Let be bounded below and with -Lipschitz gradient, the models uniformly fully linear, the steps satisfying the fraction-of-Cauchy-decrease condition with constant , and . Then .

Proof sketch (full argument in Conn-Scheinberg-Vicente Ch. 10). Suppose for all large . By Proposition 3 the criticality step keeps , so the predicted reduction is . The fully-linear value bound gives . Hence as , so there is with whenever ; the radius-update rule then keeps for all large . Each accepted step reduces by at least , and infinitely many such reductions drive , contradicting boundedness below. Therefore .

Proposition 5 (geometry improvement increases the determinant). Let be poised on with Lagrange polynomials , and suppose at some index . Replacing by yields with .

Proof. The Lagrange polynomials satisfy , so by Cramer's rule the ratio of determinants when is replaced by any point is (expanding the determinant along the changed row, the cofactor structure gives exactly the -th Lagrange polynomial evaluated at the new point). Choosing multiplies by . Iterating over indices with oversized Lagrange polynomials monotonically increases , which is bounded above on the compact , so the process terminates with all , i.e. a -poised set.

Connections Master

  • Line-search methods and the Wolfe conditions 44.03.01 are the derivative-based template that derivative-free optimization reconstructs without a gradient: the sufficient-decrease and curvature conditions that globalise a descent direction there reappear as the simple-decrease and sufficient-decrease conditions of direct search, and the angle-condition guarantee — that the search direction stays bounded away from orthogonality to — is precisely what a positive spanning set enforces structurally, since one of its members is always a descent direction (Proposition 1). The Zoutendijk summability that powers line-search convergence is replaced, in the smooth case, by the failed-poll certificate of Clarke stationarity.

  • Trust-region methods, the Cauchy point, and the dogleg step 44.03.02 are the engine the model-based branch runs on directly: the derivative-free trust-region algorithm is the trust-region algorithm of that unit with the exact Taylor model replaced by an interpolation model on a -poised sample set, and the Cauchy sufficient-reduction bound and ratio test carry over verbatim. What is new is the criticality step and the geometry-improvement step, which manage the model gradient in place of the exact gradient; the fully-linear bound is the single inequality that lets the convergence proof of 44.03.02 proceed unchanged.

  • Finite-difference and automatic differentiation 44.03.08 is the contrasting approach this unit sets itself against: where that unit estimates the gradient by differencing (or computes it exactly by AD on differentiable code), derivative-free optimization is the regime where neither is available — AD cannot reach black-box or legacy code, and finite differences fail under noise with the irreducible floor of Exercise 6. Implicit filtering is the bridge between the two: it uses finite differences but shrinks the stencil only as the iterates settle, treating the noise floor explicitly rather than assuming the difference gradient is exact.

  • Multivariable Taylor expansion and the test for extrema 02.05.05 supplies the analytic core of the fully-linear bound: the model error is the Taylor remainder of controlled by the Lipschitz constant of its gradient, and the poisedness condition is exactly what makes the linear system relating interpolation data to that remainder invertible with a controlled inverse. The stationarity certificate that derivative-free methods drive toward, , is the first-order necessary condition for an extremum established there.

Historical & philosophical context Master

The simplex method for function minimisation — distinct from Dantzig's simplex method for linear programming — was introduced by John Nelder and Roger Mead in 1965, building on an earlier simplex idea of Spendley, Hext, and Himsworth in 1962 [Nelder-Mead 1965]. Its robustness and the fact that it needs only function values made it one of the most widely used optimisation routines in science and engineering, despite the absence of a convergence proof. Ken McKinnon in 1998 settled the theoretical question by exhibiting a family of strictly convex functions on which the standard Nelder-Mead iteration converges to a nonstationary point, confirming that the method is a heuristic [McKinnon 1998].

The convergent theory of derivative-free methods developed along two lines. The pattern-search idea — polling a fixed geometric pattern of directions — goes back to Hooke and Jeeves in 1961 and to coordinate search, and was given a rigorous convergence framework by Virginia Torczon in 1997 under the name generalized pattern search, with the positive-spanning-set structure made central by the survey of Kolda, Lewis, and Torczon in 2003 [Kolda-Lewis-Torczon 2003]. Charles Audet and John Dennis in 2006 introduced mesh-adaptive direct search (MADS), whose asymptotically dense poll directions yield the Clarke-stationarity guarantee that GPS cannot reach [Audet-Dennis 2006]. The model-based branch, in which a quadratic is interpolated on a controlled sample set, was driven by M. J. D. Powell through the 1990s and 2000s in his UOBYQA, NEWUOA, and BOBYQA solvers, and the poisedness theory and convergence analysis were systematised by Andrew Conn, Katya Scheinberg, and Luis Vicente in their 2009 monograph [Conn-Scheinberg-Vicente 2009], the standard reference for the field.

Bibliography Master

@book{NocedalWright2006dfo,
  author    = {Nocedal, Jorge and Wright, Stephen J.},
  title     = {Numerical Optimization},
  edition   = {2},
  series    = {Springer Series in Operations Research and Financial Engineering},
  publisher = {Springer},
  year      = {2006}
}

@book{ConnScheinbergVicente2009,
  author    = {Conn, Andrew R. and Scheinberg, Katya and Vicente, Luis N.},
  title     = {Introduction to Derivative-Free Optimization},
  series    = {MPS-SIAM Series on Optimization},
  publisher = {SIAM},
  year      = {2009}
}

@article{NelderMead1965,
  author  = {Nelder, John A. and Mead, Roger},
  title   = {A Simplex Method for Function Minimization},
  journal = {The Computer Journal},
  volume  = {7},
  number  = {4},
  year    = {1965},
  pages   = {308--313}
}

@article{McKinnon1998,
  author  = {McKinnon, Ken I. M.},
  title   = {Convergence of the Nelder-Mead Simplex Method to a Nonstationary Point},
  journal = {SIAM Journal on Optimization},
  volume  = {9},
  number  = {1},
  year    = {1998},
  pages   = {148--158}
}

@article{KoldaLewisTorczon2003,
  author  = {Kolda, Tamara G. and Lewis, Robert Michael and Torczon, Virginia},
  title   = {Optimization by Direct Search: New Perspectives on Some Classical and Modern Methods},
  journal = {SIAM Review},
  volume  = {45},
  number  = {3},
  year    = {2003},
  pages   = {385--482}
}

@article{AudetDennis2006,
  author  = {Audet, Charles and Dennis, J. E., Jr.},
  title   = {Mesh Adaptive Direct Search Algorithms for Constrained Optimization},
  journal = {SIAM Journal on Optimization},
  volume  = {17},
  number  = {1},
  year    = {2006},
  pages   = {188--217}
}

@article{Torczon1997,
  author  = {Torczon, Virginia},
  title   = {On the Convergence of Pattern Search Algorithms},
  journal = {SIAM Journal on Optimization},
  volume  = {7},
  number  = {1},
  year    = {1997},
  pages   = {1--25}
}