Non-convex Optimization via Adaptive Stochastic Search for End-to-End Learning and Control

Ioannis Exarchos, Marcus A. Pereira, Ziyi Wang, Evangelos A. TheodorouarXiv 2020

TL;DR

This paper introduces NOVAS, a novel differentiable module for non-convex optimization within deep neural networks. NOVAS leverages adaptive stochastic search, enabling end-to-end learning for complex tasks like structured prediction and optimal control, and crucially, avoids the need to unroll the entire optimization graph during backpropagation, leading to significant speedups and reduced memory usage.

What Problem Does This Paper Address?

Deep learning models often incorporate "optimization blocks" or modules that perform optimization at specific layers. These modules are typically designed to solve non-convex optimization problems, which are notoriously difficult to handle efficiently and differentiably. Traditional methods like unrolling gradient descent for a fixed number of steps can lead to over-fitting to hyperparameters and create computationally expensive, deep computation graphs, hindering scalability and training speed. Existing differentiable optimization methods often struggle with general non-convexity or require solving additional convex problems to achieve differentiability. This paper addresses the need for a general, differentiable, and efficient non-convex optimization module that can be seamlessly integrated into end-to-end deep learning architectures.

Methods

The core of the proposed method, NOVAS (Non-convex Optimization Via Adaptive Stochastic Search), is based on adaptive stochastic search (ASS), a sampling-based optimization technique. ASS transforms the original optimization problem into a probabilistic one, allowing for gradient-based updates to the parameters of a probability distribution. The key novelty lies in:

  • Differentiable ASS: The paper adapts ASS to be fully differentiable, allowing gradients to flow through it during backpropagation.
  • No Graph Unrolling for Free Variables: For optimization problems where the variable to be optimized is independent of the outer network (as defined in Eq. 1), NOVAS does not require unrolling the entire optimization graph. Instead, gradients are only passed through the final optimization step. This drastically reduces the computational graph's depth and complexity.
  • Integration with Deep FBSDEs: NOVAS is integrated into the deep Forward-Backward Stochastic Differential Equation (FBSDE) framework, enabling the solution of complex, high-dimensional Hamilton-Jacobi-Bellman (HJB) PDEs that were previously intractable due to non-convex Hamiltonians.

Datasets

The paper does not introduce new datasets. Instead, it uses:

  • A synthetic energy-based structured prediction task (adopted from Amos & Yarats, 2019).
  • A cart-pole swing-up task for optimal control.
  • A high-dimensional (101-dimensional) continuous-time portfolio selection problem for optimal control.

Key Insights and Ideas

  • Unrolling is Not Always Necessary: The most significant insight is that for optimization problems where the variable is free to vary (not an input from the outer network), unrolling the entire optimization graph during backpropagation is unnecessary and detrimental. This dramatically simplifies computation.
  • Adaptive Stochastic Search as a Differentiable Block: Adapting sampling-based methods like ASS into differentiable modules opens up new possibilities for handling complex optimization within neural networks.
  • Bridging the Gap for Non-Convex PDEs: NOVAS, when combined with deep FBSDEs, allows for solving HJB PDEs with non-convex Hamiltonians, a significant advancement for optimal control and related fields.
  • Robustness to Hyperparameters: The paper suggests that sampling-based methods like NOVAS are less prone to over-fitting to inner-loop optimization hyperparameters compared to unrolled gradient descent.

Key Results

  • Speedup: NOVAS offers a significant speedup (up to 5x) compared to unrolled DCEM in the structured prediction task, primarily due to avoiding graph unrolling.
  • Efficiency: NOVAS demonstrates improved convergence rates and efficiency in inference compared to other methods, especially when dealing with altered inner-loop parameters.
  • Scalability: The method successfully tackles a 101-dimensional portfolio optimization problem, showcasing its scalability to high-dimensional control tasks.
  • Performance in Optimal Control: In the portfolio optimization task, the NOVAS-based FBSDE controller outperforms baseline strategies (constant and random allocation) in probability.

Limitations and Future Work

  • Adaptation Tasks: While NOVAS can be used for adaptation tasks (like meta-learning), unrolling the graph might still be necessary in such cases. The paper suggests testing NOVAS in this setting as future work.
  • Hyperparameter Sensitivity: While generally robust, the paper notes that the choice of the initial standard deviation ($\sigma$) for the Gaussian distribution in NOVAS can significantly affect the output.
  • Further Exploration of Shape Functions and Trainable Parameters: The paper mentions exploring different shape functions and making parameters like $\kappa$ trainable, but notes that improvements were not consistently observed. Future work could delve deeper into optimizing these aspects.
  • Broader Applications: The authors express hope that NOVAS's generality will inspire its application in a wider range of problems involving nested optimization.

Summary updated

Abstract

In this work we propose the use of adaptive stochastic search as a building block for general, non-convex optimization operations within deep neural network architectures. Specifically, for an objective function located at some layer in the network and parameterized by some network parameters, we employ adaptive stochastic search to perform optimization over its output. This operation is differentiable and does not obstruct the passing of gradients during backpropagation, thus enabling us to incorporate it as a component in end-to-end learning. We study the proposed optimization module's properties and benchmark it against two existing alternatives on a synthetic energy-based structured prediction task, and further showcase its use in stochastic optimal control applications.
BibTeX
@misc{exarchos2020non,
  author = {Ioannis Exarchos and Marcus A. Pereira and Ziyi Wang and Evangelos A. Theodorou},
  title = {{Non-convex Optimization via Adaptive Stochastic Search for End-to-End Learning and Control}},
  year = {2020},
  eprint = {2006.11992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.11992},
}
Figure