TL;DR
Large language models (LLMs) struggle to scale to long, multi-step reasoning problems because standard prompting methods generate reasoning chains that grow quadratically in length and context usage. Recursive Decomposition with Dependencies (RDD) solves this by recursively breaking problems down into smaller sub-tasks arranged in a Directed Acyclic Graph (DAG), executing them via an automated scheduler, and merging the results. Even when guided only by generic, task-agnostic examples, RDD significantly outperforms compute-matched Chain-of-Thought baselines on complex tasks while cutting runtime and context consumption.
What Problem Does This Paper Address?
Techniques like Chain-of-Thought (CoT) and Least-to-Most (LtM) prompting hit a wall when tasks become moderately complex:
- Context and token explosion: Reasoning chains often scale quadratically with task complexity, quickly overflowing the LLM’s context window and degrading performance.
- Rigid reasoning topologies: Prior approaches typically rely on linear chains or fully independent tree splits; they do not natively support sub-tasks that depend on intermediate outputs of other sub-tasks.
- Heavy supervision requirements: Most existing decomposition frameworks require hand-crafted, task-specific demonstrations or pre-defined decomposition graphs for every new problem domain.
RDD tackles these issues by providing a fully task-agnostic, recursive divide-and-conquer framework capable of handling cross-dependent sub-tasks without requiring task-specific demonstrations.
Methods
RDD structures problem solving around three core operations: Decomposing, Unit-solving, and Merging.
Decompose (Root) ──► Sub-task DAG (with [ID] and {dependency} references)
│
├──► Unit-solve (base cases via direct prompting / CoT / tool)
│
└──► Merge (bottom-up aggregation with built-in error recovery)
- Recursive Sub-Task Graphs: The LLM decomposes problems recursively until a base ("unit") case is identified. Unlike standard tree decompositions, sub-tasks receive unique identifiers (e.g.,
[P-1]) and can cross-reference outputs of sibling tasks (e.g.,Reverse: {P-1}), allowing the decomposition to form an arbitrary Directed Acyclic Graph (DAG). - BFS/DFS Hybrid Scheduler: A breadth-first search (BFS) decomposes the task until an unresolved dependency is identified, pausing to prioritize dependent branches before depth-first search (DFS) executes the solving and merging routines.
- Context Isolation: Sub-problems receive only their specific instructions and input data—ancestor history is omitted. This bounds the prompt size and protects the LLM’s attention from irrelevant context.
- Task-Agnostic Prompting: The decomposition, unit-solving, and merging prompts use a single, fixed set of generic demonstrations (spanning math, code, logic, and QA) rather than requiring problem-specific examples.
- Error Recovery: Merging prompts explicitly instruct the model to correct erroneous sub-solutions when combining them, allowing the system to recover from upstream hallucinations or formatting errors.
Datasets
The authors evaluate RDD across six difficulty levels using the instruction-tuned Llama 3 70B on two multi-step benchmarks (100 randomly sampled instances per difficulty):
- Letter Concatenation: Concatenating the $i$-th character of each word across lists of varying length ($n_0 \in \{5, 10, 20, 50, 70, 90\}$). This benchmark tests separable "data decomposition."
- Length Reversal: Replacing each word in a list with its character count and then reversing the list ($n_0 \in \{3, 5, 7, 10, 15, 20\}$). This benchmark tests "task decomposition" requiring explicit sub-problem dependencies.
Key Insights and Ideas
- The "Transition Point" Phenomenon: For simple problems below a critical difficulty threshold ($n^*$), recursive decomposition underperforms direct solving because the combined error probabilities of decomposition and merging outweigh direct execution errors ($\phi_d \cdot \phi_m \le \phi_u$). Once tasks pass $n^*$, however, unit-case accuracy for the direct solver collapses, and RDD’s advantage grows rapidly.
- DAGs over Trees: Many non-trivial tasks cannot be split into independent pieces. Enabling the model to emit and link identifiers (
{P-1}) allows dynamic pipeline creation on the fly without human workflow design. - Error Correction via Merging: If a sub-task prompt loses required data, the model can detect the inconsistency during the merge step and fall back to directly solving the parent problem using the original problem statement.
Key Results
- Higher Accuracy at Scale: In the task-specific Letter Concatenation benchmark ($n_0 = 90$), RDD achieved an accuracy of 0.45, whereas baselines with self-consistency (LtM+SC and CoT+SC) collapsed to near 0.00.
- Zero-Shot Domain Transfer: When evaluated using generic, out-of-domain few-shot prompts, RDD retained its superiority beyond transition points ($n_0 > 10$ for Letter Concatenation; $n_0 > 5$ for Length Reversal).
- Massive Resource Savings: Baselines scaled poorly in execution time and generated tokens. On Letter Concatenation ($n_0 = 90$), LtM+SC required 310.12 GPU-hours and generated over 3.1 million tokens, while RDD+LtM finished in 10.53 GPU-hours with 570,232 tokens—a ~30× reduction in compute time.
Limitations and Future Work
- Overhead on Simple Inputs: Decomposing simple problems adds latency and failure modes where a single forward pass would suffice.
- Strong Base Model Requirement: Because ancestor context is suppressed to save window space, the base LLM must be capable of generating self-contained, fully specified sub-problem descriptions.
- Synthetic Task Scope: Evaluation was conducted primarily on controlled algorithmic/string-manipulation benchmarks; testing on messier real-world software engineering or multi-modal domains remains open.
- Unrealized Parallelization: Although RDD's DAG formulation theoretically allows concurrent execution of independent branches, the paper's experiments ran sequentially. Future work will quantify the real-world speedups of parallelized execution.
Summary updated