Project Description
This work aims to provide a more solid theoretical and mathematical understanding of optimal control flow (OCF) algorithm.
OCF algorithm is an "time-expansion (Dijkstra-like)" algorithm that can be used to solve black-box optimization (BBO) problem from a reinforcement learning viewpoint. In particular, we solve the BBO problem in the following reinforcement learning formulation:
Here is the black-box function that need to be optimized on.
Algorithm in a nut-shell
The optimal control flow (OCF) algorithm tries to solve the above integral formulation by focusing on its differential form instead.
Input: a black box that outputs values of objective function and an oracle to generate starting points in . Output: a neural network approximation of the reduced Hamiltonian function that captures the machine's learning process to arrive at the minimum point.
- Initialize a replay memory . Add to starting sample points from . Perform a warm up step and optimize with data batches taken from .
- Initialize as the current step and repeat the following while incrementing until reach the maximum number of steps:
- Sample points from . Note that we always set the staring adjoint variable to .
- Use a generic ordinary differential equation (ODE) solver to perform forward Hamiltonian dynamics with to collect samples. The generated sample trajectories consists of only samples that are at most steps away from the starting points.
- Add samples to and optimize using the data batches from .
Main Motivation
The algorithm OCF aims to find the optimal path that approximate the learning path to the minimizers of the (black-box) function . The previous work already focus on the algorithmic point of view. In this work, we aim to provide the rigorous proofs for OCF's convergence and OCF's other properties such as its stability.
General ideas
Suppose the optimal path is , and the approximate path is . Essentially, the algorithm is surrounded by the following two ODEs:
And we want to our algorithm to train the neural net that approximate so that the prediction is as close as possible to the truth value .
From the equation, we can have the following simple bound:
Here is Lipschitz constant of the real (reduced) Hamiltonian.
In the ideal situation, when the neural net does a perfect job of approximating , the bound becomes:
With this bound, suppose our OCF is moving from the time (step ) to the time (in step ). Then Gronwall's inequality gives us:
Suppose our previous approximation does well with reinforce examples from previous step so that ( but can be close to 1). Then, on the next time interval, with small enough dt, will be bounded by . During each iteration, we can then add more samples from the previous step to reinforce the bound . They together with the new sample will be used to optimize the mismatch between and .
This general idea is inspired by Banach fixed-point theorem and can be considered as its extension. Of course, such ideal situation never exists, leading to the main research problem.
Main challenges
The second term error can both come from the empirical examples and the hypothesis space (class of functions from our neural net architecture). We focus on the former first as it is already difficult to handle and very different from traditional setting.
In the usual setting, we want to learn a hypothesis (find neural net parameters to approximate in our case) in hypothesis space from a dataset with samples where each instance is i.i.d. drawn from some distribution .
We may define a loss function associated to the learning algorithm, which tries to minimize the empirical loss on . With this setup, one try to bound the expected generalization error , where the (pointwise) generalization error is .
Many bounds such as the one below are derived in the form of mutual information: In several cases, is shown to have bound, leading to bound overall. With reasonably large, one would hope the second approximation can be dealth with. This is a common strategy used in the literature.
Nonetheless, in our case, at time , the hypothesis space is iteratively adapted to the data , and at time , new data set is extracted using . This dependence makes our problem more challenging and, of course, the i.i.d assumption and even other reasonable assumption (Markov chain-related) are no longer valid.
A simple solution in 1D case.
In 1D case, we can have a "simple" strategy to handle the second term. More specifically, let be the Lagrange interpolation of . It is possible to find a neural net so that the bound between and can be explicitly defined and small enough to be negligible (note that this is a non-trivial step). Then we obtain:
for large enough number of samples and some constants , . We can then proceed as in the previous section.
Paper links
To be added
People
- Minh Nguyen (PhD)
- Prof. Chandrajit Bajaj
- Taemin Heo (Postdoc)
