From Walls to Synergy: A Joint LLM-Evolution Framework for MILP Solvers

Ziao Guo, Yuan Feng, Chenhao Ying, Junchi YanNeurIPS 2026

TL;DR

Modern optimization solvers are intricate machines made of tightly coupled parts, yet machine learning researchers usually upgrade these parts in complete isolation—leading to clashing strategies and diminishing returns. Jolly-MILP uses a team of Large Language Model (LLM) agents to co-evolve three core solver components simultaneously. Remarkably, even though its individual parts underperform specialized neural networks on their own, their coordinated teamwork beats state-of-the-art ML and LLM baselines across the board.

What Problem Does This Paper Address?

Mixed-Integer Linear Programming (MILP) is the mathematical workhorse behind airline scheduling, supply chain routing, and chip design. Because MILPs are NP-hard, exact solvers (like Gurobi or open-source SCIP) rely on a pipeline of clever heuristics to tame the search space:

  1. Presolving: Simplifying the math and removing redundant constraints before the main search begins.
  2. Cut Selection: Adding valid linear constraints ("cutting planes") to shave off useless, non-integer regions of the search space.
  3. Branching: Splitting the problem into sub-problems (forming a search tree) when variables land on fractional values.

Over the last few years, researchers have successfully trained ML models to supercharge each of these steps individually. Naturally, you’d think bolting the best ML presolver, cut selector, and brancher into a single solver would yield an unstoppable optimization engine.

In practice, it hits a wall. In a real solver, these stages talk to each other: presolving reshapes the problem fed to the main engine, and cuts added at the root node alter the mathematical landscape that the branching policy relies on. When you combine ML models trained in isolation, each component shifts the data distribution out from under the next. Retraining massive neural networks iteratively to adapt to one another is computationally miserable. How do we optimize the entire system so the parts actually cooperate?

Methods

Instead of training black-box neural networks, the authors turn to LLMs to write lightweight, symbolic Python/C-style code expressions that guide the solver's decisions. Because code generation looks uniform across all solver stages, they can optimize presolving, cut selection, and branching under one roof using an evolutionary multi-agent framework called Jolly-MILP.

Figure 1: Overview of Jolly-MILP. The framework jointly optimizes three core components, i.e., presolving, cut selection, and branching variable selection, in a MILP solver. Each component is equipped with a dedicated Generator and Analyzer for algorithm generation and evolutionary strategy optimization, while a unified Coordinator aligns their evolution by modeling inter-component synergies. For the branching component, a Controller dynamically partitions the search tree, selects stage-specific strategies, and determines which branching strategies should be retained. The frame- work operates iteratively, continuously improving the overall performance of the solver.

Here is how the agentic assembly line works:

  • Generators & Analyzers (Component-level): Each of the three solver components gets a Generator (which writes candidate heuristic code) and an Analyzer (which compares fast vs. slow candidates to diagnose why one worked better).
  • The Coordinator (Cross-component synergy): This is the secret sauce. The Coordinator reads the notes from all three Analyzers, reasons about how the components interact or conflict, and issues globally aligned evolutionary instructions for the next round of code generation.
  • The Hierarchical Controller (Multi-stage branching): What works at the top of a search tree rarely works at the bottom. A dedicated Controller agent monitors branching performance and slices the tree into depth intervals (specifically, three phases), locking in the best strategy for shallow depths before evolving new specialists for deeper levels.
  • Test-Template Fitness Evaluation: Testing every possible combination of generated presolvers, cut selectors, and branchers would cause a combinatorial explosion. Instead, Jolly-MILP holds a "champion template" of the three components, swaps out candidates for one component at a time to cleanly measure its impact on the whole solver, and updates the template once per cycle.

Datasets

No new benchmarks were introduced; the authors evaluated Jolly-MILP using SCIP 8.0.3 across nine established MILP benchmarks spanning three difficulty tiers:

  • Easy (Synthetic): Multiple Knapsack (MK), Maximum Independent Set (MIS), and Set Covering (SC).
  • Medium: CORLAT (wildlife corridor planning) and MIK.
  • Hard (Real-world inspired): Maritime Inventory Routing (MIRP), plus three heavy-hitters from the NeurIPS 2021 ML4CO competition—Item Placement, Load Balancing, and Anonymous.

Key Insights and Ideas

  • System synergy beats standalone stars: When the authors tested Jolly-MILP's evolved components individually (leaving the rest of SCIP on default), every single one lost to specialized ML models! Yet when plugged in together, Jolly-MILP beat the combined ML models. The framework didn't win by building better soloists; it won by teaching the band to play in time.
Figure 2: Comparison of the improvement when each component is individually applied to the SCIP solver.
  • Reasoning matters, not just extra tokens: Could the Coordinator just be winning because it burns more LLM tokens? In a clever "sham-Coordinator" ablation, the authors replaced the Coordinator with a mechanical rule that blindly concatenated Analyzer notes, and even gave a Coordinator-less variant $2.8\times$ the token budget. Both fell flat—proving genuine cross-component reasoning drives the gains.
  • Warm-starting transfers across math problems: Evolving heuristics from scratch takes time, but initializing a search on hard problems (like Load Balancing) using strategies evolved on an easy problem (Multiple Knapsack) yielded strong speedups in just 0.3 to 2.2 hours of search.

Key Results

  • Consistent Speedups: Jolly-MILP outperformed default SCIP, hyperparameter tuners (SMAC3), standalone LLM frameworks (EoH, ReEvo), and two integrated state-of-the-art ML stacks across all nine datasets.
  • Concrete Numbers: On Easy datasets, Jolly-MILP slashed solving time by 33.46% to 35.70% over default SCIP. On Hard datasets (measured via Primal-Dual gap integral within an hour), it improved performance by 18.15% on MIRP (vs. 12.36% for the best ML stack), 11.01% on Item Placement (vs. 4.87% ML), and 26.53% on Anonymous.
  • Scale Generalization: Policies evolved on small synthetic graphs generalized zero-shot to much larger instances—for example, dropping Large Set Covering solve times from 2046.75s (default) and 1719.06s (best ML) down to 1703.12s.

Limitations and Future Work

  • Coordinate-descent trade-offs: Updating the evaluation template one component per cycle resembles coordinate descent, which can theoretically get trapped in local optima. While the Coordinator's joint reasoning largely mitigates this—and avoids a $>60\times$ runtime penalty from exhaustive joint sampling—it remains an approximation of true simultaneous evaluation.
  • Diminishing returns on tree slicing: Partitioning the branching tree beyond three depth intervals yields virtually no extra speedup while increasing evolutionary overhead.
  • Future Directions: The authors highlight two natural next steps: plugging in stronger future LLM backbones (as performance scaled cleanly from Llama-3-70B up to OpenAI o3), and shifting the broader optimization community away from isolated component benchmarks toward holistic, solver-level co-design.

Summary updated

Abstract

Machine learning (ML) methods have achieved notable success in enhancing individual components of mixed-integer linear programming (MILP) solvers. However, most existing approaches focus on single-component enhancement, neglecting critical interactions among components and often yielding diminishing returns when multiple approaches are integrated. The emergence of large language models (LLMs) provides a promising paradigm for jointly optimizing multiple solver components within a unified framework. In this paper, we propose Jolly-MILP, an LLM-guided framework to jointly optimize presolving, cut selection, and branching variable selection in exact MILP solvers. Our approach introduces a synergistic Coordinator to align component-level generators and a hierarchical Controller to produce adaptive, multi-stage strategies. Extensive experiments on nine MILP datasets demonstrate that Jolly-MILP consistently outperforms both ML-based approaches and existing LLM-based methods. Beyond raw speedups, our analysis shows that the gains do not stem from any single superior standalone component; rather, Jolly-MILP automatically discovers mutually adapted component strategies whose advantage emerges only under joint integration. These results indicate that explicitly modeling cross-component synergy is crucial for further gains in exact MILP solving, offering a new pathway toward solver-level co-design.
BibTeX
@inproceedings{guo2026from,
  author = {Ziao Guo and Yuan Feng and Chenhao Ying and Junchi Yan},
  title = {{From Walls to Synergy: A Joint LLM-Evolution Framework for MILP Solvers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=NvJ3gFAFu1},
}
Figure