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

Show parent comment

17

u/relevantmeemayhere 27d ago • Regret

please go on about how little you know about this area, or really any other one

man, scary times are ahead

-23

u/jackboy900 27d ago edited 27d ago

bI genuinely cannot think of a single major result in the field of Neural Networks that has been driven primarily by theory and maths in the last two decades. I only have an undergraduate degree in ML so it's possible that I'm glossing over something, but I'm pretty familiar with most of the big leaps in the field, if there's something I missed please let me know. But even if there exists some solitary examples, the reality is that ML as a field has been mostly an applied science for years.

And similarly, the above work is an excellent work of applied science, conveying their ideas academically whilst using interactive elements not present in traditional papers to illustrate their point and provide further clarity. I am genuinely curious where you think adding in theoretical mathematics would have helped further their point or provide deeper insight, because from my reading I cannot see anywhere it would have done so, and it appears you just want them to conform to some arbitrary standard of what a paper should look like even if it detracts from the actual goals of the field.

26

u/relevantmeemayhere 27d ago

well, considering this is a subfield of statistical learning, which has had MASSIVE breakthroughs since the nineties, this is, empirically, false

this field has some of the absolute worst reproducibility histories in recent years, wut? not being able to publish and running to github is....not a good sign

-14

u/jackboy900 27d ago

considering this is a subfield of statistical learning

It really isn't by any practical metric. Calling Neural Network research a subfield of statistical learning is about as useful as calling psychology a subfield of electrical engineering, the modern field is so far divorced from it's roots in traditional statistical techniques that conflating the two is just not helpful. Hence why I did specific Neural Networks in my comments, because that's the field we're talking about.

6

u/relevantmeemayhere 27d 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 27d 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 27d 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 27d 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 27d 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 27d 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 26d 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.

3

u/Disastrous_Room_927 27d ago edited 27d ago

I am genuinely curious where you think adding in theoretical mathematics would have helped further their point or provide deeper insight

I'll just refer you to the foundational crisis that happened in the field of mathematics itself. You're describing something that isn't all that different from the way math operated before it was broadly formalized. Practical success often preceded formal understanding, and the subsequent development of that understanding was hardly an arbitrary academic exercise.

2

u/jackboy900 27d ago

The issue is that you are approaching this from the point that theory is some kind of ontological good. This is a work of applied science, the authors have conducted experiments on a model and produced interesting results based on their experiments, and are now sharing it. Any maths added to the paper should be in furtherance of supporting or helping those experimental findings, and I simply do not think that any such additions are needed.

Maths underwent such a reckoning because the field is explicitly based on providing concrete, infallible proofs, and so failing to do so was a failure of the field at a basic level. But that is a feature of that field specifically. ML is not a field about providing such unfalsifiable proofs, it is about building computers what think good, and maths is merely a useful tool in that endeavour. Even some of the most maths heavy fields of physics still use unrigorous theories because rigour in not a necessary virtue in an applied field.

1

u/Forward_Evidence4023 23d ago

One word answer: diffusion.
Based upon theory in nonequilibrium statistical mechanics.

More answers? Differential privacy, watermarking .. all of these are backed by theoretical work in cryptography.

So go on, broadcast your ignorance