r/MachineLearning • • 27d ago

Research Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights [R]

Link: https://rikiyat.github.io/blog/weight-space-programming/

Snippet: “We find that frontier LLMs are surprisingly good at natively reading and writing neural network weights, well past what we’d expect from humans or conventional algorithms. This might be a big deal for both optimization and interpretability.
Just by looking at the raw weights, GPT-6 Astra can tell what a network was trained to do. And without any environment feedback, it has no trouble writing, from scratch, small game-playing networks that outplay networks trained with PPO for 100 million steps.”

Very surprising result, I didn’t expect frontier models to have this capability that has not been optimized for, and it’s something humans cannot do either.

204 Upvotes

56 comments sorted by

View all comments

52

u/Disastrous_Room_927 27d ago • Bravo

Just by looking at the raw weights, GPT-6 Astra can tell what a network was trained to do. And without any environment feedback, it has no trouble writing, from scratch, small game-playing networks that outplay networks trained with PPO for 100 million steps.

According to Astra:

Both claims have experimental support in the post, but the wording makes them sound more general than the tests establish.

“Can tell what a network was trained to do from raw weights.” In the game experiment, Astra received four small networks, plus descriptions of their input channels and possible actions. It correctly identified all four games without being given their names as options.

That’s interesting. But the weights had recognizable spatial clues: for example, weights associated with a paddle concentrated along the bottom of the board. Knowing what the inputs represent makes those clues interpretable. This demonstrates identifying familiar tasks from structured weights—not unrestricted understanding of an arbitrary network. The authors also report a stronger result identifying training languages from internal transformer weights, but failed to identify sycophancy from weights alone. Experiments 1, 3, and 7

“Writes networks from scratch that beat PPO after 100 million steps, without feedback.” This is the more striking result to me. Astra received the games’ rules, source code, and input/output layout, then supplied weights in one response without testing the networks. Those networks beat the reported 100-million-step PPO baselines in all three games. Against 500-million-step PPO, it won one game and lost two. Experiment 5

The crucial distinction is where the knowledge comes from. Astra already knows about programming, geometry, and game strategies. It can work out a rule like “move the paddle toward the ball’s landing position” and encode that computation into weights. PPO learns behavior through experience. The comparison shows that prior knowledge can produce a better small controller than that particular training setup; the step count alone doesn’t establish superiority over reinforcement learning generally.

45

u/no-longer-banned 27d ago

> But the weights had recognizable spatial cues

> Channel 0 — agent: Strong weights are concentrated on row 8, across the playable columns; elsewhere they look mostly like small initialization-scale values. At (8,1), weights include 4.066 to hidden unit 15 and −4.013 to unit 31. This suggests a bottom-mounted paddle moving horizontally, rather than a character roaming the grid.

recognizable, yeah. totally. my human brain also recognizes these numbers as a bottom-mounted paddle moving laterally. duh.

14

u/DigThatData Researcher 27d ago

right? chatgpt being like "yo, this isn't a big deal, everyone can do this" corroborates the hypothesis

-1

u/st0p_the_q_tip 27d ago

"according to astra" as in you fed this to ChatGPT and it gave you feedback on this work?

1

u/yannbouteiller Researcher 26d ago

It very much looks like it, yes. At least this is clearly disclosed.

The fact that this is also the most upvoted comment to this post is interesting. A couple of random people (or bots, who knows) have even downvoted your question.

5

u/currentscurrents 26d ago

Since this is a thread about LLMs doing something cool, some people are immediately willing to upvote any criticism, regardless of how poorly-supported.

The other upvoted comment is just complaining that they didn't submit to ICLR. As if that isn't a total lottery anyway where perfectly good papers get buried among tens of thousands of slop papers.