arXiv:2609.02353cs.NESep 2026

Manuscript Offprint

arXiv:2609.02353

LLM-Driven Joint Evolution of Coupled Heuristics Components for Routing Optimization

Juntao Wei, Yangming Zhou, Zhibin Jiang, Shan Jiang

Abstract

Heuristic design for combinatorial optimization remains heavily reliant on expert knowledge, while existing large language model (LLM)-enhanced evolutionary methods typically evolve isolated algorithmic components, even when one determines the search state on which another operates. This paper proposes LLM-driven Heuristic Components Joint Generation (LLM-HCJG), a population-based framework that jointly generates and co-evolves interdependent heuristic components under a shared design blueprint. Applied to guided local search (GLS), LLM-HCJG couples solution initialization with penalty construction and embeds the generated pair into an enhanced online search mechanism. The resulting form is further transferred from the traveling salesman problem (TSP) to the capacitated vehicle routing problem (CVRP). Theoretical analysis establishes the non-separable state-transition effects between the two components and the advantage in generation consistency. Across synthetic instances and 41 public TSPLIB/CVRPLIB benchmarks, LLM-HCJG attains consistently low optimality gaps, including best or tied-best results on 28 of 29 TSPLIB instances and all 12 CVRPLIB instances. Ablation and structural analyses further indicate that these gains are associated with cross-component compatibility and alignment rather than isolated-component recombination. These results support effective cross-instance transfer within the evaluated routing settings under limited-sample, modest-cost training.

Keywords: Large language models; Automatic algorithm design; Guided local search; Joint co-evolution; Routing optimization.

1 Introduction

Combinatorial optimization problems are ubiquitous in logistics and transportation systems (Song et al., 2025; Cheng et al., 2025). Such problems require repeated generation of high-quality routing or scheduling decisions under stringent operational constraints, often in dynamic and uncertain environments where solution quality directly impacts operational efficiency and service performance.

As problem scale and structural complexity increase, exact algorithms become computationally infeasible (Zhen et al., 2023), rendering heuristic algorithms indispensable in practice (Blum and Roli, 2003). However, achieving strong performance with these methods typically requires extensive domain knowledge and carefully handcrafted rules, which can limit adaptability and lead to premature convergence (Bengio et al., 2021). Meanwhile, many recent learning-based approaches are highly task-specific and often require substantial retraining when problem settings change (Kim et al., 2024). Consequently, a persistent gap remains between the complexity of real-world environments and the practical deployability of existing solution methods, hindering the development of truly adaptive and scalable optimization frameworks.

Recent advances in large language models (LLMs) expand optimization research through improved reasoning, code generation, and knowledge integration (Vaswani et al., 2017; Guo et al., 2025). A potential paradigm is emerging, where LLMs serve not only as problem solvers but also as algorithm designers to address the limits of human intuition and handcrafted engineering (Huang et al., 2024b). In parallel, combining LLMs with evolutionary computation (EC) yields LLM-enhanced EC, in which prompt-based EC drives LLMs to generate and evolve program codes, making for algorithm-level search beyond conventional solution optimization (Wu et al., 2025b).

Currently, the main focus is on embedding highly competitive LLM-based components into fixed heuristics to iteratively improve existing algorithms (Zhang et al., 2024). Following this trend, this paper investigates an LLM-driven guided local search (GLS) framework. GLS alternates between neighborhood-based improvement and penalty-driven perturbation, with the latter enabling escape from local optima and encouraging exploration. Typically, two bottleneck functions jointly determine the overall search direction: (i) solution initialization: constructing the starting route and strongly influencing the subsequent search trajectory; and (ii) penalty construction: defining distance matrix update rules that allow the search to escape local minima while preserving solution structure. These two inherently interdependent components traditionally render substantial domain expertise essential to effective design.

To address these limitations, we propose the LLM-driven Heuristic Components Joint Generation (LLM-HCJG) framework. It advances a distinct dimension of LLM-based heuristic design by explicitly coordinating search-structurally interdependent components (solution-initialization and penalty-construction functions) within a fixed heuristic frame-work through a shared design blueprint and joint evolution. The main contributions of this work are summarized as follows:

• Joint algorithm-level representation for LLM-driven heuristic design. LLM-HCJG represents each individual as a complete heuristic organized around a shared design blueprint and composed of multiple coupled components, rather than as a solution or an isolated rule. This enables algorithm-level search while explicitly modeling the coevolution of interdependent components of search direction.

• Theoretical foundation for coupled component generation. We establish that solution initialization and penalty construction are non-separable in the search-state transition, justifying the complete component pair as the basic unit of the evolution loop. Under the blueprint-consistency condition, the proposed joint-generation mechanism enforces design-principle alignment and reduces mismatch probability.

• Search-direction redesign of GLS from TSP to CVRP. The jointly generated components are embedded into a framework-augmented GLS procedure. This design preserves the interpretable backbone while extending the algorithm from TSP to CVRP.

• Strong empirical performance under modest training cost. On synthetic TSP/CVRP testbeds across the 20-, 50-, and 100-node scales and 41 public TSPLIB (size 51–200) / CVRPLIB (size 32–190) benchmarks, LLM-HCJG confirms the co-evolved structural compatibility via attaining the lowest gaps and best counts of 28/29 and 12/12. These results rely on only five training instances per fitness evaluation, demonstrating that strong heuristics can be generated with limited samples and modest cost.

The remainder of this paper is organized as follows. Section 2 reviews representative paradigms of LLM-based optimization and highlights the bottlenecks of existing LLM-enhanced evolutionary design. Section 3 develops LLM-HCJG as a GLS search-direction redesign framework, where coupled component generation and enhanced online search jointly reshape the guided-search process from TSP to CVRP. Section 4 characterizes the best-evolved heuristics and evaluates performance through synthetic testbeds, TSPLIB/CVR-

PLIB benchmarks, plus ablation analyses of component co-adaptation. Section 5 concludes the paper with a discussion of broader implications and future research directions.