A EN Nathan Barry·Other·

Can a linear program do weight-space programming?

A · Strong evidence A single-author technical post that reproduces an MIT CSAIL weight-editing result from its released logs, replaces the model's eight-hour search with a linear program, and reports held-out results with code released.

Summary based on the full text·Original: about 15 minutes to read

In short

A follow-up (November 2026) to MIT CSAIL's "Sparks of Weight-Space Programming", in which GPT-6 Astra edited a small model's weights and lifted its math score sharply. The author shows the edit removes thinking loops by pushing the residual stream away from a "loop direction", and that most of Astra's search was solving a linear program by trial and error. An L1-minimising LP matches Astra's edit with 8x fewer changed weights. A plain steering vector does nearly the same job.

Key numbers

  • 16,291 vs 130,188weights changed by the LP edit vs by GPT-6 Astra's edit of Qwen3.5-0.8B
  • 69.6 / 51.7 / 59.7GSM8K, MATH-500 and IFEval of the LP edit (Astra: 68.2 / 50.9 / 61.9; base: 14.1 / 7.0 / 22.9)
  • ~93%share of the gain recovered by a heuristic direction with no LLM involved
  • about 1 minute vs about 8 hoursGPU LP solve vs Astra's trial-and-error search for which weights to change

As reported by the source.

Read the original on nathan.rs

English·Web page·opens nathan.rs

What it reports

  • Base Qwen3.5-0.8B hit the 32,768-token limit on 93% of MATH-500 answers; Astra's edit took MATH-500 from 7.9% to 48.1%.
  • Astra spent 15 minutes finding the loop direction and about 8 hours choosing which weights to change.
  • LP with Astra's direction: 16,291 changed weights, matching Astra within noise; LP with a heuristic direction from a repetition detector: 16,271 weights, about 93% of the gain.
  • An off-the-shelf solver (HiGHS) took over 20 minutes per solve; a custom GPU PDHG solver gets within 0.2% of optimum in about a minute.
  • A random direction does nothing (10.2 vs 10.9 base on the dev set).
  • A constant steering vector at the LP's average push recovers essentially the whole fix; at 0.5x loops return, at 2x reasoning breaks.

How they got it

Analysis of the released Astra logs, then an LP over labelled looping and productive tokens from the base model's own traces at the same two layers. Settings tuned on a separate 128-problem dev set; reported results are on data not used for fitting or tuning. Code and edits are on GitHub.

Limits

  • One model and one behaviour (loops); the LP still uses Astra's choice of layers, and the best result uses Astra's direction.
  • Because a constant push works, the per-token constraints were not really tested.
  • MATH-500 in the steering comparison uses one sample per problem.

Why it matters for companies

Headlines about models "programming" other models' weights can hide a simpler mechanism. Here a standard optimisation method did the same job in a minute that an agent took hours to do. Before paying for long agent runs on a technical problem, check whether a known algorithm already solves the structured core. The result also shows that some model failures are narrow and fixable without retraining.

Summary based on the full text. Read the original for the full argument and data.Read the original on nathan.rs

Tags

Same week

All of Week 46