Content
summary Summary

Misunderstandings are common in human communication, but also between humans and large language models (LLMs). A new prompting method could help.

When misunderstandings occur, LLMs give useless answers or, worse, start to hallucinate. To prevent this, researchers at the University of California (UCLA) have developed a new prompting technique called "Rephrase and Respond" (RaR) that can improve the performance of LLMs in answering questions.

New prompting technique: Rephrase and Respond

The RaR method allows LLMs to rephrase and expand on questions asked by humans before generating a response. The basic idea is that if you ask a clearer question, you will get a better answer.

Image: Deng et al.

The process is similar to the way people sometimes rephrase a question in their mind to better understand it before answering. By giving the LLM time to think about and clarify the question, the accuracy of the answers can be greatly improved.

Ad
Ad
One-step RaR:
"{question}"
Rephrase and expand the question, and respond.

In the experiments conducted by the researchers, the RaR method was able to increase the accuracy of tasks previously difficult for GPT-4 to almost 100 percent in some cases.

In the researchers' test tasks on knowledge and logic, the RaR method led to significantly better results in terms of more accurate or correct answers. | Image: Deng et al.

Other LLMs such as GPT-3.5 and Vicuna also showed significant performance improvements. This is especially true for a two-step variant of RaR, where an original query is reformulated by a capable large language model (LLM) such as GPT-4 and then used to generate a refined query.

Figure: Deng et al.
Two-step RaR:
"{question}"
Given the above question, rephrase and expand it to help you do better answering. Maintain all information in the original question.
Die zweistufige RaR-Methode griff auch bei weiteren.
The two-stage RaR method also improves less capable language models. | Image: Deng et al.

The researchers compared the RaR method with the well-known Chain-of-Thought (CoT) technique. Both methods aim to improve the performance of LLMs through a simple prompt addition.

In the researchers' experiments, RaR proved effective in tasks where CoT did not improve performance. In addition, RaR and CoT can be combined by adding the typical "think step by step" prompt to the RaR prompt.

RaR + CoT
Given the above question, rephrase and expand it to help you do better answering.  Lastly, let's think step by step to answer.

The task "Last Letter Concatenation", which is very demanding for LLMs, could be solved by GPT-4 with the RaR-CoT prompt with almost 100% reliability, even with up to four names. In this task, the language model has to concatenate the last letters of a given list of names into a new word.

Recommendation
Image: Deng et al.

The questions and examples from the study, as well as the prompt variations, are available in the paper or on Github.

Ad
Join our community
Join the DECODER community on Discord, Reddit or Twitter - we can't wait to meet you.
Ad
Join our community
Join the DECODER community on Discord, Reddit or Twitter - we can't wait to meet you.
Support our independent, free-access reporting. Any contribution helps and secures our future. Support now:
Bank transfer
Summary
  • Researchers at the University of California (UCLA) have developed a new prompting technique called "Rephrase and Respond" (RaR) to improve the performance of large language models (LLMs) in answering questions.
  • The RaR method allows LLMs to rephrase and expand questions before generating a response, thereby increasing the accuracy of the questions and, in turn, the accuracy of the responses.
  • In experiments with LLMs such as GPT-4, GPT-3.5, and Vicuna, the RaR method was able to achieve up to 100% accuracy on difficult tasks. The RaR method can be combined with other techniques such as Chain-of-Thought (CoT) to achieve better results on difficult tasks.
Sources
Online journalist Matthias is the co-founder and publisher of THE DECODER. He believes that artificial intelligence will fundamentally change the relationship between humans and computers.
Join our community
Join the DECODER community on Discord, Reddit or Twitter - we can't wait to meet you.