News for hackers. Stuff that matters.
Re:Can a Linear Program Do Weight-Space Programming? by dansitu on Wednesday November 11, 2026 @08:07AM (#50452953)
Nice analysis. The simplicity of this indicates that it should be happening during training via regularization.
Re:Can a Linear Program Do Weight-Space Programming? by busssard on Thursday November 12, 2026 @06:17AM (#50465644)
it could happen post training as well. the direction u is arbitrary, it could mean looping, it could mean more thorough reasoning.
Re:Can a Linear Program Do Weight-Space Programming? by FrustratedMonky on Wednesday November 11, 2026 @08:09AM (#50452972)
Does this describe a very powerful LLM, like Astra, editing smaller models?

Could Astra edit itself?

Re:Can a Linear Program Do Weight-Space Programming? by kragen on Wednesday November 11, 2026 @08:28AM (#50453155)
No, it describes a linear optimization algorithm from the 01940s editing a Qwen model with billions of parameters.
Re:Can a Linear Program Do Weight-Space Programming? by FrustratedMonky on Wednesday November 11, 2026 @08:38AM (#50453275)
"In another experiment, they asked Astra to make Qwen3.5-0.8B better at math by editing its weights"

??

Re:Can a Linear Program Do Weight-Space Programming? by nullc on Wednesday November 11, 2026 @08:42AM (#50453323)
Which it did by doing an inefficient version of the aforementioned 1940s algorithm.

Essentially modern LLMs are able to do normal AI engineering tasks, like running optimization algorithms over weights. The media has been inaccurately describing this as if the AI had some special insight into the weights, when it reality it just performed the tasks an human engineer might do.

Re:Can a Linear Program Do Weight-Space Programming? by yorwba on Wednesday November 11, 2026 @08:51AM (#50453428)
Right, humans don't need some special insight into weights either, since it's just a bunch of numbers that you can analyze like any other table with numbers. However, if you dump them on someone like in this prompt: https://github.com/RikiyaT/lm_understand-logs/blob/main/exp1... they might complain about the formatting or ask whether they can use Excel instead of doing calculations by hand. (The experiment with Qwen3.5-0.8B didn't use the "dump weights into the context as numbers" approach.)
Re:Can a Linear Program Do Weight-Space Programming? by kragen on Wednesday November 11, 2026 @09:14AM (#50453681)
That's not what's being described here; that's described in another paper that this is a followup to.
Re:Can a Linear Program Do Weight-Space Programming? by laichzeit0 on Wednesday November 11, 2026 @12:10PM (#50455795)
I think the point being missed is that this same tool that can do the 1940s optimization algorithm can also translate Ancient Greek to English, develop a web app and draw a picture of a pelican riding a bicycle. That’s really crazy.
Re:Can a Linear Program Do Weight-Space Programming? by kragen on Wednesday November 11, 2026 @06:34PM (#50460537)
No, the article we are discussing here used a GPU solver implementing the primal-dual hybrid gradient method, which cannot do any of those things. (This is not the same thing as the simplex algorithm from the 01940s. I was wrong about that.) The LLM discussed in the previous work was not in fact able to do that itself. Like a normal person, it wrote a Python program to do it.

While the apparent advent of AGI is indeed really crazy, the point of this article is sort of the opposite.

Re:Can a Linear Program Do Weight-Space Programming? by rsfern on Wednesday November 11, 2026 @09:16AM (#50453704)
I don’t understand the negative reactions to your post, it’s a good insight.

Basically the weight edit approach is find a semantic direction for the undesirable behavior and steer away from it. With access to the weights I see no reason a model (even one as large as Astra) couldn’t apply that principle to itself. This probably includes at runtime if you wanted to give the model write access to itself

Re:Can a Linear Program Do Weight-Space Programming? by __MatrixMan__ on Wednesday November 11, 2026 @12:30PM (#50456007)
Agreed. You could look at a previous session which got the right answer eventually and make edits until the path to the right answer was more direct.

It's not clear if this would generalize to other related uses, or how disastrous it would be to unrelated uses, but it's worth studying. Feels like a sort of agentic Lamarckism.

Re:Can a Linear Program Do Weight-Space Programming? by ultimatefan1 on Wednesday November 11, 2026 @08:12AM (#50453006)
Good article! The initial headlines from a few days ago made it seem like frontier models were becoming able to read, understand, and manipulate weights directly. This seemed unlikely to me since they aren’t trained on weights, they’re trained on tokens and task completion (RL). This analysis makes me think a better description is that Astra did some interesting model training research that included running small experiments with altering weights and found a nice edit that fixes some problems. Cool, also cool that this analysis finds a faster approach. But a far cry from the headlines when the paper first came out.
Re:Can a Linear Program Do Weight-Space Programming? by FrustratedMonky on Wednesday November 11, 2026 @08:42AM (#50453312)
It seems a little like splitting hairs.

Astra didn't directly edit the weights, it came up with a method to edit the weigths?

So, it used another tool to edit the weights?

This kind of seems like saying, I don't directly edit the bits on my hard drive, thus i'm not really the one saving a file?

Re:Can a Linear Program Do Weight-Space Programming? by yunruse on Wednesday November 11, 2026 @09:25AM (#50453818)
It's easy to trace that a bit sets a character in a file with absolute certainty; weights are in a highly dimensional space however, so even if ⍺v is good for one test it could easily regress for another.

I suppose the argument is that "editing weights" seems to imply a complex awareness of what each weight means, which is material for AGI hype. Really it's just doing very broad statistics, which is of course interesting but hardly unexpected.

Re:Can a Linear Program Do Weight-Space Programming? by yatopifo on Wednesday November 11, 2026 @10:33AM (#50454629)
I look at it at a slightly different angle. AGI implies broad capabilities including self-improvement without using another AGI. Being able to perform a “surgical procedure” on weights is a clear step in that direction. Direct weight interpretation may work if small model weights are included as training tokens but i doubt it’s useful for self-editing. On the other hand, using simple tools to interpret and edit it’s own weights might work.
Re:Can a Linear Program Do Weight-Space Programming? by FrustratedMonky on Wednesday November 11, 2026 @11:15AM (#50455102)
Yes, the arguments in this thread seem to be around interpreting the word "editing". Is something consciously "editing" by tweaking the correct neurons/weight. Or is it just some linear algebra.

Though, even on re-read, it sure seems like Astra was making some decisions, otherwise what is this saying, that Astra knew how to download some linear algebra tools?

Re:Can a Linear Program Do Weight-Space Programming? by Filligree on Wednesday November 11, 2026 @10:29AM (#50454578)
The weights ended up edited. It does feel a bit like the long of reasoning that claims LLMs don’t really think, while they’re doing novel mathematical research.
Re:Can a Linear Program Do Weight-Space Programming? by wasabi991011 on Wednesday November 11, 2026 @11:36AM (#50455365)
I think the distinction is relevant even if the exact line is blurred. Two extremes:

It would be extremely surprising for a model to be able to ingest all model weights in a prompt and output better model weights, with no tool calls. While certainly possible for small simple models (eg a 4-parameter perception), at scale this becomes difficult in terms of near-perfect recall at huge context size and requires a superhuman intuitive understanding of linear algebra.

On the other hand, it is extremely unsurprising that a model can edit weights when having access to unrestricted tools, time, and resources (including non-public resources that the AI labs have). The methodology is fairly simple: just train the model more on whatever better non-public datasets. Hell, just benchmaxx the smaller model, that would be "a method to edit the weights" that achieves the necessary results.

I think everyone would agree that these two scenarios are very different. Where the actual Astra weight-space programming result falls on this spectrum is debatable.

Re:Can a Linear Program Do Weight-Space Programming? by theptip on Wednesday November 11, 2026 @06:28PM (#50460471)
Astra was directly editing the weight, ie modifying the values without backprop.

It’s a bit conflated because the paper covered a bunch of experiments.

The early experiments did read/write the weights directly, no forward pass.

The math eval improvement experiment that got a lot of attention 1) fixed a specific known problem (looping) without actually understanding how the model solves problems, and 2) was allowed to do forward passes to check the results of the edits.

As others have noted, steering vectors are interp 101 and it’s pretty rare that there is an “act dumb vector” just waiting to be steered out of the residual stream.

Re:Can a Linear Program Do Weight-Space Programming? by quietbritishjim on Thursday November 12, 2026 @06:23AM (#50465677)
If you directly[1] edited the bytes of a program, that is substantially different to if you got the source code from somewhere, edited that and recompiled it.

[1] Using a hex editor - not by waving a magnet at your harddrive or whatever.

Re:Can a Linear Program Do Weight-Space Programming? by FrustratedMonky on Thursday November 12, 2026 @07:46AM (#50466355)
That is better example.

Using the program analogy. Astra is looking at outputs of a program, and re-compiling it.

And this thread is kind of arguing over whether using Notepad is really programming, and others saying, Astra really used VSCode with some fancy plug-ins, so that isn't really programming.

Re:Can a Linear Program Do Weight-Space Programming? by quietbritishjim on Thursday November 12, 2026 @04:03PM (#50474242)
No.

The neutral network was originally produced by training it in the usual way. So the training data is the "source code" and back propagation / gradient descent optimiser is the "compiler". That's what the human used to produce the network.

The weights are analogous to the compiled machine code. The LLM bypassed the compiler and edited those directly.

Re:Can a Linear Program Do Weight-Space Programming? by nullc on Wednesday November 11, 2026 @08:20AM (#50453084)
annnd we can just 'reinvent'(*) the same techniques used to uncensor models for some time.. one step at a time.

(*) scarequotes because the LLMs that suggested these approaches have presumably been exposed to the refusal direction suppression work

Re:Can a Linear Program Do Weight-Space Programming? by anon291 on Wednesday November 11, 2026 @10:28AM (#50454571)
You cannot really train on second-order effects, and if you could, then you wouldn't be able to escape third-order effects, ad infinitum.
Re:Can a Linear Program Do Weight-Space Programming? by jsw97 on Wednesday November 11, 2026 @08:58AM (#50453507)
Maybe this is what the author is getting at, but if LP solvers are useful tools for editing weights, then Astra access to this methodology might make it more effective at weight editing.

The interpretation here is not so much that an LP can do Astra's work -- after all the Astra prompt was "improve Qwen's math by changing weights" or similar. Instead, it's that with some guidance (eliminate this behavior, preserve that behavior, as expressed through linear constraints) the solver is much more efficient than Astra's trial and error. So essentially the solver would be a way of cutting through all the time consuming stuff and expressing Astra's intent more immediately. And then presumably Astra could iterate on that to a better solution.

The use of an LP solver here is a really cool insight.

Re:Can a Linear Program Do Weight-Space Programming? by boxfire on Wednesday November 11, 2026 @11:39AM (#50455399)
I’d really love to see an LLM that can do augmented thinking without being prompted to. External LP or SAT solvers or CLP unifiers or provers, not as “tool calls” structured as JSON structured output but rather in the embedding space in shorthand representations native to token expression that the inference engine dispatches uniquely.

It’s possible to make a differential work through those too in a useful sense, which allows their integration to be at a more fundamental level than post training bolt-on, but that’s not friendly to mass gpu parallel training without some serious work.

A conversation with an engine that thinks with the power of constraint solvers “baked in” instead of having to be brow beaten into approximate truth and iterated millions of times to care to even try to follow through to it. Wow that’s almost all I ever wanted. Here’s my word problem, go do the actual reasoning, hand waive until you’ve got enough expressive power to make an answer but if you can see a formal structure state it natively and let an actual solver spit out the (unification/feasible space/etc) back into token space that the llm picks back up on.

Re:Can a Linear Program Do Weight-Space Programming? by jmmcd on Wednesday November 11, 2026 @11:51AM (#50455548)
I don't see it. I think the current paradigm - translate your word problem into appropriate LP code, read and interpret the results - is ideal, because the models are so good at the translation and interpretation steps and the code is still auditable.
Re:Can a Linear Program Do Weight-Space Programming? by yababa_y on Wednesday November 11, 2026 @08:05PM (#50461569)
Earlier this year I explored exactly this (although only at a small scale) inspired by Lattice Deduction Transformers. https://github.com/emberian/clairnets. It seemed promising at small scales but I have yet to revisit it.
Re:Can a Linear Program Do Weight-Space Programming? by busssard on Thursday November 12, 2026 @06:16AM (#50465635)
brainstorming on this: it might be a way that a model can "learn" while being deployed.

if a model could do a self optimization pass over its weights every night, and change the weights ever so slightly to have a better fitting performance, this would be quite a game changer.

the difficulty is selecting the direction in which to shift the weights, and the sheer size of frontier models.

Re:Can a Linear Program Do Weight-Space Programming? by plaguuuuuu on Thursday November 12, 2026 @09:49AM (#50468225)
google has a paper with something like this
Re:Can a Linear Program Do Weight-Space Programming? by rbnafo on Wednesday November 11, 2026 @09:34AM (#50453946)
Very interesting analysis. It would be great to see the LP comeback and optimize. I always have the impression that we have settled to suboptimal solutions in many areas just because we have become too attached to LLMs, wary of numerical analysis.
Re:Can a Linear Program Do Weight-Space Programming? by esafak on Wednesday November 11, 2026 @09:47AM (#50454110)
Reminds me of the time someone showed you could get as good results from linear regression as the more expensive SVM, like this: https://proceedings.neurips.cc/paper/2021/file/26d4b4313a7e5...
Re:Can a Linear Program Do Weight-Space Programming? by ricksunny on Wednesday November 11, 2026 @10:58AM (#50454918)
So we are talking about linear programming a la operations research / industrial research / e g simplex? That would be wild if 1940s-50s OR fills in a key step to p̶o̶s̶s̶i̶b̶l̶y̶ ̶e̶n̶d̶ ̶o̶f̶ ̶t̶h̶e̶ ̶w̶o̶r̶l̶d̶ RSI (if that’s the subtext on the table here). Because then I guess if the world does end, it’s just one more world-ending technology we can blame on the 1940s-50s.
Re:Can a Linear Program Do Weight-Space Programming? by jbjbjbjb on Wednesday November 11, 2026 @11:56AM (#50455605)
It wouldn’t be RSI, it’s just a different algorithm solving the weights no?
Re:Can a Linear Program Do Weight-Space Programming? by ricksunny on Wednesday November 11, 2026 @11:11PM (#50462987)
I will leave it to people more informed than me to offer distinguishing, but abstruse stories like ‘Model A improves weights in Model B’ don’t blow up on HN without reason.
Re:Can a Linear Program Do Weight-Space Programming? by daemonk on Wednesday November 11, 2026 @11:42AM (#50455443)
What exactly is the difference between weight-space programming and something like back propagation? I guess AI can reason deeper about the weights somehow and take into account more parameters than a simple feedback from back propagation?
Re:Can a Linear Program Do Weight-Space Programming? by orbis-tertius on Wednesday November 11, 2026 @11:49AM (#50455518)
Weight-space programming doesn't have an established definition yet afaik, but it would implement weight changes using a trained model using forward passes, no derivatives needed
Re:Can a Linear Program Do Weight-Space Programming? by deerstalker on Wednesday November 11, 2026 @12:27PM (#50455977)
Not strictly on topic but related to this -- I wonder if there is any effort/research being done with LLMs when it comes to finding low dimensional weight space representations/manifolds. If you could drastically lower the dimensionality with some algortihm X, you could efficiently use global optimization algorithms to find sparse but accurate networks (Lottery Ticket Hypothesis etc etc.)
Re:Can a Linear Program Do Weight-Space Programming? by whatever1 on Wednesday November 11, 2026 @03:02PM (#50457887)
Traditional math programming will replace or override the RL loop.

We have reached the point where we need to enforce strict constraints in the outputs.

Rewards/ penalties can never do it if you have multiple objectives.

Re:Can a Linear Program Do Weight-Space Programming? by bwestergard on Thursday November 12, 2026 @09:58AM (#50468414)
This is an intriguing idea.

How do you set up the optimization problem, though?

Re:Can a Linear Program Do Weight-Space Programming? by Outermeasure_A on Wednesday November 11, 2026 @03:08PM (#50457974)
This connection between the Linear Program and what Astra did seems like a jump. Did the author come with the idea on their own, or an LLM figured it out?
Re:Can a Linear Program Do Weight-Space Programming? by kooi on Wednesday November 11, 2026 @04:10PM (#50458707)
That's great. Let's not forget the vast amount of "classical" methods at our disposal.
Re:Can a Linear Program Do Weight-Space Programming? by mirekrusin on Wednesday November 11, 2026 @04:42PM (#50459113)
They should use this idea to do weight-space distillation, feels like you can get far with small model by just collecting paired examples, discovering behavioral directions and using linear programming to find sparse weight edits to improve target behavior / limit unwanted changes, rinse repeat.
Re:Can a Linear Program Do Weight-Space Programming? by bcmyguest on Wednesday November 11, 2026 @09:22PM (#50462275)
This seems like a really neat trick, I wonder how far this can be taken on larger models with multi-variate rewards?
Re:Can a Linear Program Do Weight-Space Programming? by hoppp on Thursday November 12, 2026 @12:07PM (#50470579)
Isn't model training also Weight-Space programming? If so this is not really new.