English

Penalty Decoding: Well Suppress the Self-Reinforcement Effect in Open-Ended Text Generation

Computation and Language 2023-10-24 v1

Abstract

The decoding algorithm is critical for open-ended text generation, transforming latent representations into coherent and meaningful outputs. This paper investigates the self-reinforcement effect in text generation and the effectiveness of a repetition penalty to mitigate it. However, determining the optimal repetition penalty value is challenging. To tackle this, we propose a forgetting mechanism that disregards distant tokens, reducing the burden of penalty selection. In addition, we introduce a length penalty to address overly short sentences caused by excessive penalties. Our penalty decoding approach incorporating three strategies helps resolve issues with sampling methods deviating from factual information. Experimental results demonstrate the efficacy of our approach in generating high-quality sentences resembling human output.

Keywords

Cite

@article{arxiv.2310.14971,
  title  = {Penalty Decoding: Well Suppress the Self-Reinforcement Effect in Open-Ended Text Generation},
  author = {Wenhong Zhu and Hongkun Hao and Rui Wang},
  journal= {arXiv preprint arXiv:2310.14971},
  year   = {2023}
}

Comments

Accepted by EMNLP2023

R2 v1 2026-06-28T12:59:01.150Z