Least to most prompting is a technique where a language model first breaks a hard problem into a list of simpler subquestions, then answers them in order, with each answer added to the prompt for the next one. It was introduced by Zhou et al. in 2022 to help models solve problems that are harder than the examples they were shown.
The shape of it, as a template you can adapt:
Stage 1 (decompose)
Break this problem into the simpler subquestions that must be answered
first. List them in order, ending with the original question.
Problem: <your problem>
Stage 2 (solve, repeated once per subquestion)
Problem: <your problem>
Answered so far:
Q1: <subquestion 1> A1: <answer from the previous call>
Now answer: <next subquestion>
What least to most prompting is
The name describes the order of the work: start with the least difficult piece and build toward the most difficult one, which is the original question. The paper, "Least-to-Most Prompting Enables Complex Reasoning in Large Language Models" (Zhou et al., published at ICLR 2023), starts from a limit of chain of thought prompting: it works well when the problem looks like the examples in the prompt, and struggles when the problem is harder than they are.
Least to most prompting tackles that by never asking the model to solve the whole problem at once. Each call sees a small step plus the results of the steps before it.
How the two stages work
Stage 1: decomposition
The prompt contains a few examples of problems paired with their list of subquestions, followed by your actual problem. The model replies with the subquestions only. It does not answer them yet.
Stage 2: sequential solving
Now you ask the subquestions one at a time. The prompt holds a few worked examples, then the subquestions already answered with their answers, then the next subquestion. When you reach the last subquestion, which is the original problem, the earlier answers are already in the prompt, so it has become a small step.
Least to most prompting example: a word problem
The paper illustrates the method with a grade-school math problem. The decomposition exemplar splits a problem about apples into two questions: how many apples the second person has, and how many they have together. The solving stage answers them in that order, so the total is computed from a number that is already written down.
Here is an original problem in the same style, with example output you would expect from a capable model (this is illustrative output, not a recorded run):
Problem: A print shop charges $0.12 per black-and-white page and $0.45 per
color page. A client orders 200 pages, of which 40 are color. The client has
a coupon for 10% off the total. What does the client pay?
Subquestions (example output):
1. How many black-and-white pages are in the order?
2. What do the color pages cost?
3. What do the black-and-white pages cost?
4. What is the total before the coupon?
5. What does the client pay after the 10% coupon?
Working it by hand shows how each answer feeds the next: 200 - 40 = 160 black-and-white pages; 40 × $0.45 = $18.00; 160 × $0.12 = $19.20; $18.00 + $19.20 = $37.20; $37.20 × 0.9 = $33.48. In stage 2 you would send question 1, paste its answer into the prompt with question 2, and continue until question 5.
An example where the problem is longer than the examples
The paper also tests last-letter concatenation: given a list of words, output the last letters joined together. For think, machine, learning the answer is keg. The decomposition turns the list into growing sublists (think, then think, machine, then the full list), and each step reuses the previous result and adds one letter.
This is where the technique earns its name. The prompt examples use short lists, and the test lists are longer. On lists of 12 words with code-davinci-002, the paper reports 74.0% accuracy for least to most prompting against 31.8% for chain of thought with the same 2 exemplars (38.4% for chain of thought with 8 exemplars). Those figures are for that model and task, not a general guarantee.
How much does it help? What the paper reports
| Task (code-davinci-002) | Least to most | Chain of thought |
|---|---|---|
| SCAN, every split including length (14 exemplars) | at least 99% | 16% (length split) |
| Last-letter concatenation, 12 words | 74.0% | 31.8% (2 exemplars) |
| GSM8K math word problems, all problems | 62.39% | 60.87% |
| GSM8K, problems needing 5 or more steps | 45.23% | 39.07% |
Read the pattern, not just the headline. The large gains are on tasks where test problems are longer or more compositional than the examples (SCAN, long lists). On ordinary math word problems the gap is small overall and grows only on the problems with the most steps. The authors also point out that models specialised for SCAN are trained on more than 15,000 examples, while their prompt used 14.
All of these are 2022-era results on one model. Current models are stronger on these benchmarks without any special prompting, so do not expect the same margins.
Least to most vs chain of thought vs few-shot
| Technique | Calls | What you give the model | Best for |
|---|---|---|---|
| Few-shot | 1 | Input and output examples | Setting format and style |
| Chain of thought | 1 | Examples that include reasoning steps | Multi-step problems similar to the examples |
| Least to most | 1 decompose, then 1 per subquestion | Decomposition examples and solving examples | Problems harder or longer than the examples |
They combine. The solving stage of least to most is itself few-shot prompting with worked steps, and Wei et al.'s chain of thought paper is the baseline Zhou et al. compare against.
When to use it
- Use it when a task has a natural order of dependencies (compute A, then B from A, then C from B), when inputs vary a lot in length, or when a single-pass answer keeps failing partway through.
- Use it when you want to check or log each intermediate answer, for example in a pipeline where a wrong subanswer should stop the run.
- Skip it for lookups, rewrites and classification. Decomposing a one-step task only adds calls.
- Expect cost. Each subquestion is a separate request, and the growing prompt is resent each time, so total tokens rise with the number of steps. If you use the API, the repeated prefix is a good candidate for prompt caching.
Single-prompt version
If you do not want to orchestrate several calls, you can approximate the method in one prompt:
Solve the problem below in two parts.
Part 1: list the subquestions needed, from easiest to the original question.
Part 2: answer each subquestion in order, using earlier answers.
Put the final answer in <answer> tags.
Problem: ...
This is cheaper and simpler, but it is not the method the paper tested. The model sees and can drift from its own plan, and you cannot verify intermediate answers between calls. Treat it as structured chain of thought.
If it does not work
- Bad subquestions. Print the stage 1 output and read it. If the list skips a dependency, add a decomposition example from your own domain that shows the missing kind of step.
- Wrong early answer. An error in subquestion 2 propagates to everything after it, because later prompts include it. Check each answer, or recompute arithmetic with code instead of asking the model.
- The model answers everything in stage 1. Tell it explicitly to list the subquestions only and not to answer them.
- No improvement over chain of thought. That is plausible on easy problems. The paper's own GSM8K gap is small overall, so try it only on your hardest cases.
For general prompt structure, see how to write a good prompt.
Frequently asked questions
- What is least to most prompting in simple terms?
- It is a prompting technique where the model first breaks a hard problem into a list of simpler subquestions, then answers them one at a time, feeding each earlier answer into the next question. The last subquestion is the original problem.
- How is least to most prompting different from chain of thought?
- Chain of thought asks for all the reasoning in one pass. Least to most uses two stages: one prompt to decompose the problem and then a sequence of prompts to solve the pieces in order. The original paper found it helps most when the test problem is harder than the examples in the prompt.
- Does least to most prompting need multiple API calls?
- In the original paper, yes: one call to decompose and then one call per subquestion. You can approximate it in a single prompt by asking the model to list subquestions and answer them in order, but that is closer to structured chain of thought.
- Is least to most prompting still worth using with current models?
- Sometimes. The published results come from 2022-era models, and current reasoning models decompose problems internally. It is still useful when you want to inspect or control the intermediate steps, or when one long prompt keeps producing errors on a multi-part task.