Deliberate then Generate: Enhanced Prompting Framework for Text Generation

Bei Li, Rui Wang, Junliang Guo, Kaitao Song, Xu Tan +5 more
5/31/2023
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have shown remarkable success across a wide range of natural language generation tasks, where proper prompt designs make great impacts. While existing prompting methods are normally restricted to providing correct information, in this paper, we encourage the model to deliberate by proposing a novel Deliberate then Generate (DTG) prompting framework, which consists of error detection instructions and candidates that may contain errors. DTG is a simple yet effective technique that can be applied to various text generation tasks with minimal modifications. We conduct extensive experiments on 20+ datasets across 7 text generation tasks, including summarization, translation, dialogue, and more. We show that DTG consistently outperforms existing prompting methods and achieves state-of-the-art performance on multiple text generation tasks. We also provide in-depth analyses to reveal the underlying mechanisms of DTG, which may inspire future research on prompting for LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2023deliberate,
  title  = {Deliberate then Generate: Enhanced Prompting Framework for Text Generation},
  author = {Bei Li and Rui Wang and Junliang Guo and Kaitao Song and Xu Tan and Hany Hassan and Arul Menezes and Tong Xiao and Jiang Bian and JingBo Zhu},
  year   = {2023},
  eprint = {2305.19835},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.19835v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.19835.svg)](https://codeofpaper.com/paper/2305.19835)

Discussion