HackerPapers

arXiv:1904.09751cs.CL

The Curious Case of Neural Text Degeneration

Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, Yejin Choi

Abstract

Despite considerable advancements with deep neural language models, the enigma of neural text degeneration persists when these models are tested as text generators. The counter-intuitive empirical observation is that even though the use of likelihood as training objective leads to high quality models for a broad range of language understanding tasks, using likelihood as a decoding objective leads to text that is bland and strangely repetitive. In this paper, we reveal surprising distributional differences between human text and machine text. In addition, we find that decoding strategies alone can dramatically effect the quality of machine text, even when generated from exactly the same neural language model. Our findings motivate Nucleus Sampling, a simple but effective method to draw the best out of neural generation. By sampling text from the dynamic nucleus of the probability distribution, which allows for diversity while effectively truncating the less reliable tail of the distribution, the resulting text better demonstrates the quality of human text, yielding enhanced diversity without sacrificing fluency and coherence.

arXiv comments
Published in ICLR 2020
Journal reference
DOI
Subjects
cs.CLComputation and Language

On Hacker News

Linked by 4 identifiable commenters in 4 comments across 4 threads, from Oct 2019 to Feb 2023.

Comments linking this paper, per year.

Discussed in comments4 threads

    • ChatGPT and other LLMs for that matter are most definitely not using beam search or greedy sampling. Greedy sampling is prone to repetition and just in general gives pretty subpar results that make no sense. While beam search is better than greedy sampling, it's too expensive…

      techbruvView on HNParent context

    • In this particular case it's excusable as English is the Lingua Franca of science today. Used to be Latin, then French and German, now it's English. No big deal IMO. In fact I kind of like the way this is going since it represents a fantastic opportunity for NL researchers to…

      qayxcView on HNParent context

    • Sampling realistic text from large pretrained models is non-trivial. I came across this paper in one of ACL 2019 workshops: https://arxiv.org/pdf/1904.09751.pdf

      gerashView on HNParent context

    • Is beam search a good idea? Whenever anyone tries beam search on a neural language model like a char-RNN or GPT-2, it seems to generally either do little or make it much worse (by exacerbating the repetition problem), and get worse the more beams/computation you do: eg…

      gwernView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.