Skip to content
mentoor

Topic 3 of 5 · 4 min read

Behaviours that come from prediction

Goal: Link an odd model behaviour such as repetition or an early wrong commitment to the prediction mechanism and choose a prompt change that reduces it.

Several odd model habits, such as repeating itself, sticking to a wrong first move, changing with small wording changes and copying the shape of your prompt, all come straight from the next-token loop.

Check yourself · 1 of 3

A model's list has the same phrase in five of the ten items. What is the most likely cause?

Choose one answer

Why it matters

When a model behaves strangely, it is easy to blame bad luck or "the AI being stubborn". Most of these habits have a plain cause. Once you can name the cause, you can change the prompt and fix the habit instead of rerunning and hoping.

Four habits and their causes

  1. Repetition. Each token is picked given all the text before it, including the model's own words. If a phrase has already appeared, the same phrase becomes a likely continuation again, and a loop can start. Long replies and low temperature make it more common.
  2. Early commitment. Once the model writes a wrong plan, a wrong number or a wrong "Yes", the following tokens are built on it. It does not step back. It continues the path that now exists.
  3. Wording sensitivity. A different phrasing gives different input text, so the scores for the next token change. "List the risks" and "What could go wrong?" can lead to different lists. This is normal, not a bug.
  4. Pattern copying. The model continues the pattern it sees. If your examples are all short and formal, the reply will be short and formal. If your example happens to contain a made-up name, that name may turn up in the answer.

What to change in the prompt

  • For repetition: ask for a fixed number of items, set a length limit, or tell it to give each point a different angle. If you can, start a fresh chat so the repeated text is not in the input.
  • For early commitment: ask for the working before the verdict, or ask for two options and then a pick. If the chat has gone wrong, start a new one with a corrected prompt. Arguing with a model inside a wrong thread often keeps the wrong text in front of it.
  • For wording sensitivity: try two or three phrasings for important tasks and compare. Put the key requirement in plain, direct words.
  • For pattern copying: make examples varied, and mark them as examples, for instance "Example, not to be copied".

Before and after

Before: "Write 10 slogans for a bakery." Slogans 6 to 10 all start with "Fresh from the oven" because that opening kept appearing.

After: "Write 10 slogans for a bakery. Each must start with a different word and use a different idea: price, smell, family, speed, locality and so on."

What goes wrong

  • Pushing on in a bad thread. Each correction adds more text that includes the error.
  • Using one example only. The model copies its length, tone and structure too closely.
  • Reading a change in wording as a change in the model's mind. It is just different input.

Examples

Break a repeating list

Before: Give me 8 reasons to learn Spanish.

The list repeats "it helps you travel" in three different forms.

After: Give me 8 reasons to learn Spanish. Each reason must come from a different area: career, travel, brain health, family, culture, money, friends, study. One sentence each.

The fixed categories give each item a different starting point, so the loop has less to repeat.

Restart instead of arguing

A chat's first answer says a spreadsheet formula needs a macro. You reply three times that it does not. The model keeps defending the macro.

Open a new chat and write: "I need a formula, not a macro, to sum column B where column A is Paid." The wrong opening is gone from the input, so it cannot pull the reply back.

Key points

  • Repetition happens because the model's own earlier words are part of the input for each new token.
  • Early commitment means a wrong first move shapes everything that follows.
  • Small changes in wording change the input, so they can change the output.
  • The model copies patterns from the prompt, including accidental ones in your examples.
  • Often the best fix for a bad thread is a new chat with a better prompt, not another correction.

Common mistakes

  • Rerunning the same prompt many times and hoping the habit disappears.
  • Arguing with the model inside a thread that already contains the mistake.
  • Giving a single example and being surprised when the answer copies it closely.
  • Calling a wording-driven difference "random" instead of testing two phrasings.

Check yourself · 2 of 3

A chat's first reply made a wrong assumption and three corrections have not fixed it. What is the best move?

Choose one answer

Check yourself · 3 of 3

You show one sample product description as a guide, and every new description comes out with the same length and the same opening line. Why?

Choose one answer

Practice items, not counted towards your mastery.

Start here