arXiv:2610.17379cs.AIOct 2026

Manuscript Offprint

arXiv:2610.17379

EPOCH: Coverage-Aware Evolution with Experiential Preference Optimization for LLM-based Automated Heuristic Design

Oguzhan Gungordu, Ayse Tursucular, Siheng Xiong, Faramarz Fekri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM-based automated heuristic design (AHD) discovers heuristics for combinatorial optimization problems (COPs), where an LLM generates candidates in an evolutionary search. Existing frameworks freeze the generator or fine-tune it on a scalar fitness signal hiding which instances each heuristic covers. Reflection-based frameworks improve heuristics with natural-language feedback, but it stays in the prompt and never reaches the generator's weights. We propose EPOCH, which makes instance coverage the objective of the evolutionary search and fine-tunes the generator to internalize reflection. Parent selection, operator allocation, and stagnation recovery all optimize how well the heuristics jointly cover the training instances, so the search returns a complementary heuristic ensemble. The generator learns from its own search by experiential preference optimization. A teacher LLM returns a natural-language insight on the generated heuristics, and the generator produces new heuristics with this insight. These improvements join the preference pairs for direct preference optimization (DPO). Since DPO only teaches the generator to rank these improvements, a reflective self-distillation (RSD) term makes it more likely to generate them on its own, and the gains accumulate over the long horizon of the search. Across COPs and open-source LLM backbones, EPOCH's heuristic ensembles outperform inference-only and fine-tuned baselines and generalize across problem scales.

1 Introduction

Many operational decisions, from vehicle routing to scheduling, are COPs (Tam et al., 2024). Because these problems are typically NP-hard, practitioners rely on heuristics that trade optimality for speed (Kirkpatrick et al., 1983; Glover, 1990). Designing a strong heuristic by hand demands expertise, and a design for one problem rarely carries over to its variants (Choong et al., 2018; Pillay and Qu, 2018). AHD makes the heuristic itself the object of search (Burke et al., 2013), classically with genetic programming, which cannot express heuristics beyond its human-defined function set (Langdon and Poli, 2013; Duflo et al., 2019).

LLM-based AHD replaces that function set with a large language model (LLM) that generates heuristics in the evolutionary loop (Liu et al., 2023), demonstrated by FunSearch (Romera-Paredes et al., 2023) and EoH (Liu et al., 2024). ReEvo (Ye et al., 2024) adds reflection (Shinn et al., 2023), HSEvo (Dat et al., 2025) maintains population diversity, MCTS-AHD (Zheng et al., 2025) organizes heuristics in a Monte Carlo tree, and EoH-S (Liu et al., 2026) evolves a complementary set of heuristics. All keep the generator frozen. CALM (Huang et al., 2026) and EvoTune (Šurina et al., 2025) instead fine-tune the generator on the heuristics it generates, using group-relative policy optimization (GRPO) (Shao et al., 2024) with a manually designed, graded scalar reward and DPO (Rafailov et al., 2023) with fitness-ranked pairs, respectively. In both, a heuristic is reduced to a single number, so the update drives the generator toward one best-on-average heuristic, with no reflection on the generated heuristics. Appendix A gives an extended review of related work.

Despite this progress, two limitations remain. First, no heuristic is best on every instance of a distribution (Liu et al., 2026), and a scalar fitness hides which instances each heuristic wins, so the coverage of the training instances cannot guide the evolutionary search beyond survivor selection. Second, the natural-language feedback of the inference-only methods stays inside the prompt and never reaches the generator's weights, and the fine-tuned methods employ no reflection. We therefore propose Experiential Preference Optimization for Coverage-aware Heuristic Design (EPOCH), a framework that fine-tunes the generator during

∗^{*}Preprint. Under review.

admit valid heuristics (Y1∪Y2)→pool P⋅archive A(Y_1 \cup Y_2) \to \text{pool } \mathcal{P} \cdot \text{archive } \mathcal{A}

Figure

Figure 1: Overview of EPOCH, illustrating one training iteration. (1) Heuristics are represented by per-instance gap vectors, whose minima define expert heuristics and the coverage gap ρ(P)\rho(\mathcal{P}). (2) These drive parent selection, operator allocation, and coverage-aware population management. (3) The policy πθ\pi_{\theta} samples rollouts from the operator prompt qq, the teacher πT\pi_{T} returns an insight zz on the best and worst valid ones, and πθ\pi_{\theta} regenerates from q⊕zq \oplus z. (4) Responses form within-batch and cross-round preference pairs; periodic DPO bursts add an RSD term internalizing the hint-guided improvement into the unhinted policy.

a coverage-aware evolutionary search and turns teacher-guided reflection into a training signal.

Our main contributions are as follows. (1) We develop a coverage-aware LLM-based AHD framework that fine-tunes the generator and threads each heuristic's per-instance optimality gaps through parent selection, operator allocation, stagnation recovery, and the selection of the deployed heuristic ensemble, so the search optimizes instance coverage rather than average fitness. (2) We convert teacher-guided reflection into a training signal, where a teacher LLM serves only as a critic, the improvements it guides form preference pairs, and a reflective self-distillation term internalizes them so the gains accumulate over the search. (3) We design an adaptive operator bandit that favors the evolutionary operators improving instance coverage, and a coverage-based stagnation recovery with a persistent archive to preserve the best heuristics found on each instance. (4) Experiments across COPs and LLM backbones show that the heuristic ensembles discovered by EPOCH outperform inference-only and fine-tuned LLM-based AHD baselines and generalize across problem scales.