Overcoming the Weakest-Link Effect in LLM-Driven Program Optimization via Heterogeneous Edit Recombination
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly used to solve complex problems by searching over program space, offering a general paradigm for scientific problems that can be naturally represented and solved as programs. Despite recent progress, identifying effective optimization directions for a candidate program remains challenging. By analogy with automatic differentiation, existing methods typically guide the search using a textual ``gradient'': a first-order update direction expressed as textual edits. Such gradients are inferred either from previously evaluated programs or from LLM-generated feedback on the implicit program-score mapping. However, these estimates become increasingly unreliable as the program--score mapping grows more complex, limiting their practical utility. We argue that explicit gradients are not essential for effective program optimization. Leveraging their prior knowledge, LLMs can propose plausible atomic edits directly from the current program, thereby enabling a zeroth-order optimization strategy. However, zeroth-order search suffers from a textitweakest-link effect: when a bundle of edits is accepted or rejected as a whole, a single harmful edit can negate the benefits of all remaining edits. To address this issue, we introduce HERO, a program optimizer that prompts an LLM to generate diverse, non-overlapping atomic edits and then systematically selects and composes them into coherent program improvements using evaluator scores. We evaluate HERO across algorithmic problems, strategy games, the design of LLM-based agentic systems, and robotic path planning. Across these domains, HERO consistently discovers higher-scoring programs and converges substantially faster than prior LLM-based optimizers, while consuming fewer tokens.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 20 of its 41 references that are in the map. First posted on arXiv 31 Jul 2026.
Builds on
20 of 41 references.
References · 20
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 867
- 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 276
- 2025ShinkaEvolve: Towards Open-Ended And Sample-Efficient Program Evolutioncited by 174
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 69
- 2025Self-Improving Language Models for Evolutionary Program Synthesis: A Case Study on ARC-AGIcited by 36
- 2023LLF-Bench: Benchmark for Interactive Learning from Language Feedbackcited by 33
- 2024Large Language Model-Based Evolutionary Optimizer: Reasoning with elitismcited by 27
- 2023LLM A*: Human in the Loop Large Language Models Enabled A* Search for Roboticscited by 26
- 2024The Importance of Directional Feedback for LLM-based Optimizerscited by 26
- 2024REVOLVE: Optimizing AI Systems by Tracking Response Evolution in Textual Optimizationcited by 20
8 more
- 2023When and Why Momentum Accelerates SGD:An Empirical Studycited by 19
- 2021Understanding Mobile GUI: from Pixel-Words to Screen-Sentencescited by 13
- 2025REGNav: Room Expert Guided Image-Goal Navigationcited by 12
- 2025Learning Game-Playing Agents with Generative Code Optimizationcited by 8
- 2019Recognition Of Surface Defects On Steel Sheet Using Transfer Learningcited by 7
- 2024Synthesizing Interpretable Control Policies through Large Language Model Guided Searchcited by 4
- 2026Instruction-as-State: Environment-Guided and State-Conditioned Semantic Understanding for Embodied Navigationcited by 4
- 2018Robot Path Planning Algorithms: A Review of Theory and Experimentcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025LLM Program Optimization via Retrieval Augmented Search
- 2026What Makes an LLM a Good Optimizer? A Trajectory Analysis of LLM-Guided Evolutionary Search
- 2023Learning Performance-Improving Code Edits
- 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs
- 2025Peering Inside the Black Box: Uncovering LLM Errors in Optimization Modelling through Component-Level Evaluation
- 2026OptiCom : A Unified Framework for State-Conditioned Composition in LLM-Driven Optimization
- 2026OPT-Engine: Benchmarking the Limits of LLMs in Optimization Modeling via Complexity Scaling
- 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗