r/MachineLearning • • 24d 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.

203 Upvotes

56 comments sorted by

View all comments

Show parent comment

6

u/relevantmeemayhere 24d ago

It really is, considering everything from attention to RL has an analog in statistical learning-you can directly refer to the mathematics and use traditional stats/ml verbaige. The main distinction in stats and ml is the research goal; inference or prediction. that's it. and there is a rich formulation for llms in both bayesian and frequentss flavors.

hence why i'm calling out the lack of domain knowledge.

-3

u/TorgoNUDH0 24d ago

I think there's the element of emergent phenomenon. We can understand the low level stuff, but when you build these large systems unexpected capabilities arise. Heck, the whole agentic system is just guess and check, then we model it and iterate from there.

2

u/relevantmeemayhere 24d ago

right, but the 'guess and check' there is a super well engineered network in the general IT sense wrapper around a clever, but very wide and deep statistical model that has hoovered up the entire internet :)

-2

u/TorgoNUDH0 24d ago

Yes, the models are provable with math. Someone starts by thinking, I wonder what happens if I feed a model all of harry potter. Surprise it can generate new characters but is technically limited by previous grammar. So you consider folding in adjacent literature and you observe the model to have more variance. You see the pattern? We can write up the math to get to a result, but the pathway there is not all math, but, lets say the scientific method "guess and check". I'm just mentioning this as I believe the fellow earlier was trying to say.

We build towards an idea "hypothesis" and retroactively tune it after observation. We never just one shot to the conclusion.

2

u/Disastrous_Room_927 24d ago

I think there's the element of emergent phenomenon.

Have you seen a discussion of ML/AI where emergent phenomena weren't being used to make some sort of implication about consciousness?

1

u/jackboy900 23d ago

That's more an artefact of the usage of the term though, as one of philosophy. The behaviour of neural networks is necessarily an emergent phenomenon, we feed them in data and out comes an output that has no structural basis in the machinery we used. When you look at LLMs their ability to use language is an emergent phenomenon, they weren't taught or built to do it. We just don't talk about it because it's generally not relevant, it's only brought up when discussing the philosophy of Neural Networks because that's the term we use for these things in philosophy.

2

u/Disastrous_Room_927 22d ago

we feed them in data and out comes an output that has no structural basis in the machinery we used.

That's arguably a general description of machine learning, not something unique to neural nets. Although I'd dispute the claim that the output has no structural basis, . Not explicitly specifying the learned mapping isn't the same as that mapping having no structural explanation.

We just don't talk about it because it's generally not relevant, it's only brought up when discussing the philosophy of Neural Networks because that's the term we use for these things in philosophy.

Emergence has been brought up regularly in research over the last few decades. Look at how emergence is used in these two papers:

https://www.pnas.org/doi/abs/10.1073/pnas.79.8.2554

https://research.google/pubs/emergent-abilities-of-large-language-models/

Neither treats emergence as an explanation in itself. Hopfield investigates the mathematical and structural basis of an emergent phenomenon, while Wei et al. identify an empirical phenomenon whose underlying mechanisms remain largely unresolved.

What I actually take issue with is how the term has increasingly been used in discussions about AI over the last few years. It sometimes becomes something resembling a god-of-the-gaps argument, where the fact that a behavior wasn't explicitly programmed, or that we don't fully understand its underlying mechanisms, is treated as justification for increasingly speculative claims about cognition, agency, or consciousness.