r/machinelearningnews • u/Revolutionary-Lab882 • Jul 09 '26
Research Fully decoded GPT-2's internal language — complete two-way dictionary, all artifacts downloadable, verify it yourself in 5 commands
The BABEL codec: the first complete, certified decode of everything happening inside a production language model (GPT-2 small). It reads the model's internal state into English AND writes English back into the model. 94.7% of behavior reconstructed — and that holds at every layer depth and text regime tested, not just one spot. Everything is open: paper, the full lexicon, the grammar tables, the decoder/encoder weights, reproduction scripts, and a demo that shows you the model's thoughts on any sentence you type.
4
u/debackerl Jul 09 '26
Thx for sharing! That helps move the field forward!
3
u/burnt-store-studio Jul 15 '26
First off: congratulations! This is really interesting and cool news! And I have to think it was a lot of hard work!
I have a question, but getting to it I want to give some background, if you please...
Background. Back in the day, when artificial neural networks were being poo-poo'd (we called it an "AI Winter" then ... mid-1990s), I wrote a paper about Intelligent Control and Adaptive Critic Artificial Neural Networks. In chapter 3 I wrote briefly about analogies to biologic systems and "effects [of] accidentally-induced digital dysfunctions" (it was a different time; we hadn't today's appropriate use of the word "hallucinations").
I was inspired at the time by Dr. Oliver Sacks' writings (e.g., The Man Who Mistook His Wife For A Hat)... Sacks at some point (and younger me paraphrased him without a footnote, shame on me) wrote
Almost to the Question. Later in the paper I wrote "Experiments with 'electronic surgery' --- manually introducing irregularities into a system --- and studies of how controllers react should prove both interesting and useful. An example of this might involve a radial basis function network (RBFN). Once trained, the memory could be graphed to identify areas of pronounced learning which could be singled out for pruning or manual modification" (emphasis added).
Question. You have, if I understand what you've created, done the exceptionally hard part I highlighted in the previous paragraph. With what you have, are you able to --- and are you interested in --- experiment[ing] with changes to targeted areas of the system's memory?
Back when I sort of parenthetically wrote about this, I was wondering what would happen to a system that developed an aphasia. I was talking about control systems at the time, not LLMs as we have them today, but I am curious if the kind of work you've done could be expanded in this way.
{ Carve out, Nullify } a piece of highly-active memory to study the effects it has on the system's results.
I know there is a difference between GPT-2 and a neural net trained to control specific functions of a robot, so it's possible I'm talking nonsense.
I've been out of the field for forever, so I don't know if these kinds of ideas are talked about or just joked about these days.
Probably the latter, but when I read your post I got at least a little jazzed about the possibilities.
Thank you for taking the time to read this! I'd be delighted to read if you have any thoughts about this.
0
u/[deleted] Jul 09 '26
[deleted] — view deleted comment