SLEEP: Simulated Future Learning Environments for Automated Evolution of Heuristic Portfolios

Nguyen Viet Tuan Kiet, Huu Duc Nguyen, Cong Dao Tran, Bui Trong Duc, Huynh Thi Thanh BinhDL4C @ ICML 2026

TL;DR

SLEEP is a "sleep-wake" framework that uses Large Language Models (LLMs) to automatically design and adapt sets of optimization heuristics for changing real-world conditions. By generating synthetic "practice" problems during a sleep phase and testing on real data during a wake phase, the system evolves a robust portfolio of algorithms that can handle shifting data distributions over time.

What Problem Does This Paper Address?

Combinatorial Optimization (CO)—the art of finding the best solution among a massive set of possibilities (like the shortest route for a delivery truck)—usually relies on "heuristics," or rules of thumb. Recently, researchers have used LLMs to automatically write the code for these heuristics (Automatic Heuristic Design, or AHD).

However, most AHD methods are "stationary": they assume the types of problems you face today are the same ones you'll face tomorrow. In reality, data drifts. A routing algorithm optimized for a quiet Monday morning might fail during a rainy Friday rush hour. The challenge is continual learning: how can a system maintain a "portfolio" of heuristics that adapts to these shifts without having access to future data?

Methods

The authors propose SLEEP, a framework inspired by the biological cycle of rest and activity. It consists of two main phases:

  1. The Sleep Phase (Simulation): The system uses a "generator policy" (a small neural network) to create synthetic problem instances. It doesn't just generate random problems; it learns to create environments that are diverse and hard (where current heuristics disagree). An inner evolutionary loop then uses an LLM to "dream up" new heuristic code, refining a portfolio of algorithms that work well on these synthetic challenges.
  2. The Wake Phase (Evaluation): The system deploys its best portfolio on real-world incoming instances. It records how well they perform compared to a baseline. This performance data is then used as a "delayed reward" to train the sleep-phase generator, teaching it to create better, more representative "practice" problems for the next cycle.

The authors also introduce EoH-C (Counterfactual Evolution). This is a selection strategy that ensures the system doesn't "overfit" to its synthetic dreams. It evaluates candidate heuristics not just on simulated data, but also on how they would have performed on recent real-world "wake" instances.

Datasets

The researchers evaluated SLEEP on four classic routing benchmarks, all at a scale of 100 nodes:

  • TSP: Traveling Salesman Problem.
  • CVRP: Capacitated Vehicle Routing Problem.
  • OVRP: Open Vehicle Routing Problem.
  • LVRP: Duration-Limited Vehicle Routing Problem.

They tested these against three types of distribution shifts: Smooth (gradual changes), Abrupt (sudden shifts), and Cyclic (recurring patterns). They also conducted a diagnostic study using Guided Local Search (GLS) on smaller TSP-20 instances to visualize how quickly the system adapts.

Key Insights and Ideas

  • Sleep as Active Preparation: Instead of just replaying old data (which can lead to "catastrophic forgetting"), SLEEP treats the idle time between tasks as an active process of constructing future-proof training environments.
  • Hardness as a Signal for Complementarity: The system specifically looks for instances where its current heuristics disagree. If one heuristic succeeds where others fail, that instance is highly valuable for building a diverse, "complementary" portfolio where different algorithms specialize in different scenarios.
  • The LLM as a Coder, Not a Learner: The LLM isn't "trained" in the traditional sense. Instead, it acts as a high-level programmer that synthesizes executable Python code. This allows the system to leverage the LLM's vast prior knowledge of algorithms without the massive cost of fine-tuning.
  • Synergy of Generation and Selection: The results show that a learned generator and counterfactual selection are better together. The generator provides the "what to learn," and the selector provides the "how to keep what works."

Key Results

  • Superior Performance: The full SLEEP variant achieved the best average rank across all routing problems compared to static baselines and various ablations.
  • Significant Gains: On the TSP benchmark, SLEEP improved final-window performance by 14.59% over the vanilla solver, compared to only 8.73% for a static designer.
  • Robustness to Drift: SLEEP maintained a lower "generalization gap" (the difference between training and test performance), proving that its synthetic environments successfully prepared it for real-world shifts.
  • Rapid Adaptation: Visualization of the GLS study showed that SLEEP starts outperforming other methods within just a few "days" (rounds) of observation.

Limitations and Future Work

  • Controlled Environments: The distribution shifts used were geometric (e.g., points moving from uniform to clustered). Real-world shifts involving changes in graph topology or complex demand patterns may be harder to simulate.
  • Computational Cost: Relying on LLM-based evolution involves significant query latency and API costs, which might be a bottleneck for real-time applications.
  • Heuristic Complexity: The current study focused on solution quality. The authors note that the "wall-clock cost" (how long the generated code takes to run) and the sensitivity of portfolio size need more investigation.
  • Future Directions: The authors plan to extend SLEEP to other domains like scheduling and packing, and to incorporate "long-horizon memory" to help the system remember failed designs and specific drift summaries over much longer periods.

Summary updated

BibTeX
@inproceedings{kiet2026sleep,
  author = {Nguyen Viet Tuan Kiet and Huu Duc Nguyen and Cong Dao Tran and Bui Trong Duc and Huynh Thi Thanh Binh},
  title = {{SLEEP: Simulated Future Learning Environments for Automated Evolution of Heuristic Portfolios}},
  booktitle = {DL4C @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=sVYB5IihO2},
}
Figure