Learning While Searching: Inverse Design through Online Refinement and Offline Reuse

Mohanad Obeed, Ming JianarXiv 2026

TL;DR

Designing physical hardware—like optical lenses or radio filters—usually means playing an expensive game of trial-and-error with slow physics simulators. This paper introduces ORO (Online Refinement, Offline Reuse), an algorithm that learns while it searches by pairing a physics-mimicking surrogate network with an inverse design network. By continuously recycling every simulation it runs, ORO finds high-precision designs in a fraction of the simulations required by traditional optimization, turning weeks of compute time into days.

What Problem Does This Paper Address?

Imagine you know the exact behavior you want from a piece of hardware—say, a radio filter that blocks everything except a narrow band of frequencies—and you need to figure out the physical geometry that produces it. Forward physics simulators can tell you how a given shape behaves, which is straightforward, if slow. Running that process backward—inverse design—is notoriously difficult for three reasons:

  1. Non-uniqueness: Different physical shapes can produce the exact same response, which confuses standard neural networks trying to map outputs back to inputs.
  2. Ill-conditioning: The mathematical landscape is full of narrow, curved valleys where tiny tweaks to a design cause massive swings in performance.
  3. Simulation cost: High-fidelity physics simulations can take minutes or hours per run.

Classical optimizers (like genetic algorithms) treat each simulation as a throwaway fitness score and start from scratch for every new target. Surrogate-assisted methods try to train a fast neural network to mimic the simulator beforehand, but end up wasting huge simulation budgets mapping out regions of the design space you never actually use. Adaptive methods like Bayesian Optimization select new points smartly, but rely on separate, target-agnostic "acquisition functions" that require their own inner optimization loops just to decide what to simulate next.

Methods

ORO unifies the design model and the search rule into a single loop using two standard multilayer perceptrons: a forward surrogate ($S_\phi$) that predicts physics responses from design parameters, and a target-conditioned inverse network ($D_\theta$) that proposes design parameters for a desired target response. Crucially, all losses are calculated in response space (did the simulator output match the target?) rather than parameter space, neatly sidestepping the non-uniqueness problem.

Figure 1: ORO alternates online refinement with offline reuse of accumulated design–response pairs. In online refinement (b), the inverse network is trained toward the requested response y∗, whose solution is unknown. In offline reuse (c), the surrogate is retrained on all of D and the inverse network is retrained through it, either toward achieved responses yi drawn from D, each attainable by construction (as drawn in (c)), or toward the requested response y∗, as in our main experiments (Section 2.4). In both phases the surrogate is fitted first and then frozen while the inverse network is fitted through it; gradients never pass through the simulator. Offline reuse consumes no simulator calls.

ORO alternates between two phases:

  • Online Refinement (1 simulator call per step): You feed your target into the inverse network, get a proposed design, and run the true black-box simulator. That single ground-truth result is used twice: first, to update the surrogate right where the inverse network is currently looking; second, with the surrogate frozen, gradients are passed through the surrogate to nudge the inverse network closer to the target. What’s new here: There is no acquisition function. The inverse network's forward pass is the query rule.
  • Offline Reuse (0 simulator calls): Periodically, ORO pauses simulation and retrains the surrogate from scratch on every design-response pair accumulated so far, then retrains the inverse network through this refreshed surrogate.
  • Scheduled Exploration: Because gradient steps are local and can get stuck, ORO occasionally mutates a random parameter of its best-found design—a simple evolutionary nudge rather than a complex uncertainty calculation.

Datasets

Instead of relying on static pre-collected datasets, ORO generates its own data on the fly from black-box simulators. To separate the twin headaches of non-uniqueness and ill-conditioning, the authors introduce a suite of three synthetic benchmarks (mapping 15 design parameters to a 200-point curve):

  • Resonance: Sums of 5 Gaussian curves. Permuting sections gives $5! = 120$ identical solutions (tests non-uniqueness).
  • Rosenbrock: An invertible warp into a narrow, curved valley (isolates severe ill-conditioning without non-uniqueness).
  • Rational: Cascaded pole-zero filter sections with sharp quality factors and $5!$ symmetry (combines both difficulties).

For real-world validation, they evaluate ORO on a millimeter-wave band-pass filter (30–50 GHz) simulated in CST, a commercial full-wave electromagnetic solver.

Key Insights and Ideas

  • Single-point updates fix values, not slopes: Why bother with the offline phase? The authors probed the true simulator gradients and found a great "aha" moment: without offline retraining, the surrogate's gradient points downhill on the true error only 47% of the time—literally no better than a coin flip! Updating a network on one point fixes its height there, but leaves its local slope garbage. Periodic offline retraining on the whole history makes the gradients genuinely useful, pointing downhill 92% (Resonance) and 79% (Rational) of the time.
  • Memory across tasks: Because the inverse network is conditioned on the target response, data collected while solving Target #1 helps map out the physics for Target #2. By carrying its dataset forward (while resetting network weights between targets to prevent a "loss of plasticity"), ORO gets a massive head start on sequential design tasks.

Key Results

Tested across 30 targets with a strict budget of 2,800 simulator calls per target against GA, CMA-ES, Bayesian Optimization, TuRBO, and AutoTandemML:

Median best-so-far response error over 30 targets. TuRBO leads at small budgets from scratch, while ORO achieves the lowest median error at the full 2,800-call budget.
  • Synthetic Benchmarks: ORO achieves the lowest final median error across the board—129x lower than TuRBO and 10x lower than CMA-ES on Rosenbrock; 45x lower than TuRBO on Resonance; and tied with TuRBO on Rational while beating all other baselines.
  • Sequential Design (30 targets, 1,000 calls each): Reusing past simulator runs, ORO beats TuRBO by 282x on Rosenbrock and 20x on Resonance, leading from call zero.
  • Real-World Filter Design: In CST full-wave simulations (~5 minutes per run), ORO found a compliant millimeter-wave filter in ~1,200 simulations (~100 hours), compared to 16,300 simulations (~57 days) for a prior surrogate-based genetic algorithm—while organically discovering an unrequested transmission zero that sharpened the filter's band edge.

Limitations and Future Work

  • Small-budget cold starts: When starting completely from scratch on a single target with a tiny evaluation budget (e.g., under 500 calls), TuRBO outperforms ORO. ORO needs enough data to make its surrogate gradients trustworthy.
  • Heavy upper tails & hard masks: On the non-unique benchmarks, ORO's mean error is slightly worse than TuRBO's even though its median is much better, meaning ORO gets stuck on a small handful of targets. Additionally, when designing the CST filter directly from a strict pass/fail specification mask (rather than matching a known reference curve), ORO met the limits over most of the frequency bands, but not everywhere.
  • Future directions: The authors suggest dynamically adapting the mix of offline training objectives based on surrogate error, and gradually decaying the online surrogate learning rate as the offline dataset grows large enough to stand in for the simulator on its own.

Summary updated

BibTeX
@misc{obeed2026learning,
  author = {Mohanad Obeed and Ming Jian},
  title = {{Learning While Searching: Inverse Design through Online Refinement and Offline Reuse}},
  year = {2026},
  eprint = {2611.40053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40053},
}
Figure