AIMay 11

Budget-Efficient Automatic Algorithm Design via Code Graph

arXiv:2605.1059866.6
Predicted impact top 50% in AI · last 90 daysOriginality Incremental advance
AI Analysis

This work addresses the problem of inefficient LLM usage for algorithm design, offering a more budget-efficient search framework for researchers and practitioners in automated algorithm discovery.

The paper tackles budget inefficiency in LLM-based automatic algorithm design by proposing a directed acyclic graph representation that decomposes algorithms into reusable corrections, enabling correction-level credit assignment. The method consistently outperforms full-algorithm search at equal token budgets on three combinatorial optimization problems.

Large language models (LLMs) have emerged as powerful tools for automatic algorithm design (AAD). However, existing pipelines remain inefficient. They operate at the granularity of full algorithms, redundantly rewriting recurring substructures and discarding low-fitness candidates that may contain valuable algorithmic features. We formalize budget-efficient automatic algorithm design, wherein the search policy maximizes realized fitness subject to limited computational cost. We propose a directed acyclic graph representation of algorithms and build a search framework that fully exploits the LLM's output. Instead of querying the LLM for full algorithms, we use it to obtain corrections: compact operators that add, replace, or remove code blocks. Each correction augments the graph, yielding new algorithms that compose with prior corrections. This graph structure decomposes algorithms into sets of corrections, enabling correction-level credit assignment that informs subsequent queries. We complement this framework with theoretical insights into the ideal balance between search depth and breadth at different budget levels. We validate our method empirically on three combinatorial optimization problems, demonstrating consistent superiority of our graph-based search over full-algorithm search at equal token budget. Finally, our experiments suggest that rich contexts help only when the LLM's prior knowledge is shallow, and can hinder performance otherwise.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes