Robots that use a large language model (LLM) as a planner increasingly run in a loop. The LLM proposes the next action, such as "place the mug at (0.4, 0.1) in the basket" or "walk to the kitchen counter." A classical motion planner then tries to execute it, and when that fails, a sentence describing the failure is appended to the prompt. This loop is what makes recent systems work. It is also why they degrade on long tasks. Every failed attempt adds text, so the prompt grows with the number of mistakes rather than with the size of the world. The model then repeats failures it was already told about, invents clearances that do not exist, or keeps trusting a failure message that became false when an obstacle was moved.
We propose to store each motion failure as a geometric constraint attached to the scene graph, which is a structured map of rooms, furniture, and objects, instead of storing it as conversation history. A collision becomes a keep-out region on the object that was hit. An unreachable pose becomes a reachability hole on the region the robot stood in. The planner only ever sees the current graph together with the constraints on the part of it under consideration. Prompt length is then bounded by the relevant scene, not by the number of attempts. Constraints are deduplicated and merged as they accumulate, and they are deleted when the objects they refer to move. Our bet is that most late-horizon hallucination in these loops is caused by a long, stale, unstructured record of past failures. Turning that record into compact, current state should remove much of the hallucination without any change to the model.
Core Claim
The claim is specific and testable. In closed-loop LLM task and motion planning, success should decline as the number of accumulated failures grows when failures are kept as verbalized history, and this decline is largely avoidable. A representation that converts each failure into a typed, spatially scoped, invalidatable constraint on scene-graph nodes should do three things. It should keep per-call prompt size roughly constant in the number of attempts. It should cut the rate at which the LLM proposes actions that violate already-observed failures. It should also remove a class of errors no history-based system can avoid, namely acting on failure messages that the world has since made false. The key ingredient is not compression for its own sake. It is that failure knowledge lives where the geometry lives, with an explicit lifetime tied to that geometry.
Where This Sits Relative to Prior Work
Three systems motivate the problem by relying on textual failure feedback.
LLM³ has an LLM propose continuous placements, verifies them with a bidirectional sampling-based motion planner (BiRRT) in PyBullet, and appends categorized failures ("collision with object" versus "unreachable / no inverse-kinematics solution") to the prompt. Its own analysis notes that the backtracking variant fixates on local parameter tweaks and that the growing failure history risks overflow.
SayPlan keeps large 3D scene graphs tractable by collapsing them and letting the LLM expand nodes on demand. It cuts tokens by up to 82.1%, but returns simulator feedback as text and assumes a static pre-built graph.
VeriGraph checks symbolic constraints on a scene graph and emits strings such as "WRONG: STILL HAS CHILDREN." It works on scenes of 3 to 7 objects and never touches continuous geometry.
We reuse SayPlan's expand/collapse interface and LLM³'s failure categories. Where all three append failure text to the dialogue, we turn failures into persistent graph attributes.
Two further systems are close in spirit but differ in what they store. CoSPlan tracks the scene graph incrementally instead of regenerating full histories, and gains about 5.2% on multiple-choice sequential reasoning. It records what changed in the world, not what the robot learned it cannot do, and it never connects to a motion planner. Inter-LLM interleaves LLM planning with A* navigation and inverse kinematics. It estimates action costs from verbalized episodic memory, and it is the strongest published system on large multi-object collection. Its reliance on that memory text is exactly the scaling liability we target.
The constraining evidence comes from graph reasoning. GraphLLM shows that reasoning accuracy degrades with graph size even inside nominal context limits. The <SOG_k> paper documents "structural hallucination," meaning fabricated connections when structure is flattened into long text. Ziwen Li et al. report that cumulative subtask summaries eventually saturate context too. That last result is a warning that LLM-written summaries are not a free fix.
We deliberately do not adopt learned graph tokens or soft prompts in the style of GraphPrompter. Those approaches discard exactly the metric detail, such as boxes and clearances, that motion planning needs. They have also been shown to misalign with the discrete outputs an executable plan requires. Our representation stays in readable text but is bounded and structured.
Research Program
The system has four parts.
The first part is a translator that turns each motion-planner or inverse-kinematics failure into a constraint record.
- A collision during placement of object $a$ at pose $p$ against object $b$ becomes a keep-out box attached to node $b$. The box is the overlap of $a$'s swept bounding volume with $b$.
- A failure to find an inverse-kinematics solution from base region $r$ toward target $t$ becomes a reachability hole attached to $r$, recording the direction and distance band that failed.
- A support or stacking violation, detected as in VeriGraph, becomes a precondition edge.
Each record carries the identifiers and poses of the objects it depends on.
The second part is a ledger manager. It merges records whose regions overlap, so that one larger keep-out box replaces many small ones. When the scene graph reports that a referenced object has moved, it deletes the records that depended on it. The ledger's size is therefore bounded by the number of distinct object–region pairs that have failed, not by the number of attempts.
The third part is the prompt interface. Following SayPlan's expand/collapse calls, the LLM sees only the expanded subgraph and the constraints attached to its nodes, rendered as short typed lines. A deterministic pre-check rejects any proposal that falls inside an active keep-out box or reachability hole before the motion planner is called.
The fourth part is an instrumentation layer. It logs, for every LLM call:
- prompt tokens;
- whether the proposal repeats a known failure;
- whether the LLM's stated rationale asserts a clearance or reachability that the ledger or planner contradicts (our operational definition of a physical hallucination);
- whether the proposal avoids a region whose constraint has already expired (stale avoidance).
The analysis question is the shape of each curve as attempts accumulate: success, repeat-failure rate, hallucinated-clearance rate, and tokens per call, each plotted against attempt count and against object count. History-based prompting should show rising error with prompt length. The ledger should show roughly flat curves until the scene itself grows.
We will use one frozen frontier chat model and one open 7–8B instruction model throughout, with no fine-tuning. Any gain must therefore come from the representation.
Baselines
The naive reference point is LLM³'s loop with full verbalized failure history appended to every prompt, run unchanged on its PyBullet box-packing settings. In the "Hard" setting, LLM³ reports 60% success for backtracking and 70% for replanning from scratch with feedback. It also reports 7.9 LLM iterations and 53.2 motion-planner calls on average, against 109.6 iterations and 663.1 calls for a random sampler. A do-nothing variant without feedback, at 40% and 50% in that paper, anchors the bottom. We will reimplement both and confirm we reproduce these numbers within a few points before comparing anything. Beating this baseline means higher Hard success at equal or fewer planner calls. More importantly, it means the gap should widen in harder variants we create by adding objects and shrinking baskets, where attempt counts grow.
The strongest existing method for long-horizon, multi-room settings is Inter-LLM. In the file, Inter-LLM is evaluated on its own 9-room, 26-furniture, 30-object household scene graph, built in ProcTHOR-style houses. There it reports 30% success on the final command at 9 objects, where SayPlan drops to 0% and MoMa-LLM to 4%, and an overall mission improvement of 30% over those baselines. We will run Inter-LLM and our system on the same scene graphs, with the same LLM, the same A* and inverse-kinematics back end, and the same cap on LLM calls and planner calls per episode. We will add our ledger to Inter-LLM's own pipeline as well as running it standalone. Beating it means exceeding 30% at 9 objects and holding success better as object count rises to 12 and 15. SayPlan is run on the same graphs as a second reference; its 0% at 9 objects comes from the Inter-LLM paper.
The ablation that isolates the key ingredient keeps the ledger as a hidden rejection filter but never shows it to the LLM. The LLM sees only "rejected, try again." A second ablation keeps the ledger visible but disables invalidation. These two arms separate three possible sources of gain: the deterministic filter, the LLM's ability to reason about why something failed, and the lifetime mechanism.
Why not just…?
Why not just keep the last few failures and truncate the rest? A sliding window bounds context, but it throws away exactly the failures most likely to recur. A collision from attempt 3 with the same shelf is forgotten by attempt 20. The prediction is that a last-$k$ window will show a repeat-failure rate rising with attempt count. The ledger should not, because it keeps one merged record per failing object–region pair. We will run windows of 1, 3, and 10 so that the best truncation setting is what we compare against.
Why not have the LLM summarize its failure history? This is the most serious threat, because a good summary could approximate the ledger. The file gives two reasons for doubt. Ziwen Li et al. find that cumulative summaries still saturate context over many turns. Summaries are also produced by the same model whose physical judgments are in question, so they can drop or distort geometry, and they carry no rule for expiring stale facts. We will test a summarize-every-$n$-steps baseline under the same token budget. If it matches the ledger on the static settings, we will say so. The contribution then narrows to the dynamic-scene condition below, where summaries have no way to know a fact went stale.
Why not just use a million-token model and keep everything? Long-context models remove the hard token limit but not the degradation. GraphLLM shows accuracy falling with graph size well within limits, and the <SOG_k> work attributes this to attention spread over flattened structure. We found no reported result on Lacuna for long-context LLMs on LLM³ box packing or Inter-LLM collection. We will run one such model with full history and full scene serialization, and report success against prompt length.
Why not drop the LLM from the failure loop and give the constraints only to a classical sampler? If failures are geometric constraints, a classical task-and-motion planner could absorb them directly. But LLM³'s random-sampler numbers above show how much search the LLM's proposals save. Our filter-only ablation also tests this directly: if hiding the ledger from the LLM costs nothing, the LLM's reading of constraints is irrelevant and we will report that.
Proposed Experiments and Decisive Checks
We will run three settings:
- LLM³'s PyBullet box packing, Settings 1 and 2, plus harder variants with more objects and smaller baskets;
- Inter-LLM's multi-room collection graphs at 3, 6, 9, 12, and 15 objects;
- SayPlan's office (37 rooms, 151 objects) and home (28 rooms, 112 objects) scene graphs for search-and-fetch tasks.
The metrics are success, motion-planner calls, LLM calls, prompt tokens per call, repeat-failure rate, hallucinated-clearance rate, and stale-avoidance rate. We will use at least 50 seeds per cell and report confidence intervals.
The first decisive check is the horizon curve. We bin episodes by number of accumulated failures. The full-history, windowed, and summary baselines should each lose success as failures accumulate. The ledger's success should stay roughly flat while its prompt size stays bounded. If the ledger's curve degrades at the same slope, the claim is wrong.
The second check is a dynamic-scene test that history cannot pass by design. Partway through an episode, a scripted human moves the obstacle that caused earlier collisions. We then measure how often each system wrongly keeps avoiding the now-free placement, and how often it attempts placements made infeasible by the move. The ledger's invalidation should drive both rates toward zero. Every history-based variant, including the summary and long-context baselines, should keep acting on outdated failure text.
The third check reads the two ablations together. The visible-ledger arm should beat the filter-only arm on repeat-failure rate and on success in tasks where recovery requires a semantically different plan, such as relocating a blocker first. If it does not, the result reduces to "deterministic rejection helps," and we will present it as that.
References
- LLM: Large Language Model-based Task and Motion Planning with Motion Failure Reasoning
- SayPlan: Grounding Large Language Models using 3D Scene Graphs for Scalable Robot Task Planning
- VeriGraph: Scene Graphs for Execution Verifiable Robot Planning
- CoSPlan: Corrective Sequential Planning via Scene Graph Incremental Updates
- Interleaved LLM and Motion Planning for Generalized Multi-Object Collection in Large Scene Graphs
- GraphLLM: Boosting Graph Reasoning Ability of Large Language Model
- <SOG_k>: One LLM Token for Explicit Graph Structural Understanding
- GraPPI: A Retrieve-Divide-Solve GraphRAG Framework for Large-scale Protein-protein Interaction Exploration
- Can we Soft Prompt LLMs for Graph Learning Tasks?