A Contrastive Framework for Neural Text Generation
Su, Yixuan, Lan, Tian, Wang, Yan, Yogatama, Dani, Kong, Lingpeng, Collier, Nigel
–arXiv.org Artificial Intelligence
Text generation is of great importance to many natural language processing applications. However, maximization-based decoding methods (e.g., beam search) of neural language models often lead to degenerate solutions--the generated text is unnatural and contains undesirable repetitions. Existing approaches introduce stochasticity via sampling or modify training objectives to decrease the probabilities of certain tokens (e.g., unlikelihood training). However, they often lead to solutions that lack coherence. In this work, we show that an underlying reason for model degeneration is the anisotropic distribution of token representations. We present a contrastive solution: (i) SimCTG, a contrastive training objective to calibrate the model's representation space, and (ii) a decoding method--contrastive search--to encourage diversity while maintaining coherence in the generated text. Extensive experiments and analyses on three benchmarks from two languages demonstrate that our proposed approach significantly outperforms current state-of-the-art text generation methods as evaluated by both human and automatic metrics.
arXiv.org Artificial Intelligence
Sep-26-2022
- Country:
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- Asia
- Atlantic Ocean
- Gulf of Mexico (0.04)
- North Atlantic Ocean > North Sea (0.04)
- Europe
- United Kingdom
- England
- Cambridgeshire > Cambridge (0.04)
- Cornwall > Isles of Scilly (0.04)
- Isle of Wight (0.04)
- Scotland > Aberdeenshire (0.04)
- England
- Isle of Man (0.04)
- France (0.04)
- Portugal > Lisbon
- Lisbon (0.04)
- North Sea (0.04)
- Denmark > Capital Region
- Copenhagen (0.04)
- Italy > Tuscany
- Florence (0.04)
- Germany > Berlin (0.04)
- Austria (0.04)
- United Kingdom
- North America
- Canada
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Quebec > Montreal (0.04)
- British Columbia > Metro Vancouver Regional District
- Central America (0.14)
- Dominican Republic (0.04)
- Mexico (0.14)
- Puerto Rico (0.04)
- United States
- California
- Los Angeles County > Long Beach (0.14)
- San Diego County > San Diego (0.04)
- Michigan (0.04)
- New York (0.04)
- California
- Canada
- Oceania > Australia
- Queensland > Brisbane (0.04)
- Victoria > Melbourne (0.04)
- South America > Peru (0.04)
- Africa > Ethiopia
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Technology: