Insights

Cortexa Ground Truth

Nº 41 · Explainer · · 5 min read

0:00 / 4:52

Tip: once it’s playing, tap any line to jump the audio there.

An AI answer is one roll of a weighted die.

A model picks each word from a ranked list of likely ones, so one question can get different answers. Temperature sets how adventurous it is.


“Why did it say something different this time?” Someone on the account team asks it after re-running a prompt for a client deck and getting a second version of the headline. Nothing is broken. A model does not look an answer up. It writes one a word at a time, and before each word it holds a ranked list of candidates.

How does a model pick the next word?

Ask a model to finish “Our team offsite this year should be in…” and before the next word it scores the options and turns the scores into odds: “Austin” is likely, “Denver” less so, “Lisbon” a long shot. Then it picks from that list. Usually the favorite wins. Sometimes it doesn't, and one different word early in a sentence sends the rest of the answer down another road.

Two dials control the pick. Temperature controls the degree of randomness in token selection1: low keeps the model close to its favorites, high lets the long shots in. The other dial, top-P, trims the list first. Tokens are selected from the most probable to least probable until the sum of their probabilities equals the top-P value1, so a low top-P cuts off the unlikely tail before temperature does its work.

Asked where the team offsite should be, the spinner usually says Austin and sometimes Lisbon. Same spinner, different spin. Keep the one you approved.

Why not always pick the favorite?

Because the result reads badly. In a widely cited preprint on text generation, researchers found that choosing the most likely word every time leads to text that is bland and strangely repetitive3. Variation is what keeps a draft from sounding like a form letter. That is the trade: the same dial that gives you a livelier tagline also gives you a different tagline tomorrow.

So the setting follows the job. Google's guidance is that lower temperatures are good for prompts that require a less open-ended or creative response, while higher temperatures can lead to more diverse or creative results1. Pulling figures out of a report wants the low end. Brainstorming ten names wants the high end.

Does zero temperature give the same answer every time?

Close, and not quite. At zero, the highest probability tokens are always selected1, yet the same page says responses are mostly deterministic, but a small amount of variation is still possible1. OpenAI's guide to its seed setting makes the same promise in the same careful words: send the same seed and settings and you get mostly deterministic outputs2, and the serving infrastructure underneath changes a few times a year.

How to get a steadier answer
  1. 01

    Lower the temperature

    a steeper list keeps the model near its favorites

  2. 02

    Trim with top-P

    cut the unlikely tail of the list first

  3. 03

    Fix the seed

    where the tool offers one, same seed and settings give mostly the same output

  4. 04

    Save the approved answer

    the only repeatable answer is the one on file

What's Real?

The “so what” — for anyone serving tech clients

  • Tell clients early that a re-run will read differently, and that this is how the tool works. It saves the awkward call after a second version lands.
  • Match the setting to the job: low for extraction, summaries and anything a client will compare against a source; higher for naming, angles and first-draft copy.
  • Keep the approved output, with its prompt and the date, in the project folder. That file is what you can hand a client; a settings page is not.

Up next

More in Ground Truth

Let's build what's next.

If this is a question your clients are asking, we should talk.