Robots that clear a cluttered table usually pick one object, carry it to a bin, come back, and repeat. Most of the cycle is spent in transit. A recent line of work shows that a robot can clear faster if it first spends a little time pushing, pulling, or stacking objects into tight groups and then carries several at once. The catch is that whether this pays off depends on the situation: the object shapes, how scattered they are, and especially how far away the bin is. Today those decisions are made by fixed, hand-tuned rules. Separately, large language models (LLMs) have become good at improving their own programs when they can run the code and read what went wrong. So far, though, robotics versions of that loop only check whether a task succeeded.
We propose to have an LLM write and repeatedly revise the planner program that decides when to consolidate, which grouping move to use, and in what order. The feedback it gets is not "success or failure" but a time ledger. For each simulated run, the ledger records how many seconds went to pushing, to carrying, and to recovering from failed grasps, and attributes those seconds to the branches of the code that caused them. This is the robotic counterpart of the profiler-guided optimization that has worked well for software. The question is whether this feedback lets the model find decision structures for different clearing regimes that a hand-designed planner with well-tuned parameters cannot reach.
Core Claim
The multi-object retrieval literature has established that consolidation is necessary. It has also established that consolidation only pays off when it is selective. Push-MOG shows that grasping several objects at once without first pushing them together does slightly worse than single picks (0.986 versus 0.993 objects per trip). Its fork-push consolidation raises this to 1.339. It also notes that when the bin is close, the time spent pushing outweighs the transport saved. The Busboy Problem reports 1.8x and 1.6x objects-per-trip gains for stacking and pulling policies over a single-pick baseline, and finds that consolidation overhead becomes negligible as receptacle distance grows. Both papers encode the consolidate-or-not decision in fixed heuristics.
The right objective is time per cleared object. Let $N$ be the number of objects cleared, $t_{loc}$ the total time spent on local pushing, pulling, and stacking, $K$ the number of trips to the bin, $\tau(d)$ the round-trip time to a bin at distance $d$, and $t_{fail}$ the time lost to failed grasps and recovery. Then
$$ C = \frac{t_{loc} + K\,\tau(d) + t_{fail}}{N}. $$
Merging a group of $k$ objects is worth doing only when its added local and failure cost is below $(k-1)\,\tau(d)$, the transit time it saves. Objects per trip measures $N/K$ alone and therefore ignores the first and last terms. Our claim is that an LLM refining planner code against a per-branch breakdown of $C$ will find planners that lower $C$ across a range of bin distances and object mixes. We further claim that the per-branch breakdown, rather than iteration alone or the scalar score alone, is what makes this work.
This differs from the closest existing work. RobotGPT runs a generate–evaluate–correct loop in PyBullet with up to three rounds of corrective hints. It raises success from 38.5% zero-shot to 91.5%, but its feedback is pass/fail and its tasks are single-object pick-and-place. Code-as-Symbolic-Planner refines symbolic solver code with checker and steering models, but it abstracts away contact physics. GenCHiP shows that giving an LLM a force-aware action interface matters a great deal for contact-rich tasks, but it generates code without a multi-round refinement loop and works on one object at a time. LearnAct and Memory Transfer Planning refine or adapt action code from textual errors, again for single-object or symbolic tasks. None of these optimizes a physical throughput objective. None feeds the model a time-attributed trace.
Research Program
Interface. The LLM does not write low-level contact control. That is the hard, physics-heavy part, and prior work already supplies good primitives for it. The model calls these primitives through an interface:
- a fork-push primitive and a gripper-width-constrained clustering routine, from Push-MOG;
- the analytic multi-object grasp feasibility filters (the multi-object diameter function and the intersection-area condition), from Multi-object Grasping in the Plane;
- stack-grasp and pull-grasp primitives, from The Busboy Problem;
- a plain single-object pick.
The program it writes takes an observed scene and the bin distance $d$ as inputs and returns a sequence of primitive calls. This means the model is searching over decision structure: which groups to form, the order of operations, when to stop consolidating, how to react when a push scatters a neighbor, and how all of this depends on $d$.
Instrumented simulator. We will build a MuJoCo environment, following the planar push-grasp setup of Multi-object Grasping in the Plane, with two scene families:
- simulated replicas of the 34-prism Push-MOG object set;
- the three Busboy tableware tiers: homogeneous, mixed and spread, and mixed with pre-stacked items.
Every primitive call is wrapped so that its wall-clock cost, its outcome, and any disturbance it causes to objects outside the target group are logged against the source line and branch that issued it. The ledger aggregates across a batch of scenes into a ranked list of time sinks. Examples would be "branch X consolidated groups of size 2 at $d$ = 0.4 m and lost 11 s on average" or "pushes issued by function Y displaced already-clustered objects in 30% of calls." This plays the role that call-graph profiling plays in POLO, which ranks bottleneck functions before asking the model to rewrite them.
Refinement loop. The loop alternates a proposer model with an acceptance test. A proposed edit is kept only if it lowers mean $C$ on a separate validation set of scenes by more than the run-to-run noise of the simulator. We estimate that noise in advance with repeated seeds. Otherwise the loop rolls back to the last accepted program, following the rollback mechanism of Fang et al.. Three known failure modes shape this design:
- Gains from compiler-style feedback plateau after a few rounds and then oscillate (Yan et al.).
- Repeated refinement erodes previously correct logic (SlopCodeBench).
- Noisy or misspecified objectives get amplified (Srivastava et al.).
To guard against objective hacking, $C$ counts dropped or off-table objects as uncleared, and they carry a fixed time penalty. Every regime also has a hard test set that the loop never sees.
Baselines
Do-nothing references. The naive reference is single-object picking with the same simulated arm, timing model, and scenes. This is the setting in which Push-MOG reported 0.993 objects per trip on hardware and Multi-object Grasping in the Plane reported 212 picks per hour. A second fixed reference is our reimplementation of the published hand-designed planners: Push-MOG for the polygon scenes and the Busboy stack and pull policies for tableware, run with their published settings. These are the strongest existing methods. The best reported figures are 1.339 objects per trip for Push-MOG on its physical UR5 testbed, 1.8x objects per trip over random single picks for the Busboy stack policy, and 340 versus 212 picks per hour for analytic multi-object push-grasping. Our results are in simulation and will not be directly comparable to those hardware numbers. We will therefore report our reimplementations' objects per trip next to the published values as a sanity check on simulator fidelity. For the main metric, time per cleared object as a function of bin distance, no reported result was found on Lacuna for any of these methods. Busboy describes the distance trend only qualitatively. We will measure it ourselves for every baseline.
Tuned heuristic. This is the competitor we consider most dangerous. We take the Push-MOG and Busboy planners and expose every tunable knob: clustering distance threshold, fork width, minimum group size worth consolidating, the primitive preference order, and a consolidation cutoff written as a linear function of $d$. We then tune these knobs with Bayesian optimization. It receives exactly the same number of simulated episodes as the LLM loop, and the same validation and test splits.
Ablations of the key ingredient. Three variants use the same proposer model, the same interface, and the same episode budget, so that only the feedback differs:
- Pass/fail feedback: the model sees only whether the table was cleared, as in RobotGPT's corrector.
- Scalar feedback: the model sees only $C$ and objects per trip.
- Evolutionary search: a population-based search over planner programs with selection on $C$ but no traces, in the spirit of A₂DEPT.
What counts as winning. The proposal beats the field only if profiling-guided refinement achieves lower test-set $C$ than the tuned heuristic in at least the regimes where the published heuristics' structural assumptions bind: close bins, pre-stacked scenes, and mixed shapes. It must also beat the scalar-feedback ablation by more than seed noise. Beating only the untuned published planners would not count.
Why not just…?
Why not just tune the parameters of Push-MOG and Busboy instead of writing new code? This is a real threat. If the published planners already have the right structure, Bayesian optimization over their knobs will match us at a fraction of the cost, and we will report that outcome. We expect structure to matter in two places. The first is pre-stacked scenes, where the planner must decide whether to unstack, add to, or carry an existing stack; the Busboy rules do not branch on this. The second is scenes where consolidation disturbs neighboring clusters, which Push-MOG's open-loop sweeps ignore. The tuned-heuristic baseline settles this directly, regime by regime. As a further check, we will diff the refined programs against the originals to see whether improvements come from new branches or merely from changed constants. If they come from constants, the claim fails.
Why not just run the refinement loop RobotGPT-style, with pass/fail feedback? Clearing almost always "succeeds" eventually. A pass/fail signal cannot tell a planner that wastes forty seconds pushing from one that does not. RobotGPT itself is evidence that pass/fail feedback fixes errors and makes code run; it is not evidence that it improves efficiency. The pass/fail ablation measures this. We predict it plateaus at roughly single-pick-level time per object, because it will tend to converge to whatever clears reliably.
Why not just learn a pushing policy end-to-end with reinforcement learning? Multi-object pushing is hard to explore without help. An Attention Mechanism for Deep Q-Networks with Applications in Robotic Pushing needs attention masking just to make learning tractable. A policy would also have to be retrained for each bin distance and object set. Our programs instead take $d$ as an input and stay readable. We do not run an RL baseline at matched budget, because the episode budget we use, in the hundreds per regime, is far below what such methods typically consume. This choice limits our claim to the low-simulation-budget regime, and we will state that limit explicitly.
Proposed Experiments
The main experiment sweeps bin distance over a range spanning the "consolidation never pays" and "consolidation always pays" ends. It does so in three regimes: Push-MOG polygons, Busboy tiers 0–2, and a mixed set combining both object families. For each cell we report test-set time per cleared object, objects per trip, picks per hour, and drop rate for every baseline and ablation, with confidence intervals over scene seeds.
Decisive check 1: crossover location. Single picks should be optimal at short $d$ and consolidation at long $d$. A planner that has learned the trade-off should match single picks at the short end and the best consolidator at the long end. So we compare the lower envelope of the baselines with the refined planner across the sweep, not just the average.
Decisive check 2: feedback mechanism. We log, for each accepted edit, which ledger entry was ranked highest beforehand and whether that cost category actually dropped afterward. If profiling is doing the work, most accepted edits should target the top-ranked sink. If not, the trace is decoration.
Decisive check 3: transfer. A planner refined on polygons and spread tableware is evaluated, without further refinement, on pre-stacked Tier 2 scenes and on unseen bin distances. This tests whether the code generalizes or overfits the validation set.
Exploratory. If the simulated results hold, we will run the best refined planner and the tuned heuristic on a UR5 with a parallel-jaw gripper at two bin distances. Our aim is to see whether the ordering of methods survives the frictional contact effects that the analytic filters do not model.
References
- Push-MOG: Efficient Pushing to Consolidate Polygonal Objects for Multi-Object Grasping
- The Busboy Problem: Efficient Tableware Decluttering Using Consolidation and Multi-Object Grasps
- RobotGPT: Robot Manipulation Learning From ChatGPT
- Code-as-Symbolic-Planner: Foundation Model-Based Robot Planning via Symbolic Code Generation
- GenCHiP: Generating Robot Policy Code for High-Precision and Contact-Rich Manipulation Tasks
- Empowering Large Language Model Agents through Action Learning
- Memory Transfer Planning: LLM-driven Context-Aware Code Adaptation for Robot Manipulation
- Multi-object Grasping in the Plane
- POLO: An LLM-Powered Project-Level Code Performance Optimization Framework
- MEIC: Re-thinking RTL Debug Automation using LLMs
- CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation
- SlopCodeBench: Measuring Code Erosion Under Iterative Specification Refinement
- Do Users Write More Insecure Code with AI Assistants?
- $A_2$DEPT: Large Language Model–Driven Automated Algorithm Design via Evolutionary Program Trees
- An Attention Mechanism for Deep Q-Networks with Applications in Robotic Pushing