NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Measuring What Rubik Table Guarantees Buy in Multi-Agent Stack Rearrangement

Warehouses, container yards and tabletop robots all face the same puzzle. Items sit in stacks, only the top item of each stack can be reached, and the goal is to reach a target arrangement using as few pick-and-place moves, and as little time, as possible. A line of theory, the Rubik Table model, gives a striking guarantee for this puzzle. The model treats the items as an $n \times n$ grid in which any single row or column can be freely reshuffled in one step. In that model any arrangement can be reached in at most $3n$ such shuffles. Carried over to physical stacks, this gives a constant-factor-optimal $O(nd)$ bound on moves for $nd$ items in $n$ stacks of depth $d$, using one empty helper stack as scratch space. These results have never been run. The papers themselves say they contain no datasets or empirical evaluation. As a result, nobody knows the hidden constants, how the method compares with the simple greedy rules practitioners actually use, or whether the algebraic structure is worth anything once real robots have to execute the moves.

This note proposes a specific test with a falsifiable claim. We expect a pure count of moves to favor greedy heuristics on typical instances, because constant-factor-optimal constructions are usually wasteful at small sizes. Our hypothesis is that the value of the Rubik Table structure lies elsewhere. Its middle phase consists of shuffles that act on disjoint rows, so it produces large batches of operations that are independent by construction. With several arms or cranes and a few extra helper stacks, this independence should translate into shorter wall-clock completion time (makespan). Greedy sequential plans cannot match that, even after their independent steps are extracted after the fact. If the hypothesis is wrong, the experiment will say so cleanly, and the field learns that the theory's guarantee is ornamental in practice.

Core Claim

The claim has three parts. On finite stack instances, the Rubik-Table-derived algorithm of On Rearrangement of Items Stored in Stacks and Rubik Tables and object rearrangement will use more total moves than good greedy heuristics on random and near-sorted inputs. Its move count will scale linearly with a measurable constant. Most importantly, with $k$ agents and $b$ helper stacks, its makespan will beat the best parallelized greedy plan once $n$ is moderately large and the instance has many cyclic dependencies.

Cyclic dependencies are the hard case: item A must go where B is, while B must go where A is. The prediction rests on a structural difference between the two kinds of plan. In the Rubik Table's column-fitting phase, every row shuffle touches a disjoint set of items. Greedy plans, by contrast, create long chains in which each move enables the next. The empirical question is whether that difference survives the fact that all agents compete for a small number of helper stacks.

This note is mainly an empirical-validation study, and the algebraic model is its object of study. We do not propose a new rearrangement theory. We do propose a new parallel execution of the stack embedding, and a measurement of how many helper stacks that execution needs. The helper-stack question is listed as open in the theory papers.

Research Program

The first component is a faithful implementation of the three-phase Rubik Table procedure. Phase one balances each column using a bipartite matching whose existence is guaranteed by Hall's theorem. Phase two, column fitting, uses row shuffles. Phase three, row fitting, uses column shuffles. The implementation must also include the stack embedding in which each shuffle is realized by pop-push moves through a helper stack. We will measure the matching subroutine's wall-clock time separately, since its constants have never been reported.

The second component is a parallel scheduler. It assigns the independent shuffles of a phase to $k$ agents and $b \ge 1$ helper stacks, and resolves contention for the helper stacks with a simple reservation rule. Sweeping $b$ gives an empirical curve of how many helper stacks the parallel speedup needs. That curve is direct evidence on the open buffer-scaling question.

The third component is an instance generator. It covers colored instances (items that share a type) and labeled instances (every item unique). It varies $n$ from 4 to 64, and $d$ both inside the theorem's regime $d \le n^{m/2}$ and outside it, with $d > n$. It draws from three distributions: uniform random, near-sorted (a few swapped items, as in a mostly organized warehouse), and cycle-heavy. The cycle-heavy distribution mirrors the Single Cycle and Double Cycle categories of High-Performance Dual-Arm Task and Motion Planning for Tabletop Rearrangement, but at larger scale.

The fourth component is a physical-execution layer. We will replay plans on simulated arms over physical block stacks and report real motion time rather than abstract move counts. We will reuse the dual-arm setup of that paper, with cuRobo motion generation, so that its 12-object scenes are directly comparable. We will then extend it to 4 and 6 simulated arms over larger stack yards. This layer exists because the stack model treats every pop and push as costing the same. Our hypothesis only matters if that simplification survives contact with reach limits and arm-to-arm collisions.

Baselines

The naive reference point is one agent executing the Rubik Table stack algorithm as published, sequentially, with one helper stack. This isolates what the theory gives with no parallel execution. We also report a trivial lower bound. An item must move if it, or anything beneath it, is out of place, so counting such items gives a floor on the number of moves. This tells us how far every method sits from what is unavoidable.

The strongest existing method family is dependency-graph decomposition, as in SDAR from the dual-arm tabletop paper. SDAR splits objects into independent items, chains and cycles, and breaks cycles with a temporary buffer slot. We will adapt it to stacks: each stack gets a dependency order, and each cycle is broken by moving one item to a helper stack. It then gets the same $k$ agents, the same $b$ helper stacks, and the same collision-checked execution. The reported number to beat on SDAR's own benchmark is 100% success on its simulated 12-object Random, Single Cycle, Double Cycle and Mixed cases. The same paper reports roughly 1.7 s planning time and about a 3x execution speedup over sequential single-arm methods (SDAR). For stack rearrangement specifically, no reported result was found on Lacuna for any method, heuristic or theoretical. Our numbers at larger scale will therefore be the first.

The second strong baseline is anytime exact search, meaning A* and beam search over pop-push moves. We run it on small instances ($n \le 5$, $d \le 4$) to obtain true optima or near-optima, and then as a time-capped anytime planner at larger sizes. Its budget matches the wall-clock time of the Rubik method on the same CPU.

The key ablation takes the best greedy sequential plan and lifts it into a partial order. Any two moves that touch disjoint stacks and helper slots are marked concurrent, and the result is scheduled onto the same $k$ agents and $b$ helper stacks. This is the direct test of whether the Rubik structure contributes parallelism beyond what any plan exposes after the fact. A second ablation runs the Rubik algorithm without its phase-one balancing, using an arbitrary assignment instead. This checks whether the matching, rather than merely the row-then-column order, is what creates the disjoint batches.

All methods receive identical instances, agent counts, helper-stack counts and CPU budget, and they share one motion layer. The proposal beats the baselines if it achieves at least 15% lower makespan than lifted SDAR-style greedy, with non-overlapping 95% bootstrap intervals, on cycle-heavy labeled instances with $n \ge 16$ and $k \ge 4$. It must also keep 100% success on SDAR's 12-object categories.

Why not just…?

Why not just use SDAR-style dependency resolution and stop worrying about algebra? This is the most serious alternative. SDAR already reaches 100% success at 12 objects, and Selective Object Rearrangement in Clutter reaches 82.33% with up to 20 objects using graph heuristics. At these sizes the theory may add nothing, and we expect exactly that. The open question is scaling. Cycle-breaking heuristics serialize along dependency chains, and no work has measured where this breaks down as $n$ grows. That gap is Gap 3 in the file. The size sweep will locate the crossover point, or show that none exists up to $n = 64$. If none exists, we will report that the Rubik bound has no practical role at these scales.

Why not just parallelize the greedy plan after the fact? Any sequential plan can be converted into a partial order and scheduled onto several agents. If that recovers the same makespan, our claim is false. We made this conversion the central ablation for that reason. It is not argued away. We expect it to fall short on cycle-heavy instances because helper-stack moves in greedy plans create shared bottlenecks. If our results show otherwise, we will say so.

Why not just learn a policy in a fast simulator? Evidence in the file weighs against it for long horizons. Monolithic reinforcement learning fails to chain skills in Habitat 2.0. End-to-end agents fail even single-object episodes in Effective Baselines for Multiple Object Rearrangement Planning. Offline reinforcement learning collapses from 4 to 7 objects in Hierarchical Abstraction for Combinatorial Generalization, which also assumes each action moves one object and does not handle stacking. We therefore include learning only as a reported reference and not as a main competitor.

Why not just run an exact solver? Exact search gives the ground truth for small instances, and we use it for that. The MORP study shows that exact routing solvers grow exponentially in cost as object counts rise. Our anytime cap tests whether that pattern holds for stacks.

Proposed Experiments

The first experiment fits the constant $c$ in moves $\approx c\,nd$ for both the Rubik and greedy methods across $n$, $d$ and all three distributions. It reports each method's ratio to the true optimum where search finishes and its ratio to the lower bound elsewhere. It also includes the $d > n$ regime that the theorem does not cover.

The second experiment is the decisive makespan test. We sweep $k \in \{1, 2, 4, 8\}$ and $b \in \{1, 2, 4\}$ and compare the parallel Rubik scheduler against lifted greedy. The output is a helper-stack curve showing the smallest $b$ at which the parallel speedup saturates.

The third experiment runs the physical-execution check in simulation. It covers SDAR's 12-object categories, where we expect a tie, and larger multi-arm stack yards. We report motion time, collision-induced fallbacks, and the fraction of the abstract makespan advantage that survives real kinematics.

The result is informative either way. If the advantage survives in the third experiment, it gives the first empirical support for using the theory. If it vanishes in the second or third experiment, it shows with measured numbers that the guarantee does not help at practical scales.