Learn AI Math

Repetition Penalty

What is Repetition Penalty?

In one sentence: A repetition penalty is a setting that makes a model less likely to repeat the same words or phrases over and over.

Models sometimes get stuck in loops, saying the same thing again and again. A repetition penalty lowers the chance of tokens that have already appeared, nudging the model toward fresh wording.

What does Repetition Penalty look like?

Without a penalty, a model might write "very very very very good"; with one, it is more likely to write "really excellent."

Why does Repetition Penalty matter?

It keeps generated text readable and less robotic.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.