Chapter 1 · Planning and Reflection¶
1.1 How does an agent decompose a task? ★★¶
One-sentence answer
Task decomposition breaks a large goal into a sequence of subgoals that the model can complete reliably and that can each be checked on their own. Ordered by how explicit the decomposition is, common approaches range from implicit CoT, to two-stage Least-to-Most, explicit plan lists, task graphs with dependencies (HuggingGPT), and recursive decomposition on demand that splits further only when execution fails (ADaPT); the main risks are that the decomposition itself may be wrong and that the right granularity is hard to find.
I will address three aspects: why decompose, the common ways of decomposing, and the costs of decomposition.
(1) Reason: LLMs are good at solving "one small step", and decomposition turns a complex task into a chain of small steps the model can complete reliably.
"Planning" in an agent means working out, before or while acting, which steps will lead to the goal. It involves two basic abilities: decomposition, i.e. breaking a large goal into a sequence of subgoals; and reflection and refinement, i.e. adjusting the plan based on the results of execution (Weng 2023). This question covers decomposition; reflection is in 1.3 and 2.4. When faced with a complex task, a model asked to produce a complete answer in one go easily skips steps or goes wrong halfway; decomposition brings four benefits:
- It lowers the difficulty of each step: each subtask becomes easy enough for the model to complete reliably.
- It makes checking and locating errors easier: each step's result can be checked on its own, so an error can be traced to a specific step.
- It enables division of labor and parallelism: different subtasks can use different tools or models, and independent subtasks can run in parallel.
- It makes progress easy to track: an explicit list of subgoals lets the agent know how far it has got.
(2) Approaches: ordered by how explicit the decomposition is, the common approaches form a spectrum.
- Implicit decomposition (CoT): "Let's think step by step" has the model decompose and solve as it goes, within a single generation (see the Inference, Evaluation & Deployment direction, Chapter 4). It is the simplest, but decomposing and solving are mixed together, so the plan cannot be checked separately and is hard to adjust midway.
- Two-stage decomposition (Least-to-Most, Zhou et al. 2022): the model first only decomposes, breaking the original problem into a sequence of subproblems from easy to hard; it then solves them in order, appending each subproblem's answer to the context for the next one. Its key advantage is that it generalizes to problems harder than the examples (see Follow-up 1).
- Explicit plans: have the model first write a numbered plan or to-do list and then execute it step by step. The plan is a separate artifact that can be inspected, edited and updated during execution (see 1.2).
- Decomposition with dependencies (HuggingGPT, Shen et al. 2023): with ChatGPT as the controller, the user's request is first parsed into subtasks and the dependencies between them are marked (for example, "first detect the objects in the image, then generate a description from the result"); a suitable expert model is then selected to execute each subtask, and finally the results are combined. Here the plan is a directed acyclic graph (DAG), and subtasks that do not depend on each other can run in parallel.
- Recursive decomposition on demand (ADaPT, Prasad et al. 2023): first let the executor try the task directly, and call the planner to break it down further only when execution fails, then repeat this process recursively for each subtask. Simple tasks are therefore never over-split, while hard tasks are automatically broken down to a granularity the executor can handle.
(3) Costs: the decomposition itself may be wrong, the granularity is hard to get right, and many tasks lack information at the start.
- The decomposition itself may be wrong: a necessary step is missing, the order is reversed, or the task is misunderstood from the outset, and then no amount of good execution helps.
- Granularity is hard to get right: too coarse, and each step is still too hard; too fine, and the number of LLM calls and the context length balloon, and the hand-offs between steps break more easily.
- Information is lacking at the start: many tasks cannot be broken down clearly at the outset and have to be decomposed along the way, which raises the question of "plan first" versus "plan as you go" (see 1.2).
In summary: the essence of task decomposition is turning a task the model cannot reliably complete in one go into a chain of small tasks it can complete reliably and check one by one; the difficulty lies in splitting correctly and at the right granularity.
Going deeper: using an external planner, and a comparison of decomposition approaches
(1) Another route is to let the LLM only "translate" and hand the actual planning to a classical planner.
LLM+P (Liu et al. 2023) works as follows: the LLM translates a problem described in natural language into PDDL (a formal language describing the initial state, the goal and the rules for actions), a classical planner (such as Fast Downward) finds a plan that is guaranteed correct and even optimal, and the LLM translates the plan back into natural language. The benefit is that the correctness of the plan comes from mature search algorithms rather than from the LLM's own reasoning. The limitations are just as clear: an expert has to write the domain's PDDL description in advance (which actions exist, and the preconditions and effects of each), it only applies to domains that can be formalized, and open-ended agent tasks such as writing code or doing research are very hard to express in PDDL. This idea of "the LLM generates, an external system guarantees correctness" is generalized further in the LLM-Modulo framework in 2.6.
(2) Comparing the decomposition approaches.
| Approach | Is the plan explicit? | Can it be adjusted midway? | Representative work |
|---|---|---|---|
| Implicit decomposition | No; mixed with solving | Hardly | CoT |
| Two-stage decomposition | Yes; a sequence of subproblems | No; solved in order | Least-to-Most |
| Explicit plan | Yes; a numbered plan or to-do list | Yes, by updating the list | Plan-and-Solve, to-do lists |
| Dependency graph | Yes; a DAG | Usually not | HuggingGPT |
| Recursive decomposition on demand | Yes; generated on failure | Yes; split further on failure | ADaPT |
| External planner | Yes; a formal plan | Re-solved by the planner | LLM+P |
Follow-up questions
Follow-up 1: How does Least-to-Most differ from CoT, and why does it generalize to problems harder than the examples?
Because it turns a hard problem into a chain of easy problems, each within the model's ability. CoT decomposes and solves as it goes within one generation, and the model tends to imitate the reasoning length of the examples: if the examples have a certain number of steps, it tends to reason for about that many, and it easily goes wrong on problems that need more steps. Least-to-Most instead explicitly breaks the problem into subproblems from easy to hard, solves them one by one, and conditions later ones on earlier answers; no subproblem is harder than the examples, so even with short examples it can solve long problems. The original paper demonstrated this on the compositional generalization benchmark SCAN: with only 14 examples it reached over 99% accuracy, compared with only 16% for CoT.
Follow-up 2: How do you choose the granularity of decomposition?
The principle is to split until the executor can complete each piece reliably and its result can be checked, and no further. Too coarse, and the executor still fails; too fine, and the number of calls, the context length and the cost of hand-offs between steps all rise. In practice the most useful approach is to split on demand, as in ADaPT: let the executor try directly first and split only on failure, so that the granularity is decided by execution results rather than by guesses made in advance. Another reference criterion is verifiability: each subtask should ideally have a clear completion criterion, such as "the unit tests for this function pass".
Follow-up 3: What if the decomposition is wrong?
Make the plan an artifact that can be checked and corrected, rather than a one-off decision. Before execution, a person or a verifier can review the explicit plan and catch missing steps or reversed orders early; during execution, as soon as a step fails or an observation contradicts the plan's assumptions, the original plan and the results so far are handed back to the planner for replanning (see 1.2); and recursive decomposition on demand automatically splits a failing subtask further. Errors in the decomposition then do not persist until the end of the task.
Common mistakes
- Do not say finer decomposition is always better: Overly fine decomposition increases the number of calls and the context length, and the hand-offs between steps break more easily.
- Do not say CoT has nothing to do with task decomposition: CoT is an implicit decomposition; it is just that planning and solving are mixed together and cannot be checked separately.
- Do not say LLM+P works for any task: It depends on a PDDL domain description written in advance by an expert and only applies to domains that can be formalized.
1.2 How do plan-and-execute and interleaved planning differ? ★¶
One-sentence answer
Interleaved planning (ReAct-style) writes no complete plan and decides the next step only after seeing each observation, which makes it highly adaptive but myopic and requires a call to the big model at every step; plan-and-execute has a planner write the complete plan first and an executor carry it out step by step, replanning when necessary, which gives a global view, fewer big-model calls and a plan that can be reviewed, but the plan may rest on wrong assumptions. Real systems mostly use a hybrid: write a rough to-do list first, then execute the current item ReAct-style and keep updating the list.
I will address three aspects: the characteristics of interleaved planning, the characteristics of plan-and-execute, and how to choose between and combine them.
(1) Interleaved planning: every step is based on the latest observation, so it is highly adaptive, but on long tasks its myopia shows.
ReAct in Chapter 0 is the classic example of interleaved planning: it never writes out a complete plan, but decides what to do next only after taking a step and seeing the new observation, so planning and execution are woven together. When something unexpected happens, for example a search returns nothing or a page's layout has changed, it can therefore adjust immediately. Its weaknesses, however, are amplified on long tasks:
- Myopia: each step considers only what is in front of it, with no overall arrangement of the whole task, so it easily gets lost in details, forgets the overall goal, or even makes decisions that conflict with later steps.
- High cost: every step needs a call to the big model, carrying an ever-longer full history, so cost and latency rise quickly with the number of steps (see 0.6 in Chapter 0).
- Hard to review: with no explicit plan, it is hard for a person to check what the agent intends to do before it does it.
(2) Plan-and-execute: separating planning from execution, with strengths and weaknesses that are exactly complementary to interleaved planning.
In plan-and-execute, a planner first writes the complete multi-step plan in one go, and an executor then carries it out step by step. The executor can be a smaller, cheaper model, a small ReAct agent responsible for a single step, or plain code; a replanner is usually added as well, which, after each step or when a step fails, hands the original plan and the results so far back to the planner to obtain a revised plan. The idea goes back to Plan-and-Solve prompting (Wang et al. 2023): the authors found that a common error in zero-shot CoT is skipping steps, so they changed the prompt to "first understand the problem and devise a plan to solve it, then carry out the plan step by step", which clearly reduced such errors, because writing a plan first forces the model to go through the whole task before starting. Plan-and-execute therefore has a global view, makes few calls to the big model, produces a plan that a person can review and edit before execution, and lets independent steps in the plan run in parallel; however, the plan is made before any observation has been seen, so it may well rest on wrong assumptions, and without replanning, execution is rigid and one surprise sinks everything, while replanning frequently adds the cost back.
(3) Real systems mostly use a hybrid, and the key to choosing is how much of the task's structure can be foreseen at the start.
In real systems the line between the two is increasingly blurred, and the most common form is a hybrid: the agent first writes a rough plan, such as a to-do list, then executes the current item ReAct-style, updating the list whenever an item is finished or something unexpected happens. This keeps a global view while preserving adaptivity, and the list itself also serves as recitation, keeping the overall goal at the end of the context (see 0.6 in Chapter 0). When choosing, if the task's structure is clear, for example "compare three products along these five dimensions", lean toward planning first; if it depends heavily on exploration, for example "find the cause of this bug", lean toward interleaving.
In summary: the trade-off between the two is a balance between a global view and adaptivity, and in practice they are usually combined as "a rough plan + interleaved execution + continual updates".
Comparing the two planning styles:
| Interleaved (ReAct-style) | Plan-and-execute | |
|---|---|---|
| When planning happens | At every step, after each observation | Once at the start, plus optional replanning |
| Global view | Weak; drifts easily on long tasks | Strong; the whole task is laid out first |
| Adaptivity | High | Low unless replanning is added |
| Big-model calls | One per step, with a growing history | Few; steps can go to cheaper executors |
| Parallelism | Sequential | Independent steps can run in parallel |
| Reviewability | The plan is implicit | An explicit plan that people can review |
| Suited tasks | Exploratory tasks in uncertain environments | Tasks whose structure can be foreseen in advance |
Going deeper: a formal description, ReWOO and LLMCompiler
(1) A formal description of plan-and-execute.
Here \(x\) is the task, \(P\) is the plan generated by the planner \(\pi_{\text{plan}}\), \(p_i\) is step \(i\) of the plan, \(\mathrm{Exec}\) is the executor, \(o_i\) is the result of step \(i\), \(o_{<i}\) are the results of the earlier steps, and \(P'\) is the plan revised by the replanner based on the original plan and the results so far.
(2) ReWOO is an extreme version of plan-and-execute aimed at saving tokens.
The starting point of ReWOO (Xu et al. 2023, Reasoning WithOut Observation) is that ReAct resends the full prompt and history to the model at every step, so a large number of tokens are processed again and again. It splits the process into three roles: the Planner writes the whole plan in one go, using placeholder variables (#E1, #E2) to stand for later steps' references to earlier results; the Worker executes these tool calls in order and fills the real results into the variables; and the Solver takes the plan and all the evidence and produces the final answer.
Plan: Find the director of Oldboy (2003).
#E1 = Search[Oldboy (2003 film)]
Plan: Find the nationality of the director found in #E1.
#E2 = LLM[What is the nationality of the director mentioned in: #E1]
Solver: question + plan + #E1 + #E2 → "South Korea"
Apart from any LLM the Worker may call as a tool, the main model is called only once for the Planner and once for the Solver, and the ever-growing history no longer has to be resent at every step. The paper reports about 5× better token efficiency on HotpotQA together with a 4% accuracy gain, and the planner can be distilled into a 7B model. The price is giving up adaptivity entirely: the plan is fixed before any observation is seen, so if the search for #E1 returns something unexpected, for example a different film with the same name, later steps have no chance to adjust.
(3) LLMCompiler represents the plan as a DAG and runs independent calls in parallel.
LLMCompiler (Kim et al. 2023) goes in the same direction, representing the plan as a directed acyclic graph of tasks and running tool calls that do not depend on each other in parallel, which cuts latency further.
Follow-up questions
Follow-up 1: When is replanning needed, and what goes wrong if you replan too often?
Replanning is needed when the results of execution contradict the plan's assumptions. Typical triggers include a step failing; an observed fact overturning a premise of the plan, for example the function to be modified does not exist at all; or information obtained along the way changing the priorities of the goal. Replanning too often, however, causes problems of its own: each replanning calls the big model with the full plan and results, so the cost climbs back to a level comparable to interleaved planning; and a plan that changes frequently makes execution incoherent, with the agent possibly oscillating between several approaches. Replanning is therefore usually triggered only by a failure or by important new information.
Follow-up 2: Why does ReWOO save tokens, and what does it cost?
Because it turns "resend the full history at every step" into "call the main model only once for planning and once for summarizing". The Planner writes all the tool calls in one go using placeholder variables, and the Worker only executes them in order and fills in the values, so the history is not processed again and again across many calls to the main model. The cost is that the plan is fixed before any observation is seen: once an intermediate result is unexpected, later steps can only follow the original plan and cannot adjust.
Follow-up 3: Why can the executor in plan-and-execute be a smaller model?
Because the hardest part, the global decomposition, has already been done by the planner. Each step in the plan is a well-scoped small task, such as "search for the director of a certain film", which demands far less of the model, so it can be handed to a smaller, cheaper model or even to plain code. ReWOO's result of distilling the planner into a 7B model also shows that once a task has been broken down clearly, the model size required can be reduced substantially.
Common mistakes
- Do not say ReAct has no planning: Its planning is implicit and interleaved with execution; each step's thought is a local plan.
- Do not say plan-and-execute cannot adjust based on observations: With a replanner, it can revise the plan when a step fails or something unexpected happens.
- Do not say ReWOO is better on every task: It saves tokens, but the plan is fixed before any observation is seen, so it cannot adjust once the environment behaves unexpectedly.
1.3 How do Self-Refine and Reflexion perform reflection? ★★¶
One-sentence answer
Neither updates the model's weights; all improvement happens in the context. Self-Refine has the same model repeatedly "generate → give itself feedback → revise" within a single output; Reflexion instead works across repeated attempts at the same task: an evaluator scores each attempt, and on failure the model summarizes the trajectory into a verbal lesson stored in memory, then retries with the lesson in hand, which the authors call "verbal reinforcement".
I will address four aspects: what reflection means and its two scopes, how Self-Refine works, how Reflexion works, and the analogy between Reflexion and RL.
(1) Reflection means evaluating and improving after acting, and by scope it comes in two kinds.
Planning is thinking things through before acting; reflection is looking back after acting: evaluating one's own output or trajectory, finding problems, and doing better next time. By scope, reflection divides into repeatedly revising within a single output (Self-Refine) and accumulating lessons across multiple attempts at the same task (Reflexion). Neither updates the model's weights; all improvement happens in the context.
(2) Self-Refine: the same model takes turns playing generator, critic and reviser.
Self-Refine (Madaan et al. 2023) mimics how people write, "draft → find faults oneself → revise", with all three roles played by the same model using different few-shot prompts: first a draft is written from the input; then the model comments on the current version; finally, combining all previous versions and feedback, it produces a new version, and the loop continues until the feedback says "no more issues" or a maximum number of rounds is reached. All previous versions and feedback are kept so that the model knows which problems have already been pointed out and does not revert to an earlier mistake. A key finding is that the quality of the feedback determines the outcome: specific, actionable feedback ("the argument lacks an example; add this figure") works much better than generic feedback ("this could be written better"), and generic feedback still beats none. The gains, however, are very uneven across tasks: they are large on tasks such as style, readability and constraint satisfaction, where the model can spot the problems itself, but small on math reasoning, because the model often cannot find its own reasoning errors and the feedback keeps saying "looks fine" (see 1.4).
(3) Reflexion: an evaluator scores each attempt, and on failure the trajectory is summarized into a verbal lesson carried into the next attempt.
Reflexion (Shinn et al. 2023) improves an agent's repeated attempts at the same task, and it consists of three modules:
- Actor: the agent that performs the task, for example ReAct or CoT, which produces a trajectory.
- Evaluator: scores the trajectory; it can be exact match, hand-written rules, unit tests or an LLM judge.
- Self-Reflection: when an attempt fails, it reads the trajectory, the score and the existing memory, and writes a verbal reflection stating what went wrong and what to do next time.
The reflection is added to long-term memory, which keeps only the latest 1 to 3 entries so that the context does not fill up; on the next attempt, the Actor redoes the task with these reflections in hand.
(4) Reflexion can be seen as "RL without weight updates", and its verbal reflections also ease the credit-assignment problem.
The authors call this process verbal reinforcement. In RL, a scalar reward updates the policy's weights through gradients; in Reflexion, the scalar reward is "translated" into a natural-language lesson stored in memory, and the policy changes its behavior by reading that text, with the weights untouched. The verbal reflection also eases the problem of credit assignment (i.e. deciding which step of a trajectory caused the failure): a "failure" signal by itself does not say which step went wrong, whereas a reflection can state directly "I took the wrong item; next time I should check the countertop first", which carries far more information than a bare 0/1 signal. An ablation supports this: on HotpotQA, adding reflections gave 8 points more than keeping only the previous trajectory (episodic memory), showing that "drawing a lesson" is more useful than "remembering what happened".
In summary: Self-Refine is self-revision within one output, and Reflexion is accumulation of experience across attempts; both place the improvement in the context, and the ceiling of both is set by the quality of the feedback.
Comparing Self-Refine, Reflexion and LATS:
| Self-Refine | Reflexion | LATS (see 1.5) | |
|---|---|---|---|
| What is improved | One output within a single attempt | Behavior across repeated attempts at a task | A search tree made of many trajectories |
| Feedback source | The same LLM critiques its own output | Environment, tests or heuristics, turned into verbal lessons | Environment reward, LM value estimates and reflections |
| Memory | History of drafts and feedback | Episodic memory of 1 to 3 reflections | Tree statistics plus stored reflections |
| Needs retries? | No | Yes; the whole task is redone | Yes; must return to earlier states |
| Updates weights? | No | No | No |
Going deeper: the formalization of both methods, experimental details, and CRITIC
(1) The formalization and results of Self-Refine.
Here \(\mathcal{M}\) is the same model throughout, \(x\) is the input, \(p_{\text{gen}}\), \(p_{\text{fb}}\) and \(p_{\text{refine}}\) are the generation, feedback and refinement prompts, \(y_t\) is the \(t\)-th version of the output, \(fb_t\) is the feedback on it, and \(\|\) denotes concatenation. Across 7 tasks including dialogue responses, code optimization and math reasoning, using GPT-3.5 and GPT-4, Self-Refine improves on single-pass generation by about 20 percentage points on average; weaker models cannot produce useful feedback and gain almost nothing from Self-Refine.
(2) The formalization and results of Reflexion.
Here \(\tau_k\) is the trajectory of the \(k\)-th attempt, \(M_e\) is the Evaluator, \(r_k\) is the score, \(M_{sr}\) is the Self-Reflection model, \(sr_k\) is the verbal reflection, \(\mathrm{mem}\) is the memory, \(\mathrm{last}_\Omega\) means keeping only the latest \(\Omega\) entries, \(\pi_{\text{actor}}\) is the Actor, and \(x\) is the task.
| Task | Evaluator | Result |
|---|---|---|
| ALFWorld | A heuristic: the attempt is judged a failure if the agent repeats the same action with the same result more than 3 times in a row, or takes more than 30 steps in one environment | Completes 130 of 134 tasks, 22 points above ReAct alone, whose performance stops improving after a few retries |
| HotpotQA | Exact match against the gold answer | An improvement of about 20% |
| HumanEval | Unit tests generated by the model itself (filtering out syntactically invalid ones) | 91% pass@1, versus 80% reported for GPT-4 at the time |
(3) The three methods are progressively stronger versions along the same direction.
Self-Refine only revises itself within one output; Reflexion adds external evaluation and memory across attempts; LATS further adds systematic tree search. The further along, the more feedback can be used and the better the results, but the demands on the environment (being able to retry, being able to revert) and the compute cost rise too. Another variant worth mentioning is CRITIC (Gou et al. 2023): before revising, it calls tools such as a search engine or a code interpreter to verify the output and uses the tool results as feedback, which is exactly the idea of "external feedback instead of self-assessment" in 2.4.
Follow-up questions
Follow-up 1: What are Reflexion's limitations, and where can it not be used?
It depends on the quality of the evaluator, can get stuck in a local optimum, and requires repeated attempts at the same task. If the evaluator is wrong, for example if the self-generated tests are themselves incorrect, wrong code gets marked as passing; it may keep circling within the same kind of idea; on WebShop, which needs a lot of exploration, it brought almost no improvement; and, most fundamentally, it needs the chance to "try again", which is available when running tests or solving benchmark problems, but in the real world many actions cannot be undone, for example an email that has been sent or an order that has been placed.
Follow-up 2: Why does Self-Refine help so little on math reasoning?
Because the model cannot find its own reasoning errors, and the feedback keeps saying "looks fine". Self-Refine's feedback comes from the same model that produced the answer, and a reasoning error made while generating will mostly go unnoticed while checking; problems of style and readability, by contrast, are easier to spot. Self-Refine's ceiling is therefore set by the model's ability to find problems, which is precisely the question discussed in 2.4.
Follow-up 3: Why are verbal reflections more useful than simply keeping the failed trajectory?
Because a reflection has already done the work of "finding the cause in the trajectory". A failed trajectory is long and most of its steps are correct, so on the next attempt the model would have to find the problem in it on its own, with the context filled by many irrelevant details; a reflection condenses the cause and the remedy into a sentence or two and tells the Actor directly what to do next time. The ablation on HotpotQA, where reflections gave 8 points more than keeping only the previous trajectory, shows exactly this.
Follow-up 4: How does Reflexion's memory differ from an agent's long-term memory?
Reflexion's memory serves only repeated attempts at the same task and keeps only the latest few entries. It is a form of episodic memory tied to a single task; an agent's long-term memory, by contrast, keeps experience, knowledge and user preferences across tasks and sessions, and must deal with how to store, retrieve and update them (see Chapter 3). Accumulating Reflexion-style lessons across tasks so that the agent keeps getting stronger moves into the territory of self-evolving agents (see the Self-Improving & RSI direction, Chapter 4).
Common mistakes
- Do not say Reflexion updates the model's weights: It only writes verbal reflections into memory and leaves the weights untouched, which is exactly what "verbal reinforcement" means.
- Do not say Self-Refine works on every task: It works well on style-type tasks, helps very little on math reasoning, and gives weaker models almost nothing.
- Do not overlook that Reflexion used the gold answer as its evaluator on HotpotQA: This is unavailable in real deployment and overestimates the gains (see 1.4).
- Do not confuse the scopes of the two: Self-Refine does not need to retry the whole task, whereas Reflexion must be able to retry.
1.4 Why does reflection need reliable external feedback? ★★¶
One-sentence answer
Reflection can only turn a "something is wrong here" signal into a revision; if the signal itself is wrong, reflection will turn right answers into wrong ones or overlook real errors, so the ceiling of reflection is set by the quality of the feedback, not by the reflection prompt. The model's self-critique is least reliable precisely for reasoning errors, whereas an agent's advantage is that the environment itself keeps providing feedback, so environment signals and tool results should be used first.
I will address four aspects: why feedback quality sets the ceiling, the common oracle pitfall in evaluation, how reliable the different feedback sources are, and the design principles for a feedback loop.
(1) The ceiling of reflection is set by the quality of the feedback, and the model's self-critique is least reliable precisely for reasoning errors.
A reasoning error made while generating an answer usually stems from a flaw in the model's own knowledge or reasoning, and when the same model checks the answer it uses the same knowledge and reasoning ability, so it will mostly fail to see the error. Without an external signal, the model's self-critique therefore either keeps saying "looks fine", so that reflection has no effect, or wrongly rejects a correct answer, so that reflection turns a right answer into a wrong one. The small gains of Self-Refine on math reasoning (see 1.3), and the many false positives GPT-4 produces when checking its own plans (Valmeekam et al. 2023, see 1.6), are both manifestations of this. A systematic discussion of "whether LLMs can improve their reasoning through self-correction without external feedback" is in the Self-Improving & RSI direction, Chapter 1.
(2) When evaluating reflection methods, beware of overestimation caused by oracle feedback.
Looking back at Reflexion's successes, one finds that they all have reliable external signals: HumanEval has executable tests, and ALFWorld has the environment's task-completion signal. On HotpotQA, however, its Evaluator uses exact match against the gold answer, which is possible in a benchmark but unavailable in real deployment. Using the gold answer to decide "should we try again" amounts to telling the agent directly "you got this one wrong", which makes the results look better than they really are. Huang et al. (2023) pointed out this problem systematically: once such oracle signals are removed, models relying on self-correction alone often fail to improve their reasoning accuracy, and sometimes it even drops.
(3) Different feedback sources differ greatly in reliability, and design should give priority to reliable signals.
An agent has one natural advantage over plain question answering: it acts in an environment, and the environment itself keeps giving feedback. In order of reliability from high to low, the following kinds of automated signal can be considered:
- The environment's state and success signals: whether the tests pass, whether the target page was reached, whether the order status really changed. When available, they should be used first to decide whether to reflect and whether to retry.
- Tool execution results: error messages, compiler errors, search results. They bring new information the model did not have, which makes them the best basis for reflection.
- A trained verifier or an LLM judge: suitable for tasks with no objective signal, but noisy, and the harder one searches, the more likely it is to be exploited (see 1.6).
- Self-critique by the same model: the cheapest, but the least reliable for reasoning errors, since a mistake made while generating will mostly go unnoticed while checking.
In addition, people are the most reliable source of feedback, but they are slow and expensive, so they should be reserved for critical and irreversible steps.
(4) Designing a feedback loop also follows a few principles.
- Trigger on a concrete signal: reflection should be triggered by concrete signals such as a failing test or an error message, rather than asking the model to "check again" at every step.
- Cite specific evidence: a reflection should name which error or which failing test it is about, not a vague "something may be wrong".
- Watch out for errors in the feedback itself: self-generated tests may be wrong, LLM judges may be biased, and noisy feedback can turn a correct answer into a wrong one.
- Cap the number of retries: reflecting again and again without new information just spins in place.
In summary: reflection itself produces no new information; it can only amplify the information already present in the feedback, so the key to designing a reflection loop is first finding a reliable source of feedback.
Going deeper: the two ways self-correction fails, judges being exploited, and an example feedback loop
(1) Self-correction can fail in two directions.
One is a miss: the answer is wrong, but the model thinks there is no problem, so reflection has no effect; the other is a false alarm: the answer is right, but the model thinks it is wrong and changes it, so reflection turns a right answer into a wrong one. Without an external signal, both happen, so the net effect of self-correction can be zero or even negative, which is why Huang et al. (2023) observed that accuracy sometimes drops.
(2) Verifiers and LLM judges are easily exploited under optimization pressure.
When reflection or search keeps revising the output in whatever direction the judge scores highly, it is effectively optimizing against the judge, and what it ends up finding is often a loophole in the judge rather than a genuinely better answer; this is the same principle as reward models being hacked in RLHF (see the LLM Training Pipeline direction, Chapter 6). The biases of LLM judges themselves, such as preferring longer answers or preferring their own outputs, are covered in the Inference, Evaluation & Deployment direction, Chapter 5.
(3) An example feedback loop for a coding agent.
After editing the code, run the tests; if they fail, use the names of the failing tests and the error messages as the basis for reflection, have the model explain the cause and revise; retry at most a fixed number of times, and if the tests still fail, return the current progress, the partial result and the reason for failure rather than retrying endlessly. This loop is triggered by concrete signals, cites specific evidence and has a retry cap, in line with the principles above.
Follow-up questions
Follow-up 1: Without external feedback, can LLMs improve their reasoning accuracy through self-correction?
On the whole, only to a limited extent. Huang et al. (2023) found that without oracle signals, models relying on self-correction alone often fail to improve their reasoning accuracy, and sometimes it even drops. There are two kinds of exception, however: when verification is easier than generation, for example checking whether an answer satisfies given constraints, self-checking is more likely to help; and reasoning models trained with RL have learned to verify and backtrack on their own within one long CoT (see the Inference, Evaluation & Deployment direction, Chapter 4). The full discussion of this debate is in the Self-Improving & RSI direction, Chapter 1.
Follow-up 2: Are unit tests generated by the model itself reliable?
Not entirely; the tests themselves should be treated as feedback that may be wrong. If the model misunderstands the requirements, the code and the tests it writes may share the same misunderstanding, so that they "confirm each other" while both being wrong; Reflexion filtered out only syntactically invalid tests and cannot catch semantic errors in the tests. Mitigations include preferring the tests or examples given with the problem, generating several sets of tests and cross-checking them (for example CodeT, Chen et al. 2022), and having the tests and the code produced by different models or different prompts.
Follow-up 3: When does reflection actually hurt?
When the feedback is noisy, or when reflection brings no new information. Noisy feedback leads the model to turn a correct answer into a wrong one; without new information, repeated reflection only consumes cost and may even make the answer oscillate between several versions; and forcing reflection at every step also increases the number of calls and the context length. Reflection should therefore be triggered by reliable, concrete signals and be capped.
Common mistakes
- Do not say more rounds of reflection are always better: Without new information, repeated reflection just spins in place and may even turn right answers into wrong ones.
- Do not take results obtained in an oracle setting as performance in real deployment: Using the gold answer to decide whether to retry amounts to leaking whether the answer is right.
- Do not say an LLM judge is as reliable as an environment signal: LLM judges are noisy and biased, and they are easily exploited under the optimization pressure of search.
- Do not attribute the effect of reflection to a well-written prompt: What sets the ceiling is the quality of the feedback.
1.5 How does search-based planning (Tree-of-Thoughts, MCTS, LATS) work? ★¶
One-sentence answer
Search-based planning treats reasoning or acting as search over a tree rather than following a single path: ToT has the LLM generate candidate intermediate steps and evaluate the intermediate states, then uses BFS or DFS to advance and backtrack in the tree; MCTS uses the UCT formula to balance exploration and exploitation and updates values with real outcomes obtained by simulating to the end; LATS puts MCTS into a real environment, combining ReAct's actions, LM value estimates and Reflexion's reflections. The price is heavy compute, and LATS also requires an environment that can be reverted.
I will address four aspects: how ToT works, how MCTS works, how LATS works, and when such methods apply.
(1) ToT: search over a tree made of "thoughts", whose core is using the LLM to evaluate intermediate states.
When an LLM generates text, it decides left to right one token at a time and never goes back to revise a decision once made; CoT just writes more intermediate steps along this road and in essence still follows a single path. The trouble is that in many tasks, once the first few steps are wrong, the rest cannot possibly be right: Yao et al. (2023) found on Game of 24 (combining four numbers with addition, subtraction, multiplication and division to make 24) that about 60% of CoT samples were already doomed after writing the very opening step. Self-consistency (CoT-SC) samples several reasoning chains independently and votes on the answer, but within each chain there is still no going back, and it only compares final answers without ever evaluating intermediate steps. Tree of Thoughts (ToT, Yao et al. 2023) therefore treats reasoning as search over a tree: each node is a state, i.e. the partial solution so far; each edge is a thought, i.e. a coherent intermediate step such as one equation or one writing plan. Applying it to a specific task requires answering four questions:
- How to split thoughts: a thought should be small enough that the LLM can generate diverse and promising candidates, yet large enough that the LLM can judge whether it is any good.
- How to generate candidates: when the thought space is large (for example a writing plan), sample several times independently from the same prompt; when it is constrained (for example one equation), have the model list several different candidates at once to avoid duplicates.
- How to evaluate states: this is the heart of ToT, where the LLM acts as the search heuristic. It can score each state on its own, for example judging whether the remaining numbers can "surely, maybe, or impossibly" make 24; or it can put a set of states side by side and vote for the most promising one.
- Which search algorithm to use: BFS keeps only the few highest-scoring states at each level, which suits tasks of limited depth where the first steps can already be judged; DFS follows the most promising state downward, and when the evaluator judges the current state hopeless, it prunes that subtree and backs up to the parent to try the next candidate, which suits deeper searches.
(2) MCTS: allocate more compute to more promising branches and update values with real terminal outcomes.
The BFS and DFS used by ToT are fairly rigid searches: BFS keeps a fixed number of states per level, and DFS stubbornly follows one path to the end. Monte Carlo Tree Search (MCTS) is more flexible; AlphaGo played Go with it plus a policy network and a value network. It repeats four steps: starting from the root, pick a child at each level by its UCT score until reaching a leaf that is not yet fully expanded, which is called selection; generate several new children under that leaf, i.e. possible next steps, which is called expansion; from a new node keep going down to a terminal state and obtain a real outcome (win or loss, right or wrong), which is called simulation; and finally pass this outcome back up the path to the root, updating the visit count and average value of every node along the way, which is called backpropagation. The UCT formula is:
Here \(V(s)\) is node \(s\)'s current average value, and the higher it is the more worth following; \(N(s)\) is the number of visits to \(s\), \(N(p)\) is the number of visits to its parent, and \(w\) is a weight controlling how much to explore. The fewer times a node has been visited, the larger the square-root term (the exploration term) and the more likely it is to be picked for a try, so the search does not lock onto one good-looking path too early. Compared with ToT, MCTS allocates compute adaptively, with good branches explored deeper again and again and bad ones dropped quickly; and its value estimates come from real terminal outcomes rather than mere heuristic guesses, so they become more accurate as the number of searches grows.
(3) LATS: put MCTS into a real environment and search over ReAct-style trajectories.
LATS (Language Agent Tree Search, Zhou et al. 2023) makes several key changes on top of MCTS: during expansion, the LLM samples several actions in the current state, which the environment actually executes, returning observations and producing several children; when evaluating a new node, it combines, with weights, the score the LLM gives the trajectory after seeing the environment's feedback and a self-consistency score (how often this action appears across samples); when simulating to a terminal state, it obtains objective feedback, such as whether the tests pass or the answer is correct; and if the terminal state is a failure, it has the LLM write a reflection analyzing what went wrong and stores it as context for later searches. LATS can therefore be understood as a combination of several methods: ReAct provides actions and observations, ToT provides the search framework of "evaluating states with the LM", Reflexion provides verbal reflections, and MCTS provides the balance between exploration and exploitation and the mechanism for updating values with real outcomes.
(4) Conditions for use: intermediate states can be evaluated, early mistakes are unrecoverable, and there is a revertible environment or a reliable evaluator.
The price of all these methods is compute: on Game of 24, ToT costs more per problem than 100 CoT samples, and LATS is far more expensive than ReAct and Reflexion. LATS also requires that the environment can be reverted to an earlier state, which is possible in a sandbox where pages can be reloaded and code rerun, but in the real world, once an email is sent, an order placed or a file deleted, there is no going back. They therefore suit tasks that meet a few conditions: intermediate states can be evaluated, a mistake in the first few steps is unrecoverable, and the model is decent at generating candidates but not confident of getting it right in one pass; for tasks that CoT already solves reliably, using them is just waste. Moreover, today's reasoning models have learned through RL to try, verify and back up on their own within one long CoT (see the Inference, Evaluation & Deployment direction, Chapter 4), so many reasoning tasks no longer need explicit ToT; but where a reliable external evaluator exists, explicit search remains very useful, for example coding in a sandbox that can be restarted freely, or generating high-quality training trajectories.
In summary: search-based planning trades extra compute for the ability to backtrack and compare several paths; its effectiveness depends on whether the evaluator is reliable, and its range of application depends on whether the environment can be reverted.
Comparing how the methods search:
| Method | Search | Uses environment feedback? | Evaluation | Backtracking? |
|---|---|---|---|---|
| CoT / ReAct | None (single path) | ReAct does | None | No |
| CoT-SC | Independent samples, then a vote | No | Majority vote on answers | No |
| ToT | BFS / DFS | No (reasoning "in the head") | LM self-evaluation | Yes |
| RAP | MCTS | Simulated by an LLM acting as a world model | LM-based rewards | Yes |
| Reflexion | Sequential retries of the whole task | Yes | External evaluator plus verbal reflection | Only by restarting the whole task |
| LATS | MCTS | Yes | LM value, self-consistency, environment reward and reflection | Yes, but needs a revertible environment |
Going deeper: ToT's formulas and experiments, Graph of Thoughts, LATS's value function, and the difficulties of applying MCTS to LLMs
(1) ToT's state, generation, evaluation and BFS formulas.
Here a state \(s\) is the input \(x\) plus the sequence of thoughts so far, \(z_1, \dots, z_i\); \(p_\theta\) is the LLM, with the superscript indicating which prompt is used; \(k\) is the number of candidates; \(V\) is the evaluation function, \(S\) is a set of states, \(s^*\) is the state chosen by the vote, and \(\mathbb{1}[\cdot]\) is the indicator function; \(S'_t\) is the set of all candidate states expanded at level \(t\), and \(b\) is the width kept at each level. In the paper, a thought in Game of 24 is one intermediate equation (three steps reach the answer), in creative writing it is a writing plan, and in crosswords it is the word filled into one clue; BFS is used for Game of 24 (3 steps) and creative writing (2 steps), and DFS for crosswords, backtracking as soon as the model judges that some remaining clue can no longer be filled.
(2) Results on Game of 24 (GPT-4).
| Method | Success rate |
|---|---|
| IO prompting | 7.3% |
| CoT | 4.0% |
| CoT-SC (k = 100) | 9.0% |
| CoT, best of 100 | 49% |
| ToT (b = 1) | 45% |
| ToT (b = 5) | 74% |
CoT-SC sampled 100 chains and still succeeded only 9% of the time, whereas ToT even with \(b = 1\) (keeping only the single best state per level, i.e. "greedy with evaluation") reaches 45%, which shows that what really matters is evaluating intermediate states. Widening the beam to 5 brings the success rate to 74%. On crosswords, ToT gets 60% of words right, CoT only 15.6%. In terms of cost, ToT costs about 0.74 USD per problem, more than the roughly 0.47 USD for 100 CoT samples; and each task needs its own thought split and its own prompts for generation and evaluation, so moving to a new task is not easy.
(3) Graph of Thoughts generalizes the tree to a graph.
Graph of Thoughts (GoT, Besta et al. 2023) generalizes the tree to an arbitrary directed graph: thoughts are nodes and edges are dependencies. A tree can only branch and never merge, while a graph adds two operations: aggregation, i.e. merging several thoughts into one, such as combining partial solutions into a complete one; and refinement, i.e. letting a thought point to itself to form a loop that improves it repeatedly. This makes divide-and-conquer possible, for example splitting a long list into chunks, sorting each, and merging them pairwise as in merge sort. The paper reports that on sorting, GoT improves quality by 62% over ToT while cutting cost by more than 31%. The catch is that the graph structure has to be designed by hand for each task, so it is more a programming framework for orchestrating LLM calls than a method that discovers solutions on its own.
(4) LATS's value function and results.
Here \(\mathrm{LM}(s)\) is the score the LLM gives the trajectory after seeing the environment's feedback, \(\mathrm{SC}(s)\) is the self-consistency score, i.e. how often this action appears across samples, where more often means the model is more confident, and \(\lambda\) weights the two. LATS with GPT-4 reaches 92.7% pass@1 on HumanEval, and with GPT-3.5 it obtains an average score of 75.9 on WebShop, comparable to methods that require finetuning.
(5) Applying MCTS to LLMs requires redefining each element and faces several difficulties.
The state is the prompt plus the reasoning or interaction trajectory so far; an action is the next reasoning step or tool call, with several candidates sampled from the LLM, which effectively provides the policy prior; the value can come from the LLM's self-evaluation, a trained reward model or a real outcome from the environment; and the state transition is simply appending the new step in pure reasoning, or actually taking a step in the environment for an agent. An early representative, RAP (Hao et al. 2023, Reasoning via Planning), has the LLM also act as a world model that predicts what the state becomes after an action, for example where every block sits after one is moved in Blocksworld, so that simulations can run in the LLM's "imagination" without a real environment. The difficulties are that the action space is unbounded natural language, so only a few candidates can be sampled each time and good actions may be missed; the LLM's value estimates are very noisy; every expansion and evaluation calls the LLM, which is expensive; and in a real environment, simulating to the end has real side effects, unless there is a sufficiently accurate world model or the environment can be reverted at any time.
Follow-up questions
Follow-up 1: Why does CoT-SC with 100 samples still fail on Game of 24 while ToT works?
Because most chains go wrong at the very beginning, and CoT-SC never evaluates intermediate steps. CoT-SC only votes on answers at the end, so if most chains choose the wrong equation at the outset, no amount of sampling or voting helps; ToT evaluates intermediate states at every step, pruning hopeless branches early and concentrating compute on promising ones. ToT with \(b = 1\) already reaches 45%, which shows that the key is evaluating intermediate states, not the number of samples.
Follow-up 2: Is ToT still useful now that we have reasoning models?
It is less useful on pure reasoning tasks, but still useful where a reliable external evaluator exists. Reasoning models have learned through RL to try, verify and back up on their own within one long CoT, which amounts to internalizing search into the model; yet internalized search still relies on the model's self-evaluation. If the task has a reliable external evaluator, such as unit tests, a formal verifier or an environment reward, explicit search can exploit that signal and obtain more reliable results than a single chain of reasoning, which is also why it is often used to generate training data.
Follow-up 3: What does LATS require of the environment, and why is it hard to use directly in the real world?
It requires that the environment can be reverted to any earlier state. LATS needs to restart from any node in the tree and try a different action, which is possible in environments such as HumanEval and WebShop, where code can be rerun and pages reloaded; but in the real world, an email that has been sent, an order that has been placed or a file that has been deleted cannot be undone. Its compute cost is also much higher than that of ReAct and Reflexion. It is therefore better suited to offline, resettable environments.
Follow-up 4: What advantages does MCTS have over ToT's BFS and DFS?
It allocates compute adaptively based on the results so far, and it estimates values from real outcomes rather than guesses. BFS keeps a fixed number of states per level, and DFS stubbornly follows one path to the end; MCTS instead uses UCT to balance exploitation and exploration, so good branches are explored deeper again and again while less-visited branches keep a chance of being tried; and what it backpropagates is the real outcome of simulating to the end, so its value estimates become more accurate as the number of searches grows.
Common mistakes
- Do not say ToT interacts with the environment: ToT searches "in its head", and its evaluator is the generator itself; searching in a real environment and evaluating with real feedback is what LATS does.
- Do not say search can always make up for the model's weaknesses: If the evaluator cannot spot errors, search actually amplifies the evaluator's bias (see 1.6).
- Do not say LATS can be used directly on real-world tasks: It requires an environment that can be reverted, and its compute cost is high.
- Do not say MCTS's values come only from heuristic scores: Standard MCTS obtains real outcomes by simulating to the end and backpropagates them along the path to update values.
1.6 What are the limits of LLM planning? ★¶
One-sentence answer
LLM planning has three main limits: errors accumulate on long-horizon tasks; on formal planning problems, ordinary LLMs are largely pattern-matching, and reasoning models improve greatly but still offer no guarantee of correctness; and self-evaluation is weak, while search amplifies the evaluator's bias. The mainstream mitigation is LLM-Modulo: the LLM proposes candidate plans, and reliable external verifiers check them and feed back.
I will address four aspects: the difficulty of long-horizon tasks, the evidence on planning ability, the weakness of self-evaluation, and the approaches to mitigation.
(1) Long-horizon tasks: success requires not only that each step be reliable enough, but even more the ability to detect and recover from errors.
If each step is independently right with probability \(p\), the chance of getting all \(n\) steps right is roughly \(p^n\), which falls exponentially with the number of steps; with 99% reliability per step, for example, only about 37% is left after 100 steps (the two biases of this model are discussed in 0.7 of Chapter 0). Beyond error compounding, long-horizon tasks have a few extra difficulties: the context keeps growing, causing context rot and goal drift; when a task fails, it is hard to tell which step caused it, i.e. credit assignment is hard; and many early decisions only show their consequences much later, which the model can hardly foresee when deciding. A METR study (Kwa et al. 2025) measures this ability as "how long a task takes a human expert, for tasks that agents can complete with 50% success", and finds that this length has been doubling roughly every 7 months: progress is fast, but reliably completing long tasks is still some way off.
(2) Evidence: the planning of ordinary LLMs relies largely on pattern matching, and reasoning models improve greatly but are still unreliable.
PlanBench (Valmeekam et al. 2022) tests this systematically with Blocksworld. Blocksworld is a classic planning problem: there are a few stacks of blocks on a table, and one has to rearrange them into a goal configuration through a sequence of "pick up, put down, stack" actions. A clever control is Mystery Blocksworld: the structure of the problem is exactly the same, but the names of actions and objects are replaced with meaningless words. If a model is really reasoning from the rules, renaming should make no difference; if it is mainly matching patterns seen in training data, renaming will break it. The results show that ordinary LLMs still get part of Blocksworld right but almost completely collapse on Mystery Blocksworld, which indicates that they are largely pattern-matching; the reasoning model o1-preview brought a huge leap, but its success rate still drops markedly on longer problems, and it sometimes confidently produces wrong plans (Valmeekam et al. 2024). Real-world planning is harder still: on TravelPlanner (Xie et al. 2024), GPT-4's final pass rate is only 0.6%.
(3) Self-evaluation: LLMs struggle to recognize their own errors, and search further amplifies this weakness.
Many methods in this chapter rely on the LLM for evaluation: ToT uses it to score states, Self-Refine to give feedback, LATS to estimate values, and agents to judge whether a task is done. If the model cannot tell its own errors apart, these methods lose much of their power. Worse, search is essentially optimization against the evaluator's scores, so the more and the harder one searches, the more likely one is to find answers that "the evaluator thinks are great but are actually wrong", the same principle as reward hacking in RL. A comparison on Blocksworld by Valmeekam et al. (2023) shows this directly: having GPT-4 check its own plans did clearly worse than having the reliable external validator VAL check them, mainly because the LLM verifier produced many false positives, often judging wrong plans to be correct, so that wrong plans were returned as final results.
(4) Mitigation: the core idea is to hand correctness to reliable external systems and leave creativity and common sense to the LLM.
- LLM-Modulo (Kambhampati et al. 2024): the authors' position is that "LLMs cannot plan on their own, but they can help planning". In this framework, the LLM proposes candidate plans, and a set of reliable external verifiers (model-based plan validators, constraint checkers, and humans when needed) check them and feed specific problems back to the LLM, looping "generate → test → critique" and outputting only plans that pass verification.
- Hand the formal parts to specialized tools: what can be written in PDDL goes to a classical planner (see LLM+P in 1.1), what can be written as code goes to code execution, and what can be written as constraints goes to a solver.
- Short plans, frequent revision: decompose hierarchically, plan only the next few steps at a time, and replan based on the results after execution, rather than planning a long sequence in one go; at the same time, record progress and constraints explicitly in to-do lists and notes files (see 0.6 in Chapter 0) to reduce goal drift and forgotten constraints.
- Training: training models directly with RL on long-horizon agent tasks (see Chapter 5) and test-time scaling in reasoning models (see the Inference, Evaluation & Deployment direction, Chapter 4) keep improving the model's own planning ability.
- Human checkpoints: have a person confirm the plan before critical or irreversible steps.
In summary: LLMs are good at proposing plausible plans but not at guaranteeing that a plan is correct, so reliable planning systems usually let the LLM generate and let reliable verifiers guard the gate.
Zero-shot results on PlanBench:
| Model | Blocksworld | Mystery Blocksworld |
|---|---|---|
| GPT-4 | 34.6% | 0.16% |
| LLaMA 3.1 405B (best ordinary LLM tested) | 62.6% | 0.8% |
| o1-preview | 97.8% | 52.8% |
Going deeper: reasoning models on planning, TravelPlanner, the effect of external verifiers, and METR's latest data
(1) The improvement and the limits of reasoning models.
o1-preview is nearly perfect on Blocksworld and reaches 52.8% on Mystery Blocksworld (Valmeekam et al. 2024). On longer problems needing 20 to 40 steps, however, its success rate drops to about 24%; it offers no guarantee of correctness and sometimes confidently produces wrong plans; and its reasoning is far more expensive.
(2) TravelPlanner tests multi-constraint planning in the real world.
It asks an agent to use tools to search flights, hotels and restaurants across about 4 million records and build a travel plan that simultaneously satisfies multiple constraints such as budget, timing and preferences. GPT-4's final pass rate is only 0.6%, and the main reasons for failure are being unable to stay focused on the task, choosing the wrong tools, and being unable to keep track of several constraints at once.
(3) Specific feedback from external verifiers greatly raises the correctness of plans.
One example cited in the LLM-Modulo paper: on Blocksworld, with the external validator VAL checking the LLM's plans and feeding back the specific errors, accuracy rises to 82% within at most 15 rounds (Valmeekam et al. 2023). By contrast, when the LLM checks its own plans, the improvement is clearly smaller, and wrong plans are returned as correct results. This shows that what helps is not "multiple rounds of iteration" in itself, but the reliability of the feedback.
(4) METR updated its time-horizon estimates in early 2026.
In early 2026 METR expanded its task suite and re-estimated the trend (METR 2026): over the full period from 2019 to 2025, the doubling time is still about 7 months; but looking only at models from 2024 onward, the doubling time shortens to about 3 months, which suggests that progress is accelerating. This metric, however, measures task length at a 50% success rate, which is still clearly some distance from completing long tasks "reliably".
Follow-up questions
Follow-up 1: What is Mystery Blocksworld, and what does it test?
It tests whether a model is reasoning from the rules or matching patterns it has seen. Mystery Blocksworld has exactly the same problem structure as Blocksworld, except that the names of actions and objects are replaced with meaningless words, while the rules are still written out in full in the prompt. A system that truly reasons from the rules should perform similarly on both; yet ordinary LLMs get roughly 30% to 60% right on Blocksworld and less than 1% on Mystery Blocksworld, which shows that they rely mainly on familiar patterns about blocks from their training data rather than on reasoning about the rules.
Follow-up 2: Why does search amplify the bias of self-evaluation?
Because search is optimization against the evaluator's scores. The more candidates and the deeper the search, the more likely it is that some wrong answer happens to receive a high score from the evaluator, and the goal of search is precisely to pick the highest-scoring candidate, so these "evaluator errors" are systematically selected. This is the same principle as over-optimizing a reward model in RLHF, which leads to reward hacking (see the LLM Training Pipeline direction, Chapter 6). When the evaluator is unreliable, searching harder can therefore make the results worse.
Follow-up 3: Have reasoning models solved the problem of LLM planning?
Not completely. Reasoning models have made huge progress on both Blocksworld and Mystery Blocksworld, which shows that long reasoning trained with RL does improve planning ability; however, their success rate still drops markedly on longer problems, they offer no guarantee of correctness and sometimes confidently produce wrong plans, and their reasoning cost is much higher. In settings where correctness must be guaranteed, reasoning models should therefore still be paired with external verifiers.
Follow-up 4: How does LLM-Modulo differ from Reflexion?
Both are "generate → feedback → revise" loops; they differ in the reliability of the feedback and the guarantee on the output. LLM-Modulo insists that the feedback come from reliable external verifiers and outputs only plans that pass verification, so its results carry a guarantee of correctness; Reflexion's evaluator can be a heuristic rule or an LLM judge, and it turns feedback into verbal lessons for the next attempt, but it does not guarantee that the final output is correct.
Common mistakes
- Do not say LLMs cannot plan at all: They can propose useful candidate plans and work well together with verifiers in frameworks such as LLM-Modulo; reasoning models have also made great progress on formal planning.
- Do not say reasoning models have solved planning: Their success rate still drops markedly on longer problems, and there is no guarantee of correctness.
- Do not treat a plan that passed the LLM's own verification as reliable: LLM verifiers produce many false positives.
- Do not explain the difficulty of long-horizon tasks with \(p^n\) alone: Context rot, hard credit assignment and delayed consequences matter just as much, and the ability to correct errors changes the estimate.