Learn Before
Definition

Representation-based Repetition Penalty

A representation-based repetition penalty is a technique to discourage repetitive text by operating on the model's internal representations. This method calculates a penalty based on the maximum distance between the representation of the token being predicted and the representations of tokens that have already been generated. By penalizing tokens whose representations are too close to previous ones, the search objective is guided away from producing degenerate, repetitive outputs.

0

1

Updated 2026-05-05

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Computing Sciences

Foundations of Large Language Models Course