Unboxed · Chapter 5 · Auf Deutsch

Convincingly wrong

A language model always delivers whatever, according to its texts, fits best at that point. For things it has read thousands of times, that is almost always the right thing too. For things it has rarely or never read, it still delivers something: an answer that sounds right. Experts call this a hallucination.

The model isn’t lying. While learning, it got very good at how answers sound, but not at whether they are true. In its texts, “The mayor of … is called” is always followed by a name. So a name follows.

Try it: ask the model the three questions and let it answer a few times. Then see what changes with the slider and with a source.

Read in its texts: neverrarelyoften

The model’s guesses

    careful wild 1.0


    And the temperature?

    A high temperature makes mistakes more frequent, because unlikely answers get their turn too. But it isn’t the cause. Move the slider all the way to the left for the mayor: the model still makes something up, it just says the same name every time, and sounds especially convinced.

    What helps

    A source helps most. If the model may look things up before it answers, in an encyclopedia, in documents or on the internet, it doesn’t have to guess. Experts call this retrieval-augmented generation, or RAG for short: look it up, then write.

    Models are also increasingly trained to admit when they don’t know something. But you can’t rely on that. So for anything that matters: ask where the answer comes from, and check it yourself.