RankGen: Improving Text Generation with Large Ranking Models

By Kalpesh Krishna, Yapei Chang, John Wieting, Mohit Iyyer. 2022

87 citations recorded by the source corpus.

Given an input sequence (or prefix), modern language models often assign high probabilities to output sequences that are repetitive, incoherent, or irrelevant to the prefix; as such, model-generated text also contains such artifacts. To address these issues we present RankGen, a 1.2B parameter encoder model for English that scores model generations given a prefix. RankGen can be flexibly incorporated as a scoring function in beam search and used to decode from any pretrained language model. We train RankGen using large-scale contrastive learning to map a prefix close to the ground-truth sequence that follows it and far away from two types of negatives: (1) random sequences from the same document as the prefix, and (2) sequences generated from a large language model conditioned on the prefix. Experiments across four different language models (345M-11B parameters) and two domains show that RankGen significantly outperforms decoding algorithms like nucleus, top-k, and typical sampling on both automatic metrics (85.0 vs 77.3 MAUVE) as well as human evaluations with English writers (74.5% human preference over nucleus sampling). Analysis reveals that RankGen outputs are more relevant to the prefix and improve continuity and coherence compared to baselines. We release our model checkpoints, code, and human preference data with explanations to facilitate future research.

Subfields: Artificial Intelligence, Large Language Models, Natural Language Generation

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Graham Neubig
  3. Mohit Bansal
  4. Mohit Iyyer
  5. John Wieting
  6. Danqi Chen
  7. Yejin Choi
  8. Percy Liang

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Danqi Chen
  3. Ves Stoyanov
  4. Mohit Iyyer
  5. Ramakanth Pasunuru
  6. Xi Victoria Lin
  7. Kalpesh Krishna
  8. John Wieting

In Natural Language Generation

  1. Marzena Karpinska
  2. Mohit Iyyer
  3. John Wieting
  4. Luke S. Zettlemoyer
  5. Machel Reid
  6. Victor Zhong
  7. Dong Nguyen
  8. Anna Wegmann

Citations in the corpus