[Paper Review] Exploring the True Potential: Evaluating the Black-box Optimization Capability of Large Language Models
This paper systematically evaluates the black-box optimization capabilities of large language models (LLMs) across discrete and continuous problems, revealing that while LLMs underperform in pure numerical tasks due to poor numerical understanding, they succeed in optimization by mimicking genetic algorithms through prompt-based population management. The key contribution is the first comprehensive, progressive evaluation highlighting LLMs' behavioral traits, limitations, and heuristic potential in optimization contexts.
Large language models (LLMs) have demonstrated exceptional performance not only in natural language processing tasks but also in a great variety of non-linguistic domains. In diverse optimization scenarios, there is also a rising trend of applying LLMs. However, whether the application of LLMs in the black-box optimization problems is genuinely beneficial remains unexplored. This paper endeavors to offer deep insights into the potential of LLMs in optimization through a comprehensive investigation, which covers both discrete and continuous optimization problems to assess the efficacy and distinctive characteristics that LLMs bring to this field. Our findings reveal both the limitations and advantages of LLMs in optimization. Specifically, on the one hand, despite the significant power consumed for running the models, LLMs exhibit subpar performance in pure numerical tasks, primarily due to a mismatch between the problem domain and their processing capabilities; on the other hand, although LLMs may not be ideal for traditional numerical optimization, their potential in broader optimization contexts remains promising, where LLMs exhibit the ability to solve problems in non-numerical domains and can leverage heuristics from the prompt to enhance their performance. To the best of our knowledge, this work presents the first systematic evaluation of LLMs for numerical optimization. Our findings pave the way for a deeper understanding of LLMs' role in optimization and guide future application of LLMs in a wide range of scenarios.
Motivation & Objective
- To investigate whether LLMs genuinely excel in black-box optimization or if their success is driven by hype rather than intrinsic capability.
- To assess LLMs' performance across both discrete and continuous optimization problems, identifying strengths and weaknesses in diverse scenarios.
- To analyze the behavioral mechanisms of LLMs during optimization, particularly their handling of numerical data and prompt sensitivity.
- To compare LLMs against traditional optimization algorithms in terms of core properties like exploration, exploitation, and scalability.
- To provide a foundation for future integration of LLMs in optimization by identifying viable application strategies and limitations.
Proposed method
- Conducted a progressive evaluation framework starting from basic optimization properties to advanced behavioral traits across multiple LLMs.
- Designed task-specific prompt templates for both discrete and continuous optimization problems, including the TSP and Haversine distance tasks.
- Evaluated open- and closed-source LLMs (e.g., GPT-3.5, GPT-4, Gemini, LLaMA) on standardized benchmark problems with controlled prompt variations.
- Employed the Haversine distance metric to assess geographical optimization performance under masked vs. revealed city names.
- Analyzed model behavior through comparative studies, measuring performance degradation or improvement based on prompt clarity and information content.
- Used behavioral analysis to study how LLMs maintain a form of implicit population and selection mechanism akin to genetic algorithms.

Experimental results
Research questions
- RQ1To what extent do LLMs demonstrate effective optimization performance in numerical black-box problems, particularly in discrete and continuous domains?
- RQ2How does the inclusion or masking of real-world contextual information (e.g., city names) affect LLM optimization outcomes?
- RQ3What behavioral mechanisms enable LLMs to succeed in optimization despite poor numerical reasoning capabilities?
- RQ4How do LLMs compare to traditional optimization algorithms in terms of exploration, exploitation, and scalability?
- RQ5What role does prompt design play in influencing LLM optimization performance, especially when additional information degrades results?
Key findings
- LLMs exhibit subpar performance in pure numerical optimization tasks due to poor handling of numbers in string format and weak numerical reasoning.
- Performance degradation occurs when city names are revealed in prompts—GPT-3.5 and GPT-4 perform worse with more information, indicating high prompt sensitivity.
- Gemini shows slight improvement with revealed city names, suggesting model-specific differences in prompt utilization and information integration.
- LLMs succeed in optimization not through numerical prowess, but by implicitly mimicking genetic algorithms via prompt-based population and survivor selection.
- Despite their success in heuristic optimization, LLMs are highly inefficient in time and energy consumption, making them impractical for large-scale numerical problems.
- The lack of reproducibility in closed-source LLMs due to model updates and random seed variations poses a major challenge for reliable research validation.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.