Can a Language Model Write the Weights? An Empirical Study of LLM-Written Scoring Networks for Column Generation and MILP Branching, with a Bus-Driver Scheduling Application
Abstract
This paper was generated by an AI model (Claude Opus 5.5, Anthropic) under the author's direction; all results come from computations run on the author's machine, and every reference was checked. Weight-space programming (WSP) is the idea that a large language model (LLM) can write the weights of a small neural network directly, guided only by reading forward-pass outputs, with no gradient training. We test whether WSP can improve exact operations research algorithms where they rely on cheap scoring rules. In four studies, an LLM wrote small multilayer perceptrons that (i) select arcs, labels and ng-neighbourhoods inside column generation for the vehicle routing problem with time windows, and (ii) choose branching variables in SCIP's branch-and-bound. The algorithms stay exact whatever the weights; a bad network only costs time. In column generation, no lever gave a material gain. In branching on synthetic classes, a hand-written network solved independent-set instances in 0.37x the time of SCIP's default rule (18 paired instances, Wilcoxon ) and matched or beat networks trained by imitation of strong branching, but on 39 MIPLIB 2017 instances it solved 19 versus 24. In an application built from the real GTFS feed of Atlanta's transit agency (MARTA), a crew scheduling set-partitioning model solved by a native C plugin with SCIP's factory settings, the LLM-written rules took 0.63x the default's time on 32 held-out instances (), but SCIP's plain pseudocost rule did exactly as well (ratio 0.99, ). In these settings, the gains came from being cheap, not from what the LLM wrote. All code, logs and the numbers behind every figure are released.
Create a lesson
Metadata
- Comments
- 17 pages, 13 figures, 2 tables. Text, figures, code and analysis generated by Claude Opus 5.5 (Anthropic) under the author's direction; all experiments run locally. Code, logs and data: https://github.com/butkeraites/llm-written-weights-or . Also posted on Optimization Online
Related papers
Parallel batch scheduling for optimizing hospital sterilization operations: arc-flow formulations, column generation and Lagrangian heuristics for flowtime minimization
Shared title terminologymath.OCAlessandro Druetto, Andrea Grosso
Neural Schrödinger Bridge via Yasue Action with Applications to Generative Modeling
Shared title terminologymath.OCYan-Han Chen, Abhishek Halder, Hailiang Liu
A Column-Generation Approach to Length-Constrained Shortest Paths under Cascading Causal Failures
Shared title terminologymath.OCNicolò Aicardi, Zuyuan Zhang, Sridhar Radhakrishnan et al.
Diffusion-Score-Based Joint Topology Identification and Generative Particle Filtering
Shared title terminologymath.OCChuansen Peng, Hanning Tang, Xiaowei Yang et al.
RPX: Certifying Agent-Generated MILP Reformulations at Scale
Shared title terminologymath.OCHaozhen Bai, Wenjie Zhu, Qian Hu et al.
Two Communities, One Problem: Branch-and-Bound vs. A* for Resource-Constrained Project Scheduling
Shared title terminologymath.OCIzack Cohen, Dominik Kress, Lara Nehrke et al.