Keeping Parallel Trajectory Seeds in Different Basins with Posterior Constraints

Trajectory optimizers plan robot motion by locally improving a guessed path. Modern GPU planners hedge against a bad guess by optimizing many guesses ("seeds") at once and keeping the best result. This note argues that the hedge often fails for a reason the latent-variable literature diagnosed long ago. Many seeds slide into the same wide, easy basin of the cost landscape. The narrow-corridor solution, which is often the best one, gets no seed at all. The same thing happens when expectation-maximization (EM), the standard hill-climbing method for fitting models with hidden variables, lets a few components absorb data that belong elsewhere. Statistical word alignment calls this the "garbage collector" problem, and it was fixed by constraining the E-step posterior rather than by changing the model (Expectation Maximization and Posterior Constraints).

The proposal treats a batch of $K$ seeds as a $K$-component mixture over trajectories and fits it with an EM loop. The loop has two changes. First, the step that assigns sampled trajectories to components is projected onto linear constraints. These cap how much mass any one component may absorb, and they forbid a component from straddling two obstacle-passing classes. Second, every component is refined by a few steps of the actual local optimizer, and the refined result is fed back into the mixture. The claim is that, at a fixed seed budget and with no training data, this recovers distinct and feasible solution modes more reliably than independent restarts, unconstrained EM clustering, or noise injection. It can also wrap a learned seeder instead of replacing it.

Why this, and not the other obvious bridges

Two latent-variable ideas look like natural imports here. The first is method-of-moments estimation, which recovers hidden-variable models by linear algebra on observed statistics (A Spectral Algorithm for Learning Hidden Markov Models). It is free of local optima. However, it needs discrete observations and full-rank emission structure, and it returns "improper" parameters. Trajectory modes are continuous, and when two passages emit similar observations the rank condition fails. The import would mostly be a translation exercise.

The second is posterior regularization, which has a concrete and well-matched failure to fix. Multimodal planning by density estimation over cost-weighted sampled trajectories already exists. Multimodal Trajectory Optimization for Motion Planning (SMTO) fits a variational-Bayes Gaussian mixture to sampled trajectories on a low-dimensional embedding, then refines component centers with CHOMP-style gradients. The research file records three weaknesses of SMTO. It takes about 73 s per task versus 20 s for CHOMP. If narrow corridors are thinly sampled, EM fits components only to dominant basins. And clustering and refinement are decoupled, so the optimizer's findings never reach the mixture.

There is a fourth weakness the file does not state. A Gaussian component whose responsibilities straddle a left-passing and a right-passing group has a mean that passes straight through the obstacle. This is the trajectory analogue of a degenerate local optimum. The proposal targets exactly these failures.

Core Claim

Some notation first. Let $\tau_i$ for $i=1,\dots,N$ be sampled trajectories with cost weights $w_i \propto \exp(-J(\tau_i)/\lambda)$, where $J$ is trajectory cost and $\lambda$ a temperature. Let $p(z_i=k\mid\tau_i,\theta)$ be the standard mixture responsibility of component $k$ under parameters $\theta$. Let $c(\tau)$ be a cheap topological label, such as the vector of which side of each obstacle the path passes. Finally, let $c_k$ be the dominant label of component $k$ from the previous iteration.

The constrained step replaces the usual responsibilities $p$ with new responsibilities $q$ that stay as close to $p$ as possible while satisfying two constraints:

$$ q^\star=\arg\min_{q}\sum_i w_i\,\mathrm{KL}\big(q_i\,\|\,p(\cdot\mid\tau_i,\theta)\big)\quad\text{s.t.}\quad n_k(q)\le\beta,\qquad \sum_i w_i q_i(k)\,\mathbf{1}[c(\tau_i)\ne c_k]\le\epsilon\, n_k(q), $$

Here $n_k(q)=\sum_i w_i q_i(k)$ is the weighted mass of component $k$, $\beta$ is a capacity cap, and $\epsilon$ is a purity tolerance.

The capacity cap plays the role of the fertility bound in the word-alignment work. A dominant basin cannot claim every component, so leftover components are pushed toward samples in rarer topological cells. The purity constraint stops a component from averaging two passing classes into an obstacle-crossing mean.

Both constraints are linear in $q$, so the projection is convex and is solved in its dual with one variable per constraint. That is $2K$ variables, far fewer than the per-sentence projections in the original work. The M-step is unchanged.

After the M-step, each component mean is refined for a few iterations by the target local optimizer. This is DDP (differential dynamic programming) for kinodynamic systems and a GPU optimizer for arms. Refined trajectories re-enter the sample set with their true post-refinement cost, and components whose refinement stays infeasible are downweighted. This feedback addresses the SMTO decoupling. A narrow-corridor sample that looks expensive before refinement can keep a component long enough for refinement to reveal that it is cheap.

Research Program

The work has three parts.

The first is the algorithm. It consists of the constrained responsibility step, the refinement feedback, and topological labels at two levels of fidelity. Exact homotopy signatures are used in 2D. For arms and kinodynamic systems, a proxy records per-obstacle passing-side indicators of a few robot body points, in the spirit of the per-obstacle upper/lower/ignore labels of Learning Homotopy Prediction for Optimization-Based Trajectory Planners for Autonomous Driving. We do not claim homotopy is well defined in a 7-DoF configuration space. The proxy is judged only by whether it improves outcomes.

The second is a diagnostic study of basin collapse in parallel optimization. For each benchmark problem, we measure how many of $K$ independently optimized seeds land in the same final mode. We also measure how often the best mode receives zero seeds. This tests the premise directly: if collapse is rare, the method has nothing to fix.

The third is a wrapper mode. Seeds from a learned generator are used as the initial components, and the constrained loop is then applied. This asks whether the constraints still help once the proposal distribution is good.

Baselines

The naive reference is a single straight-line seed passed to the local optimizer. The file documents its failure mode: obstacle repulsion balances goal attraction. A New Semidefinite Relaxation for Linear and Piecewise-Affine Optimal Control with Time Scaling reports that direct-collocation solvers failed to find feasible solutions on its five cluttered 7-DOF tasks even with favorable initializations. This baseline only anchors the scale of the gap.

The most important practical baseline is $K$ independent random-perturbation restarts through the same optimizer and wall-clock budget. This is how GPU planners such as the cuRobo optimizer used inside DiffusionSeeder are typically run. It is the cheapest thing a practitioner would actually do. We run it at $K$ and at $8K$ restarts so the proposal must beat a larger plain budget, not just an equal one. Beating it means higher success and higher recall of the best mode at equal wall-clock.

The closest method is SMTO's variational-Bayes EM clustering followed by refinement (Multimodal Trajectory Optimization for Motion Planning). We reimplement it on the same samples, embedding and refiner. SMTO reports a smoothness score of 1.404 and about 73 s per task on its grasping testbed, against 20 s for CHOMP. Beating it means more distinct feasible modes and lower best-of-$K$ cost at a fraction of its runtime. SMTO reports no mode-recall number, so we measure it for both methods.

The strongest learned competitors are two diffusion methods. Motion Planning Diffusion (MPD) is a diffusion prior over B-spline trajectories, guided by cost gradients during denoising. It reports raising mean validity fraction on EnvWarehouse-RobotPanda with added objects from 18.4% to 73.5%. DiffusionSeeder is a depth-conditioned diffusion seeder feeding cuRobo. It reports an average 12x speedup over heuristic-seeded cuRobo, up to 36x on the hardest 2% of problems, and 86% hardware success at 26 ms. We compare against MPD on its own environments using its released setup, if one is available to us, or a faithful reimplementation trained on the same data. In wrapper mode we initialize our components from MPD samples. Beating MPD standalone in-distribution is not required. The success criteria are: (i) on obstacle layouts held out from MPD's training distribution, our training-free method matches or exceeds its validity fraction; and (ii) wrapping MPD raises its validity fraction and mode recall at equal compute.

For kinodynamic problems, the reference is iDb-A*, which solved 41 of 43 DynoBench instances within 120 s. iDb-RRT reports near-100% success and up to 10x faster times. On these systems we expect to lose on raw success. The question is whether our loop, used as the seed stage before DDP, reduces time-to-first-solution on bugtrap and narrow-passage instances relative to plain multi-seed DDP.

Two ablations isolate the key ingredient. The first is unconstrained EM with the identical refinement loop. The second is the capacity cap alone, which is a topology-free balancing constraint, without purity. A third ablation removes refinement feedback to measure the decoupling cost SMTO pays.

Why not just…?

Why not just run many more random restarts? This is the real threat, because GPU restarts are cheap. If the diagnostic study shows collapse is rare, or that $8K$ restarts match the method at equal wall-clock, the proposal fails, and we will report that. Our expectation is that narrow-passage mass shrinks with corridor width, so the restarts needed to hit it grow with it. The constraint instead reallocates a fixed budget. The narrow-passage 2D environment from MPD and DynoBench's bugtraps settle this directly.

Why not just use a learned seeder like DiffusionSeeder or MPD? Inside their training distribution they will likely be strong, and we do not expect to beat them there. The file notes that both offer no feasibility guarantees and degrade on unseen layouts. Neither checks whether its samples will collapse into one basin after optimization. The wrapper experiment tests whether the constrained loop is complementary rather than competing.

Why not just add Langevin noise or repulsion between seeds? Parallel Stochastic Gradient-Based Planning for World Models (GRASP) escapes basins with stochastic noise on lifted states. It still reaches only 10.4% success on 80-step Push-T, against 6.4% for gradient descent and 2.8% for the cross-entropy method, and it needs per-environment noise tuning. Noise and pairwise repulsion push seeds apart in distance, not in topology. Two seeds can sit far apart within one basin. We include a noise-injected multi-seed baseline with the same tuning budget as our $\beta,\epsilon$.

Why not just enumerate homotopy classes and seed one per class? In 2D with few obstacles this is feasible and is a fair upper bound, so we run it there. The number of side-of-obstacle combinations grows exponentially with obstacle count. Most combinations are infeasible, and the homotopy-prediction work shows that wrong class choices make the downstream convex program infeasible. Our constraints act only on classes that actually appear among samples, and enumeration cannot do that.

Proposed Experiments

The decisive experiment uses MPD's Simple 2D and Narrow Passage Dense 2D environments. There, true solution modes can be enumerated by exhaustive search, which lets us measure mode recall exactly. The metrics are the fraction of ground-truth modes reached after refinement at $K\in\{4,8,16\}$, best-of-$K$ cost, and success, all against restarts at $K$ and $8K$, unconstrained EM, and SMTO. The method must recover the narrow-corridor mode substantially more often than restarts at equal wall-clock. The purity ablation must also show fewer obstacle-crossing component means than unconstrained EM; otherwise the topological part of the claim is unsupported.

The second experiment moves to MPD's Spheres 3D and EnvWarehouse-RobotPanda environments with the proxy labels. It reports validity fraction against the MPD figures above, both on held-out obstacle layouts and in wrapper mode.

The third uses DynoBench, with DDP as refiner, across the unicycle, car-with-trailer and quadrotor systems. It reports success within 120 s and time-to-first-solution against plain multi-seed DDP, with iDb-A* and iDb-RRT as external references.

Across all three, we report the per-iteration cost of the dual projection. That cost must stay a small fraction of refinement time, or the approach loses its practical point.