TL;DR
Standard Bayesian Optimization (BO) is highly effective at finding global optima but often ignores the physical cost of moving between sample points, resulting in erratic and expensive exploration paths. SnAKe (Sequential Bayesian Optimization via Adaptive Connecting Samples) treats optimization as a path-finding problem. By combining a Traveling Salesman approach with a novel "point deletion" heuristic, SnAKe minimizes movement costs while efficiently locating the global maximum.
The Cost of Movement in Bayesian Optimization
In classical Bayesian Optimization, we typically assume that evaluating a function $f(x)$ incurs a uniform cost, regardless of the previously sampled location. However, in physical environments—such as chemical laboratories or environmental monitoring—this assumption breaks down.
Consider a microfluidic reactor: changing the temperature from $20^\circ C$ to $100^\circ C$ requires a significant stabilization period before a reliable measurement can be taken. That wait time represents a tangible cost. Similarly, an autonomous boat monitoring lake pollution incurs fuel and time costs to travel between distant coordinates.
Current BO algorithms are generally "myopic." They select the single best next point to sample based on expected improvement, without considering the travel distance required to get there. This leads to erratic, high-cost paths. Furthermore, real-world experiments are often asynchronous, requiring practitioners to decide on the next few experiments before the results of the current ones are fully processed.
Methods: Planning Paths, Not Just Points
The authors introduce SnAKe, an algorithm that shifts the focus from picking isolated points to planning continuous paths. The algorithm operates through four core steps:
- Batch Generation: Instead of picking a single point, SnAKe uses Thompson Sampling to generate a large batch of promising candidate points based on the current surrogate model (a Gaussian Process).
- Path Planning (The TSP Step): It treats these candidate points as cities in a Traveling Salesman Problem (TSP). By solving the TSP, the algorithm finds the shortest (cheapest) path that visits all these high-value locations.
- $\epsilon$-Point Deletion: This is the algorithm's "secret sauce." If SnAKe simply re-sampled and re-pathed every time it received new data, it would get stuck in local optima because nearby points are "cheap" to revisit. To prevent this, SnAKe deletes points from its plan that fall within a distance $\epsilon$ of already-queried locations. This forces the algorithm to finish exploring a local area and move toward new, unexplored territory.
- Asynchronous Handling: Because the algorithm plans an entire path in advance, it naturally accommodates delays. If an observation isn't ready, the "snake" simply continues along its pre-planned route.
The authors also propose $\ell$-SnAKe, a parameter-free variant where the deletion distance $\epsilon$ is automatically scaled based on the length scales of the Gaussian Process kernel.
Experimental Datasets
The researchers evaluated SnAKe across three distinct benchmark categories:
- Synthetic Functions: Standard BO stress tests, including Branin2D, Hartmann (3D & 6D), and Ackley4D.
- SnAr Chemistry Benchmark: A real-world-inspired simulator for a nucleophilic aromatic substitution reaction, where altering temperature and concentrations incurs significant time costs.
- Ypacarai Lake: A multi-objective problem involving autonomous boats tracking contamination sources in a Paraguayan lake, where cost is strictly defined by physical distance traveled.
Key Insights and Results
- The "Snake" Heuristic: The algorithm literally grows and moves through the search space like the classic arcade game Snake, "eating" high-value samples while maintaining an efficient, continuous path.
- Decoupling Selection from Ordering: Standard "cost-aware" BO attempts to bake travel cost directly into the acquisition function (e.g., Expected Improvement per unit cost). SnAKe argues it is more effective to select a set of promising points first, and then determine the optimal order to visit them. This makes SnAKe invariant to how costs are scaled relative to the objective function.
- Cost Efficiency: In the SnAr chemistry benchmark, SnAKe achieved the same level of optimization as standard BO but consumed only 45-55% of the total cost.
- Regret Performance: Despite prioritizing low-cost paths, SnAKe’s "regret" (proximity to the true maximum) remains highly competitive with—and often outperforms—state-of-the-art cost-aware algorithms.
- Robustness to Delays: SnAKe maintained high performance even with significant asynchronous delays ($t_{delay} = 25$), a scenario where traditional methods struggle to maintain batch diversity.
Limitations and Future Work
While SnAKe offers a powerful new paradigm for physical BO, it faces a few challenges:
- Computational Complexity: Solving the TSP is NP-hard. While the authors employ heuristics like Simulated Annealing and "coarsening" (reducing the number of points in distant areas), scaling to very high-dimensional spaces or massive batch sizes remains computationally intensive.
- Theoretical Bounds: The paper provides strong empirical evidence and "escape analysis" for local optima, but establishing rigorous theoretical regret bounds for this specific path-based approach is an open area for future research.
- Multi-Agent Expansion: The authors suggest that future iterations could involve multiple "snakes" (e.g., parallel robots or reactors) working collaboratively to map and optimize a space even faster.
Summary updated