Unboxed · Chapter 3 · Auf Deutsch

Word by word

When a model writes a text, it simply keeps playing the guessing game from the second chapter: it guesses the next word, adds it, and guesses again. Word by word, until the text is finished.

It doesn’t always take the favourite, though. It draws a word, a bit like pulling it out of a hat in which the favourite turns up most often. How strongly the favourite is preferred is set with a slider. Here it is called boldness; the technical term is temperature.

Try it: let the model write word by word, and move the slider in between. The bars show how the chances shift.

Start

    careful wild 1.0


    Why the same question gets two answers

    Because a word is drawn. At a low temperature almost the same thing comes out every time: reliable, but tame. At a high temperature it gets surprising, and at some point it turns into nonsense. Anyone who builds a model into an application sets the temperature to suit the purpose: low when it needs to be accurate, higher for brainstorming.

    Where the thread breaks

    Let the model write a few sentences at temperature 1 or a little above. Sooner or later you’ll get something like “The emperor rides up the summit is cold.” Each pair of words fits on its own, the sentence as a whole doesn’t. Our model only looks at the last word, after all.

    Real models keep the whole text in view. How they do that is what the next chapter is about.