Task Decomposition
Like this video? Get new free AI lessons on YouTube.
SubscribeComplex tasks often fail because they're too big. Decomposition breaks them into smaller, manageable subtasks that AI can handle reliably.
The Problem with Complex Prompts
Decomposition Strategies
There are two main ways to split a big task. The right one depends on whether the subtasks depend on each other.
Horizontal vs vertical decomposition
| Criteria | Horizontal (parallel) | Vertical (sequential) |
|---|---|---|
| How subtasks relate | Independent: each can run on its own | Dependent: each builds on the previous one |
| Order | Any order, or all at once | Fixed order, one after another |
| Best for | Gathering separate pieces, like sections of a report | Pipelines where each step needs the last step's output |
| Example | Write the summary, market analysis, and product description | Define requirements, then design, then build, then test |
Horizontal (parallel)
- How subtasks relate
- Independent: each can run on its own
- Order
- Any order, or all at once
- Best for
- Gathering separate pieces, like sections of a report
- Example
- Write the summary, market analysis, and product description
Vertical (sequential)
- How subtasks relate
- Dependent: each builds on the previous one
- Order
- Fixed order, one after another
- Best for
- Pipelines where each step needs the last step's output
- Example
- Define requirements, then design, then build, then test
Horizontal (Parallel Subtasks)
Vertical (Sequential Dependencies)
Exercise: Decompose a Complex Task
Subtask Prompt Design
Each subtask should be:
- Focused - One clear objective
- Complete - Contains all needed context
- Independent - Minimal dependencies when possible
- Verifiable - Clear success criteria
Combining Results
After decomposition, you need integration:
Exercise: Design a Decomposition Flow
When to Decompose
Decompose when:
- Task has multiple distinct parts
- Output would exceed quality limits
- Different parts need different expertise
- Results need to be consistent across sections
Don't decompose when:
- Task is simple and focused
- Parts are highly interdependent
- Overhead of combining outweighs benefits
Practice: Decomposition Planning
Decomposition turns impossible tasks into achievable workflows.
Up next · Lesson 23 of 29
Iterative Refinement
1 min read
22 of 29 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

