Last updated:

Re-Reading Improves Reasoning in Large Language Models

Xiaohan Xu et al.

In collections: Reasoning Hallucinations & reliability

Strategies from the report:

  • The Re2 Method (Re-Reading): It consists of giving the language model the same question (or problem) twice within a single prompt. This allows deeper processing of the information and imitates the human process of reading a difficult instruction several times before starting to solve it.

  • Strengthening "Bidirectional" Encoding (Bidirectional Encoding): Because most LLMs generate text in only one direction (left to right), they don't see the whole context at once at the planning stage. Repeating the question means that on the second read the model already has the general outline of the entire task encoded in its "memory", which improves its performance in the later stages of generating text.

  • Optimal Number of Repetitions (Optimal Repetitions): The research in the paper indicates that the best results are achieved by reading the problem twice, or three times at most.

Best practices:

  • Synergy with Chain-of-Thought (CoT Synergy): The Re2 technique focuses on the input (better understanding of the problem), while CoT focuses on the output (better reasoning). The question-repetition method works excellently when combined with the phrase "think step by step", reinforcing the process at both ends.

  • Universality Without Touching the Model (Model-Agnostic): Because this is pure prompt engineering, you should apply Re2 on every available language model as a quick optimization, without needing costly fine-tuning or updating of the weights.

  • Use in Math and Logic Tasks: The technique brings the greatest gains in specific tasks where a precise understanding of the conditions and mathematical symbols decides ultimate success or failure.

What to avoid?

  • Over-repetition: Avoid pasting the same question four or more times in one query. Research shows this leads to a drop in quality, because the model focuses on the repetition instead of on solving the task, and it also uses up the context window excessively.

  • Spending tokens on very simple tasks: Since this technique lengthens the prompt and the input cost, avoid using it on trivial questions based on basic knowledge, which the model answers flawlessly the first time.

  • Isolating the technique from other optimizations: Avoid relying solely on the Re-Reading method when solving the hardest problems, forgetting about output formatting. Re2 on its own is only an optimization of the initial understanding of the task, not a comprehensive solution.

Support this project by buying me a coffee ;)