Up nextNext guide
Socratic Prompts That Make AI Teach You
Language AI
Language AI GUIDE
Least-to-Most prompting breaks a hard problem into a sequence of simpler subproblems, solving them in order so each answer feeds the next.
Listen to this guideAI-narrated · ~2 min
It matters because it lets models tackle questions far harder than the examples they were shown.
Least-to-Most prompting, introduced by Zhou and colleagues at Google in 2022, has two stages. First, the model is prompted to decompose a complex question into an ordered list of easier subquestions. Second, it solves those subquestions one at a time, appending each solved answer to the context so later steps can build on earlier ones. This differs from chain-of-thought, which reasons in a single pass without explicit decomposition. The authors evaluated symbolic manipulation, math reasoning, and SCAN, a compositional-generalization benchmark built from natural-language commands. For the specific SCAN setup using GPT-3 code-davinci-002 and 14 exemplars, Least-to-Most reached at least 99% accuracy across the tested splits, including the length split, compared with 16% for chain-of-thought prompting. This is a result for that model, prompt setup, and benchmark, not a general accuracy guarantee.
Solving a multi-step word problem by first listing the quantities to compute, then computing them in order
Compositional language tasks like translating long instructions into action sequences from short examples
Answering a complex research question by breaking it into sub-questions whose answers combine into the final response
Writing a program by decomposing it into helper functions solved one at a time, each reused by later steps
Least-to-Most ideas now underpin many agent and planner architectures that split goals into ordered subtasks before acting. Expect hybrids with tool use, where each subquestion can trigger a calculator, search, or code call, and with self-consistency for more robust subanswers. Research is also exploring automatic decomposition that adapts depth to problem difficulty, and combining it with verification so a wrong early subanswer does not silently corrupt the entire downstream chain.
Free newsletter
Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.
One email each weekday. Unsubscribe in one click. We never sell or share your address.
Test yourself
Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.
Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation
Least-to-Most prompting breaks a hard problem into a sequence of simpler subproblems, solving them in order so each answer feeds the next. It matters because it lets models tackle questions far harder than the examples they were shown.
It first breaks the problem into an ordered set of easier subquestions, then solves each in sequence.
Chain-of-thought reasons in one pass; least-to-most explicitly decomposes and chains subanswers together.
SCAN tests compositional generalization using commands that map language to action sequences; the Least-to-Most paper evaluates whether prompts transfer to harder command compositions.
Subproblems are arranged so each depends only on previously solved ones, letting answers build up correctly.
Each solved subanswer is added to the running prompt so subsequent steps have the results they need.
Keep learning
More guides picked for this topic
Up nextNext guide
Socratic Prompts That Make AI Teach You
Language AI