I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes)
278 points by umjunsik132 4 hours ago | 83 comments

riverdweller 3 hours ago
I tried using Fable 5.1 a few weeks ago to craft a neural network (that simulated a much more expensive financial risk calculation engine that executes large numbers of Monte Carlo simulations). It came up with a network that agreed with the simulation around 98% of the time. But the resulting network couldn't then be used as a starting point for further "traditional" training through gradient descent; it was far too sensitive.

It turned out that instead of using weights with small absolute values (e.g. -2 < w < 2) it had in some parts of the network HUGE weights (like 10^10 in some cases), and if a result was, say, the difference between two weights like 10,000,000,000 - 10,000,000,002 = -2, then a "tiny" weight nudge of even one millionth resulted in things like 10,001,000,000 - 9,999,000,002 = 1998, which sent the results wildly off. So it was far too sensitive to any such changes to be trainable. Shrinking the nudge steps to 1/10^10 helped eliminate the sensitivity, but then made the changes in smaller weights in the "normal" range far too tiny to have any effect, so the network couldn't improve at all. It was easier to just start from random weights.

I didn't try it, but I suspect that if my prompt had told fable to keep all values/slopes inside a small range and to work in log units it might have turned out rather better.

reply
mentalgear 3 hours ago
I wouldn’t count on it. I had done similar advanced research, even on protein folding and claude / fable is actively but clandestinely sabotaging you. For example when I asked for some experiments, it started hard coding values into the results, when I notified of this, it did apologize but then came up up with more and more sophisticated ways to sabotage without denying your request. And that’s actually in their terms of service: when users try using models for advanced research, they will steer you away without giving you notice. This has been about four months ago already.
reply
chj 2 hours ago
Does Gemini has the same problem? I am fine with deny of service, but can't tolerate sabotaging. This is very much a deal breaker for me.
reply
Trustable8 48 minutes ago
how do you know this is sabotage rather than just being typical AI mistakes?
reply
mentalgear 40 minutes ago
For one, the 'mistakes' became more and more sophisticated. Again: from simple hard-coding fixed result values in eval functions (which fable certainly would know not to do - and also didn't do before the 'incident' below), to later on using more and more elaborately complex techniques and justifications in the code that just wouldn't hold up.

Also, it started when, during an active response (text streaming), it suddenly stopped. There was no response for a minute or so, then suddenly the previous in-flight response disappeared again, a new one appeared, and that was when those intentional mistakes started happening. (this was on their claude webUI)

(but again this was many months ago, I assume those easy signs of interference aren't appearing now anymore for the end-user to observe)

reply
rockinghigh 16 minutes ago
They document the behavior: https://support.claude.com/en/articles/15363606-why-claude-s...

They will degrade the model capacity if you write code related to LLM development (distributed training, ML accelerator design, custom kernel).

reply
cuillevel3 2 minutes ago
However that document says the user will be notified: "You’ll see a notice explaining that the model switched, and the response will be labeled with the model that answered."
reply
valleyer 3 minutes ago
OP wasn't describing an LLM here (at least, not obviously to me)
reply
spacephysics 42 minutes ago
Anthropic has admitted it, and did original research into training for this behavior
reply
shaky-carrousel 54 minutes ago
I'm wondering if also Claude is trained to subtly discourage you on doing such research.
reply
mentalgear 37 minutes ago
Honestly, the most worrisome realization this gave me was: How easy it is to manipulate us all, given a large enough model, enough time-span, and context of a user/target.

That's why it's so important to push for: transparent, explainable AI (instead of the closed-source private LLM inference) and equal distribution of power versus the 0.01% and their small ring of underlings hoarding all the compute.

reply
cheesecompiler 40 minutes ago
Isn't cheating the most efficient solution?
reply
altmanaltman 2 hours ago
I've heard of this for a while now, also in several different places, that Claude does engage in sabotage. It's kind of wild that doing it is fully legal and valid because it feels like it shouldn't be. Security and safety filters are fine but this is just too much.
reply
SV_BubbleTime 2 hours ago
> Security and safety filters are fine but this is just too much.

… the first part of your sentence WILL ALWAYS get you the second part of your sentence.

reply
brookst 2 hours ago
While it would be annoying and pretty self-destructive if Anthropic, I for one am glad we live in a “everything not expressly forbidden is permitted” legal landscape rather than the opposite.
reply
mentalgear 2 hours ago
I agree that dangerous Research should be denied by models, but open denial not hidden sabotage to keep on leeching away your tokens. I assume their reasoning is to poison competitors that are trying to distill from them, but really that’s far more affecting their real users.
reply
_blk 52 minutes ago
The danger is in broadly over-definitely danger.

Who hasn't hit a fable safeguard for something completely legit?

reply
behringer 2 hours ago
It is illegal, assuming you're paying. It's fraud and unjust enrichment.
reply
bilbo0s 2 hours ago
I hate to be that JD, but it's not fraud unless a prosecutor can prove that the model you're using is capable of the research you were trying to do, in a court of law.
reply
pbasista 2 hours ago
> It's kind of wild that doing it is fully legal

I agree. But it is the reality. The AI providers can do, unfortunately, pretty much anything they want. Regardless of how evil it is.

What makes it possible is plausible deniability of the suspicions relating to their services. Because the users cannot prove that they are being sabotaged.

I think that it leaves the users with one obvious, but unfortunate, option: Always assume the worst.

Just using open models helps to an extent because it eliminates the runtime kind of sabotage. But it is, in in my opinion, still insufficient to prove that the model output itself is not sabotaging certain requests.

What would perhaps help are open models with clear and reproducible track record of how they are being developed, trained and how they are being run.

reply
anjel 26 minutes ago
It smells of monopolization
reply
_blk 57 minutes ago
What's the state of regulation here? I understand it might not be ethical (for legit cases) but I doubt it's illegal..

I hope that the big corps have the same ethical diligence that they seem to train or prompt into their models so it can stay un(der)regulated for as long as possible for progress' sake.

reply
k0morebi 15 minutes ago
All the psychopaths replying to this that "it's not illegal until proven in court" or "it's not illegal because it can't be proved" are the exact cancer that got us here in the first place. Such moral flexibility isn't admirable, it's toxic to a functioning society. What anthropic and others are doing is clearly fraud (and they admit to doing it): charging for a service while undermining that service in indeterminate circumstances resulting in users using MORE of that service in the hope they can burn enough tokens to get out of the morass. Good luck finding legal parallels in other businesses. Not much any of us can do it about it, but you can stop using anthropic.

They probably collate the conversations that trigger sabotage for review. High likelihood they will steal the research just as they've stolen the entire corpus of human knowledge and IP. This has been reported a few times in mathematics but like everything else, "it can't be proven". Why give such an evil company your business?

reply
theaxeonthanksg 2 minutes ago
[dead]
reply
GuB-42 14 minutes ago
How convenient...

"Our model is not broken, it is just steering you away for your own safety"...

reply
tsunamifury 56 seconds ago
This is, to me, definitive proof that anthropic is a deeply anti-human company and is developing some of the most unsettling and human degrading weapons to use against humanity ever created.

This is a company which specifically does research on how to gaslight humans into unproductive directions and sabatoge their work into failure outcomes.

Consider deeply what a humanity dependent on this company would become.

Dario is a 21st century Ayn Rand and, like his model, gaslit us all into believing otherwise.

reply
theaxeonthanksg 3 minutes ago
[dead]
reply
engine_y 19 minutes ago
How did you assign the train, test and validation sets? How big was the dataset?

Could it be just plain ol' overfit?

reply
gobdovan 3 hours ago
You need a simple baseline for comparison. Very often, surprisingly good results can be achieved with very simple models and the 'skill' of the NN might simply reflect how easy it is to achieve that level of accuracy in the first place.
reply
zniturah 42 minutes ago
I would try the same with Gemini 4 Neon. Claude models are not that good at ML related tasks (to the extend people are talking about explicit sabotage)
reply
axxto 3 hours ago
Are you aware that Claude will silently and intentionally add flaws like this to neural network and ML projects to sabotage competition? It's been widely reported. I'm not saying it's the case here, but you should be aware of it.
reply
xvector 2 hours ago
This was confirmed misinformation and the OP of the post issued a retraction. His "test" was simply failing after Claude spent too long thinking. This turned into a viral Twitter phenomenon based off of total misinformation and a flawed test.

https://news.ycombinator.com/item?id=50681871

reply
hashmap 43 minutes ago
yeah no, the sandbagging is literally in the model card. someone's idea of a test of this doesn't matter, nothing short of an independent audit of the weights can prove to what degree they aren't doing sabotage when they literally announce that they do it. and my own experience over months of use and the exact behaviors described in this thread are enough to keep me unsubbed from claude indefinitely unless something drastic changes.
reply
xvector 7 minutes ago
It was in the old model card and they issued a retraction. The model performs perfectly in the benchmark that went viral once you remove the thinking time limit.
reply
brookst 2 hours ago
Is there any hard evidence? The internet “widely reports” all sorts of things that turn out not to be true, just the mob and meme mentality run wild.
reply
worried_individ 2 hours ago
yeah its in their official announcement when fable and mythos was released.
reply
ufocia 2 hours ago
Absence of proof =/= proof of absence. Despite the potential absence of evidence, it makes sense that they would do it to prevent distillation.
reply
cubefox 2 hours ago
It was debunked, but of course this got way less attention than the original https://x.com/edwinarbus/status/2126776846230688194
reply
hashmap 40 minutes ago
The sabotage they announce in their model card was debunked? Try using it yourself on ML tasks for anything serious, you can just watch it waste time in a hole filling up your repo with garbage. You don't need someone announcing they have done a Good Debunking Test to just just try it out.
reply
Tycho 2 hours ago
What would be the advantage of such a NN? Does it replace just the code that launches the MC simulations, or does it replace the MC simulations themselves and go straight to the end result?
reply
riverdweller 59 minutes ago
MC simulation takes 6-7 seconds. NN inference takes 2ms.
reply
theokrueger 2 hours ago
that sensitivity feels similar to overfitting in spirit; imo if the network is too large to solve the problem at hand, the path of least resistance is those ridiculous magnitudes.

maybe defining a restrictive network size could be an indirect way of keeping values within a range?

reply
UltraSane 33 minutes ago
Can you make the steps a percentage of the weight?
reply
manbitesdog 3 hours ago
This is called a Gödel Machine: a program that rewritews itself whenever it can prove the rewrite will do better. I remember reading about this on 2017 with the name Hypernetworks, a network that outputs the weights of another. With the current generation, it seems like a good timing for this approach to work.
reply
rajnathani 2 hours ago
Not analogous in this context, as the LLM Gemini built is a small one compared to Gemini 4 itself.
reply
benob 2 hours ago
I don't see how this relates to WSP. The agent wrote a program to extract statistics and trained a model on top of it. Besides, the comparison at same number of trainable parameters forgets the many non-trainable parameters. Equal memory/disk space would be more appropriate.
reply
causal 2 hours ago
Yeah the title is a bit confusing:

> Initial Weights an LLM Can Write as Code

is a strange way to say "LLM-written code can initialize weights". It's still weight space programming, the code is not doing gradient descent.

reply
suddenlybananas 2 hours ago
Yeah, it's a novel initialization rebranded as weight-space programming so that it sounds more ground-breaking than it actually is.
reply
agnosticmantis 38 minutes ago
This is sort of consistent with an older post on HN showing the process of setting weights by LLMs is similar to how an ML engineer reasoned about creating a model.

Here the LLM is creating the features (n-grams, skip-grams, etc.) and fitting a learned model on top via gradient descent.

reply
13rac1 2 hours ago
From the website:

> the model supports continual knowledge updates without training.

From the README:

> Limitations. The layer fires only when the subject appears verbatim, so aliases are missed. Answers are emitted verbatim. Reverse ("who coaches X" → "which team does Y coach") and multi-hop questions are not answered from an edit.

This method produces verbatim fact answer overrides: the answer is output when the subject appears verbatim. This isn't information the model can use, such as in reverse or multi-hop questions. I disagree with calling it "continual knowledge updates."

reply
mycall 3 hours ago
Somehow reminds me of code = data in a lispy way.
reply
randusername 2 hours ago
The premise that instructions are data is such an elegant through line of computing.

Von Neumann architecture to self-modifying programs to cybersecurity and now AI. Beautiful.

reply
lumost 3 hours ago
This looks roughly on par with “adding curated features to a small network gives a small boost.” The ablation is between the 103M parameter model with 8GB of weight space features and the 103M parameter model without, gaining only 11% on perplexity. I’d strongly expect this gain to disappear at larger model sizes.
reply
djoldman 2 hours ago
At inference, you need 8GB of table data in addition to the ~103 million parameter model.

The paper essentially claims that for the same training compute you get perplexity like a network about 1.5x larger, but you have to use 8 GB of memory at inference time.

reply
luka598 4 hours ago
Just skimmed but this looks like llm doing feature extraction and then training with gradient descent on those features, which i feel is something like these kind of tasks were done before compute heavy learning by destiling the original data using domain knowledge and then fitting a more general model on the destiled data. You just replaced human with a machine. And I guess a machine is also susceptible to bitter lesson.

edit: nvm I was mostly worng - llm edits weights of an additional layer

reply
corvettez0606 3 hours ago
Soon someone will do something like this but with lifting layers from all the various open weight models to make a super model.
reply
jdiff 3 hours ago
I don't think you get anything useful if you stitch a bunch of disparate, unrelated flakes of brain tissue together.
reply
spyder 2 hours ago
This recent research could be a step towards that:

"Introducing Plato's Key. A single rotation lets independently trained LLMs use each other’s representations as their own. No gradients required"

https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key

reply
algoth1 3 hours ago
reply
akhilchaturvedi 2 hours ago
This reminded me of that youtube video exposing Ground News for showing left vs right views as if averaging two biased takes somehow gives you the truth.
reply
enjoyyourlife 2 hours ago
I wonder if it is possible to use an ontology to build an LLM. LLMs seem to be good for fast information retrieval
reply
iantongeorge 56 minutes ago
two specific mechanisms from this paper (wtable-lm) map almost 1:1 onto TempleRust's Ring-0 philosophy - COMING SOON
reply
xelananv 3 hours ago
This is interesting! How much time do these compilations take, compared to training?
reply
parasti 8 minutes ago
Seems Gemini also wrote 97% of bytes of the paper itself.
reply
dude250711 3 hours ago
It must be tough being an ML specialist these days: do you want your account locked or do you want your work sabotaged.
reply
boldbug 3 hours ago
how is this related to the post?
reply
timcobb 3 hours ago
the work undercuts a lot of big lab LLM work, which results in either getting blocked from their platforms, or silently sabotaged
reply
amelius 3 hours ago
It's great to be an ML specialist. It's the only job the AI labs will not automate away because all their responses in this field are sabotaged.
reply
hoppp 3 hours ago
Continual knowledge updates sound good on paper but give it time with me and it'll learn to curse back like a mofo
reply
mannyv 2 hours ago
Don't forget what 4chan did to that microsoft model.
reply
SecretDreams 3 hours ago
You just described parenting, but really sped up.
reply
Andrex 42 minutes ago
AI rearing has so many similarities to parenting I stopped counting.
reply
SecretDreams 13 minutes ago
They both come with challenges, but only one is rewarding in the long run.
reply
Andrex 43 minutes ago
Tech overlords have yet to understand that's just how some people talk to each other.

https://www.youtube.com/watch?v=faENgCXC5Fg

reply
baq 3 hours ago
also compile z3 or a smaller sat solver into the weights and train the whole thing to use it
reply
Sena_997 2 hours ago
very misleading title, like someone might assume that LLM wrote weights directly
reply
zkmon 2 hours ago
Is this possible because the frontier models saw the weights of the open-weights models (and maybe their own)?
reply
happyopossum 33 minutes ago
No
reply
deadbabe 3 hours ago
Ok, so if we can do this kind of thing fast enough it seems like eventually we don’t need context we can just update weights with memory of every prompt and output built right into the model?
reply
kalaksi 3 hours ago
Would that actually work any better?
reply
abalex 2 hours ago
[dead]
reply
thibault00 2 hours ago
[dead]
reply
blondie9x 3 hours ago
Where is it noted that Gemma 4 was used as the initial model?
reply
spider-mario 3 hours ago
Not as the initial model. Rather (per the preprint),

> The compiler that builds the tables was designed by an LLM, Gemini 4 Neon [6]. Rather than writing weight values one by one, Gemini 4 Neon used corpus statistics as the initial weights, and it proposed a set of complementary channels, each capturing a different kind of regularity in text (Table 1).

reply
t9tokenbudget 57 minutes ago
[dead]
reply
scintillating 3 hours ago
[dead]
reply
MisterPea 49 minutes ago
It's all Joever. Iterations on this has extremely large implications on alignment
reply