Skip to content
Robotics.world

Research

Masked Generative Motion Planning with Geometry-Guided Token Search

Most learned motion planners generate a rough trajectory and then fix collisions by continuously deforming it, which works for small local corrections but fails when the right fix requires taking a…

The paper’s first page · arXiv:2610.10646
arXiv
2610.10646 · Preprint · not peer-reviewed
Published
2026-10-07
Authors
Lipeng Zhuang, Yingdong Ru, Shiyu Fan, Edmond S. L. Ho, Gerardo Aragon Camarasa, Paul Henderson

In plain words

Most learned motion planners generate a rough trajectory and then fix collisions by continuously deforming it, which works for small local corrections but fails when the right fix requires taking a genuinely different route around an obstacle.

AI summary

Overview

Research area: Robotics — learning-based motion planning, specifically generative planning and test-time trajectory repair.

Technical level: Advanced. The paper assumes familiarity with vector-quantized autoencoders, masked generative transformers, and trajectory optimization, though its core idea (search over discrete motion tokens instead of continuously nudging a trajectory) is conceptually simple.

Scope (one sentence): The paper proposes MGMP, a planner that generates robot trajectories as discrete tokens with a masked generative transformer and then repairs collisions by searching over alternative tokens guided by scene geometry, and evaluates it on 2-D maze puzzles, 7-DoF and 14-DoF simulated arms, and real Baxter tasks.

What This Paper Is About

Most learned motion planners generate a rough trajectory and then fix collisions by continuously deforming it, which works for small local corrections but fails when the right fix requires taking a genuinely different route around an obstacle. MGMP instead represents trajectories as sequences of discrete tokens, so the same learned model that produces a trajectory can also be asked for alternative tokens at specific positions — turning collision repair into a targeted search over qualitatively different motion options. The goal is to escape bad local planning basins without abandoning the learned motion prior.

Key Contributions

  1. MGMP (Masked Generative Motion Planning): A framework that extends a learned trajectory prior from fast parallel generation to structural repair, by formulating planning as masked generation over discrete trajectory tokens and reusing the same token space at test time.
  2. Geometry-Guided Token Search (GGTS): A test-time refinement procedure that uses scene geometry to decide where to edit (which token positions contribute most to the violation) and what to fill (which prior-supported codebook alternatives to screen and verify), enabling route-level restructuring rather than local deformation.
  3. Two diagnostic benchmarks: Ring Maze (seven near-enclosing C-shaped obstacles, testing escape from local planning basins) and Controlled Route Invalidation on Kuka (all methods start from the same invalidated trajectory, isolating repair quality from initial-generation quality).
  4. Broad validation: Generalization to unseen layouts, additional obstacles, unseen object geometries (ShapeNet meshes with DeepSDF collision costs), 14-DoF dual-arm planning, and real-world Baxter experiments on three tasks.

Main Findings

  • Basin escape on Ring Maze: MGMP reaches 96% success rate and 67% valid-sample fraction, versus 29% valid-sample fraction for the ablation variant MGT+EmbOpt and 23% for the best classical trajectory optimizer; it does so with 0.08 s runtime. The paper reports this as exceeding the strongest external baseline by 23 percentage points.
  • Structural repair on Kuka: On Controlled Route Invalidation (500 problems across 50 unseen 7-DoF Kuka environments), MGMP achieves 82% repair success versus 60% for MGT+EmbOpt and 57% for the strongest classical optimizer (STOMP) — a 25 percentage point margin over the strongest external baseline.
  • Repairs are genuinely large-scale: Among successful repairs, the longest contiguous changed span covers 71.7% of the trajectory (average deviation 1.38, maximum 2.40), showing GGTS restructures extended portions of the route rather than only the collision neighbourhood.
  • Discrete search does the structural work: Removing the final continuous polishing stage (MGMP w/o Polish) still yields 91% success / 64% valid-sample fraction on Ring Maze and 76% repair success on Kuka; polishing adds the last few points (to 96% and 82%).
  • Geometry beats confidence for choosing edit locations: In ablations, confidence-only remasking drops to 0.84 / 0.92 success (Ring Maze / 7-DoF Kuka), while geometry-only remasking reaches 0.93 / 0.95; full MGMP reaches 0.96 / 0.97.
  • Both screening and sequential verification matter: Probability-only screening gives 0.88 / 0.94 success and independent exact search gives 0.91 / 0.95, both below full MGMP.
  • Unseen obstacle layouts: Across 1,000 planning problems over 50 unseen environments per task, MGMP matches BIT* on Maze2D-6 (1.00 success) and Concave Maze2D (1.00) while planning faster (0.03 s vs 0.15 s, and 0.07 s vs 0.29 s). On 7-DoF Kuka it reaches 0.97 success with 0.13 s planning time versus BIT*'s 0.39 s, and raises valid-sample fraction over PBD from 0.65 to 0.87. On 14-DoF DualKuka it reaches 0.96 success versus 0.85 (BIT*), 0.81 (CHOMP) and 0.79 (PBD), with planning time 0.39 s versus 2.01 s for BIT*.
  • Additional obstacles: On 7-DoF Kuka MGMP gets 0.96 success versus BIT*'s 0.95 while cutting planning time from 0.73 s to 0.23 s; on DualKuka it improves over BIT* from 0.63 to 0.84 and cuts planning time from 3.44 s to 0.90 s.
  • Unseen geometries: With ShapeNet object meshes replacing training-time box obstacles, MGMP reaches 0.66 valid-sample fraction on Kuka versus 0.47 for PBD, and the highest DualKuka success rate (0.87) versus 0.83 for BIT* and 0.75 for PBD. On single-arm unseen geometry, BIT* has the highest success rate (0.91) versus MGMP's 0.90.
  • Faster quality ramp: GGTS raises valid-sample fraction from 0.18 to 0.67 on Ring Maze and 0.28 to 0.70 on DualKuka within a few refinement rounds; with additional obstacles it reaches about 0.54 versus roughly 0.21 for MGT+EmbOpt-30 and 0.14 for PBD.
  • Real-world Baxter transfer: On three tabletop tasks (shelf placing, button pressing, pen drawing) over five unseen environments, MGMP beats MPD and PBD on both success rate and valid-sample fraction — e.g. 0.733 / 0.360 (shelf), 0.800 / 0.613 (button), 0.867 / 0.453 (drawing), versus MPD's 0.533 / 0.293, 0.733 / 0.493 and 0.733 / 0.333.

Methodology in Plain English

The system has two learned parts and one test-time search procedure.

  1. Turning trajectories into words. A vector-quantized autoencoder (VQ-VAE) compresses a full trajectory into a short sequence of discrete tokens drawn from a learned codebook, with each token summarizing roughly T/N trajectory steps. It is trained with a reconstruction-plus-commitment objective, a velocity loss for temporal smoothness, and — for robot arms — a forward-kinematics loss. After training, the tokenizer is frozen.

  2. A masked transformer as the trajectory prior. An encoder-only masked generative transformer predicts masked (and randomly corrupted) trajectory tokens, conditioned on the start configuration, goal configuration, and obstacle centres; start and goal become condition tokens and obstacle centres are injected via AdaLN conditioning. Training uses cross-entropy to recover the original token indices. At inference, one forward pass produces a whole trajectory candidate in parallel, and the planner samples 20 candidates per problem.

  3. Repair as targeted token search (GGTS). If a decoded trajectory still collides, the system runs refinement rounds. Where to edit: it backpropagates a geometric objective J through the decoder to the token embeddings and scores each position by gradient magnitude, modulated by the model's confidence (a Gauss–Southwell-style rule), then re-masks the top-scoring positions covering a fraction ρ of the total score plus positions at detected collision timesteps — so shallow contacts trigger few edits and wrong-side-of-obstacle failures trigger many. What to fill: one masked forward pass proposes the top-M codebook alternatives per position, which are scored cheaply with a first-order Gumbel-Softmax approximation before a small shortlist is decoded and evaluated exactly. How to commit: positions are visited in decreasing attribution order, an edit is accepted only if it strictly improves the exact objective, and rejected position–token pairs are remembered and not re-tested. Rounds repeat until the trajectory is feasible or a round budget is exhausted, followed optionally by a few (five) gradient steps of continuous polishing for residual local infeasibility.

Evaluation uses success rate, valid-sample fraction, planning time and running time, plus repair success rate and deviation statistics for the invalidation benchmark, against eleven classical and learning-based baselines (RRT*, P-RRT*, BIT*, RMP, CHOMP, TrajOpt, STOMP, MπNets, MPD, PBD, SafeFlowMatcher).

Why This Matters

Impact on research: The paper reframes test-time refinement in generative planning from continuous deformation into discrete, prior-constrained search. That gives the community a way to talk about structural repair — route changes — as a first-class inference problem, and the two diagnostic benchmarks (Ring Maze, Controlled Route Invalidation) provide a way to measure it separately from raw generation quality, which most prior evaluations conflate.

Real-world applications:

  • Tabletop manipulation in clutter (the paper's own shelf-placing, button-pressing and drawing tasks on a Baxter robot).
  • Dual-arm manipulation, where the 14-DoF results show the approach remains useful as dimensionality grows.
  • Pick-and-place or inspection in warehouses and shelves where obstacle placement changes between deployments.
  • Any setting where objects are not boxes at training time — the ShapeNet/DeepSDF experiments target exactly this mismatch between training geometry and deployed geometry.

Industry relevance: Planning times of 0.03–0.90 s and a single parallel generation pass matter for deployment on real robot cycle times, and the ability to keep working when scenes gain obstacles or change shape reduces the retraining burden that usually accompanies learned planners. The 23–25 percentage point margins over strong classical optimizers on hard cases are the kind of gap that determines whether a learned planner is usable as a drop-in replacement.

Future Directions

  • Closing the residual gap on unseen object geometry. MGMP leads on DualKuka unseen geometry (0.87) but trails BIT* slightly on single-arm unseen geometry (0.90 vs 0.91), so how far the token prior transfers to arbitrary meshes remains open.
  • Removing the dependence on a differentiable geometric objective. GGTS needs gradients of J through the decoder (and DeepSDF for meshes); extending the search to non-differentiable or black-box constraint checkers is an obvious question the paper's formulation raises.
  • Scaling beyond 14 DoF and to longer horizons. The tokenizer compresses T steps into N tokens and the method is demonstrated up to 14-DoF dual-arm tabletop tasks; whether route-level token search remains efficient for mobile manipulators or much longer trajectories is not established here.
  • Tighter integration of discrete search and continuous polishing. The ablations show polishing adds 5 points of repair success (76% to 82%) after GGTS, but the two stages are run sequentially with a fixed five-step polish; learning when and how much to polish is a natural next step.

Target Audience

Robotics and machine learning researchers working on motion planning, generative models for decision making, and imitation learning; practitioners building manipulation stacks who need planners that survive scene changes; and graduate students who want a clear example of how discrete token representations can be turned into a test-time search space rather than only a generation shortcut. Readers wanting full dataset construction, hyperparameters and per-task protocols will need the appendices, which are referenced throughout but not included in the provided content; the paper's conclusion is also truncated in the supplied text.

Authors’ abstract

Generative motion planners typically use learned trajectory priors for initial generation, while leaving test-time repair to local continuous refinement. We introduce Masked Generative Motion Planning (MGMP), which extends the learned prior from efficient parallel generation to structural repair. A masked generative transformer generates discrete trajectory candidates in parallel, and Geometry-Guided Token Search (GGTS) uses scene geometry to target where to edit and which…

The full abstract on arXiv
Read the original paper

Related papers