An unofficial, read-only Hacker News reader. Join the beta →

The KL Divergence Is Never Negative, Except in PyTorch (opens external site)

97 points by Anon84 3 days ago | arxiv.org | 40 comments on HN

View full thread · View on Hacker News

Comment thread (15)

  1. So obvious this entire paper was generated by Claude. That's good in terms of the epistemological correctness of the claim being higher than it was historically (lots of lies before AI agents in research), but it's infuriating to notice this from literally the first sentence "A KL divergence is never negative..."

    I really, REALLY want whoever at Anthropic is okay with the tiny pool of annotators that their model is way WAY too over RL'd on to reincarnate into a durian fruit or something.

    I don't care that the author used AI to write something. I do care that the ensuing prose is really crappy.

    Replies (4)
    1. Performative negatives drive me wild. I don’t want the models telling me what they didn’t do, ESPECIALLY if I told them not to do it already, and especially in place of due diligence with a hedge about the token steps it took to nominally comply
    2. I don’t understand. What about that sentence is crappy or indicative of AI slop?
      Replies (3)
      1. The double negation GP highlights is a bit awkward, and the initial sentence restates the title of the paper. To be honest I'm not sure the alternative would flow better in this case.

        The abstract at least doesn't really set off my claudar. "The sign is only the visible part of a silent failure." is the one sentence that does give a bit of a reading. But you also have sentence (fragments) like "With the repaired code they all but vanish." which feels disconnected and is worse prose than current AI models would output. If the paper itself has been authored by an AI model, my guess it has undergone human revisions.

        Replies (2)
        1. Can the value legitimately be 0? If so, then “always positive” would be incorrect and “always non-negative” would be even more awkward.
          Replies (1)
          1. Yeah I'm kind of landing in the same place, "greater than or equal to zero" doesn't really flow either. The two negations are in two different senses so I'd probably leave it as it is.
        2. huh, I read the title as a humorous way to point out a flaw in pytorch, like "look, you can calculate your way into a literal impossibility here". I thought it was a great title.
      2. Next sentence:

        "The sign is only the visible part of a silent failure."

        Ugh.

        Pangram detects the abstract as 100% AI.

      3. There’s nothing wrong with that sentence. The KL divergence is indeed never negative, and it’s perfectly fine to say it that way. The more idiomatic way to say it in maths is even more awkward which is that the KL divergence is always non-negative.
    3. My vague understanding is that making LLMs not sound like LLMs is basically an unsolved technical problem, and not for lack of trying.

      Pangram, for what it's worth, thinks the paper is a mix of human and AI, though it's possible it could be getting tripped up by the formatting: https://www.pangram.com/history/4df21841-c6cb-4345-9a5b-8a68...

      Replies (2)
      1. I wonder if a diffusion strategy would produce less llm-ey prose. I suspect what the llm is doing is it's picking a "generally common" token (e.g. "not" after "it's") and then it's only way out is to llm speak

        (It's not <x>, it's <y>)

        The system is sort of trapped by its causal mask

        Replies (1)
        1. Pangram has some sort n-gram sliding window that identifies clusters of n-grams that are statistically more likely to be common AI models than human. You can fix it just with a different sampling algorithm that re-weights the next token distribution to avoid common llm-isms.
      2. You might be interested in https://arxiv.org/abs/2610.29162

        I personally think it’s kinda a dumb premise: models write like this because in many cases they lack true understanding of the meaningful aspects of a problem. If models had true understanding, then you could tell them to write succinctly, specifically, and pragmatically and then they’d produce the sorts of beautiful explanations one finds in good textbooks, or well-abstracted/architected large systems. Translating the ineffable remains difficult. RL will continue to be used to attempt alignment though

        Replies (1)
        1. I don't think this can be it, because LLMs still write like LLMs even on nontechnical topics, and on topics simple enough that understanding is not in question.
    4. > I do care that the ensuing prose is really crappy

      The prose is awful, but that's the bed ML made, and now they should lie in it.