AI Research, 2025
Most planning failures aren't a reasoning problem. They're a missing-context problem.
Accepted at the NeurIPS 2026 NEmo Workshop. In review at AAAI-27.
A retrieval method (SAER) aimed at the reason large language models fail on multi-step tasks, and the ablation that showed most of the gain comes from somewhere other than where I expected.
- +50 percentage points over no examples, the largest gain with my method
- 7 AI models tested, from five companies
- 60 tasks, each run three times per model
Overview
Large language models are good at sounding like they can plan a multi-step task. Give one a goal, such as “craft an iron pickaxe”, and it will narrate a plausible sequence of steps. The trouble starts when you run it: around step three or four it asks for an item it never made, and the plan collapses.
I spent six months finding out why. The answer surprised me, and so did the second half of it.
The problem: a missing link
A crafting task is a dependency chain. You can’t make planks until you’ve chopped a log, you can’t make a crafting table until you have planks, and so on, all the way to iron. Fig 4 traces one such chain.
The paper sorts tasks by how deep that chain runs. L1 tasks need only basic tools. L2 tasks need the whole wooden, stone and iron pickaxe chain: a goal that requires a tool that requires another tool first. That is where the models fail. With no retrieved examples, all five models of the primary study land at 10–30% on L2 while clearing 45–95% on L1. GPT-4o shows it most clearly: 85% of L1 tasks and 15% of L2, with the same model and the same prompt. The gap holds from 8B to 671B parameters and across four model families, which suggests it is structural.
The same model reasons fine on the shorter chain, so the gap doesn’t look like a reasoning deficit. It looks like the prerequisite isn’t in the model’s context at the moment it has to choose its next action. The paper calls this a procedural-context bottleneck: planning fails at the retrieval step that feeds the reasoning, before the reasoning itself.
Two open-weight models sit outside this pattern, and I want to be exact about how much that weakens the claim. A Gemma4 pair scores 60–65% on L2 with no retrieval, measured under the same cold-start protocol as the five above, so the gap is not universal. Their SAER condition is not comparable: it ran on a later warm-start pipeline, so the pair is reported as a replication panel and left out of the significance tests. In short, the bottleneck holds for every model in the primary study, and two open-weight models clear it without help.
What I built: SAER
SAER (State-Aware Example Retrieval) chooses which worked examples go into the prompt by what the task requires, instead of returning whatever is most similar in wording. It scores each candidate example on four dimensions, with two weight settings:
| Dimension | Default | Cold-start (benchmark) | What it captures |
|---|---|---|---|
| Ingredient overlap | 0.40 | 0.50 | how much this example’s recipe shares materials with the goal |
| Keyword overlap | 0.30 | 0.35 | plain token overlap between the request and the example |
| Mining-tier gap | 0.20 | 0.00 | whether the pickaxe the agent has can mine what this example needs |
| Level proximity | 0.10 | 0.15 | is this example at a comparable difficulty |
The method’s name suggests the opposite, so I’ll say it plainly: only one of the four dimensions reads the agent’s live state, and the benchmark runs it at zero weight. Every task in the evaluation starts from an empty inventory, so the mining-tier gap has nothing to tell apart. It would matter only when an agent replans in the middle of a task, which this study does not test. The reported gains come from the three dimensions that ignore state, mostly ingredient overlap, which is read from the game’s recipe graph.
The evaluation harness
To tell a real effect from noise, I built an evaluation of 60 held-out tasks × 7 models × 3 seeds. A task counts as passed only if it passes on most of its seeds, and every model runs both with retrieval and without. The seven are the five primary models plus the two-model replication panel above. Three more models from other families (Llama-3.1-8B, Ministral-8B, Gemma-3-12B) run in the supplement, to check whether the small-model shortfall comes from size or from being a Qwen model.
Significance is tested with an exact-binomial McNemar test on paired outcomes: the same model attempting the same task with and without SAER. The p-values are Bonferroni-corrected across a 13-test family that was fixed before any result was read, so no comparison could be added or dropped after I saw which way it went.
Results
| Model | No retrieval | With SAER | Change |
|---|---|---|---|
| Qwen3-8B | 23% | 43% | +20pp (p = 0.0075, nominal only) |
| GPT-4o | 38% | 68% | +30pp (p < 0.001) |
| Claude Sonnet 4.5 | 42% | 85% | +43pp (p < 0.001) |
| Qwen2.5-Max | 32% | 82% | +50pp (p < 0.001) |
| DeepSeek-V3 | 55% | 87% | +32pp (p < 0.001) |
| Gemma4-26B † | 73% | 80% | +7pp (n.s.) |
| Gemma4-31B † | 77% | 85% | +8pp (n.s.) |
† Replication panel. The no-retrieval column uses the same cold-start protocol as the five above; the SAER column ran on a later warm-start pipeline, so the change and its p-value are not comparable and are excluded from the Bonferroni family. Both models already clear the L2 wall unaided, leaving little for retrieval to recover.
The finding I didn’t expect
Four of the five primary models improve significantly after the correction; the 8B model’s gain clears only the uncorrected bar. The surprise was where the improvement comes from, and it is mostly not the part I designed.
I ran a four-condition ablation on Qwen2.5-Max to separate two things I had been treating as one: whether a worked example is present at all (existence), and whether my scorer picks a better example than a plain lexical baseline (relevance). The split is lopsided:
| Condition | Tasks passed (/60) | Gain |
|---|---|---|
| No retrieval | 19 | — |
| Three examples at random | 38 | +31pp |
| BM25 (lexical baseline) | 42 | +38pp |
| SAER | 49 | +50pp |
The largest step is the first one. Three examples drawn at random from the right task category, with no scoring at all, earn 31 of the eventual 50 points, and ranking them well adds the rest. SAER beats BM25 on four of the five models and scores one task lower on the fifth. On Qwen2.5-Max the comparison is 7 tasks that only SAER solved against 0 that only BM25 solved, p = 0.0156, which passes the uncorrected threshold but not the corrected one. The paper reports that as a consistent increment that is too small to prove on its own, not as a win. One more caveat: the random condition uses SAER’s JSON format, so part of that first jump may come from seeing the format rather than from the knowledge in the examples.
So the bottleneck is real, and most of the fix is having an example at all. My scorer is what demonstrated the diagnosis, and it adds a real increment on top, but most of the gain is elsewhere. Writing it up that way went against my own interest.
Gain size also does not track model size. DeepSeek-V3, at 671B parameters, gains +32pp, less than Qwen2.5-Max’s +50pp. The smallest model gains least, and the three supplementary models confirm a real ceiling below the frontier models, but the order in between does not follow parameter count. The paper makes no claim that capacity drives the gain, and neither do I.
Why this matters beyond Minecraft
Minecraft is a sandbox, but the failure is general. Any agent that plans over multiple steps, whether a coding agent, a research assistant or a robot, can only act on what is in its context. The practical lesson is cheaper than the one I set out to prove: before tuning how you rank retrieved context, check whether the relevant information reaches the model at all. Here that first check was worth 31 of the 50 points, and it costs nothing to run.
Skills & tools
- Language
- JavaScript / Node.js
- LLM access
- Multi-provider LLM clients over the OpenAI SDK
- Minecraft bot
- Mineflayer
- Method
- Experimental design, statistics (McNemar, Bonferroni, ablation)
The paper is accepted at the NeurIPS 2026 NEmo Workshop and in review at AAAI-27; the repository will be linked here once it’s public.