Abstract
This paper describes a simple, but effective sampling method for optimizing and learning a discrete approximation (or surrogate) of a multi-dimensional function along a one-dimensional line segment of interest. The method does not rely on derivative information and the function to be learned can be a computationally-expensive "black box" function that must be queried via simulation or other means. It is assumed that the underlying function is noise-free and smooth, although the algorithm can still be effective when the underlying function is piecewise smooth. The method constructs a smooth surrogate on a set of equally-spaced grid points by evaluating the true function at a sparse set of judiciously chosen grid points. At each iteration, the surrogate's non-tabu local minima and maxima are identified as candidates for sampling. Tabu search constructs are also used to promote diversification. If no non-tabu extrema are identified, a simple exploration step is taken by sampling the midpoint of the largest unexplored interval. The algorithm continues until a user-defined function evaluation limit is reached. Numerous examples are shown to illustrate the algorithm's efficacy and superiority relative to state-of-the-art methods, including Bayesian optimization and NOMAD, on primarily nonconvex test functions.
Introduction
In many scientific and engineering domains, optimization problems involve "black-box" functions where the underlying mathematical form is unknown or too complex to differentiate. Each evaluation of such a function—often a high-fidelity simulation—is computationally expensive, necessitating algorithms that can find global optima with minimal queries. While high-dimensional optimization is a major research focus, the one-dimensional case, or "line search," remains critical, particularly for nonconvex functions where traditional methods like golden section search fail by getting trapped in local minima.
Methodology
The LineWalker algorithm operates on a discretized grid $\mathcal{I} = \{1, \dots, N\}$ of points along a line segment. It iteratively builds and refines a surrogate model $\hat{\mathbf{f}}$ to guide its search for the global minimum.
Surrogate Construction
LineWalker constructs a smooth approximation by solving a penalized least-squares problem. The objective is to find a vector $\hat{\mathbf{f}}$ that minimizes the error at sampled points while maintaining smoothness through first- and second-derivative penalties, controlled by parameters $\alpha$ and $\mu$. This results in a system of linear equations that can be solved efficiently, even for large $N$.
Sampling Strategy: Extrema Hunting and Tabu Search
The algorithm's core innovation lies in its sampling logic. Unlike standard methods that focus solely on predicted minima, LineWalker identifies all local minima and maxima ($\mathcal{S}^{\text{max}} / \mathcal{S}^{\text{min}}$) of the current surrogate as potential sampling candidates. Maxima are included because they provide high information gain regarding the function's overall landscape.
To prevent over-sampling and ensure global coverage, LineWalker employs Tabu Search principles. It maintains lists of recently sampled regions, forbidding new samples within a certain distance ($G_i^{\text{short}}, G_i^{\text{long}}$) unless an "aspiration criterion" (a significant improvement in the objective) is met.
Exploration vs. Exploitation
If no non-tabu extrema are available, the algorithm defaults to an exploration step, sampling the midpoint of the largest unexplored interval on the grid. This ensures that no part of the search space remains unexamined for too long.
Experimental Evaluation
LineWalker was benchmarked against a suite of 20 challenging one-dimensional test functions, including Ackley, Rastrigin, and Schwefel. These functions represent various topographies such as periodic oscillations, steep ridges, and bowl-shaped valleys. The performance was compared against state-of-the-art derivative-free optimization (DFO) tools:
- MATLAB
bayesopt: A standard Bayesian Optimization implementation. - NOMAD: A leading mesh adaptive direct search solver.
- ALAMO: A tool specifically designed for surrogate modeling.
Results and Discussion
Experimental results demonstrate that LineWalker is highly effective for both optimization and surrogate construction.
- Optimization Performance: LineWalker-full successfully solved 18 out of 20 test instances within a strict budget of 50 evaluations. It outperformed NOMAD and was highly competitive with Bayesian Optimization in finding global minima.
- Surrogate Accuracy: Using the Total Absolute Scaled Error (TASE) metric, LineWalker's surrogates were consistently more accurate than those produced by Bayesian Optimization. While Bayesian methods often smoothed over local peaks, LineWalker's "extrema hunting" captured the full topography of the functions more faithfully.
- Computational Efficiency: The overhead of the algorithm is minimal. For a grid of 5,000 points, each iteration completes in approximately 0.5 seconds on standard hardware, making it ideal for scenarios where the black-box function evaluation is the primary bottleneck.
Conclusion
LineWalker offers a robust and efficient alternative for one-dimensional black-box optimization. By leveraging discretization and tabu-search-inspired sampling of both minima and maxima, it achieves a superior balance between exploration and exploitation. While currently limited to 1D noise-free functions, its success suggests that discretization-based surrogate methods are a powerful tool for complex line search problems. Future work will focus on extending these principles to higher dimensions and handling noisy function evaluations.
Summary updated