Lune

EMNLP2020Top-tier venue

Sparse Text Generation

Pedro Henrique Martins, Zita Marinho, André F. T. Martins

Abstract

Current state-of-the-art text generators build on powerful language models such as GPT-2, achieving impressive performance. However, to avoid degenerate text, they require sampling from a modified softmax, via temperature parameters or ad-hoc truncation techniques, as in top-k or nucleus sampling. This creates a mismatch between training and testing conditions. In this paper, we use the recently introduced entmax transformation to train and sample from a natively sparse language model, avoiding this mismatch. The result is a text generator with favorable performance in terms of fluency and consistency, fewer repetitions, and n-gram diversity closer to human text. In order to evaluate our model, we propose three new metrics for comparing sparse or truncated distributions: -perplexity, sparsemax score, and Jensen-Shannon divergence. Human-evaluated experiments in story completion and dialogue generation show that entmax sampling leads to more engaging and coherent stories and conversations.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Neural Text Generation With Unlikelihood Training cites The Curious Case of Neural Text Degeneration
  • The Curious Case of Neural Text Degeneration cites Neural Text Generation With Unlikelihood Training
  • Don't Say That! Making Inconsistent Dialogue Unlikely with Unlikelihood Training cites Neural Text Generation With Unlikelihood Training
  • Don't Say That! Making Inconsistent Dialogue Unlikely with Unlikelihood Training cites The Curious Case of Neural Text Degeneration
  • MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers cites Neural Text Generation With Unlikelihood Training
  • MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers cites The Curious Case of Neural Text Degeneration
  • Faking Fake News for Real Fake News Detection: Propaganda-Loaded Training Data Generation cites MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers
  • Faking Fake News for Real Fake News Detection: Propaganda-Loaded Training Data Generation cites The Curious Case of Neural Text Degeneration
  • Frictional Agent Alignment Framework: Slow Down and Don't Break Things cites The Curious Case of Neural Text Degeneration
  • Language Model Decoding as Direct Metrics Optimization cites Neural Text Generation With Unlikelihood Training
  • Language Model Decoding as Direct Metrics Optimization cites The Curious Case of Neural Text Degeneration
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence FrontiersKrishna Pillutla, Swabha Swayamdipta, Rowan Zellers, John Thickstun et al.NeurIPS 2021 · 606 citations
  2. Faking Fake News for Real Fake News Detection: Propaganda-Loaded Training Data GenerationKung-Hsiang Huang, Kathleen R. McKeown, Preslav Nakov, Yejin Choi et al.ACL 2023 · 35 citations
  3. Automated Metrics for Medical Multi-Document Summarization Disagree with Human EvaluationsLucy Lu Wang, Yulia Otmakhova, Jay DeYoung, Thinh Hung Truong et al.ACL 2023 · 12 citations
  4. Frictional Agent Alignment Framework: Slow Down and Don't Break ThingsAbhijnan Nath, Carine Graff, Andrei Bachinin, Nikhil KrishnaswamyACL 2025 · 8 citations
  5. Language Model Decoding as Direct Metrics OptimizationHaozhe Ji, Pei Ke, Hongning Wang, Minlie HuangICLR 2024 · 8 citations

Builds on3

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  2. Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan et al.ICLR 2020 · 683 citations
  3. Don't Say That! Making Inconsistent Dialogue Unlikely with Unlikelihood TrainingMargaret Li, Stephen Roller, Ilia Kulikov, Sean Welleck et al.ACL 2020 · 120 citations

Related papers

  1. Long-Context Generalization with Sparse AttentionPavlo Vasylenko, Hugo Pitorro, Andre F. T. Martins, Marcos V. TrevisoICLR 2026 · 19 citations
  2. Closing the Curious Case of Neural Text DegenerationMatthew Finlayson, John Hewitt, Alexander Koller, Swabha Swayamdipta et al.ICLR 2024 · 31 citations
  3. For Generated Text, Is NLI-Neutral Text the Best Text?Michail Mersinias, Kyle MahowaldEMNLP Findings 2023
  4. F2-Softmax: Diversifying Neural Text Generation via Frequency Factorized SoftmaxByung-Ju Choi, Jimin Hong, David Keetae Park, Sang Wan LeeEMNLP 2020 · 16 citations
  5. TS2^2: Training with Sparsemax+, Testing with Softmax for Accurate and Diverse LLM Fine-TuningZiyang Xu, Ananthu Rajendran Pillai, Yinghua Yao, Yuangang PanICLR 2026
Dusk over the sea between two cliffs drawn in fine vertical lines