TL;DR
DASH (Dynamics-Aware Solver Heuristics) is a novel framework that leverages Large Language Models (LLMs) to automatically design efficient, specialized combinatorial optimization solvers. By evaluating a solver's entire convergence trajectory rather than just its final score, and dynamically retrieving specialized solvers for different problem profiles, DASH improves runtime efficiency by over 4× while slashing LLM adaptation costs by 90%.
What Problem Does This Paper Address?
Combinatorial optimization (CO) problems—such as vehicle routing, scheduling, and chip placement—underpin modern logistics and engineering. Because these problems are NP-hard, practical solutions rely heavily on hand-crafted heuristic solvers. However, designing these heuristics manually is incredibly labor-intensive, and the resulting algorithms often fail to generalize when the problem's characteristics (like size or density) shift.
Recently, LLM-Driven Heuristic Design (LHD) has emerged as a way to automate this process by using language models to iteratively write and refine solver code. Despite their promise, existing LHD frameworks hit two major roadblocks:
- Endpoint-only evaluation: They rank candidate solvers solely by their final solution quality (the "gap" to the optimal solution), completely ignoring how fast they got there.
- High adaptation costs: Real-world data is heterogeneous. When the problem distribution shifts, current frameworks must restart the entire computationally expensive LLM optimization loop from scratch to generate a new specialized solver.
Methods
The authors introduce DASH, a framework that treats solver execution as a dynamic system and optimizes both the search mechanism (the rules of the algorithm) and the runtime schedule (how time is allocated across different phases of the algorithm).
DASH introduces three core components:
- Trajectory-aware Lyapunov Decay Rate (tLDR): Instead of looking only at the final answer, DASH logs the entire history of the best-so-far solution over wall-clock time. It computes an effective decay slope in log-space, rewarding solvers that converge rapidly and stably.
- Three-Layer Co-Evolution: The optimization process is broken down into three sequential layers to manage the complex coupling between algorithm logic and time budgets:
- Mechanism Discovery Layer (MDL): The LLM proposes edits to the core search operators.
- Mechanism Consolidation Layer (MCL): The LLM refactors the code to eliminate "code bloat" and redundant logic.
- Schedule Shaping Layer (SSL): The LLM compresses low-efficiency phases and enhances high-impact phases to get the most out of the runtime budget.
- Profiled Library Retrieval (PLR): To avoid re-running the LLM for every new problem variant, DASH clusters training instances into distinct groups based on structural features (scale, density, etc.). It archives specialized "expert" solvers for each group during a single evolutionary run. At test time, it simply computes the profile of a new instance and retrieves the best-matching specialized solver to warm-start the run.
Datasets
DASH was validated across four classical combinatorial optimization problems:
- Traveling Salesperson Problem (TSP): Evaluated on synthetic Euclidean instances ranging from 20 to 500 nodes, alongside the standard TSPLIB benchmark for zero-shot transfer evaluation.
- Capacitated Vehicle Routing Problem (CVRP): Tested on synthetic instances with 100 and 500 customers.
- Vehicle Routing Problem with Time Windows (VRPTW): Tested on synthetic instances with 15 and 20 customers.
- Multi-Knapsack Problem (MKP): Evaluated using standard benchmark instances from the OR-Library (500 items with 10 and 30 constraints).
Key Insights and Ideas
- The Trajectory is a Signal: Solvers that reach the same final solution quality can have vastly different internal dynamics. A solver that plateaus early vs. one that steadily improves offers different opportunities for schedule optimization. Capturing this via tLDR allows the framework to unlock massive speedups.
- Free Specialization via Decoupled Archiving: Instead of running separate LLM optimization loops for every distinct problem type, PLR harvests specialized solvers as a byproduct of a single global evolutionary process.
- Code Bloat Mitigation: Iterative LLM prompting naturally leads to complex, messy code. The inclusion of a dedicated consolidation layer (MCL) ensures that the discovered heuristics remain clean and generalizable rather than overfitting to specific training instances.
Key Results
- 4× Efficiency Gain: DASH consistently outpaced prior LHD baselines (like FunSearch, EoH, and ReEvo), delivering a 4× improvement in runtime efficiency while matching or beating their solution quality.
- Superior Scaling: On the largest and hardest problem scale (TSP500), DASH reduced the gap of the baseline Guided Local Search from 6.400% to 0.974% while using only 3.680 seconds—far below the full 10-second budget consumed by other methods.
- 90% Cost Reduction: Under distribution shifts (transferring to TSPLIB), PLR-enabled warm starts maintained low gaps while slashing LLM token/adaptation costs by approximately 90% compared to re-running optimization.
- LLM Agnostic: The framework's advantages hold true across multiple underlying LLMs, including GPT-5.4, DeepSeek-V3.2, Gemini-3.1-Pro, Claude-4.6-Sonnet, and Qwen3.5-35B.
Limitations and Future Work
- Granularity Trade-off: Increasing the number of instance groups ($G$) in PLR beyond a certain point yields diminishing returns in solution quality while increasing the offline evaluation overhead per iteration.
- Backbone Dependency: DASH builds on top of existing metaheuristic skeletons (like Guided Local Search or Ant Colony Optimization). Its performance ceiling is still inherently bounded by the flexibility and capabilities of the underlying solver backbone.
Summary updated