Last updated:
Take a Step Back: Evoking Reasoning via Abstraction in Large Language Models
Huaixiu Steven Zheng et al.
In collections: Reasoning
We present Step-Back Prompting, a simple prompting technique that enables large language models (LLMs) to perform abstraction in order to derive high-level concepts and first principles from instances containing specific details. Using these concepts and principles to guide the reasoning steps, LLMs significantly improve their ability to follow the correct reasoning path toward a solution. We conduct experiments with Step-Back Prompting on PaLM-2L models (and others such as GPT-4 and Llama-2) and observe substantial performance gains across a wide range of challenging, reasoning-intensive tasks, including the sciences (STEM), knowledge-based question answering (Knowledge QA) and multi-step reasoning (Multi-Hop Reasoning).
Strategies from the report:
Step-Back Prompting (Abstraction before reasoning): A technique in which you get the model to "take a step back" and generate a broader, more general question from a detailed problem, in order to recall physical or historical principles or high-level concepts (first principles).
Two-step process (Abstraction-and-Reasoning): A strategy that splits the problem-solving process into two distinct stages: first the model generates an abstract concept, time frame or principle for the given task, and only in the second step does it use this recalled background knowledge to carry out the final deduction.
Grounding reasoning in fundamental laws: Forcing the model to explicitly state and explain definitions, laws or formulas before attempting any mathematical or logical calculation, to guard against errors in the intermediate steps (so-called Math/Reasoning Errors).
Best practices:
Using "step back" helper questions in QA: For questions about a very specific time frame or a narrow historical context, it is worth first asking the model to generate a general biography or outline of the history, from which the model itself can then safely pull the details you want.
Combining abstraction with In-Context Learning (Few-Shot): Models do best with the Step-Back technique when the prompt shows them a few reference examples of how to correctly extract "high-level principles" from various, random tasks, before you ask them to solve the target.
Using abstraction to improve RAG (Retrieval-Augmented Generation): "Step back" questions work great for searching external databases. Broader, abstract queries often return more relevant and context-rich source documents than highly detailed questions.
What to avoid
Hitting highly detailed problems head-on (Direct Prompting for constraints): Trying to get a direct answer from the model to questions tightly constrained by specific conditions (e.g. a particular month and fraction of a second in history) often results in made-up facts (hallucinations), because the model loses the broader picture of the situation.
Solving STEM tasks without recalling the theory: Requiring the model to immediately perform multi-step physics or chemistry calculations, without first defining the laws governing the given phenomenon. This almost always leads to errors in assigning variables and in the final result.
Blind trust in invisible thought processes: Avoid letting the model hide the step where it creates definitions. If the model defines the base principle wrongly (a so-called Principle Error), all of the reasoning that follows will be useless. Always force the definitions to be written out in the text so you can verify them.
Support this project by buying me a coffee ;)