SYMBOL: Generating Flexible Black-Box Optimizers through Symbolic Equation Learning

Jiacheng Chen, Zeyuan Ma, Hongshu Guo, Yining Ma, Jie Zhang, Yue-Jiao Gong

Abstract

Black-Box Optimization (BBO) is a fundamental challenge in scientific computing, where objective functions lack analytical forms and must be optimized through iterative probing. While traditional hand-crafted algorithms offer robustness and recent neural meta-optimizers provide high performance, both suffer from limitations in interpretability and generalization. This paper introduces SYMBOL, a novel meta-learning framework that automatically discovers BBO algorithms by generating human-readable, closed-form symbolic equations. By combining reinforcement learning with teacher-guided behavior cloning, SYMBOL produces optimizers that not only outperform state-of-the-art methods like Differential Evolution but also exhibit remarkable zero-shot generalization to complex, unseen tasks such as protein docking and hyperparameter tuning.

Introduction

Historically, BBO has relied on two paradigms: expert-designed hand-crafted rules (e.g., CMA-ES, MadDE) and neural meta-optimizers. Hand-crafted rules are interpretable but often require extensive manual tuning for specific problem domains. Conversely, neural meta-optimizers learn to optimize through data but act as "black boxes," often failing to generalize when problem dimensions or population sizes change.

SYMBOL bridges this gap by learning to write optimization algorithms. Instead of outputting numerical updates, it generates symbolic mathematical formulas. These formulas are inherently more robust than neural weights; a rule like $x + 0.18 \times (x^* - x_r)$ remains mathematically valid and applicable regardless of the underlying problem's scale or dimensionality.

Methodology: The Symbolic Equation Generator

The core of the SYMBOL framework is the Symbolic Equation Generator (SEG). The SEG is an LSTM-based model that autoregressively constructs mathematical update rules token by token from a basis set of operators ($+, -, \times$) and operands (current solution $x$, best-so-far $x^*$, and random population members $x_r$).

Detailed architecture of the Symbolic Equation Generator (SEG) showing the token-by-token construction of update rules.

To ensure the generated rules are context-aware, the SEG utilizes Fitness Landscape Analysis (FLA) features—statistical descriptors of the current population's distribution—and a Vectorized Tree Embedding (VTE) of the equation as it is being built. This allows the model to adapt its "math sentences" to the specific state of the optimization process.

Training Paradigms

The authors propose three distinct training strategies for the SEG:

  1. SYMBOL-E (Exploration): Trained from scratch via reinforcement learning, rewarded solely by objective function improvement.
  2. SYMBOL-G (Guided): Uses behavior cloning to mimic a high-performing "teacher" optimizer (e.g., MadDE).
  3. SYMBOL-S (Synergized): A hybrid approach that uses the teacher to jumpstart learning while allowing the model to explore and eventually surpass the teacher's performance.
Learning curves for SYMBOL variants, demonstrating that SYMBOL-S (blue) eventually outperforms the teacher (dashed line).

Experimental Results and Generalization

SYMBOL was meta-trained on synthetic functions from the IEEE CEC 2021 benchmark and evaluated on entirely unseen real-world tasks to test its "zero-shot" capabilities.

Performance on Unseen Tasks

  • Protein-Docking: In this bioinformatics task involving the minimization of Gibbs free energy, SYMBOL-S achieved the top rank. Notably, it matched the performance of the sophisticated SMAC optimizer but operated orders of magnitude faster, solving instances in under one second compared to SMAC's 227 seconds.
  • Hyperparameter Optimization (HPO-B): SYMBOL demonstrated superior generalization across diverse machine learning models (SVMs, XGBoost), proving that symbolic rules effectively capture universal optimization principles.

Interpretability and Strategy Switching

Analysis of the generated rules reveals that SYMBOL naturally learns dynamic strategies. Early in the optimization, it generates "exploratory" rules utilizing random solutions ($x_r$). As the process nears termination, it switches to "convergent" rules focusing on the best-found solution ($x^*$). Extracted rules, such as $x + 0.18 \times (x^* - x_r) + 0.42 \times (x^*_i - x_r)$, provide researchers with transparent, verifiable logic for the optimizer's behavior.

Conclusion and Future Work

SYMBOL demonstrates that symbolic learning is a powerful path toward creating robust, interpretable, and high-performance meta-optimizers. While currently constrained by a small set of basic operators and a dependency on initial teacher quality, future iterations could incorporate more complex mathematical operators or leverage Large Language Models (LLMs) to expand the scope of discovered optimization strategies. The framework's ability to produce lightning-fast, human-readable algorithms marks a significant step forward in automated algorithm design.

Summary updated

BibTeX
@inproceedings{chen2024symbol,
  author = {Jiacheng Chen and Zeyuan Ma and Hongshu Guo and Yining Ma and Jie Zhang and Yue-Jiao Gong},
  title = {{SYMBOL: Generating Flexible Black-Box Optimizers through Symbolic Equation Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=vLJcd43U7a},
}
Figure