AI Glossary / Prompting and human-AI interaction / Intermediate

Least-to-most prompting

Definition

Least-to-most prompting is a language-model prompting strategy that first decomposes a problem into simpler subproblems and then solves them in sequence, using earlier answers to support later ones. The ordering follows what later questions need from earlier results, rather than simply producing a longer answer.

What it means

Some requests are difficult because several dependencies must be handled correctly. A final quantity may depend on an intermediate count, which depends on interpreting a rule. Asking for everything at once can obscure where an error entered.

Least-to-most prompting makes those dependencies explicit. It asks what must be established first and carries the resulting answers forward. The approach aims to help with problems whose overall complexity exceeds that of individual demonstrations.

It does not turn generated text into a mathematical proof. The decomposition can omit an essential condition, and a wrong intermediate answer can contaminate every later step. Its usefulness therefore depends on both the decomposition and the reliability of the component solutions.

How it works

In the original research formulation, one prompt demonstrates how to break down problems, then asks for a decomposition of the new problem. A second stage demonstrates solving subproblems and answers them in order, adding earlier generated answers to the context. No model-weight update is required by this prompting procedure.

An application can represent each intermediate result as a labeled value or short answer. Later requests receive the original constraints together with the relevant previous results. Labels help distinguish items from packs.

Practical checks can be added between stages: a calculator can verify arithmetic, a parser can validate a structure, and a reviewer can inspect missing assumptions. These optional checks are not guarantees. Some tasks can combine stages in one pass, but dependencies still matter.

Three practical examples

  • A planning assistant calculates an attendance total, then material quantities, then whole-pack purchases using the earlier counts.
  • A document assistant first extracts dated events and then compares their order to answer a question about a timeline.
  • A data-preparation assistant identifies required fields, determines which transformations each field needs, and then assembles an output specification from those decisions.

Think of it this way

Think of preparing a recipe by calculating portions before measuring ingredients and calculating ingredient quantities before choosing shopping-pack sizes. Each answer becomes an input to the next decision.

The analogy also reveals a weakness: if the portion count is wrong, neatly organized later calculations can still produce the wrong shopping list. Breaking work into stages makes dependencies visible; it does not make the first assumption correct.

Worked example

Consider an original workshop-planning example. There are 37 attendees. Each needs three cards. The organizer requires spare cards equal to 10% of the attendee requirement, rounded upward to a whole card. Cards are sold only in packs of 25. How many packs are needed?

A decomposition identifies four questions: how many attendee cards are required; how many spare cards are required; how many cards are needed altogether; and how many whole packs cover that total.

First, 37 × 3 = 111 attendee cards. Second, 10% of 111 is 11.1, so the stated upward-rounding rule requires 12 spare cards. Third, 111 + 12 = 123 cards are needed. Fourth, 123/25 = 4.92, so five whole packs must be purchased.

Five packs supply 125 cards, leaving two beyond the calculated requirement. Four packs supply only 100 and cannot cover even the attendees' 111 cards.

The sequence matters: applying the spare percentage to the number of packs would answer a different question. Rounding 11.1 down would also violate the stated rule. This is a hand-checked illustration of dependencies, not evidence that a particular model will perform these steps reliably.

Illustrative case study

Fictional case: Birch Events uses a language-model assistant to prepare material estimates for workshops. Its first prototype returns only a final purchase quantity, making disagreements hard to investigate.

The team changes the workflow to expose attendance, per-person requirement, spare quantity and pack count as separate fields. A deterministic check recomputes the arithmetic and flags inconsistent rounding. Staff review the original event request when an assumption is missing instead of letting the assistant invent a value.

The team compares the revised workflow with a direct-answer baseline on the same archived scenarios. It records correctness and review time. This fictional case makes no measured productivity claim.

Common misconceptions and mistakes

  • Least-to-most simply means asking for more detail: the key feature is solving a dependency-ordered decomposition.
  • Every list of independent subtasks is least-to-most: earlier answers should meaningfully support later solutions in the relevant sequence.
  • A correct final number proves every intermediate step was valid: compensating errors can conceal mistakes.
  • A detailed explanation reveals the model's actual internal mechanism: generated explanations are outputs, not direct access to internal computation.
  • More stages always help: additional calls can increase latency and introduce more opportunities for error.

Business use

The strategy can be useful for tasks with clear intermediate dependencies and checkable subresults. It is less attractive when the task is already simple or when decomposition destroys important context.

Evaluate the complete workflow under realistic constraints. Record how often decomposition fails, how often individual answers fail and how much context must be carried between stages. Compare total cost and response time with a direct prompt and with conventional software. For fixed arithmetic rules, ordinary code may be the appropriate engine even if a model helps interpret the request.

People also ask

How is it different from chain-of-thought prompting?

Least-to-most explicitly emphasizes decomposition followed by sequential subproblem solving. It can be combined with reasoning demonstrations, but the terms are not interchangeable.

Does it require fine-tuning?

No. The original method uses prompts and demonstrations rather than weight updates.

Can earlier answers be corrected?

An application can check and revise them before continuing. When a value changes, dependent later answers should be recomputed rather than left inconsistent.

Check your understanding

A workflow solves four questions independently and concatenates the answers. Does that alone demonstrate least-to-most prompting?

Answer: No. The defining idea involves decomposing the target problem and using earlier solutions to support dependent later ones. Independent parallel answers may be useful, but illustrate a different organization.

Related terms

  • Task decomposition
  • Prompt chaining
  • Few-shot prompting
  • Chain-of-thought prompting
  • Verification
  • compositional generalisation
  • intermediate result
  • dependency
  • tool use

Learn next

Choose a small task with known answers and draw its dependencies. Write the intermediate questions, specify each output's units and check which later steps consume it. Compare a direct prompt with the staged version, including cases with missing information and awkward rounding.

More in Prompting and human-AI interaction

  • Human-in-the-loop - Human-in-the-loop describes an AI workflow in which people provide input, judgment, correction or approval at defined points that influence the system's...
  • Incremental Few-shot Learning - Incremental few-shot learning is learning new categories or capabilities in successive stages from small labeled datasets while retaining useful performance...
  • Instruction tuning - Instruction tuning is additional training that teaches a language model to respond to tasks expressed as instructions.
  • Multimodal Prompt-based Language Model - A multimodal prompt-based language model generates language in response to prompts containing more than one kind of information, such as text combined with...
  • One-shot prompting - One-shot prompting gives a language model one demonstration of the desired task before asking it to handle a new input.
  • Prompt - A prompt is input supplied to a generative AI model to guide the output it produces.

Sources

Zhou and colleagues, Least-to-Most Prompting Enables Complex Reasoning in Large Language Models, ICLR 2023; method and limitations: https://arxiv.org/html/2205.10625v3

The workshop calculation and Birch Events case are original hypothetical illustrations. Reported research results concern specific experimental models and tasks and are not universal performance guarantees.

Previous: Least-squares temporal-difference learning Next: Leave-one-out cross-validation

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer