TL;DR
While Large Language Models (LLMs) excel at one-shot generation, their ability to iteratively self-optimize using environmental feedback remains a major bottleneck. This paper introduces OPT-BENCH, a new benchmark combining machine learning tasks and NP-hard problems, revealing a stark cognitive divergence: LLMs are decent at continuous parameter tuning but struggle fundamentally with discrete, combinatorial optimization.
What Problem Does This Paper Address?
Most existing LLM benchmarks evaluate "one-shot" performance—can the model generate the correct answer in a single pass? However, true autonomous intelligence requires an iterative loop of trial, feedback, and refinement.
The authors tackle the lack of rigorous frameworks for evaluating an LLM agent's intrinsic self-optimization capabilities. Specifically, they want to know if LLMs can navigate large-scale search spaces by learning from dynamic environmental feedback over multiple steps, or if they merely rely on rote tool use and stochastic guessing.
Methods
The authors introduce OPT-Agent, a framework designed to emulate a human-like perception-memory-reasoning loop. Rather than relying on heavy prompt engineering or external solvers, OPT-Agent interacts with the environment through three basic actions:
- Drafting (Initialization): Generating an initial hypothesis or code script from scratch.
- Improving (Refinement): Acting as an optimizer by retrieving historical context (past code, metrics, and feedback trends) to iteratively improve valid solutions.
- Debugging (Correction): Analyzing error logs from the environment to recover from invalid states.
The framework evaluates these actions across two distinct reasoning modalities: continuous inductive optimization (tuning numerical parameters) and discrete deductive reasoning (constructing valid combinatorial structures).
Datasets
The paper introduces OPT-BENCH, a benchmark consisting of 30 tasks split into two contrasting feedback landscapes:
- 20 Real-world Machine Learning Tasks: Sourced from Kaggle competitions (e.g., Spaceship Titanic, Bike Sharing Demand). Feedback here is numerical and directional (e.g., validation accuracy or RMSLE).
- 10 Classical NP-hard Problems: Brittle, discrete combinatorial spaces (e.g., Traveling Salesman Problem, Hamiltonian Cycle). Feedback is binary (valid/invalid) accompanied by specific rule-based error messages (e.g., "Node visited twice").
To establish bounds, the authors compare LLM performance against a memoryless Random Rollout (lower bound) and Human Expert Baselines (upper bound, derived from Kaggle gold medals and standard heuristics like simulated annealing).
Key Insights and Ideas
- The Feedback Efficiency Paradox: LLMs are highly effective inductive optimizers in continuous spaces, treating numerical feedback like directional gradients to prune search spaces. However, in discrete combinatorial spaces, they suffer from a "feedback misinterpretation phenomenon." Because discrete error signals lack gradients, self-optimization often degenerates into "random search with memory."
- The "Reset vs. Repair" Flaw: When faced with a broken constraint in an NP-hard problem (like a disconnected edge in a graph), humans locally repair the error. LLMs, conversely, struggle with incremental structural editing; they frequently discard their entire history and generate a completely new solution from scratch.
- A Scaling Law for Self-Improvement: Larger models possess a "cognitive threshold" necessary for self-improvement. Smaller models (e.g., 7B parameters) perceive complex error traces as noise due to limited working memory, whereas larger models exhibit emergent multi-step inductive reasoning.
- Reasoning Models Dominate Topology: Models explicitly trained with Chain-of-Thought (CoT) capabilities (like
gpt-o3-miniandDeepSeek-V3-Thinking) significantly outperform general models in NP-hard domains, maintaining global topological consistency and achieving near-zero buggy rates.
Key Results
- In Continuous Domains (ML): Frontier models excel.
gpt-4oachieved a dominant 18/2 Win Count over the random baseline at 20 steps, closing the expert gap by 0.61. - In Discrete Domains (NP): The advantage vanishes.
gpt-4o's Win Count dropped to 4/6, failing to reliably beat a memoryless random search. - The Human Gap: Even the best reasoning models plateaued early in long-horizon tasks. While
DeepSeek-V3-Thinkingachieved a 0.00% buggy rate and the highest expert gap closure (~0.79) on NP tasks, a persistent gap remains between the best LLMs and human expert heuristics.
Limitations and Future Work
The authors acknowledge two primary limitations:
- Model Selection: Due to resource constraints, several state-of-the-art models (such as the Gemini 3 series, OpenAI GPT-5.2, and Claude 4.5) were not included in the evaluation.
- Benchmark Scale: The current benchmark is limited to 30 environments.
Future work will focus on scaling OPT-BENCH to a larger, more diverse set of environments to provide a more comprehensive evaluation of autonomous optimization.
Summary updated