Earlier this year, a group of researchers published a striking idea they call weight-space programming. A large language model doesn't have to train a neural network with gradients. It can write the weights directly, the way a programmer writes code, by looking at what the network outputs and adjusting the numbers.1 If that works, you could get a small, fast, custom model without a training set or a training pipeline.

Operations research is full of places where a small, fast scoring rule makes a big difference. A solver decides thousands of times per second which variable to branch on, which route to price, which label to keep. Today those rules are hand-tuned heuristics or networks trained on solver traces.2 So I asked a narrow question: if an LLM writes those rules, does an exact solver get faster?

Before anything else, how this was made. The whole study was run as an experiment in AI-assisted research. Claude Opus 5.5 (Anthropic), working as an agent in Claude Code, wrote the code, the network weights, the analysis and the paper, under my direction. I chose the questions, approved or redirected each step, and I'm responsible for the result. Every number came from runs on my own machine, and every reference was checked against its source. The paper says this in a box on its first page, and you should hold the results to that standard.

The setup: the solver stays exact, the network only steers

LLMreads features + logsWeightswritten by handno trainingExact solver (SCIP / column generation)the small network scores candidatesanswer is still proven optimalsolve time, tree size, branching decisions → back to the LLMa bad network only costs time
The loop. The LLM reads instance features and solver logs, writes the weights of a small network, and the network scores candidates inside an exact solver. A bad network can only cost time: the answer is still proven optimal.

The design choice that makes this safe is that the network never decides the answer. It only ranks candidates inside an algorithm that is exact anyway. If the LLM writes nonsense, the solver takes longer, but it still returns a proven optimum. That turns a risky idea into a clean experiment: the only thing to measure is time.

  • Study 1: column generation for vehicle routing with time windows. The networks chose arcs, labels and neighbourhoods in the pricing step.
  • Study 2: branching in SCIP on four synthetic problem classes, the standard benchmark from the learning-to-branch literature.34
  • Study 3: the same branching rule on 39 instances of MIPLIB 2017, the reference library of real mixed-integer problems.5
  • Study 4: a real application. A bus-driver scheduling model built from the public GTFS feed of MARTA, Atlanta's transit agency, solved by a native C plugin with SCIP's factory settings.6

What happened

Solve time ÷ SCIP default (geometric mean over paired instances) — lower is fasterSCIP default = 1.0Independent set (synthetic, n=18)LLM-written rule0.37×Set cover (synthetic, n=18)LLM-written rule · not significant0.90×MIPLIB 2017 (n=39)LLM-written rule · solved 19 vs 241.17×MARTA crew scheduling (n=32)LLM-written rule0.63×MARTA crew scheduling (n=32)SCIP pseudocost · no LLM0.63×On MARTA the two rules are indistinguishable: ratio 0.99, Wilcoxon p = 0.19.
Solve time relative to SCIP's default branching rule (geometric mean, paired instances; below 1 is faster). The LLM-written rule looks strong on synthetic independent sets and on MARTA, but SCIP's plain pseudocost rule, which uses no LLM at all, matches it on MARTA. On MIPLIB the rule is slower and solves 19 instances instead of 24.

Column generation came first and gave nothing. The exact pricing step dominates the running time, and no network-chosen shortcut changed that in a way that mattered.

Branching looked better. On synthetic independent-set problems, a network whose weights the LLM wrote by hand solved instances in 0.37 times the time of SCIP's default rule, across 18 paired instances (Wilcoxon p < 10⁻⁵). It also matched or beat networks trained the conventional way, by imitating SCIP's expensive strong branching on the same features. On set cover it tied.

Then came MIPLIB, and the rule fell apart. On 39 real-world instances it solved 19 within the time limit, against 24 for SCIP's default. A rule tuned by reading one family of problems was exactly that: tuned for one family.

The real application, and the baseline that mattered

MARTA GTFSreal bus blocks3 routes per garagePieces of workcut at relief points100–200 per instanceLegal dutiesbreaks, splits, max workpaid-time guaranteeSet partitioningeach piece onceminimum costSCIP 10.1, factory settings,branching rule in a C plugin32 held-out garages, never seen while the rules were written
How a driver-scheduling instance is built. Real MARTA bus blocks are cut into pieces at relief points, pieces are combined into legal duties under labor rules, and a set-partitioning model picks the cheapest set of duties that covers every piece exactly once.

Synthetic benchmarks are easy to fool yourself with, so the last study used real data. I took MARTA's public schedule, cut each bus's day of work into pieces at relief points, and generated legal driver duties under realistic labor rules: maximum work time, meal breaks, split shifts and a guaranteed minimum paid time. Choosing the cheapest set of duties that covers every piece exactly once is the classic crew-scheduling model.7 The test set was 32 garages that were never used while the rules were being written.

To give the idea every chance, I ported the network to a native C plugin inside SCIP, so Python overhead couldn't hide or create a gain. I also ran SCIP with its factory settings, not a stripped-down research configuration. The result: the LLM-written rule took 0.63 times the default's time (p < 10⁻⁴). On its own, that's a headline.

Then I added one more baseline: SCIP's own pseudocost rule, a cheap textbook method that has shipped with the solver for years. It took 0.63 times the default's time too.

Head to head, the LLM's rule and plain pseudocost were indistinguishable (time ratio 0.99, p = 0.19).8 The speed-up was real, but it came from skipping SCIP's expensive strong-branching step, not from anything the LLM wrote. A version that spent its savings on a smarter, network-guided lookahead built smaller trees, but on the test garages it was no faster than the default.

What I take from it

  • In these settings, the gains came from being cheap, not from what the LLM wrote. That is the main finding, and it's a negative one.
  • The right baseline is the whole game. Against the default alone, this would have been a 37% speed-up story. Against the cheapest sensible alternative, it's a tie.
  • Writing weights by hand is a surprisingly good way to encode an idea you can describe. It matched trained networks on the same features. It didn't find structure that a classical rule had missed.
  • Making a write-up with an AI agent is fast. Checking it is the work. Every claim here can be traced to a log line, and that traceability mattered more than the speed.

Negative results rarely get written up, and that is how the same dead ends get explored again. This one comes with the paper, the C plugin, the generators, every network the LLM wrote with its written justification, and the raw logs behind every figure.9

Status and caveats

The paper has been submitted to arXiv (math.OC) and to Optimization Online, and both are pending moderation. This page will link to them once they're public; meanwhile the PDF is in the repository. The study is one author and one AI agent on one machine, with a time limit per run and a few dozen instances per setting. The MARTA duties use realistic but simplified labor rules, not MARTA's actual contract, and nothing here is affiliated with MARTA. A different LLM, different features or a different solver could change the picture, and the repository is there so anyone can check.