Adaptive Contrastive Search: Uncertainty-Guided Decoding for Open-Ended Text Generation
Arias, Esteban Garces, Rodemann, Julian, Li, Meimingwei, Heumann, Christian, Aßenmacher, Matthias
Decoding from the output distributions of large language models to produce high-quality text is a complex challenge in language modeling. Various approaches, such as beam search, sampling with temperature, $k-$sampling, nucleus $p-$sampling, typical decoding, contrastive decoding, and contrastive search, have been proposed to address this problem, aiming to improve coherence, diversity, as well as resemblance to human-generated text. In this study, we introduce adaptive contrastive search, a novel decoding strategy extending contrastive search by incorporating an adaptive degeneration penalty, guided by the estimated uncertainty of the model at each generation step. This strategy is designed to enhance both the creativity and diversity of the language modeling process while at the same time producing coherent and high-quality generated text output. Our findings indicate performance enhancement in both aspects, across different model architectures and datasets, underscoring the effectiveness of our method in text generation tasks. Our code base, datasets, and models are publicly available.
Jul-26-2024
- Country:
- Asia
- Afghanistan
- Herat Province > Herat (0.04)
- Kabul Province > Kabul (0.04)
- Kunduz Province > Kunduz (0.04)
- Pakistan > Islamabad Capital Territory
- Islamabad (0.04)
- Afghanistan
- Europe
- France (0.04)
- Germany > Bavaria
- Upper Bavaria > Munich (0.04)
- North America > United States
- Massachusetts > Middlesex County
- Medford (0.04)
- New York (0.04)
- Pennsylvania (0.04)
- Massachusetts > Middlesex County
- Oceania > Kiribati
- Gilbert Islands > Tarawa (0.04)
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Government
- Military > Army (0.46)
- Regional Government > North America Government
- United States Government (0.68)
- Law Enforcement & Public Safety (1.00)
- Transportation (1.00)
- Government
- Technology: