arXiv:2609.31179cs.AISep 2026

Manuscript Offprint

arXiv:2609.31179

SPO: Discovering Adaptive Large Neighborhood Search Operators via Stackelberg Program Optimization

Xinyi Ke, Kai Li, Junliang Xing, Yifan Zhang, Jian Cheng

ABSTRACT

Large neighborhood search (LNS) relies critically on destroy and repair operators, whose effectiveness depends on both adaptation to the evolving LNS state and interaction between the two roles. We introduce Stackelberg Program Optimization (SPO), an LLM-based framework for discovering adaptive executable destroy–repair programs. SPO conditions operator decisions on a compact LNS state, allowing state-dependent behavior to emerge through program discovery, and organizes destroy–repair discovery as a Stackelberg interaction over program space that reflects their asymmetric dependency. Role-specific credits evaluate destroy programs as leaders and repair programs as conditional follower responses, guiding a coupled optimization process that combines LLM generator learning with population-based evolutionary search over programs. Experiments on the traveling salesperson problem and capacitated vehicle routing problem show that SPO outperforms strong baselines across a broad range of settings and generalizes beyond the discovery scale to larger instances and benchmark sets. Behavioral analyses further demonstrate state-dependent operator behavior and coupled destroy–repair improvement during discovery.

1 INTRODUCTION

Combinatorial optimization problems arise widely in routing, scheduling, planning, and resource allocation, yet their rapidly growing search spaces often make exact optimization computationally prohibitive. Large neighborhood search (LNS) has emerged as a powerful metaheuristic framework for obtaining high-quality solutions within practical computational budgets. It repeatedly destroys part of a current solution and repairs the resulting partial structure, enabling broad exploration while preserving useful solution components (Shaw, 1998; Pisinger & Ropke, 2018; Mara et al., 2022). Its effectiveness, however, depends critically on the design of its destroy and repair operators.

Effective LNS operator discovery should account for two intrinsic properties: adaptation over the LNS search process and interaction between destroy and repair, rather than treating operators as fixed and isolated rules. As LNS progresses, the strategy that is effective at one stage may no longer be appropriate at another. For example, an operator may preserve the current solution more carefully while progress is being made, but change how it modifies the solution once the LNS search stagnates. Meanwhile, destroy and repair are inherently coupled: the neighborhood induced by destruction shapes the reconstruction problem faced by repair, making the effectiveness of either dependent on the other. This raises a central question: how can we discover LNS operators that adapt to the evolving LNS state while coordinating destroy and repair?

Designing such adaptation by hand is difficult: beyond specifying what an operator should do, one must determine how its strategy should respond to the evolving LNS state. Recent advances in LLM-based algorithm discovery offer a natural alternative by enabling complex algorithmic be-

*Corresponding author: kai.li@ia.ac.cn haviors to be discovered directly as executable programs (Romera-Paredes et al., 2024; Liu et al., 2024; Ye et al., 2024). Building on this capability, we represent LNS operators as adaptive operator programs whose decisions are conditioned on the evolving LNS state. In this way, adaptation becomes part of the operator program itself, allowing both the operator strategy and its state-dependent changes during an LNS rollout to emerge through discovery rather than be prescribed by hand.

Interaction fundamentally changes how destroy and repair programs should be discovered: their effectiveness is coupled, yet their roles are asymmetric. We therefore introduce Stackelberg Program Optimization (SPO), which formulates their discovery as a leader–follower interaction (von Stackelberg, 1934). Rather than optimizing the two roles independently, SPO carries this interaction throughout program generation, evaluation, and optimization. In each program-discovery round, destroy candidates are generated first, followed by conditional repair responses, and the resulting program pairs are evaluated through LNS rollouts, with their performance translated into role-specific credits for the leader and follower programs. These credits drive a coupled generator–population optimization process: we use Group Relative Policy Optimization (GRPO) (Shao et al., 2024) to update the role-specific LLM generators, while evolutionary selection and variation update the program populations. Together, they shape program generation in subsequent rounds.

Experiments on the traveling salesperson problem (TSP) and capacitated vehicle routing problem (CVRP) show that SPO discovers high-quality destroy–repair programs and generalizes from the discovery setting to larger instances and benchmark distributions. Behavioral analyses provide evidence that the discovered operators exhibit adaptive behavior in response to the evolving LNS state, while destroy and repair develop in a coupled manner during discovery. Controlled ablations confirm the contributions of Stackelberg credit assignment and state conditioning. Together, these results show that SPO provides a framework for discovering adaptive and interacting LNS operators.

References (92)