Self-Validating Heuristics: Reliable Delivery under Distribution Shift in Language-Model-Driven Online Heuristic Design

Wang, Tianyu, Wang, Xi Vincent, Wang, Lihui, Li, Mian

–arXiv.org Artificial Intelligence 

Language-model-driven heuristic search evolves programs on few training instances and delivers the training winner. Under distribution shift this winner often fails despite better archived programs. Most remedies alter training; we propose runtime self-validation. At deployment, it replays a greedily chosen archive portfolio plus a reference rule on the observed prefix and continues with the winner, using fixed checkpoints to bound replayed placements in bin packing. On the main online bin-packing group, self-validation lowers waste from 2.31 to 1.85 percent and brings all 61 archives below BestFit on the test set. It passes pre-specified tests on 540 new-seed instances and 180 from three held-out generators. On new instances of the test families, its archived programs lower waste by about 0.17 points beyond a switch between two classical rules. On the held-out generators it removes the collapse of pool delivery (8.56 to 4.89 percent) and is level with that switch (4.85). On an online knapsack it cuts the gap from 10.1 to 3.2 percent (3.1 with two members). Across four matched searches, the best retained programs differ by at most 0.14 points; the delivered programs, by up to 3.7.