Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves

Yihe Deng, Weitong Zhang, Zixiang Chen, Quanquan Gu
11/7/2023
cs.CLcs.AIcs.LG

Abstract

Misunderstandings arise not only in interpersonal communication but also between humans and Large Language Models (LLMs). Such discrepancies can make LLMs interpret seemingly unambiguous questions in unexpected ways, yielding incorrect responses. While it is widely acknowledged that the quality of a prompt, such as a question, significantly impacts the quality of the response provided by LLMs, a systematic method for crafting questions that LLMs can better comprehend is still underdeveloped. In this paper, we present a method named `Rephrase and Respond' (RaR), which allows LLMs to rephrase and expand questions posed by humans and provide responses in a single prompt. This approach serves as a simple yet effective prompting method for improving performance. We also introduce a two-step variant of RaR, where a rephrasing LLM first rephrases the question and then passes the original and rephrased questions together to a different responding LLM. This facilitates the effective utilization of rephrased questions generated by one LLM with another. Our experiments demonstrate that our methods significantly improve the performance of different models across a wide range to tasks. We further provide a comprehensive comparison between RaR and the popular Chain-of-Thought (CoT) methods, both theoretically and empirically. We show that RaR is complementary to CoT and can be combined with CoT to achieve even better performance. Our work not only contributes to enhancing LLM performance efficiently and effectively but also sheds light on a fair evaluation of LLM capabilities. Data and codes are available at https://github.com/uclaml/Rephrase-and-Respond.

View on arXivView PDF

Code Implementations(3)

Eladlev/AutoPromptOfficial100%
Apache-2.0

A framework for prompt tuning using Intent-based Prompt Calibration

2,967263PythonDec 2, 20239 months agoApache-2.0
prompt-engineeringprompt-tuningsynthetic-dataset-generation
xirui-li/DrAttackOfficial100%
MIT

Official implementation of paper: DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLM Jailbreakers

6613CSS, HTMLFeb 20, 20242 years agoMIT
adversarial-attacksadversarial-machine-learningattackjailbreakllm+3 more
MIT

Official repo of Respond-and-Respond: data, code, and evaluation

10411Python, Jupyter NotebookOct 17, 20232 years agoMIT
deep-learninglarge-language-modelsmachine-learningpromptquestion-answering+1 more

Cite this paper

@article{deng2023rephrase,
  title  = {Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves},
  author = {Yihe Deng and Weitong Zhang and Zixiang Chen and Quanquan Gu},
  year   = {2023},
  eprint = {2311.04205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.04205v2}
}

Discussion