Can a Linear Program Do Weight-Space Programming? nathan.rs · 78 points · 13 com...
HN Best 200 @best
Can a Linear Program Do Weight-Space Programming? nathan.rs · 78 points · 13 comments · HN thread
TL;DR The post revisits MIT CSAIL's 'Sparks of Weight-Space Programming' result, in which the model Astra edited a small Qwen3.5-0.8B's weights to stop it looping, raising MATH-500 accuracy from 7.9% to 48.1% by changing 0.016% of weights. The author argues the edit's search is a linear program: two LP solves of about a minute each match Astra's edit with 8× fewer changed weights, and a single steering vector recovers nearly the whole fix.
- Astra's edit changed two layers' down_proj matrices (layers 15 and 19) so that their output opposes a 'loop direction' in the residual stream, found by averaging activations on looping versus productive texts.
- The edit is rank-1: one direction u plus one coefficient per column, so choosing which columns to edit and by how much is the core problem.
- Astra spent about 8 hours and 28 forward passes on that choice by trial and error; the author recasts it as an LP with L1 minimization that yields sparse solutions.
- The LP edit with Astra's direction matches Astra on GSM8K, MATH-500 and IFEval (e.g. MATH-500 51.7 vs 50.9) while changing 16,291 weights instead of 130,188.
- A constant steering vector at 1× the LP edit's average push recovers nearly all of the gain (MATH-500 50.8), suggesting the fix is essentially one fixed push along a direction.
- Limitations: one model, the LP still depends on Astra for layer choice and the best direction, and loops may be too simple a behavior to test per-token constraints.
Discussion The thread is short and mostly engaged with the post's framing rather than its method. Commenters debate whether the headlines overstated Astra's abilities: some say the model merely ran an old-style optimization routine that a human engineer could do, while others argue that the weights-as-numbers framing is still a real achievement. A few praise the LP insight and suggest the solver could help Astra iterate, and one commenter links the result to earlier refusal-direction work. The mood is mildly skeptical of the hype but appreciative of the analysis.
- Headlines overstated what Astra did (many): Commenters argue Astra was doing ordinary AI engineering, such as running an optimization over weights, and that media described it as special insight into weights. One notes that 'editing weights' implies more awareness of each weight than the process actually shows.
- LP solver is a useful tool for Astra (some): One commenter suggests giving Astra access to LP solving so it can express intent as linear constraints and iterate faster instead of trial and error.
- The method is a valid insight, not hype (some): Several commenters find the steer-away-from-a-semantic-direction approach sensible and say a model could in principle apply it to itself, even at runtime.
- Splitting hairs about who edited the weights (a few): One commenter argues that since Astra designed the method rather than directly editing bits, it is still meaningfully editing the weights, comparing it to not directly writing bits on disk.
- Effect is a simple statistical consequence (a few): Another view holds that the result is broad statistics, which is interesting but unsurprising, and that weights live in a high-dimensional space where a fix for one test may regress on another.
- Connection to uncensoring techniques (a few): One commenter notes the same kind of technique was used earlier to remove refusals from models, so the approach is not new.
#weightEditing #linearProgramming #interpretability #steeringVectors #LLMs