arXiv:2610.03316cs.AIOct 2026

Manuscript Offprint

arXiv:2610.03316

Multi-Task Evolution for Zero-Shot Cross-Problem Generalization using LLMs

Zhouliang Xie, Changliang Zhou, Genghui Li, Zhenkun Wang

ABSTRACT

Designing effective heuristics for diverse combinatorial optimization problems requires substantial expertise and repeated search. Large language models (LLMs) automate heuristic generation and refinement, but heuristic search typically depends on evaluation feedback from the problem being optimized. Generalizing to new problem definitions using only source-task feedback therefore remains a central challenge. We introduce MECo, an LLM-driven multi-task evolutionary framework for zero-shot cross-problem generalization. MECo maintains task-conditioned heuristic populations and uses a transfer gap based on cross-task population performance to guide their interactions. These interactions enable the transfer and recombination of heuristics. A complementary selection criterion then constructs a compact heuristic set by rewarding each member's additional coverage of source combinations. The selected set is applied to target problems without further search or adaptation. Experiments on 32 problem variants across vehicle routing (VRP) and flexible job-shop scheduling (FJSP) show that MECo achieves the lowest mean costs compared with eight automated heuristic design (AHD) baselines under the same budgets. On out-of-domain problems, it outperforms the strongest baseline in each family. Moreover, integrating the framework of MECo with different AHD methods improves their ID and OOD performance in both families, supporting its effectiveness across different methods.

1 INTRODUCTION

Combinatorial optimization problems (COPs) arise in a wide range of logistics and manufacturing applications (Toth & Vigo, 2014). Changes in operational requirements can introduce new problem variants, often requiring existing heuristics to be adapted or redesigned. This process demands domain expertise and repeated cycles of design and evaluation, making heuristic development a recurring cost. Large language models (LLMs) offer a promising way to reduce this burden through automated heuristic design (AHD) (Liu et al., 2026b). Given a problem description and evaluation feedback, these methods iteratively generate and refine executable heuristics. We distinguish task-specific AHD, which designs heuristics for each problem independently, from cross-task AHD, which jointly develops heuristics for multiple problems. Figure 1 compares these design paradigms alongside our framework.

We define a task as the design of heuristics for a particular optimization problem. Task-specific AHD methods have made substantial progress in automating this process. Population-based evolutionary search combines LLM-driven program generation with fitness-based selection (Liu et al., 2024b; Romera-Paredes et al., 2024). Reflection further guides program generation using performance feedback (Ye et al., 2024). Other methods balance exploration and exploitation through diversity-oriented evolution with harmony-search refinement (Dat et al., 2025).

∗^{*}Corresponding author or Monte Carlo tree search (Zheng et al., 2025). These advances improve heuristic discovery within individual tasks. However, applying the same design framework to another problem typically requires another round of problem-specific search. Without systematic reuse of previously discovered heuristics, even closely related problems can incur repeated design costs.

Cross-task AHD addresses this repetition by jointly developing heuristics for multiple problems. MoH learns reusable heuristic optimizers (Shi et al., 2026), while MTHS jointly evolves general-purpose metaheuristics and task-specific programs (Liu et al., 2026c). However, jointly

Figure

Figure 1: Comparison of heuristic design paradigms. Unlike existing methods, MECo evolves a heuristic set for zero-shot cross-problem generalization.

designing heuristics for multiple problems does not ensure that the resulting programs can be applied directly to new problems without additional search. In practice, operational requirements can be combined in many ways, and each new combination can define a distinct optimization problem. This creates a potentially large family of related design tasks. If each new task requires a fixed search budget, the total design cost grows with the number of tasks. Moreover, evaluation data for new combinations may be unavailable. This motivates designing heuristics using feedback from a limited set of source tasks and applying them directly to new problems without additional heuristic search.

To address this challenge, we propose MECo, an LLM-driven framework that uses Multi-task Evolution through task Combination to enable zero-shot cross-problem generalization. Starting from source tasks, MECo progressively develops new populations for combined task specifications. Their offspring inherit and adapt parent heuristics through evolutionary operators designed for cross-task knowledge transfer. These offspring are evaluated separately on the available datasets, allowing joint feedback to guide heuristic design for combined problems without accessing their instances. To guide interactions among the growing collection of populations, a task transfer gap measures how well the heuristics from one population perform on the sources associated with another. MECo uses this measure to favor compatible parent tasks while exploring new combinations. Finally, it selects a small set from all task populations according to the complementary performance of its members across combinations of sources. Both evolution and set selection rely exclusively on source data, and the selected programs are applied to target problems without further search or adaptation.

Our contributions are summarized as follows.

• We introduce MECo, a multi-task evolutionary framework that develops complementary heuristics for zero-shot cross-problem generalization using source task feedback alone.

• We introduce a population-level transfer gap to quantify empirical task compatibility and guide heuristic transfer between task populations.

• Experiments on 32 variants across vehicle routing (VRP) and flexible job-shop scheduling (FJSP) show lower mean costs on unseen problems than eight AHD baselines under matched proposal budgets. Integrating the framework with three existing AHD methods further improves their performance.

References (34)