Definition

Length Penalty

A length penalty is a control mechanism used in text generation to guide the output towards a specific length. It works by penalizing sequences that deviate from the desired length, such as those that are excessively short or long, which is particularly useful in applications like text summarization.

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

Foundations of Large Language Models Course

Computing Sciences