Scheduling ships into berths, routing delivery vans, packing boxes into containers, deciding where to put warehouses. These are all combinatorial optimization problems: there is a finite but astronomically large set of possible answers, and checking them all is out of the question. In practice, people use heuristics, clever rules of thumb that find good answers fast. Designing a strong heuristic for a new variant of a problem can take an expert months.

Infographic · Corner stats
SI illustration infographic: LACE designs its own problem-solving algorithms. Key figures: 0.945 LACE average score; 0.870 next-best method; 36 classic benchmarks. Benchmark results, not real-world savings.
  • FieldSuper Intelligence
  • TopicSuper Intelligence
  • SourceNature Machine Intelligence
  • PublishedOct. 1, 2026

Large language models can write code, so the obvious question is whether they can write these heuristics. A team led from Nanyang Technological University (NTU) in Singapore reported in Nature Machine Intelligence on Oct. 1, 2026, that the answer depends heavily on how you ask. Their framework, LACE (LLM-driven Algorithm Construction via Complementary Evolution), scored 0.945 on average across 36 classic benchmark problems, against 0.571 for simply prompting a model to write a solver.

Leap's first version worked from the abstract. This one draws on the paper's supplementary material and the authors' unusually complete interactive companion page, which publishes the figure data, all 400 final heuristics and every per-instance score.

The scoreboard

The benchmark is CO-Bench, a set of 36 classic problems in five families. Scores are normalized so that 1.0 is the best known result for each instance. The supplementary page lists these averages:

  • LACE: 0.945 on average, valid rate 0.944.
  • EoH-S (strongest prior LLM-based method): 0.870 on average, valid rate 0.611.
  • HeurAgenix: 0.855 on average, valid rate 0.583.
  • FunSearch: 0.842 on average, valid rate 0.500.
  • EoH: 0.840 on average, valid rate 0.555.
  • Greedy Refine: 0.840 on average, valid rate 0.555.
  • Classical solver (human-designed): 0.797 on average, valid rate 0.611.
  • ReEvo: 0.774 on average, valid rate 0.555.
  • o3-mini, prompted directly: 0.571 on average, valid rate 0.361.

Two things stand out. First, the gap in "valid rate," the share of problems on which a method produced a feasible answer for every single instance, is larger than the gap in score. Earlier LLM methods often produced code that broke or timed out. Second, the same underlying model, o3-mini, scored 0.571 on average when asked directly and 0.945 on average inside LACE. That is the authors' central claim, and the abstract puts it plainly: the gain lies "in the framework rather than the model."

By family, LACE was strongest on location-and-assignment problems (0.990) and packing-and-cutting problems (0.982), and weakest on routing-and-graph problems (0.890) and selection-and-knapsack problems (0.894). Those are still above the other methods, but they show it is not uniformly near-perfect.

How it works, in three moves

Move 1: Write the contract before the algorithm. LACE uses four LLM "designer agents" in sequence. The first three build what the authors call an I-O-T interface: an input schema (what data the problem provides), an output schema (what a valid answer looks like) and a tool library (a feasibility checker, an objective function and helper routines). Nothing is accepted on the model's word. Every module must actually run on real instance data before it is admitted, with a bounded generate-validate-repair loop. Only then does the fourth agent write the first batch of heuristics. The idea is to stop asking the model to invent the parsing, the feasibility logic and the clever search strategy all at once.

To keep the benchmark fair, the team did not let LACE grade itself. For the 36 CO-Bench problems, it used CO-Bench's own input parsers and official scoring. LACE generated only the output schema, the tools and the heuristics.

Move 2: Evolve a portfolio. LACE keeps a portfolio of heuristics (10 in the published runs) and improves it over several rounds. Five LLM "operators" generate new candidates. Some refine strong heuristics, some redesign weak ones, one cross-breeds two heuristics that do well on different instances, one contrasts a strong and a weak heuristic, and one injects deliberate novelty. Two more repair code that crashes or runs past its time budget. Every heuristic runs under a strict per-instance time limit: 10 seconds for the benchmark problems, 60 seconds for the new ones.

Move 3: Select for complementarity. Here is the twist in the name. LACE does not keep the 10 heuristics with the best average. It solves a small optimization problem (a mixed-integer program) to pick the set whose best member, on each instance, ranks highest, so the team covers the hard cases between them. At run time, all the specialists try each instance and the best answer wins.

What the ablations show

The supplementary material switches off one component at a time across all 40 problems (where the full system averages 0.950):

  • Selection rule. Replacing complementary selection with "keep the 10 best on average" dropped the score to 0.801. A metric the paper calls survival rate, the share of instances on which a method comes within 1 percent of the best-known result, fell from 0.633 to 0.362. Random selection did worse still. The authors' summary: "a high average can coexist with systematic failure on the hardest instances."
  • Operators. Removing the cross-breeding operator cost the most among the generators, dropping the score to 0.904. But the two repair operators mattered more. Without error repair, the score fell to 0.850, and only 73 percent of outputs were valid. In other words, much of LACE's reliability comes from fixing the code LLMs write, not from the model's raw brilliance.
  • Iterations and cost. The average rose from 0.852 for the initial portfolio to 0.949 after six rounds, with sharply diminishing returns (+0.039 in the first round, +0.003 in the sixth). Token use grew each round, to about 154 million tokens in total across the 40 problems.
  • Portfolio size. On every family, going from one heuristic to two gave the biggest jump. More specialists kept helping, but by smaller amounts.

The four new problems

Benchmarks that have been public for years may have leaked into a model's training data. So the team also wrote four new problems about container-terminal operations: a port scheduling problem that couples berths, tugboats and timing, plus three tugboat routing-and-scheduling variants (single depot, multi-depot and variable speed with fuel). The SI argues their constraint structure "does not match any standard benchmark."

On these, the companion page reports LACE averaging 0.969 to 0.990 across the four problems over five runs each. The abstract rounds that to scores of 0.97 to 0.99. Five of the six LLM-based baselines, including Google DeepMind's FunSearch, produced no feasible algorithm at all. HeurAgenix did run, but scored 0.23 to 0.58. Six standard metaheuristics (genetic algorithms, particle swarms, ant colonies and others) did well on the port problem (about 0.96) but fell to roughly 0.54 to 0.58 on the hardest, variable-speed tugboat problem. The commercial solver Gurobi, given 30 minutes per instance, scored 0.40 to 0.64. At these sizes it usually could not prove an optimal answer in time. It was scored on its best feasible answer, and counted as a failure where it found none.

The limits

The results are strong, and the openness is exemplary. Code, data, every heuristic and a one-click reproduction notebook are public. But a careful reader should hold onto several things:

  • These are benchmark scores, not measured savings. A score of 0.97 means 97 percent of the best result any tested method found, not 97 percent of a theoretical optimum and not a cost reduction at a real port. NTU's release says the same: "against the best result obtained by any method tested."
  • On the new problems, LACE is partly grading against itself. Because no published optimum exists, the reference is the best answer found in the comparison, and LACE often found it. Scores near 1.0 there mean "best in this field," which is meaningful, but not "near-optimal."
  • The new problems were written by the same team. They are new, but they are not independent. External problems set by someone else would be a stronger test.
  • On average, not on every problem. The 0.945 is averaged across problems. Leap's per-family numbers above show where it is weaker.
  • Backbone matters, at least for cost. The companion page compares four models as LACE's engine. Average scores ranged from 0.81 (DeepSeek V4 Pro) to 0.98 (Claude Sonnet 4.6). The reported cost per problem ranged from $1.59 (Gemini 3 Flash Preview) to $45.08 (Claude Sonnet 4.6), with wall-clock times of 48 to 68 minutes per problem. The page does not say whether this comparison used all 40 problems, so these scores should not be read against the headline results. That supports NTU's "about an hour" figure. Its "about US$10" matches the o3-mini run ($9.21). The "months" of expert work it replaces is the authors' characterization, not something the paper measures.
  • Heuristics, not guarantees. LACE writes fast rules of thumb. It does not prove its answers are optimal, unlike exact solvers when they finish.

Why it matters

The most transferable lesson is about scaffolding. The paper's evidence suggests that giving a language model a verified contract, a strict time budget, a repair loop and a selection rule that rewards covering each other's blind spots turns an unreliable code writer into a dependable one. The same model, without that structure, failed most of the time.

That echoes another Leap story. In AlphaProof Nexus, Google DeepMind paired a language model with Lean, a strict proof checker, and even a basic generate-then-verify loop was enough to settle open Erdős problems. Both results put the checker, not the model, at the heart of trust. And like the MonoRace drone, which won with a tiny network inside a well-designed system, LACE is a reminder that architecture can matter more than raw model size. For a different kind of machine-assisted design, see how physics-based software sharpened JWST's view by fitting a model of the telescope itself.

What to watch

  • Independent tests on problems the authors did not write, ideally with real operational data.
  • Comparisons with expert-designed heuristics and with exact solvers given enough time on smaller instances where optimal answers are known.
  • Whether the "contract first" design carries over to messier problems whose rules are not cleanly specified in advance.

Updated Nov. 11, 2026: Leap rewrote and expanded this explainer from the paper and the supporting materials listed under Sources.