Oct 26, 2023

Enhancing LLMs Reasoning Abilities with Step-Back Prompting

An explanation of step-back prompting and how abstraction can improve LLM reasoning on complex tasks.

After the first year with LLMs, we already have a plenty of methods that show how to improve LLM outputs when forming an instruction. The most common include Chain-of-Thought, Tree-of-Thought, adding a few examples of required output (few-shot prompting) and others. Recently, a new paper from Google Deepmind showed an interesting approach called Take a Step Back: Evoking Reasoning via Abstraction in Large Language Models.

How step-back prompting works?

The idea of step-back prompting is to mimic the process of how people solve tough problems. It divides a difficult task into two parts: first, thinking big picture (Abstraction), and then solving the problem (Reasoning):

  • Abstraction: Instead of directly addressing the question, the model is prompted to ask a high-level, abstract question related to the task. This step distills complex tasks into broader concepts or principles. For example, if the original question is about the school Estella Leopold attended during a specific period, a step-back question might inquire about her "education history."
  • Reasoning: Once the high-level concept or principle is established, the model leverages its intrinsic reasoning abilities to derive the solution to the original question, grounded in the facts related to the abstract concept. This is termed "Abstraction-grounded Reasoning."

Advantages of step-back prompting

  • Improved Performance: Empirical experiments have shown that step-back prompting improves performance across various complex reasoning tasks, including knowledge-intensive QA, multi-hop reasoning, and science questions. By breaking down tasks into abstraction and reasoning, the model reduces the risk of reasoning failures during intermediate steps.
  • Sample-Efficient Teaching: Abstraction is an easier skill to teach to Large Language Models (LLMs) through sample-efficient demonstrations. This implies that enhancing reasoning abilities through abstraction is a feasible and effective approach.
  • Reduction of Complexity: step-back prompting reduces the overall complexity of a task, making it more manageable for LLMs. This is particularly valuable for questions that involve a myriad of details or intricate constraints.

Keep in mind

  • Step-back Prompting is Not Always Necessary: Abstraction is not required in all scenarios. For straightforward questions with readily available answers or questions related to fundamental principles, introducing abstraction may not significantly impact the model's performance.
  • Challenging Reasoning: Despite the benefits, reasoning remains a challenging skill for LLMs to acquire, even after applying step-back prompting. Reasoning failures still persist, especially in complex tasks.

Learning more

If you are interesting in learning more about Prompting Techniques I recommend checking the Prompting Guide by DAIR.AI. This hands-on course covers prompt engineering techniques/tools, use cases, exercises, and projects for effectively working and building with LLMs.

Summary

In conclusion, step-back prompting presents a promising approach to enhance the reasoning capabilities of Large Language Models. By breaking down complex tasks into abstraction and reasoning, it addresses some of the limitations inherent in these models. However, it's essential to recognize that abstraction isn't a one-size-fits-all solution and that reasoning challenges persist.

← AI explained