Introduction
In the field of Evolutionary Computation, the performance of an algorithm is heavily dependent on its hyperparameters. One of the most critical is the step-size ($\sigma$), which determines the search radius for new solutions. A step-size that is too large leads to overshooting the optimum, while one that is too small results in premature convergence or stagnation in local minima. Traditionally, researchers have relied on "self-adaptive" mathematical heuristics, such as the "One-Fifth success rule," to adjust these values. However, these rules are often rigid and lack the ability to reason about complex optimization landscapes. This paper investigates whether the reasoning capabilities of Large Language Models (LLMs) can be leveraged to act as real-time controllers for step-size adaptation.
The LLM-in-the-Loop Framework
The researchers proposed an "LLM-in-the-loop" approach integrated into a (1 + 1)-Evolution Strategy (ES). In this setup, the LLM replaces traditional heuristics by analyzing optimization logs and recommending adjustments.
As shown in the workflow above, the process operates in a cycle:
- Optimization: The (1+1)-ES runs for 50 generations.
- Logging: A text-based log of fitness values and step-size changes is generated.
- Prompting: This log is sent to an LLM (Llama2-70b or Mixtral) with a prompt instructing it to act as an intelligent optimizer.
- Recommendation: The LLM suggests a new step-size $\sigma \in [0.001, 0.999]$ based on the observed trends.
- Execution: The EA continues for the next 50 generations using the new suggested value.
Experimental Design
The approach was evaluated using the Black-Box Optimization Benchmarking (BBOB) suite, which includes 24 objective functions covering various challenges like rugosity and multimodality. To test the scalability of the LLM-driven approach, experiments were conducted across three dimensionalities: 2D (low complexity), 5D (moderate), and 30D (high complexity).
Results and Discussion
The study revealed several key insights regarding the behavior of LLMs in numerical optimization tasks. Most notably, the LLMs and the traditional One-Fifth rule adopted diametrically opposed strategies. While the One-Fifth rule often pushed step-sizes to high values to maintain a specific success ratio, the LLMs—particularly in higher dimensions—became increasingly "cautious," reducing the step-size to focus on fine-grained exploitation.
Using the Glicko-2 ranking system, Llama2-70b emerged as the clear winner, ranking first across all tested dimensionalities. In the challenging 30D environment, Llama2-70b was the only method to outperform a constant step-size baseline, whereas both Mixtral and the One-Fifth rule performed worse than the baseline. This suggests that the emergent reasoning required for effective optimization control is closely tied to the scale and parameter count of the model.
Conclusion and Future Work
This investigation demonstrates that LLMs can effectively interpret the "messy" nature of optimization logs to provide consistent and competitive hyperparameter tuning. While inference costs and context window limits remain practical hurdles, the results suggest a promising future for "specialist" optimizers created by fine-tuning smaller LLMs on evolutionary data. Future research will explore more complex algorithms like CMA-ES and further refine prompt engineering to unlock the full potential of LLM-driven optimization.
Summary updated