Code-to-Harness: Distilling Black-Box Optimizers from Self-Play
On the map: Synthetic data and self-improvement for LLMs → Self-evolving LLM agents
Abstract (arXiv)
Can an agent learn a numerical search strategy through executable practice and then transfer that strategy as text? We study low-budget black-box optimization, where unaided language models remain well below strong classical optimizers. During development, an agent repeatedly writes and evaluates optimizer programs. It then distills the resulting program and practice record once into a 197-word primary Harness A, which is frozen before evaluation. Harness A reduces Gemini Flash regret by 48% in an independent N=30 study (p<.001), enters the GP-BO performance range on the practice family, and lowers mean regret on all three held-out BBOB landscapes. The same text improves every tested Gemini executor and transfers to Claude Sonnet, reducing regret by 43% and 49% (p≤.005). An independent end-to-end replication produces Harness B, a different program and text at the same performance tier. The same framework also attains the lowest regret on a sealed YouTube reward-tuning production benchmark. Executable practice is thus a viable way to discover a search policy, and language a portable medium for deploying it.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Self-evolving LLM agents, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 16 of its 20 references that are in the map. First posted on arXiv 8 Sep 2026.
Builds on
16 of 20 references.
References · 16
- 2023Large Language Models as Optimizerscited by 830
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
- 2018A Tutorial on Bayesian Optimizationcited by 734
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 266
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
- 2016COCO: A Platform for Comparing Continuous Optimizers in a Black-Box Settingcited by 135
- 2024Large Language Models to Enhance Bayesian Optimizationcited by 127
- 2024LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristicscited by 92
- 2024SPRIG: Improving Large Language Model Performance by System Prompt Optimizationcited by 28
4 more
- 2025AutoPDL: Automatic Prompt Optimization for LLM Agentscited by 27
- 2024Exploring the True Potential: Evaluating the Black-box Optimization Capability of Large Language Modelscited by 19
- 2026Can LLMs Beat Classical Hyperparameter Optimization Algorithms? A Study on autoresearchcited by 12
- 2025LLaMEA-BO: A Large Language Model Evolutionary Algorithm for Automatically Generating Bayesian Optimization Algorithmscited by 10
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026VERSE: Verified Self-Evolving Optimizer for Agent Harnesses
- 2026Where Does Harness-Optimization Value Live? Localized Gains and the Budget-Splitting Trap in Self-Evolving LLM Agents
- 2026CHART: A Harness-Rotation Curriculum for Harness-Robust Search Agents
- 2026Coding Agents are Strong Prompt Optimizers
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimization
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
- 2026HARBOR: Automated Harness Optimization
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement