Technique · 26 studies
Task decomposition and prompt chaining: what the research shows
Task decomposition splits one hard request into narrow steps (a fixed plan, collect-structure-analyze, extract-then-apply-rules, atomic yes/no checks) so the model carries one load at a time. It produced large gains on multi-step tasks, but chains lose accuracy at each handoff unless the original input travels with the intermediate results.
Also called: least-to-most, prompt chaining, plan-and-solve, divide and conquer
What task decomposition is
Task decomposition splits one hard request into narrow steps the model handles one at a time, either as numbered steps inside a single prompt or as a chain of separate prompts where each output feeds the next. Prompt chaining, least-to-most and plan-and-solve are versions of the same idea. The shapes that recur in the research:
- A fixed plan: named steps, each with one action and an explicit handoff.
- Collect, structure, analyze: gather broadly, put the data in a table, filter last.
- Extract, then apply rules: pull facts into JSON first, run the decision logic on the clean facts.
- Atomic checks: a set of yes/no questions instead of one holistic judgment.
It differs from chain-of-thought in who designs the route. In chain-of-thought the model writes its own reasoning; in decomposition you, or a separate planning step, fix the steps and the model executes them.
Why it works: one load per step
The explanation the papers converge on is interference between jobs. Reading raw text, holding a rulebook, filtering and computing compete for the same attention in one pass. In the O-RADS ultrasound study, giving eight LLMs a report plus all the classification rules in one prompt produced accuracy that swung from 65% to 96% depending on the model; extracting the facts into JSON first and applying the rules in a separate step put every model at 95-99%. The WEBDART web-agent study traces the same overload: agents fell from 46.6% on simple tasks to 8% on complex ones, and a collect, structure, analyze split raised GPT-4.5 from 21.6% to 35.3% on the hard set while matching the baselines on simple tasks.
Checklists show the effect most plainly. Given a 100-item checklist in one request, a model in the sharding study actually checked 15-30% of the items and marked the rest "compliant" by default. A larger reasoning budget did not fix this; splitting the checklist into groups of 4-32 items, each with the full document and a required quote, did. A useful side effect of narrow steps is that errors become locatable: you can see whether extraction or the rule went wrong.
Variants that tested well
- A plan written into the prompt. In Routine, laying out the task as named steps, each with an action and an explicit "use the result of step N", lifted GPT-4o from 41.1% to 96.3% on enterprise tool-calling scenarios. The model stopped planning and executing at the same time.
- Translate, then decide. TRACE has the model map free text onto canonical terms from a vocabulary, then applies explicit if-then rules in a second step; recall grew almost 1.5-fold, and each error points to either the vocabulary or a rule.
- Atomic yes/no checks. Atomic Instructions replaced "pick 1 of 232 fallacy types" with 3-5 binary questions per option plus an "often confused with" pass. Claude Sonnet 4 went from 42.2% to 62.9%; ChatGPT-4o gained only 3.4% because it skipped the step-by-step checks, and a hierarchical category-then-type version fell to 25%.
- A chain of single-purpose prompts. In an incident-response study, one comprehensive prompt gave generic advice in 98.3% of runs; a diagnosis, plan, risk chain on the same small model produced recommendations 80 times more specific.
- Category passes for extraction. Splitting "extract all the requirements" into four PEGS categories raised coverage from 61% to 92% in the PEGS study.
When it helps and when it hurts: the seam tax
Decomposition earns its cost on multi-step tasks with several sources, filters or rules. On simple tasks it only adds latency and tokens, and the retrieve-then-reason study notes that it does not fit tasks needing the whole context at once, such as translating or summarizing a full document.
The main counter-evidence is the loss at the seams. The decomposition-tax study ran 21 open models through 3-4 step chains and found that steps seeing only the previous step's output lost up to 40 accuracy points, in one case from 55% to 15%. Re-inserting the original task right after the step that compressed the data recovered a median of about 63% of the loss, not all of it, and a single comprehensive prompt usually stayed more accurate. The fact-decay study found the same at handoffs between agents: a 32B model dropped 56-85% of the facts it had found when writing a free-form summary for the next stage, a stronger model 3-6%; a mandatory list of risk, justification and uncertainty items nearly eliminated the loss.
Structure also needs a model that follows it. In the AHP prompting study, the full multi-step instruction in one prompt made the weaker open models Mistral and Llama3 decide worse than with no structure, while GPT-4o-mini handled it. Rules of thumb from these papers: split only where one prompt demonstrably fails, pass the original input along with each intermediate result, make handoffs itemized lists rather than prose, and keep the chain short.
What the studies measured
| Study | Lab score | Finding | Effect |
|---|---|---|---|
| Routine: how a step-by-step plan lifts GPT-4o accuracy from 41% to 96%Jul 19, 2025 | 91 | Writing the plan into the prompt as named steps with explicit handoffs lifted GPT-4o from 41.1% to 96.3% on enterprise tool-calling tasks. | Helps |
| Feature-based Hybrid: separating fact extraction from rule application boosts classification accuracy under complex rulebooksAug 24, 2026 | 87 | One prompt with report plus rules gave accuracy from 65% to 96% depending on the model; extracting facts to JSON first and applying the rules separately gave 95-99% for all models. | Helps |
| Sharding: Splitting Checklists into Bite-Sized Batches Saves LLMs from Blind Oversight FailuresAug 5, 2026 | 91 | With a 100-item checklist in one request the model checked only 15-30% of items; groups of 4-32 items with a required quote restored real checking. | Helps |
| WEBDART: Splitting Complex Tasks into Collect → Structure → AnalyzeOct 8, 2025 | 94 | Collect, structure, then analyze raised GPT-4.5 from 21.6% to 35.3% on complex web tasks and matched baselines on simple ones. | Helps |
| Atomic Instructions: Breaking Complex Decisions into Step-by-Step Yes/No QuestionsOct 11, 2025 | 92 | Binary questions per option lifted Claude Sonnet 4 from 42.2% to 62.9% on 232-way classification; ChatGPT-4o gained only 3.4%, and a hierarchical variant fell to 25%. | Mixed |
| Sequential Decomposition: One Complex Prompt → Three Simple OnesNov 19, 2025 | 74 | A diagnosis, plan, risk chain gave recommendations 80 times more specific than one comprehensive prompt, which was vague in 98.3% of runs. | Helps |
| PEGS Prompting: Split an Extraction Task into 4 Categories and Get the Full Picture Instead of HalfMar 24, 2026 | 83 | Four category passes instead of one 'extract all requirements' request raised coverage from 61% to 92% and F1 from 0.71 to 0.88. | Helps |
| Decomposition Tax: Why a Prompt Chain Loses Up to 40% Accuracy at the Seams Between StepsSep 26, 2026 | 89 | Chains where each step saw only the previous output lost up to 40 accuracy points (55% to 15% in one case); re-grounding with the original task recovered a median of about 63% of the loss. | Hurts |
| Fact Decay at the Seams: Why a Chain of AI Agents Loses Critical Details When Handing Off a TaskAug 17, 2026 | 93 | Free-form summaries at handoffs lost 56-85% of found facts with a 32B model and 3-6% with a stronger one; a fixed category checklist nearly eliminated the loss. | Hurts |
| TMK Prompting: Breaking a Task Down into “Why, How, What We Know”Feb 3, 2026 | 88 | A Task-Method-Knowledge JSON structure with explicit step dependencies raised o1 from 31.5% to 97.3% on a planning task; a smaller optimized model got worse with it. | Helps |
| Divide-and-Conquer + Few-shot: why explicit instructions work even for reasoning modelsOct 13, 2025 | 72 | Spelling out the decomposition explicitly helped even reasoning models: o4-mini went from 56.3% to 65.5%. | Helps |
| TRACE: Splitting the LLM's Job Into "Extracting Facts" and "Making the Decision" With Explicit RulesSep 8, 2026 | 86 | Separating fact translation from rule application raised recall almost 1.5-fold and made each error traceable to a step. | Helps |
| Retrieve-then-Reason: How Context Length Kills Reasoning Even With Perfect RetrievalOct 6, 2025 | 86 | A model that retrieved the right conditions in 970 of 1000 problems still lost 24.2% solving accuracy over long context; extracting evidence first and reasoning over the short excerpt recovers it. | Helps |
| Structured Multimodal Dialogue: a three-step method for fixing errors when working with imagesMay 5, 2026 | 74 | Accuracy fell from 96% on text problems to 64% when an image had to be read too; describing the image first, correcting the description, then solving fixed 82% of errors. | Helps |
| AHP prompting: how to make an LLM explain decisions through explicit criteria and weights instead of guessingSep 15, 2026 | 70 | A one-prompt multi-step AHP instruction made weaker open models worse than baseline, while a step-by-step dialogue kept decisions traceable; GPT-4o-mini handled the single prompt. | Mixed |
| Staged Prompting: Two-Pass Screening to Balance Recall and PrecisionOct 17, 2025 | 76 | A wide zero-shot pass followed by a strict few-shot pass on borderline items balanced recall and precision; asking the model to self-reflect performed worst. | Helps |
| Detect-then-Reflect: A Two-Step, Context-Aware Check for Sensitive DataDec 2, 2025 | 73 | Detecting candidate sensitive columns broadly, then judging each in table context, raised precision from 53% to 90% at 94% recall. | Helps |
| Classification-Guided Prompting: Figure Out the Task Type First, Then Give a Narrow Prompt Built Just For ItJul 22, 2026 | 77 | Classifying the document type first and loading only that type's rules beat one prompt with rules for all 16 types. | Helps |
| xList-Hate: Breaking a Complex Judgment into a Checklist of Yes/No QuestionsFeb 5, 2026 | 76 | Breaking a composite judgment into atomic yes/no questions with explicit aggregation rules gave more stable verdicts than asking the question directly. | Helps |
| Two-stage LLM survey coding: turning hundreds of open-ended answers into categories and themes without a predefined schemeAug 23, 2026 | 83 | Separating 'invent categories' from 'assign answers to categories' gave stable survey coding; agreement with humans dropped at the higher theme level. | Mixed |
| TABDSR: Three-Step Table Processing for Accurate CalculationsNov 4, 2025 | 81 | Decomposing the question without the table, cleaning the table separately and computing in code fixes forgotten sub-questions and dirty cells. | Helps |
| Three-Dimensional Prompt Chaining: Coherence → Engagement → NaturalnessJan 3, 2026 | 73 | Optimizing coherence, engagement and naturalness in three sequential prompts avoids the averaged result of optimizing all three at once. | Helps |
| Model-First Reasoning: An Explicit Problem Model Before the SolutionDec 16, 2025 | 74 | Building an explicit model of entities, actions and constraints before planning reduced constraint violations in multi-step plans. | Helps |
| The Prompt as a Spec: A Step-by-Step Workflow Turns the LLM from an Oracle into an Analyst You Can SteerJul 29, 2025 | 71 | A role, 3-5 dependent steps and an output format turned a one-line request into a controllable process; a short data description beat the full dataset. | Helps |
| A three-stage dialogue: separate the roles, get precise answersJul 10, 2025 | 75 | Separate gather, clarify and synthesize prompts, each forbidding the next stage's work, produced personalized rather than template answers. | Helps |
| RAV: three steps that turn an LLM from an off-the-cuff know-it-all into a methodical investigatorJul 4, 2025 | 77 | A recon, answer, verify sequence makes the model plan its sub-questions before concluding on multi-part claims. | Helps |
Prompts to copy
Extract facts first, apply the rules second
STEP 1 — Extraction:
You are an analyst who extracts facts from text. Read {text}
and extract only the listed features into JSON. Do not draw conclusions
and do not classify.
Features:
{feature_list_with_descriptions}
Text:
{text}
Output only JSON. If a feature is not found, null.
---
STEP 2 — Applying the rules:
You have structured data and classification rules.
Apply the rules strictly in order and find the first one that fires.
Rules:
{rules_in_if_then_format}
Data:
{json_from_step_1}
Output: the final category and the rule that assigned it.
Check a long checklist in small groups (sharding)
Here is the full context/document:
{document_text}
Check ONLY these items (the rest will be checked separately, don't worry about them):
{criteria_group}
For each item in this group:
1. Provide an exact quote from the document confirming or refuting the condition
2. Issue a verdict: passed / failed / no data in the text
--- (repeat for each group of criteria) ---
Final request:
Collect the verdicts from all groups into one table. Separately highlight items marked "failed" and "no data."
--- (optional, for reviewing material from someone with an incentive to persuade you) ---
For each item marked "passed": find a counter-argument — why the condition might actually NOT be satisfied. Compare the "for" and "against" arguments against the document text and issue the final verdict.
From: Sharding: Splitting Checklists into Bite-Sized Batches Saves LLMs from Blind Oversight Failures
Prompt chain with re-grounding after the compression step
[Message 1]
Here is the task: {task_text}
{stage_1_instruction}. Be sure to preserve all relationships
stated between the elements of the task — don't just list them separately.
[Message 2 — after the stage where data was compressed]
Original task (for reference): {task_text}
Result of the previous step: {stage_1_output}
{stage_2_instruction}
[Message 3 — final]
{final step instruction: formulate the answer based on everything above}
From: Decomposition Tax: Why a Prompt Chain Loses Up to 40% Accuracy at the Seams Between Steps
Related techniques
Problems it helps with:
Questions people ask
Is prompt chaining always better than one big prompt?
No. The decomposition-tax study found chains lost up to 40 accuracy points when each step saw only the previous output, and one comprehensive prompt usually stayed more accurate. Split when a single prompt demonstrably fails, for example with long checklists, many filters or a rulebook plus raw text.
How do I stop a prompt chain from losing information between steps?
Pass the original input to the next step together with the intermediate result, especially after a step that compresses data into a list or summary. Make handoffs itemized lists of facts by category instead of free-form summaries, and keep the chain as short as possible.
How small should the steps be?
Small enough that each step has one job. In the sharding study, checklist groups of 4-32 items with a required quote worked where a 100-item request did not; smaller groups for high-stakes reviews, larger ones for routine checks.
Do reasoning models still need decomposition?
Often yes for structure. Explicit decomposition raised o4-mini from 56.3% to 65.5% in one study. But heavy structure can hurt weaker or optimized models, so test the structured prompt against a plain one on your own cases.