When engineers optimize a design using only a fixed log of past experiments, they train a model that predicts a design's score (a "surrogate") and then climb that model's predictions. The climb reliably goes wrong. The optimizer drifts into regions where no data exist, finds places where the surrogate predicts absurdly high scores, and returns designs that fail when built or simulated. This proposal attacks the failure directly. At every optimizer step, it measures how far each candidate design is from the nearest recorded designs, and it forbids the candidate from moving farther from that data than recorded designs are from one another. The obstacle is cost. Exact nearest-neighbor distances in design spaces with thousands of dimensions, recomputed for a whole population of candidates at every step, are expensive. Standard spatial indexes also stop helping in high dimensions.
The idea that makes this cheap is that an optimizer's queries are not random. Each candidate moves by a small, known step. The candidate's previous position is therefore an almost perfect reference point for bounding its new distances to the data, and most distance computations can be skipped while the neighbor answer stays provably correct. The two sentences to tell a colleague are these. First, constrain offline optimizers by an explicit, calibrated distance to the dataset instead of by surrogate pessimism or step-size limits. Second, make that constraint affordable by exploiting the fact that gradient-ascent queries move smoothly, so cached neighbor lists stay valid until a cheap triangle-inequality test says otherwise.
Core Claim
The claim has two parts. The first is that a hard constraint on the $k$-th nearest-neighbor distance to the offline dataset controls surrogate exploitation at least as well as conservative training. Its threshold can also be chosen without querying the true objective, which conservative training cannot offer. The second is that, along optimizer trajectories, this constraint can be enforced exactly while computing only a small fraction of the full-dimensional distances. When an approximate index is used to refresh the cache, its errors push the constraint in the safe direction.
Where This Sits
Offline model-based optimization handles exploitation in three main ways. Conservative training is one. COMs pushes down surrogate predictions on adversarially found designs and then limits optimizer step sizes. PRIME adds a similar out-of-distribution penalty and uses infeasible configurations as negatives. Changing the training target is the second. RaM trains the surrogate to preserve rankings rather than minimize squared error. MATCH-OPT trains it to match gradients along paths between data points, which costs pairwise work, about 1.3 hours in their setup. Staying on a learned data manifold is the third, as in the generative approaches benchmarked in Design-Bench. That benchmark also shows good designs lie on a thin manifold, which blind generative modeling misses.
None of these three asks the most literal question, namely how far the candidate is from any real data point. COMs enforces its trust region through step size along the gradient, not through distance to the dataset. We replace that proxy with the quantity it stands in for.
Two papers motivate the use of neighbor search here. ROMO retrieves nearest offline designs to anchor surrogate predictions in constrained optimization. It shows that heavy conservatism creates fake local optima. It also names retrieval efficiency at scale as an open problem. ROMO uses neighbors to improve the prediction; we use them to bound the search, and we address the efficiency it leaves open. In offline reinforcement learning, PRDC regularizes each policy action toward its nearest dataset state-action pair, using $k$-d trees. Its authors say this approach does not scale to high-dimensional inputs. PRDC is the closest precedent for a point-to-set constraint. Its failure in high dimensions is the constraint we design around.
Three papers supply the efficiency method. TRIM revives triangle-inequality pruning in high dimensions. It does so by using a reference point very close to each data vector, namely its own product-quantization reconstruction. It reports skipping up to 99% of exact distance computations. Our observation is that an optimizer trajectory supplies an even closer reference point for free: the candidate's own previous iterate. CSPG and SymphonyQG cut distance cost inside graph-based approximate search. We use such indexes only to refresh caches, not for every step. All three treat queries as independent, so none exploits trajectory locality, which the file lists as an open problem for spatial indexes.
Research Program
The constraint. Let $d_k(x)$ be the Euclidean distance from design $x$ to its $k$-th nearest neighbor in the offline set $\mathcal{D}$, with features standardized per dimension. The optimizer solves
$$\max_x \hat f(x) \quad \text{subject to} \quad d_k(x) \le \tau,$$
where $\hat f$ is any trained surrogate. We set $\tau$ to a chosen quantile $q$ of the leave-one-out $d_k$ values among the top-scoring fraction of $\mathcal{D}$. In plain terms, a candidate may sit as far from the data as good recorded designs sit from each other, and no farther. This makes $\tau$ a quantity measured from the data, not a free penalty weight. Only $q$ remains to choose, and the experiments test whether $q$ transfers across tasks.
The update. We enforce the constraint by projected gradient ascent. When a step would violate it, we move the candidate back along the direction toward its current $k$ neighbors. That requires knowing which points those neighbors are, not only their distances.
Trajectory-cached search. At a refresh time $t_0$, we compute for each candidate a shortlist of its $M$ nearest data points, with $M$ much larger than $k$. We record the shortlist distances and the $M$-th distance $\rho_M$. After the candidate has travelled a cumulative path length $s_t$ since the refresh, the triangle inequality gives a lower bound on its distance to every data point $i$ outside the shortlist:
$$d(x_t, x_i) \ge \rho_M - s_t .$$
If the current $k$-th shortlist distance is below $\rho_M - s_t$, the true $k$ nearest neighbors are guaranteed to lie in the shortlist. The step then costs $M$ distance evaluations instead of $|\mathcal{D}|$. Each shortlist distance can itself be skipped when its own cached lower bound exceeds the current $k$-th radius.
The bound stays tight in high dimensions for a specific reason. Distance concentration makes distances between unrelated points nearly equal, which defeats ordinary reference points. Here, though, $s_t$ is a short path, while $\rho_M$ is a typical spacing between data points. When the test fails, we refresh the shortlist with an exact scan or with a graph index such as HNSW or its TRIM variant.
Why approximate refresh is safe. An approximate index can only miss a true neighbor. Missing one makes the computed $d_k$ too large, so the constraint becomes stricter, never looser. Approximation therefore degrades extrapolation, not safety. This makes the recall–cost trade-off in TRIM's relaxed bounds acceptable here in a way it is not for ordinary retrieval.
Analysis. We will measure three things. The first is how often refreshes occur as a function of step size, dimension, and $M$. The second is the fraction of exact distance evaluations saved. The third is the gap between the computed and true $d_k$ under approximate refresh.
Baselines
The naive reference point is unconstrained gradient ascent on a surrogate trained with squared error, as run in Design-Bench. This is the setting where exploitation is expected to be worst. Any method that does not beat it clearly is not controlling exploitation.
The strongest competitor on exploitation control is COMs. It is the most direct alternative mechanism: a pessimistic surrogate plus a trust region, which is exactly what our distance constraint is meant to replace. We will run COMs with the authors' recommended settings, on the same tasks, the same data splits, the same candidate population size, and the same number of optimizer steps. Its surrogate architecture will match ours. No reported result found on Lacuna for COMs' normalized scores on Design-Bench tasks, so we will reproduce them under our protocol rather than quote them. Beating COMs means a higher median-over-seeds normalized score at the 100th and 50th percentile of the returned candidates, on a majority of tasks, with $q$ fixed across tasks rather than tuned per task.
We add ROMO as the closest method that uses neighbors. This tests whether neighbors help more as a search boundary than as a prediction anchor. We add RaM both as a baseline and as an alternative surrogate under our constraint. If the constraint helps a ranking-trained surrogate too, the benefit is not specific to squared-error training.
Two ablations isolate the key ingredient. The first applies a COMs-style step-size trust region to the identical surrogate, separating "distance to data" from "distance travelled." The second enforces the same constraint with brute-force exact search, an off-the-shelf approximate index queried at every step, and our cached search. The constraint is identical across these three, so any difference in design quality reflects approximation, and wall-clock and distance-count differences reflect the search method alone.
Why not just…?
Why not just brute-force the distances on a GPU? At typical Design-Bench pool sizes this may be entirely adequate, and we say so plainly. If brute force matches cached search in wall-clock time at those scales, the efficiency result is reported as a scaling result rather than a headline. The proposal then rests on the constraint itself.
The efficiency question becomes live under three conditions: the pool is large, the dimension is in the thousands (Hopper has 5,126 parameters), or the constraint is also applied inside surrogate training, which multiplies queries. ROMO's authors flag the large-pool case as unresolved. CcDPM shows how neighbor costs explode at million-point scale, reporting 530 projected hours cut to 1.5 with indexing, though in a low-dimensional label space. The scaling experiment below decides whether caching earns its place.
Why not just query HNSW or TRIM at every step? Per-step approximate search is a legitimate baseline and is included. Its weakness is structural, not fatal. It pays the full graph-walk cost at every step, which CSPG identifies as dominated by full-dimensional distance computations. It also ignores that the answer barely changes between consecutive steps. Our cache sits on top of such an index, so the comparison measures how much trajectory locality adds.
Why not just use COMs, ensemble uncertainty, or a latent generative model? Each controls exploitation indirectly. Pessimism can trap the optimizer in fake optima, as ROMO documents. Step-size regions do not track where data actually are. Latent models struggle with the thin manifold Design-Bench reports. We do not claim to know in advance that a raw Euclidean distance beats them, and on tasks with symmetric parameterizations, such as controller weights, it may not. The head-to-head comparison and the trust-region ablation settle this. On tasks where distance in raw coordinates is uninformative, we will report the failure rather than hide it.
Proposed Experiments
Quality. We use the continuous Design-Bench tasks named in the file: Superconductor (81 dimensions), Ant and D'Kitty Morphology (60 and 56), and Hopper Controller (5,126). Each method returns a fixed candidate batch, scored by the benchmark oracle as normalized 100th and 50th percentile scores, with at least eight seeds. We fix $q$ on one task and transfer it unchanged to the rest. This is the decisive test of the claim that the threshold can be set offline.
Exploitation diagnostic. Along each trajectory we log the gap between surrogate prediction and oracle score against $d_k$. If the constraint works for the stated reason, the gap should rise sharply beyond $\tau$ for unconstrained ascent and stay flat under the constraint.
Efficiency. On Hopper, and on pools grown by resampling with noise from $10^4$ to $10^6$ points, we report the following for cached search versus brute force, versus per-step HNSW, and versus TRIM-augmented HNSW: exact distance evaluations per step, refresh frequency, wall-clock time on matched hardware, and $k$-NN recall. We also test the safety prediction directly. Under approximate refresh, computed $d_k$ should never fall below true $d_k$ beyond floating-point error, and design quality should degrade gracefully as refresh recall drops.
Decisive outcome. The proposal succeeds if the constrained optimizer matches or beats COMs with a single transferred $q$, and if cached search cuts exact distance evaluations by an order of magnitude or more on Hopper-scale trajectories while keeping neighbor sets exact. It fails, and we will say so, if a step-size trust region on the same surrogate performs as well. That result would mean distance to data adds nothing beyond distance travelled.
References
- Conservative Objective Models for Effective Offline Model-Based Optimization
- Data-Driven Offline Optimization for Architecting Hardware Accelerators
- Offline Model-Based Optimization by Learning to Rank
- Learning Surrogates for Offline Black-Box Optimization via Gradient Matching
- Design-Bench: Benchmarks for Data-Driven Offline Model-Based Optimization
- ROMO: Retrieval-enhanced Offline Model-based Optimization
- Policy Regularization with Dataset Constraint for Offline Reinforcement Learning
- TRIM: Accelerating High-Dimensional Vector Similarity Search with Enhanced Triangle-Inequality-Based Pruning
- CSPG: Crossing Sparse Proximity Graphs for Approximate Nearest Neighbor Search
- SymphonyQG: Towards Symphonious Integration of Quantization and Graph for Approximate Nearest Neighbor Search
- CcDPM: A Continuous Conditional Diffusion Probabilistic Model for Inverse Design