atlas

Research map / Large language models / Language, safety and interpretability

Closing the Curious Case of Neural Text Degeneration

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Statistical frameworks for LLM evaluation · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Gives a theoretical account of why threshold truncation sampling works (log-probability underestimation bounds) and proposes basis-aware threshold (BAT) sampling, which uses the softmax bottleneck via linear programs to certify tokens in the true support, evaluated with GPT-2 on OpenWebText.

Problem

Why truncation sampling heuristics such as nucleus, eta and epsilon sampling work so well in language generation is not theoretically understood, and threshold truncation cannot separate low-quality high-probability tokens from high-quality low-probability tokens.

Approach

Shows that log-probability underestimation caused by the low-rank softmax bottleneck yields an additive bound on probability overestimation, justifying thresholds; then uses the softmax matrix's linear constraints (W^T p = W^T p_hat) in a linear program to prove tokens have nonzero true probability without a fixed threshold.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use BA-η instead of η for lower-entropy generationGPT-2 · Open Web Text test set, GPT-2 SmallMAUVE: 85.0_{1.4} -> 87.8_{1.0}Helped
Use BA-η instead of η for lower-entropy generationGPT-2 · Open Web Text test set, GPT-2 MediumMAUVE: 90.4_{0.1} -> 92.2_{0.6}Helped
Use BA-η instead of η for lower-entropy generationGPT-2 · Open Web Text test set, GPT-2 LargeMAUVE: 86.0_{0.5} -> 88.4_{0.5}Helped
Use BA-η instead of η for lower-entropy generationGPT-2 · Open Web Text test set, GPT-2 XLMAUVE: 87.1_{1.2} -> 89.6_{0.4}Helped
Use BA-η instead of ηGPT-2 · Human pairwise evaluation, BA-η matched to η=0.002win rate: 0.38 -> 0.43Helped
Use BA-η instead of ηGPT-2 · Human pairwise evaluation, BA-η matched to η=0.024win rate: 0.47 -> 0.48No clear effect
Increase the number of basis-aware constraints (ablation)BA-η sampling · Open Web Text test set, GPT-2 XLMAUVEHelped
Use BA-nucleus instead of nucleus sampling (ablation)GPT-2 · Open-ended generationMAUVEHurt
Use BAT methods rather than their vanilla threshold-based counterpartsGPT-2 · Open Web Text test set across model sizesMAUVEMixed
Use BA-η rather than η at more restrictive, lower-entropy settingsGPT-2 across model sizes · Open Web Text test set, low-entropy decodingMAUVEHelped

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText

Benchmarks: OpenWebText

Metrics: MAUVE pairwise human preference win rate

Baselines: eta sampling epsilon sampling nucleus sampling

Builds on: nucleus sampling epsilon sampling eta sampling softmax bottleneck

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy