An Examination on the Effectiveness of Divide-and-Conquer Prompting in Large Language Models

Yizhou Zhang, Lun Du, Defu Cao, Qiang Fu, Yan Liu · Submission to ICLR 2025 · Rejected

TL;DR

While Chain-of-Thought (CoT) and sequential prompting strategies improve reasoning in Large Language Models (LLMs), they frequently stumble on long or deceptive inputs due to compounding intermediate errors. This paper establishes theoretical bounds and conditions showing when a Divide-and-Conquer (DaC) prompting strategy provably boosts performance by breaking tasks into isolated, parallel sub-tasks—substantially cutting the average context window and preventing hallucinations from cascading.

What Problem Does This Paper Address?

Standard fixed-depth Transformers with log-precision attention have strict computational depth limits (upper-bounded by the circuit complexity class $\mathsf{TC}^0$). Consequently, standard Input-Output (IO) prompting fails at tasks requiring long solution paths or multi-step logic.

While prompt extensions like Chain-of-Thought (CoT) and Least-to-Most (LtM) theoretically expand expressive power by generating intermediate scratchpads, they handle sub-problems sequentially. When tasks involve long contexts or deceptive content (such as fake news or summary hallucinations), early mistakes or misleading framing pollute the context window, causing subsequent reasoning steps to fail. Although researchers have seen empirical gains from simple "divide-and-conquer" heuristics, there has been no theoretical framework explaining when and why DaC prompting is advantageous over CoT.

Methods

The authors formalize DaC prompting into three explicit stages:

  1. Task Decomposition: The LLM splits the input into parallel, homogeneous sub-problems (e.g., segmenting a long document into individual claims).
  2. Sub-Task Resolution: Sub-tasks are solved independently and in parallel, isolating each prompt.
  3. Solution Merge: An LLM aggregates the individual solutions into the final verdict.

Depending on task scale, this can run as a Single-Level DaC Solver or a recursive Multi-Level DaC Solver.

Theoretical Framework

  • Expressive Power vs. IO: The paper proves that DaC strictly surpasses standard IO prompting ($S(\text{IO}) \subset \mathsf{TC}^0 \subseteq \mathsf{NC}^1 \subseteq S(\text{DaC})$) by demonstrating that a 2-layer log-precision Transformer running DaC can solve 2-color Binary Subtree Isomorphism (an $\mathsf{NC}^1$-complete problem).
  • Expressive Power vs. CoT: While DaC’s problem space is technically a subset of CoT ($S(\text{DaC}) \subseteq S(\text{CoT})$), DaC significantly reduces the average decoding context window length when handling parallel sub-tasks.
  • The Two Conditions: DaC provides guaranteed advantages if:
  • The task is harder than $S(\text{IO})$ (e.g., $\mathsf{TC}^0$- or $\mathsf{NC}^1$-complete problems).
  • The task contains many parallel sub-tasks and is susceptible to intermediate errors or hallucination propagation.

Datasets

The authors evaluated models (GPT-3.5-Turbo and GPT-4) across two primary case studies:

  • Long Integer Arithmetic: Synthetic sets of 200 pairs of 5-digit additions and 5-digit multiplications.
  • HaluEval-Summary: A benchmark testing summarization hallucination detection containing long source materials and generated summaries.
  • Extended SciFact: A scientific claim verification benchmark adapted by using GPT-4 to expand short scientific claims into paragraph-level news posts paired with paper abstracts.

Key Insights and Ideas

  • Context Pollution Causes Failure: In sequential prompting (CoT/LtM), each generated token attends to all prior intermediate steps. When an LLM makes an early error or absorbs deceptive context, the error cascades downstream.
  • Shorter Decoding Windows Improve Robustness: DaC guarantees that each parallel sub-task decodes against only its localized input, mathematically reducing the average token context window ($C + \frac{\sum (r_i - 1)^2}{2 \sum r_j} < C + \frac{\sum r_i - 1}{2}$).
  • The Addition vs. Multiplication Litmus Test:
  • Integer Addition is already within the expressive power of standard fixed-depth Transformers ($S(\text{IO})$). Thus, DaC yields virtually no benefit over IO prompting.
  • Integer Multiplication is $\mathsf{TC}^0$-complete and can be decomposed into disjoint partial products, making DaC dramatically superior.

Key Results

  • Long Integer Multiplication: DaC achieved significantly lower edit distance compared to IO, CoT, CoT-SC, LtM, and Decomposed Prompting (DeP) on both GPT-3.5-Turbo and GPT-4. On addition (which violates Condition 1), DaC showed no improvement.
  • Hallucination Detection (HaluEval): DaC scored 74.84 F1 / 75.55% accuracy on GPT-3.5 (vs. 46.85 F1 for CoT and 61.69 F1 for IO) and 76.92 F1 / 78.99% accuracy on GPT-4 (vs. 71.05 F1 for CoT and 64.07 F1 for IO).
  • Misinformation Detection (SciFact): On extended SciFact, GPT-3.5 with DaC achieved 76.88 F1, outperforming GPT-4 equipped with IO (69.15 F1), CoT (74.03 F1), and LtM (73.56 F1). GPT-4 with DaC reached 81.11 F1.

Limitations and Future Work

  • Strictly Limited Scope: DaC is ineffective for problems that are inherently sequential—such as multi-round dialogue, long division, and sequential planning—since their sub-tasks cannot be tackled independently.
  • Decomposition Overhead: DaC requires effective prompts or heuristics to segment problems cleanly; poor initial splits can compromise downstream merging.
  • Future Directions: Expanding DaC formulations to broader reasoning paradigms, such as loosely coupled multi-step open-domain question answering.

Summary updated

BibTeX
@misc{zhang2024examination,
  author = {Yizhou Zhang and Lun Du and Defu Cao and Qiang Fu and Yan Liu},
  title = {{An Examination on the Effectiveness of Divide-and-Conquer Prompting in Large Language Models}},
  year = {2024},
  eprint = {2402.05359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05359},
}
Figure