Hyper Algorithm Design Agent: Evolving Learnable Optimizer from Zero

Zipei Yu, Yue-Jiao Gong, Zeyuan Ma, Yuncheng Jiang, Zhiguang CaoarXiv 2026

TL;DR

HADA (Hyper Algorithm Design Agent) is a novel framework that automates the creation of learnable optimizers by treating algorithm design as a recursive, self-improving coding task. By employing a dual-agent system where a "Hyper Agent" refines the logic of a "Task Agent," HADA discovers novel optimization algorithms that significantly outperform state-of-the-art human-crafted baselines across multiple domains.

What Problem Does This Paper Address?

In the world of Black-Box Optimization (BBO), researchers have moved toward MetaBBO—a paradigm where a neural network (a "meta-level policy") learns how to control a low-level optimizer. While this reduces manual tuning, the design of the MetaBBO system itself (the policy architecture, the features it monitors, and the training logic) remains heavily handcrafted by human experts.

This creates a "meta-level" bottleneck: the resulting algorithms are often biased by the designer's subjective experience and struggle to generalize to new types of problems. The authors aim to break this cycle by introducing open-endedness—a system that can continuously innovate and improve its own design machinery without human intervention.

Methods

The core of HADA is a bi-agent system that operates on a MetaBBO codebase (a standard Python project).

  1. The Task Agent: This agent acts as the "coder." It analyzes execution logs and performance scores to edit the source code of the MetaBBO algorithm, seeking structural improvements.
  2. The Hyper Agent: This is the "meta-coder." It has the unique ability to modify the Task Agent’s prompts and reasoning logic. Crucially, it can also modify itself, allowing the system to evolve its own strategies for how to improve algorithms.
  3. Algorithm Evolution Tree (AET): HADA maintains a history of all generated algorithm variants in a tree structure. It uses a weighted sampling strategy to select "parent" algorithms for the next round of evolution, balancing the exploitation of high-performing versions with the exploration of less-traveled design paths.
  4. Unified Evaluation: To ensure the agents aren't misled by different problem scales, HADA uses a normalized performance metric (0 to 1) across all testbeds.
Figure 1: Left: The general workflow of our proposed HADA framework, which allows coordination between hyper agent and task agent for automatic MetaBBO design. Right: Essential differences between human-based design in BBO/MetaBBO and fully automated design in HADA.

Datasets

HADA was evaluated across four diverse optimization domains:

  • Single-Objective Optimization: 24 synthetic instances from the COCO-BBOB test suite.
  • Constrained Optimization: 54 nonlinear constrained instances from the COCO-constrained suite.
  • Multi-Objective Optimization: 9 instances of WFG functions.
  • Realistic UAV Planning: A highly constrained path-planning benchmark involving 56 instances, transformed into single-objective problems via a weighted-sum approach.

Key Insights and Ideas

  • Algorithm Design as a Coding Task: By representing algorithms as Python projects rather than abstract mathematical formulas, HADA leverages the advanced code-generation capabilities of modern LLMs (specifically DeepSeek-v4-Pro).
  • Recursive Self-Improvement: The "Aha Moment" occurred when the Hyper Agent realized the Task Agent was stuck making minor parameter tweaks. The Hyper Agent then modified its own instructions to strictly forbid "minor tweaks" and enforce "structural novelty," leading to the discovery of superior SHADE-like and CMA-ES-integrated variants.
  • Domain Agnosticism: Because HADA relies on raw execution logs and a unified scoring system, it can adapt to entirely different optimization domains (like moving from single-objective to multi-objective) with minimal human input.

Key Results

HADA demonstrated a massive performance leap over existing methods:

  • Performance Breakthrough: Starting from a naive baseline, HADA evolved variants that outperformed the state-of-the-art MetaBBO (GLEET) by 121.7% in single-objective tasks.
  • Cross-Domain Success: It achieved performance gains of 114.7% and 104.3% in constrained and multi-objective domains, respectively, compared to domain-specific SOTA baselines.
  • Generalization: The evolved algorithms showed strong out-of-distribution (OOD) generalization, performing robustly on problem dimensions and evaluation budgets they never saw during the evolution process.
Figure 2: Out-of-distribution generalization comparison under diverse scenarios.

Limitations and Future Work

  • Heuristic Search: Currently, HADA uses a relatively simple heuristic for parent selection in the evolution tree. The authors suggest that future versions could use more sophisticated Reinforcement Learning to manage the evolution process.
  • Scope: This study focused primarily on continuous optimization. A promising future direction is applying HADA to Neural Combinatorial Optimization (NCO), which involves discrete problem spaces like the Traveling Salesman Problem.
  • Computational Cost: The evolution process requires running multiple training and testing loops for each new algorithm variant, which can be resource-intensive depending on the LLM backbone and the complexity of the testbeds.

Summary updated

BibTeX
@misc{yu2026hyper,
  author = {Zipei Yu and Yue-Jiao Gong and Zeyuan Ma and Yuncheng Jiang and Zhiguang Cao},
  title = {{Hyper Algorithm Design Agent: Evolving Learnable Optimizer from Zero}},
  year = {2026},
  eprint = {2609.35328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.35328},
}
Figure