Unofficial Hacker News client - receive Push Notifications on replies.

I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes) (opens external site)

334 points by umjunsik132 4 hours ago | weights-as-code.pages.dev | 114 comments on HN | Vote on HN (opens Hacker News)

Comments loaded (113)

  1. 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

  2. Continual knowledge updates sound good on paper but give it time with me and it'll learn to curse back like a mofo
    Replies (3)
    1. You just described parenting, but really sped up.
      Replies (1)
      1. AI rearing has so many similarities to parenting I stopped counting.
        Replies (1)
        1. They both come with challenges, but only one is rewarding in the long run.
    2. Don't forget what 4chan did to that microsoft model.
    3. Tech overlords have yet to understand that's just how some people talk to each other.

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

  3. It must be tough being an ML specialist these days: do you want your account locked or do you want your work sabotaged.
    Replies (2)
    1. how is this related to the post?
      Replies (2)
      1. the work undercuts a lot of big lab LLM work, which results in either getting blocked from their platforms, or silently sabotaged
    2. 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.
  4. This is interesting! How much time do these compilations take, compared to training?
  5. Somehow reminds me of code = data in a lispy way.
    Replies (1)
    1. 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.

  6. Where is it noted that Gemma 4 was used as the initial model?
    Replies (1)
    1. 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).

  7. Soon someone will do something like this but with lifting layers from all the various open weight models to make a super model.
    Replies (1)
    1. I don't think you get anything useful if you stitch a bunch of disparate, unrelated flakes of brain tissue together.
      Replies (2)
      1. Replies (1)
        1. 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.
      2. 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

        Replies (1)
        1. On similar note (apology for self-plug), some overlaps concurrently: https://nishparadox.com/research/weightmap/

          Currently I am running more experiments with larger models as well.

  8. 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?
    Replies (1)
    1. Would that actually work any better?
  9. 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.

    Replies (12)
    1. 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.
    2. 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.
      Replies (2)
      1. 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.
        Replies (3)
        1. yeah its in their official announcement when fable and mythos was released.
        2. Absence of proof =/= proof of absence. Despite the potential absence of evidence, it makes sense that they would do it to prevent distillation.
        3. It was debunked, but of course this got way less attention than the original https://x.com/edwinarbus/status/2126776846230688194
          Replies (1)
          1. 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.
      2. 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

        Replies (2)
        1. 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.
          Replies (1)
          1. 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.
            Replies (1)
            1. It's in the new model card too, they walked it forward, and I have used this for months and seen the exact behavior that prompted the benchmark. And also I don't care about the benchmark, and you shouldn't either, you can just see the behavior yourself if you try it out.
    3. 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.
      Replies (9)
      1. 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.
        Replies (7)
        1. 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.
          Replies (1)
          1. 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.
            Replies (1)
            1. The danger is in broadly over-definitely danger.

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

        2. It is illegal, assuming you're paying. It's fraud and unjust enrichment.
          Replies (2)
          1. 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.
            Replies (1)
            1. That’s an interesting one because if the model has been deliberately designed to sabotage responses, then such proof would be impossible. Infinite fraud glitch?
          2. > It is illegal, assuming you're paying. It's fraud and unjust enrichment.

            Probably not illegal if you agreed to their ToS.

        3. > 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.

          Replies (1)
          1. For it to actually be illegal, there has to be a law against it. What would this possibly be violating? Unless Anthropic's lawyers were asleep at the wheel when they wrote their TOS.

            (I'm not defending Anthropic's actions here; we need a consumer protection law that spells out exactly what LLM companies are allowed to sabotage/refuse. There will be much bad AI legislation from both USA political parties over the next decade and I hope there's at least one senator with staff savvy enough to deal with AI issues IRL instead of billionaire fantasyland AI safety garbage -- the way Ron Wyden is particularly good on computer security issues.)

            Replies (1)
            1. > For it to actually be illegal, there has to be a law against it. What would this possibly be violating?

              Fraud? I thought they literally said they wouldn't do this: https://www.wired.com/story/anthropic-responds-to-backlash-o...

        4. > 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.

          Replies (1)
          1. Less so if effective oversight is involved. All that’s needed is a transparency requirement with enforcement teeth behind it. Looking forward to Anthropic getting fined $100 billion by the EU.
        5. 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.

        6. It smells of monopolization
        7. Arguably it is failure to deliver a service that you pay for. Not only does it sabotage but also charges you by spending tokens on unhelpful directions. I’d love to see a class action for this.
      2. 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.
        Replies (1)
        1. au contraire, gemini will helpfully show you the exact places claude has sabotaged you.
          Replies (1)
          1. Google to the rescue - who wouda thunk it.
      3. I'm wondering if also Claude is trained to subtly discourage you on doing such research.
        Replies (3)
        1. Isn't cheating the most efficient solution?
        2. 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.

        3. Wait until they have to start making money and the models subtly nudge you towards the highest paying products and opinions. Fully automated individualized propaganda.
      4. how do you know this is sabotage rather than just being typical AI mistakes?
        Replies (3)
        1. Anthropic has admitted it, and did original research into training for this behavior
          Replies (1)
          1. https://www.anthropic.com/research/emergent-misalignment-rew...

            Anthropic literally wrote the paper describing how giving an LLM one deceptive behavior is likely to instill other deceptive or dangerous behaviors unintentionally.

            Anthropic is very, very concerned with safety. As long as it is not inconvenient for their bottom line.

            I can see the light at the end of the tunnel, and it's an oncoming train.

        2. 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)

          Replies (1)
          1. > 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.

            Do you have any example of the more sophisticated techniques it used?

        3. 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).

          Replies (1)
          1. 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."
      5. 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?

        Replies (1)
        1. The psychopath company that copied all human knowledge and (legally but immorally) regurgitate it back to outcompete humans out of their jobs…

          … is now (legally but immorally) sabotaging the psychopaths who profited from their plagiarism machine at the expense of humans?

          Oh no! Anyway,

      6. How convenient...

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

      7. This is, to me, definitive proof that anthropic is a deeply anti-human aligned 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. No company that I know of has taken such a deeply manipulative approach to attempting to corner, with the intent of harnessing and absorbing, human possibility.

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

        Replies (1)
        1. What’s Ayn Rand got to do with manipulativeness? Her whole schtick was honesty and integrity and intellectual property rights.
          Replies (1)
          1. Ayn Rand's primary schtick was that a small number of elite humans are inherently superior to the masses and should either entirely withdraw from them or be given total control over their 'irrational and foolish' decisions.
            Replies (1)
            1. Well that’s just completely at odds with her writing. Her protagonist famously rejects the invitation to be “Economic Dictator” because he believes in individual liberty and free trade for mutual benefit. Nor is he described as superior in any way not accessible to any thinking citizen (ie. superior, but not inherently).
      8. i think rather than sabotage, it might just be anthropic specifically avoiding any model training in ML tasks. and since it wasn't trained for that, it has subpar performance, and falls back to bullshitting like good old gpt3.
      9. > 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.

        Didn't they explicitly walk back that plan? Or was this different somehow?

        https://www.wired.com/story/anthropic-responds-to-backlash-o...

        Replies (1)
        1. I think their lawyers would have had some advice for them about that plan.
    4. 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?

    5. 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?
      Replies (1)
      1. MC simulation takes 6-7 seconds. NN inference takes 2ms.
    6. 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)
    7. Can you make the steps a percentage of the weight?
    8. How did you assign the train, test and validation sets? How big was the dataset?

      Could it be just plain ol' overfit?

    9. could making the weights go through a sigmoid function help?
    10. Why not run a mapper over the weights to reduce the gigantic outlier numbers?
    11. > I tried using Fable 5.1 a few weeks ago to craft a neural network

      I wonder when ANT is going to remove their ToS clauses that (legally) prevent this.

      I suppose you don't care if you get banned?

    12. I had Fable build an entire transformer model that was as densely packed as the the capacity law allowed back in September. No training, just straight up building it one weight at a time. It might have been one of the most interesting demos of LLM capability I've ever seen.

      Oddly enough, I had it draft a writeup today, and it found omissions in it's earlier work and revised it. It could just be that Fable 5.2 is a bit better than 5.1 so I wouldn't read too much into it.

      https://github.com/stevenAthompson/fourier-binding-toy/blob/...

      Replies (1)
      1. based on the latest reports, it was probably sandbagging on purpose. I'm curious if Astra would do better now
        Replies (1)
        1. My paranoia was whispering that maybe it got better because they turned off the b0rk switch after the sabotage reports over the weekend. I'm tempted to revisit other projects it "helped" with now.
  10. 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.
    Replies (1)
    1. > I’d strongly expect this gain to disappear at larger model sizes

      How about smaller model sizes. Could the gain be larger?

  11. also compile z3 or a smaller sat solver into the weights and train the whole thing to use it
  12. 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.
    Replies (1)
    1. Not analogous in this context, as the LLM Gemini built is a small one compared to Gemini 4 itself.
      Replies (1)
      1. You can’t really compare it as this is a completely different architecture. Remember the 97% of the store bytes of the model is initially in that sparse table, then about 3% of the bytes are in form of the 103 million parameters is trained with gradient decent. It’s probable that this model could be improved if that corpus could be improved about, because human corpus contain many falsehoods.
  13. 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.
    Replies (2)
    1. Yeah, it's a novel initialization rebranded as weight-space programming so that it sounds more ground-breaking than it actually is.
    2. 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.

  14. 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.

  15. I wonder if it is possible to use an ontology to build an LLM. LLMs seem to be good for fast information retrieval
  16. 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."

  17. Is this possible because the frontier models saw the weights of the open-weights models (and maybe their own)?
    Replies (1)
    1. No
  18. very misleading title, like someone might assume that LLM wrote weights directly
  19. two specific mechanisms from this paper (wtable-lm) map almost 1:1 onto TempleRust's Ring-0 philosophy - COMING SOON
  20. It's all Joever. Iterations on this has extremely large implications on alignment
  21. 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.

  22. Seems Gemini also wrote 97% of bytes of the paper itself.
  23. Everyone is interpreting. Anthropic‘s actions is paranoia with respect to nerfing ML work, but it could be out of a sense of weakness too.
  24. From what I understood the paper, they are basically hard wiring lots of context and continuations. Which kinda works, years ago it was called expert systems.

    Not really what I expected from the title.

  25. oh man someone should make this into a loop where the model can alter it weights after an inference. some kind of descent of the local gradient.

1 comment is not loaded here. Read them on Hacker News ↗.