AI Briefing
KO

Contrastive Search Introduced to Transformers

·2022.11.08 09:00

Key point

Contrastive Search, which solves the text repetition problem, has been introduced to the Transformers library.

Details

Existing deterministic decoding methods such as Greedy Search and Beam Search frequently cause Model Degeneration, in which the same phrases are repeated during text generation. To address this, stochastic methods that introduce randomness, such as Top-k and Nucleus Sampling, have been used, but limitations still remain.

Contrastive Search is a cutting-edge decoding technique that solves this problem and generates human-level natural text. Without any additional training, it works with existing off-the-shelf language models as they are, and it has demonstrated excellent performance across 16 languages.

This feature has been officially incorporated into the Hugging Face transformers library and can be used in both PyTorch and TensorFlow environments.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.