Generating Sequences by Learning to Self-Correct

By Sean Welleck, Ximing Lu, Peter West, Faeze Brahman, Tianxiao Shen, Daniel Khashabi, Yejin Choi. 2022

352 citations recorded by the source corpus.

Sequence generation applications require satisfying semantic constraints, such as ensuring that programs are correct, using certain keywords, or avoiding undesirable content. Language models, whether fine-tuned or prompted with few-shot demonstrations, frequently violate these constraints, and lack a mechanism to iteratively revise their outputs. Moreover, some powerful language models are of extreme scale or inaccessible, making it inefficient, if not infeasible, to update their parameters for task-specific adaptation. We present Self-Correction, an approach that decouples an imperfect base generator (an off-the-shelf language model or supervised sequence-to-sequence model) from a separate corrector that learns to iteratively correct imperfect generations. To train the corrector, we propose an online training procedure that can use either scalar or natural language feedback on intermediate imperfect generations. We show that Self-Correction improves upon the base generator in three diverse generation tasks - mathematical program synthesis, lexically-constrained generation, and toxicity control - even when the corrector is much smaller than the base generator.

Subfields: Information Systems, Software, Natural Language Processing

How researchers see this paper

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

In Information Systems

  1. Denny Zhou
  2. Daniel Khashabi
  3. Weizhu Chen
  4. Hannaneh Hajishirzi
  5. Peter Clark
  6. Swaroop Mishra
  7. Noah A. Smith
  8. Yelong Shen

In Software

  1. Yiming Yang
  2. Xinyun Chen
  3. Noah A. Smith
  4. Maxwell Lin
  5. Yejin Choi
  6. Sean Welleck
  7. Nan Duan
  8. Uri Alon

In Natural Language Processing

  1. Yejin Choi
  2. Hannaneh Hajishirzi
  3. Mohit Bansal
  4. Daniel Khashabi
  5. Luke S. Zettlemoyer
  6. Peter Clark
  7. Noah A. Smith
  8. Jianfeng Gao

Citations in the corpus