Jayden Wang

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.

Role
Independent lead, advised by Dr. Li Ning (Stellaris AI)
Authors
Zixuan (Jayden) Wang, Ziming Dai, Yu Wu, Li Ning
My contribution
I designed SAER and its scoring logic, built the evaluation harness, and ran the cross-architecture study. Ziming Dai built the part where the bots work together. Dr. Li Ning advised on methodology.
Built with
JavaScript / Node.js, OpenAI SDK (multi-provider), Mineflayer, Statistics (McNemar, Bonferroni)
Links
  • +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
Diagram of the SAER system. Planning phase: intent classification, SAER retrieval of three examples, the planning LLM, then PlanValidator. Execution phase: TaskManager runs each step in Minecraft through the Mineflayer API.
Fig 1Redrawn from Figure 1 of the paper: SAER system pipeline. Planning phase retrieves structurally relevant demonstrations via SAER, generates a step sequence with the planning LLM, and validates it with PlanValidator. Execution phase realises each step as Mineflayer API calls, with a three-layer error-recovery mechanism.
Fig 2A 35-second overview, no sound. The game footage is a real recording. The 60-task numbers score written plans with a validator, not runs in the game. Not an official Minecraft product; not approved by or associated with Mojang or Microsoft.

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.

Minecraft screenshot of the agent, Max, standing by a crafting table. Its chat line reads: THOUGHT: I need a pickaxe to mine stone. Let’s craft a wooden pickaxe first. COMMAND: craftRecipe wooden_pickaxe, 1.
Fig 3The agent, Max, in the game. Its chat line shows the step it chose and the command it sends.

I spent six months finding out why. The answer surprised me, and so did the second half of it.

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.

Diagram: a crafting dependency chain running oak log to planks to crafting table to wooden pickaxe to iron, where one missing prerequisite blocks the whole plan
Fig 4A crafting dependency chain, the kind of multi-step prerequisite reasoning where LLMs silently fail.

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:

Diagram of SAER's four weighted scoring dimensions, showing the default weights and the cold-start weights used in the benchmark
Fig 5The four dimensions, with the default weights and the cold-start weights the benchmark actually ran. Only the mining-tier dimension reads the agent's live state, and cold-start sets it to zero.
DimensionDefaultCold-start (benchmark)What it captures
Ingredient overlap0.400.50how much this example’s recipe shares materials with the goal
Keyword overlap0.300.35plain token overlap between the request and the example
Mining-tier gap0.200.00whether the pickaxe the agent has can mine what this example needs
Level proximity0.100.15is 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

Grouped bar chart of task completion rate without retrieval versus with SAER, for seven models
Fig 6Task completion rate, no retrieval (grey) vs SAER (black), by model. For the two right-hand models the grey bars are comparable to the five on the left; the hatched ones are not, having run on a later warm-start pipeline.
ModelNo retrievalWith SAERChange
Qwen3-8B23%43%+20pp (p = 0.0075, nominal only)
GPT-4o38%68%+30pp (p < 0.001)
Claude Sonnet 4.542%85%+43pp (p < 0.001)
Qwen2.5-Max32%82%+50pp (p < 0.001)
DeepSeek-V355%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:

ConditionTasks passed (/60)Gain
No retrieval19—
Three examples at random38+31pp
BM25 (lexical baseline)42+38pp
SAER49+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.