OPT-BENCH: Evaluating LLM Agent on Large-Scale Search Spaces Optimization Problems

Xiaozhe Li, Jixuan Chen, Xinyu Fang, Shengyuan Ding, Haodong Duan, Qingwen Liu, Kai Chen · DOI

Introduction

Modern Large Language Model (LLM) benchmarks like GSM8K or MMLU typically evaluate a model's ability to generate a correct answer in a single pass. However, human intelligence excels at iterative refinement—scientists adjust hypotheses based on failed experiments, and engineers tune models based on performance metrics. There is a significant gap in evaluating LLM "agents" on their ability to navigate large-scale search spaces where the optimal solution is not immediately apparent.

OPT-BENCH addresses this gap by introducing a comprehensive benchmark designed to move beyond "one-shot" answers into the realm of iterative, large-scale optimization. It tests whether an agent can learn from historical context, navigate high-dimensional spaces, and autonomously self-debug execution errors.

Methodology: The OPT-Agent Framework

To evaluate performance on these complex tasks, the researchers developed OPT-Agent, an end-to-end optimization pipeline that mimics human problem-solving through three core actions:

  1. Drafting: Generating an initial solution from scratch based on the problem description.
  2. Improving: When a solution is valid but sub-optimal, the agent analyzes historical code and metrics to suggest incremental refinements (e.g., adjusting hyperparameters).
  3. Debugging: If a solution fails (e.g., a Python traceback or constraint violation), the agent interprets error logs to fix the implementation.
Overview of the OPT-BENCH dataset structure and the OPT-Agent iterative optimization pipeline.

The OPT-BENCH Dataset

The benchmark consists of 30 diverse tasks split into two primary categories:

  • 20 Machine Learning Tasks: Sourced from real-world Kaggle competitions (e.g., House Price Prediction, Spaceship Titanic). These include full datasets and require functional Python code generation.
  • 10 NP-Hard/Complete Problems: Classical combinatorial challenges like the Traveling Salesman Problem (TSP), Graph Coloring, and the Hamiltonian Cycle. These are computationally intractable at scale, making them ideal for testing iterative search strategies.
Examples of Machine Learning (Spaceship Titanic) and NP-Hard (Hamiltonian Cycle) tasks included in the OPT-BENCH dataset.

Key Insights and Results

The researchers evaluated nine state-of-the-art models, including GPT-4o, Gemini 2.0 Flash, and DeepSeek-R1. Several key findings emerged regarding how LLMs handle optimization:

The "Discontinuity" of NP Problems

Historical context proved significantly more effective for ML tasks than for NP tasks. In ML, optimization is often "continuous"—small changes to a model typically lead to incremental performance shifts. In contrast, NP problems exhibit "discontinuous" reasoning; a single missing edge can render a path invalid. LLMs often struggle to "patch" these specific errors, frequently opting to generate entirely new solutions rather than building on previous progress.

  • Iteration Matters: Performance generally improved as the number of steps increased from 5 to 20, demonstrating that LLMs can converge toward better solutions through iterative feedback.
  • Model Capabilities: OpenAI’s gpt-o3-mini was a top performer, achieving a "zero buggy rate" on several tasks. While open-source models like Qwen2.5-72B-Instruct performed well on ML tasks, they lagged behind proprietary models on NP tasks, struggling to interpret complex error feedback.
  • Drafting vs. Refining: Interestingly, the "Draft" setting (generating a new solution while referencing history) often outperformed simple "Refinement" (editing existing code), as it allowed models to escape local optima that simple refinement might get stuck in.

Limitations and Future Directions

The study identified two primary hurdles for future research. First, context window inflation occurs as history grows over multiple iterations, increasing token costs and potentially leading to the loss of early successful strategies. Second, metric scaling across diverse competitions can introduce inconsistencies in performance measurement.

Future work will focus on compressing historical information to enable longer optimization horizons (100+ iterations) and improving the incremental reasoning capabilities of models on combinatorial tasks.

Summary updated

BibTeX
@misc{li2025opt,
  author = {Xiaozhe Li and Jixuan Chen and Xinyu Fang and Shengyuan Ding and Haodong Duan and Qingwen Liu and Kai Chen},
  title = {{OPT-BENCH: Evaluating LLM Agent on Large-Scale Search Spaces Optimization Problems}},
  year = {2025},
  eprint = {2506.10764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10764},
}
Figure