In step-back prompting, how do you write the step-back question and the few-shot exemplars that teach the abstraction?
answer
- drop the instance details
- one level up, easier to answer
- fixed principle question or one generated per input
- pairs of original and step-back question
basics
~20 sStrip the specifics from the question and ask about the concept covering them, so the answer still holds what the original needs. Exemplars pair an original question with its abstraction; one sufficed on the paper's tested tasks.
solid answer
~50 sRemove the instance details, such as dates, names and numbers, and ask about the concept that covers them: "can a contractor who joined in March claim this allowance?" becomes "what conditions decide who can claim this allowance?". Test it two ways: it should be easier than the original, and its answer should hold what the original needs. Zheng et al. (2023) use two forms: a fixed question per domain, "which principles and concepts are involved?", on physics and chemistry, and a question the model generates per input, taught by original and step-back pairs, on knowledge and multi-hop tasks. Their ablations on physics and TimeQA found accuracy robust to exemplar count, with one demonstration enough, so extra exemplars did not help on those tasks. Their knowledge and multi-hop exemplars came from the training split. Keep yours out of the set you measure on.
code
plaintext · 7 linesYour task is to step back and rewrite a question as a more generic step-back question, which is easier to answer.
Original question: Can a part-timer hired in June use the commuting benefit?
Step-back question: What conditions decide who can use the commuting benefit?
Original question: Can a contractor who joined in March claim the home-office allowance?
Step-back question:go deeper
Recall the move: drop the dates, names and numbers, then ask about the concept that covers them.
Write a step-back question on the spot, say why it is easier, and explain fixed against generated forms and what an exemplar pair looks like.
Name the two tests, easier and sufficient, and read abstraction outputs on real traffic. A question that is too broad or a sub-question in disguise is the common defect.
A shared abstraction template only pays where question classes really share a concept. Decide per class whether to fix the question, generate it, or skip the step.
## What you are writing A **step-back question** is a question derived from the original at a higher level of abstraction. In step-back prompting (Zheng et al., 2023) it comes first: the model answers it, then answers the original question grounded on those facts. An **abstraction exemplar** is a demonstration in the prompt that shows the move, from a specific question to its general form. Writing the technique well means writing both. ## Writing the question 1. **Find the detail that makes the question hard.** A date range, a named person, a number or a specific case is usually it. 2. **Ask about the concept that covers that detail.** "Which team did this player play for from 2007 to 2008?" becomes "Which teams did this player play for in their career?", the shape the paper's exemplars use. 3. **Check it is easier.** The paper's premise is that the step-back question is typically much easier than the original. 4. **Check the answer is enough.** Its answer should give the second step what it needs. A career history contains the 2007 team, so the reasoning step can read it off. 5. **Keep it specific to the subject.** It should name the matter at hand, so the facts it returns are relevant. ## Two forms in the paper | | Fixed question | Generated question | |---|---|---| | Tasks | High-school physics and chemistry | Time-sensitive facts and multi-hop questions | | What the model outputs | Principles and concepts involved | A new question for each input, then facts about it | | Exemplar shape | Question and principles | Original question and step-back question | | Prompt wording | Extract the concepts and principles involved | Step back and paraphrase to a more generic question | The fixed form is what the paper calls an implicit step-back question: nobody generates it per input, because the same one fits the whole domain. The generated form suits inputs where the useful concept differs each time, such as one entity's history against another's. Choosing between them for your own domain is a judgment call, not a result the paper measured. ## Writing the exemplars - **Show the shape, not the answer.** An exemplar teaches which details to drop and what level to land on. It should not carry facts that could leak into the input's answer. - **Start with one.** The paper's ablations on high-school physics and on TimeQA found accuracy robust to the number of demonstrations, and on physics adding more beyond one gave no further gain. It then used a single exemplar outside those ablation studies. That is a result on its tasks and one large model, so check it on yours rather than assuming it. - **Keep them out of your test set.** The paper's knowledge and multi-hop exemplars came from each dataset's training split. An exemplar taken from the items you measure on can inflate the score. - **Use a different subject from the input.** This is common practice, not a paper finding: it stops the model copying a demonstration's wording. How to choose a pool of demonstrations in general is covered with exemplar selection. ## A worked prompt Take an internal benefits assistant, an illustrative scenario. The policy text sits in the assistant's context, since a model cannot recite a private policy. ```plaintext Original question: Can a part-timer hired in June use the commuting benefit? Step-back question: What conditions decide who can use the commuting benefit? Original question: Can a contractor who joined in March claim the home-office allowance? Step-back question: ``` The likely output is "What conditions decide who can claim the home-office allowance?". The month and the worker type have gone, and they return in the reasoning step, where the assistant applies the conditions to this contractor. ## Common mistakes - **Too broad.** "What are our benefits?" returns far more than the rule that matters and buries it. - **Not a step up.** Rewording the question leaves the hard detail in place and adds a call for nothing. Abstraction is not always possible, and the paper says so: some questions have no useful higher level. - **A sub-question in disguise.** "Is this person a contractor?" is a part of the task, a lower-level break-down, not a more general question. - **An answer in the abstraction.** If the step-back prompt already decides the case, the separation you paid for is gone.
- What do you do when a question has no useful higher level?Skip the step. The authors say abstraction is neither necessary nor possible in all scenarios: a simple lookup has no need of it, and for a question that names a first principle it would not make a difference. In practice, route such questions past the step rather than forcing a restatement that adds a call and no information.
- Should the model generate the step-back question, or should you fix it?Fix it when one question fits the whole domain, as the paper did with the principles involved in a physics or chemistry problem. Generate it when the useful concept differs per input, as with one entity's history. A fixed question is simpler to review. A generated one adds an output you must evaluate, because it can miss the concept the task turns on.
- A step-back question should be as broad as possible, since broader is always better.
- A step-back question is the same thing as a first sub-question of the task.
- Abstraction exemplars need five or more demonstrations before the technique works at all.
- Rephrasing the question in other words counts as stepping back.
- Drawing exemplars from the evaluation set is harmless because they only teach a shape.