Comment by xg15

25 days ago

And here we go...

As others have said, while still absolutely insane, I don't find it completely out-of-the-blue surprising. One of the recurring abilities of (current-generation) LLMs seem to be to rapidly grasp very complex systems, where humans would need months or years to reach the same level of expertise.

You can see this in the way a coding agent can "understand" and explain sprawling legacy codebases in seconds.

You can also see it in the projects that are using them to reverse-engineer proprietary IoT protocols or computer games.

But those were all systems where we had detailed knowledge about what structures are there to be reverse-enginered.

If the models can transfer this ability to some other systems where we don't know the underlying structure then I think we will be in for a lot more craziness in the future. (Protein interaction networks? DNA sequences? Ecosystem interactions? Animal languages?)

As for weights, if the models really can analyze the semantics behind specific weights or directions, I have my hopes that they could also give a textual explanation or help designing tools to make "handcrafting" weights more practical in general.

The way I interpete it, is vast amounts of text are to LLMs, in some ways like vision is to us. Not seeing tokens, but seeing the "shapes" between them. Like we don't parse pixels but see the whole picture at once.

They triangulate efficiently on the meaning from all the text, instead of rolling it through a lossy feedback system.

It is why they are so good at processing ambiguity. They can combine ambiguity from any parts of the text, near equally well, even on long form text.

Just like we can instantly triangulate the meaning out of barely lit photographs, by correlating every little shadow or bit of texture, regardless of where the clues are in the image.

  • This.

    Lady in red dress scene from Matrix comes to mind.

    Our visual system deals with TB of video input every second but we are able to filter through it and spot the important bits. We can even with closed eyes make our mind spin up visual scenes and alter them. I think that's quite possibly a useful explanation of what's happening here.

    • Also on the vision interpretation: We can't count blue pixels. Their early processing is similar, they don't see individual tokens and of course, not letters at all since their lowest level input is tokens.

      And just like our vision, they can't hit pause on the incoming text. It comes in with no control from them, and is quickly converted to latent representation, just as our vision is.

      Explains why they couldn't count letters in chat text, and why that had absolutely nothing to do with how smart they are.

      In the meantime, they could saved vast amounts of text into a file, then use the terminal to count letter, multiple orders of magnitude faster than us.

but code is made to be understandable. while neural nets are not.

that is why this is crazy,

give a human a legacy codebase and 5 years and he'll be able to understand very well.

if you give a human the weights of qwen 0.8B and 5 years it'll still be impossible to edit the weights in any legible manner.

  • Think of weights as code/config and ya plug it into a NN. It’s not that crazy.

    Editing LLMs weights to modify the output was already possible in 2022: https://rome.baulab.info/

    It’s cool we didn’t have to spend extra effort in building the tooling.

  • > if you give a human the weights of qwen 0.8B and 5 years it'll still be impossible to edit the weights in any legible manner.

    Well, is that really so? There is quite a lot of research going on to identify the "meaning" behind certain weights, neurons or directions. I don't see why a human with enough time, perseverance and ability to run experiments with the model shouldn't be able to uncover some of the underlying mechanisms of the model.

    But of course not with the speed with which an LLM can do it.

    • No, they're wrong. Hobbyists do this for every model release: https://huggingface.co/models?search=abliterated

      I think the presentation of the points is confusing people, the model could understand weights directly for extremely small networks in the 10s of thousands of weights.

      Once they moved onto even the smallest LLMs, what it did was closer to abliteration: create examples where the model does something you don't want, create examples where the model it doesn't do the thing, then most importantly do forward passes.

      Once you're allowed to actually do a forward pass vs just reading raw weights, tracking the changes in activations and tweak the model to modify them is a very well established process that takes a few hundred lines of Python.

    • 5 years with 800 million parameters would take over 18,000 changes an hour, 24/7/365 to change every parameter.

  • > but code is made to be understandable. while neural nets are not.

    mmm, maybe they are?

I pointed Opus 5.5 (medium reasoning) at the paper, and after a bit of mucking around, instructed it to port the Astra weights for the breakout policy to JavaScript logic. According to its own evaluation, it succeeded. Then I got it to minify the JavaScript policy. The final result is 346B, compared to around 3KB for the (sparse) weights generated by Astra.

    function policy(x){for(var i=100,p,b,t,s,c,r,a,h,M=Math.tanh,R=v=>v<0?-1-v:v>9?19-v:v;i--;)x[i*6]&&(p=i%10),x[i*6+3]&&(b=i),x[i*6+4]&&(t=i);r=b/10|0;c=b%10;s=c>t%10||c==t%10&&c<9?1:-1;a=R(c+s*(8-r));t=t/10|0;h=1e3*M(.02*((r>t||r==t&&r-8?r<6?a:(a+R(c+s*(9-r)))/2:R(c+s*(r+9-2*(r<2?0:r<4?r:4))))-p));return[0,30*M(-h-15),-100,30\*M(h-15),-100,-100]}

https://claude.ai/share/7a931d7a-0acd-402d-a5a5-a9d44d9d0385

Maybe the models have a common internal representation for computations, and they're capable of consuming and producing computations in the syntax of neural network weights?

  • Amazing experiment. Indeed, with the benefit of hindsight, we can say that breakout is a game that is probably better suited to deterministic code (it's not like Go where an AlphaZero style training is essential), and Astra is probably translating this internal representation of code into the shape of linear algebra and model weights.

    I should note that the original authors did not allow Astra to write any significant code to construct the weights. I think this is unfair. If you allow strided assignments to numpy arrays, you should probably also allow the use of functions like np.linspace, np.repeat, and np.tile.

    Oh and Astra wrote this (https://github.com/RikiyaT/lm_understand-logs/blob/4d09ba6d6...):

        W1[63:120:6, 5] = 10
        W1[123:180:6, 5] = 20
        W1[183:240:6, 5] = 30
        W1[243:300:6, 5] = 40
        W1[303:360:6, 5] = 50
        W1[363:420:6, 5] = 60
        W1[423:480:6, 5] = 70
        W1[483:540:6, 5] = 70
        W1[543:600:6, 5] = 90
    

    I think the second 70 there is probably a typo; it looks like it should be 80 instead.

Maybe one day it would be able to give us a mixed high level code and inline NN view. Sort of analogous to C with inline ASM or “decompiling” into code and inlining opaque residual neural blocks.

The thing I find most surprising about this is that the content is in a completely new medium/language compared to what it’s trained on. It’s trained on natural language and code and equations and DNNA sequences. I guess this is just finding the generalization between that and many layers of learned features in high dimensional spaces.

I agree, this really isn't surprising. They're pattern interpolators, and so much of what we deal with in the world is rooted in patterns of some type, including neural nets.

IMO, this is a similar behavior that we saw from AlphaFold, which also used a type of Transformer architecture to make its protein predictions.

> Animal languages

John Lilly's long awaited English ⇔ Dolphin translator, my beloved!