Research note · Draft · September 29, 2026
OIL tuning and learning meta flows for zero-shot optimization
If I have already solved thousands of inverse problems, what should the next solver remember? It could learn a useful starting point. It could also learn how to move between guesses.
Those possibilities led us from optimizer-in-the-loop training (OIL) to a broader project we called OIL-matching: learning from optimization trajectories, connecting that learning to flow matching, and eventually asking how to improve the decisions around a local optimizer.
We developed our optimizer-field derivations before encountering the related gradient-flow-matching literature. Discovering afterward that a closely related idea was already being explored for neural-network optimization was a surprise!!!
An inverse problem asks which parameters could produce the observations. A close parameter estimate can still give a poor simulated trajectory.
Learning a start
OIL trains a network to predict a starting point for a numerical solver. During training, the prediction passes through five differentiable optimization steps:
Here \(y\) is the observed trajectory. The training loss reaches the network through those steps. At inference, a separate L-BFGS-B solve refines its prediction.
Learning the flow
The solver's intermediate states offer another source of training data. I explored whether a neural field could learn useful moves between parameter guesses.
In flow matching, a learned velocity moves an initial guess \(u_0\) towards a target \(u_1\). The target can be a parameter estimate from a long solver run.
Integrating the learned field gives a new guess for refinement.
In the matched-target experiments, direct endpoint predictors used one neural call. The flows used 20 calls and generally gave worse median parameter recovery.