Derivative-Free Optimization via Classification

Yang Yu, Hong Qian, Yi-Qi HuAAAI 2016

Abstract

Many randomized heuristic derivative-free optimization methods share a framework that iteratively learns a model for promising search areas and samples solutions from the model. This paper studies a particular setting of such framework, where the model is implemented by a classification model discriminating good solutions from bad ones. This setting allows a general theoretical characterization, where critical factors to the optimization are discovered. We also prove that optimization problems with Local Lipschitz continuity can be solved in polynomial time by proper configurations of this framework. Following the critical factors, we propose the randomized coordinate shrinking classification algorithm to learn the model, forming the RACOS algorithm, for optimization in continuous and discrete domains. Experiments on the testing functions as well as on the machine learning tasks including spectral clustering and classification with Ramp loss demonstrate the effectiveness of RACOS.

Introduction

Many real-world optimization problems are "black boxes" where evaluating a function $f(x)$ is possible, but its gradient is unavailable, and the function may be non-convex or non-differentiable. Traditional derivative-free optimization (DFO) methods, such as genetic algorithms or Bayesian optimization, often lack strong theoretical guarantees on query complexity, particularly in high-dimensional spaces. This paper addresses these challenges by formalizing DFO as a classification-based framework, providing both a theoretical foundation and a scalable algorithm named RACOS.

The Classification-Based Optimization Framework

The proposed framework treats optimization as an iterative process of learning and sampling. By training a binary classifier to distinguish "good" solutions (low function values) from "bad" ones, the algorithm identifies a "positive region" likely to contain the global minimum. The general process involves:

  1. Sampling: Picking points in the search space.
  2. Labeling: Marking the best-performing points as "positive" and the rest as "negative."
  3. Training: Learning a classifier that defines a "positive region."
  4. Refining: Sampling new points primarily from this positive region and repeating the cycle.

The RACOS Algorithm

The Randomized COordinate Shrinking (RACOS) algorithm implements this framework using a simple yet effective geometric classifier: a randomized axis-parallel rectangle. RACOS identifies a positive point and then randomly selects dimensions to "shrink," ensuring the resulting region excludes known negative points while retaining the positive one. This approach allows for rapid sampling and direct control over the "shrinking rate," a factor proven to be vital for performance.

Theoretical Foundations

The paper identifies two critical factors that govern query complexity in classification-based optimization:

  • Error-Target Dependence ($\theta$): The degree to which the classifier's errors overlap with the optimal region. Lower dependence leads to better performance.
  • Shrinking Rate ($\gamma$): The speed at which the search space is narrowed. A smaller $\gamma$ facilitates faster convergence.

Furthermore, the authors prove that for functions satisfying Local Lipschitz continuity, this classification-based approach can find an optimal solution in polynomial time, bridging the gap between heuristic DFO and theoretical optimization.

Experimental Evaluation

The effectiveness of RACOS was evaluated across synthetic benchmarks, discrete optimization tasks, and real-world machine learning applications.

Synthetic Benchmarks

On high-dimensional Sphere and Ackley functions (up to $n=1000$), RACOS demonstrated superior scalability compared to state-of-the-art methods like CMA-ES and SOO. As shown in the following figure, RACOS maintains a significantly lower error growth rate as dimensions increase and converges faster in terms of function evaluations.

Performance of RACOS on Sphere and Ackley functions across varying dimensions and function evaluations.

Discrete and Non-Convex Optimization

RACOS was applied to the RatioCut problem, an NP-hard discrete optimization task, and classification with Ramp Loss on the Adult and USPS+N datasets. In these experiments, RACOS outperformed gradient-based methods like CCCP, particularly as problem complexity ($C$) increased, demonstrating its robustness in complex, non-convex landscapes.

Comparison of objective function values for Ramp Loss classification on the USPS+N dataset.

Conclusion

RACOS provides a robust and theoretically grounded approach to derivative-free optimization. By leveraging simple classification models and randomized coordinate shrinking, it achieves high performance in complex, high-dimensional landscapes. While currently reliant on axis-parallel rectangles and specific hyper-parameters, future work may involve exploring random embeddings to scale the algorithm to even higher dimensions and relaxing geometric constraints to handle more complex search regions.

Summary updated

BibTeX
@inproceedings{yu2016derivative,
  author = {Yang Yu and Hong Qian and Yi-Qi Hu},
  title = {{Derivative-Free Optimization via Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=XlGVuj4dFjZ},
}
Figure