[Paper Review] PEARL: Prompting Large Language Models to Plan and Execute Actions Over Long Documents
Pearl prompts GPT-4 to mine actions from data, generate a plan, and execute it step-by-step to reason over long documents, outperforming zero-shot and chain-of-thought baselines on a long-context QA subset.
Strategies such as chain-of-thought prompting improve the performance of large language models (LLMs) on complex reasoning tasks by decomposing input examples into intermediate steps. However, it remains unclear how to apply such methods to reason over long input documents, in which both the decomposition and the output of each intermediate step are non-trivial to obtain. In this work, we propose PEARL, a prompting framework to improve reasoning over long documents, which consists of three stages: action mining, plan formulation, and plan execution. More specifically, given a question about a long document, PEARL decomposes the question into a sequence of actions (e.g., SUMMARIZE, FIND_EVENT, FIND_RELATION) and then executes them over the document to obtain the answer. Each stage of PEARL is implemented via zero-shot or few-shot prompting of LLMs (in our work, GPT-4) with minimal human input. We evaluate PEARL on a challenging subset of the QuALITY dataset, which contains questions that require complex reasoning over long narrative texts. PEARL outperforms zero-shot and chain-of-thought prompting on this dataset, and ablation experiments show that each stage of PEARL is critical to its performance. Overall, PEARL is a first step towards leveraging LLMs to reason over long documents.
Motivation & Objective
- Motivate and address complex reasoning over long documents where decomposition is non-trivial.
- Introduce a three-stage prompting framework (action mining, plan generation, plan execution) to build and execute plans over long inputs.
- Demonstrate effectiveness on a challenging subset of QuALITY, a long-form narrative QA dataset.
- Show ablations to validate the necessity of each Pearl stage and analyze error sources.
Proposed method
- Action mining: an LLM generates a dataset-specific set of basic reasoning actions from seed demonstrations.
- Plan generation: given a question, an LLM creates an executable plan selecting actions from the mined set, formatted as a simple program.
- Plan execution: the LLM executes the plan action-by-action over the long document using a structured prompt template.
- Self-correction and self-refinement: plan syntax is corrected and plan demonstrations are refined based on task-specific evaluation.
- Baselines: compare Pearl against zero-shot GPT-4, GPT-3.5, and zero-shot chain-of-thought prompting; ablations remove plan execution or self-refinement to assess impact.

Experimental results
Research questions
- RQ1Can LLMs reason effectively over long documents by decomposing tasks into executable actions and plans?
- RQ2Does a learned, data-driven action set plus plan execution improve long-context reasoning compared to direct prompting?
- RQ3How critical are each Pearl stage (action mining, plan generation, plan execution, self-correction/refinement) to final performance?
- RQ4What are the main error modes and how does plan execution influence answer quality over long inputs?
Key findings
- Pearl outperforms zero-shot GPT-4 and zero-shot chain-of-thought prompting on long-context questions from QuALITY.
- Increasing the action set size helps up to an optimum; too many actions degrades performance due to execution difficulty.
- Plan execution over the long document is necessary for observed gains; removing execution reduces accuracy by ~3 points but still can beat some baselines.
- Self-refinement of plan demonstrations is crucial for performance, with significant drops observed when removed.
- Human evaluation finds most generated plans reasonable, with some unnecessary steps and occasional omissions.
- Pearl substantially improves reasoning types involving causes, person-centric questions, and not/except questions; differences are statistically significant in several cases.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.