A robot crossing a crowd needs two things that pull against each other. It needs foresight about where to go, and people who navigate crowds well can supply that, although their demonstrations contain mistakes. It also needs a guarantee that the motion it actually executes stays safe against many possible futures of the moving people around it, decided within a control deadline of tens of milliseconds.
We propose to split each planned trajectory into short time segments. For every segment the robot keeps exactly two options: the segment suggested by a policy learned from imperfect demonstrations, and a locally computed detour. At every control cycle it picks the combination of segments whose worst-case cost over $K$ sampled futures of the crowd is smallest. The number two is deliberate. This per-segment choice is an instance of a problem studied in robust optimization, choosing one item from each of several groups so that the worst case over $K$ scenarios is minimized. That problem is provably hard to approximate in general, but it admits a tight 2-approximation when every group has at most two options. The design places online robust planning exactly in the regime where a cheap, constant-factor-guaranteed solution exists.
Core Claim
Robust selection has a known complexity picture, established in Approximability of the robust representatives selection problem. That paper studies choosing one item from each of $p$ disjoint categories to minimize the maximum total cost across $K$ scenarios. It proves that no polynomial algorithm approximates the problem within $O(\log^{1-\epsilon} K)$ unless NP has quasi-polynomial algorithms. It gives LP rounding achieving $O(\log K/\log\log K)$ in general, and a tight 2-approximation when each category has at most two choices. The paper treats this as static combinatorial selection.
Our claim is that it becomes a design rule for real-time planning among moving agents. Take trajectory segments as categories, the two lanes per segment as items, and sampled futures of the crowd as scenarios. The online problem is then a two-choice representatives selection.
Let $x_i \in \{0,1\}$ indicate whether segment $i$ uses the detour. Let $c^k_{i,0}$ and $c^k_{i,1}$ be the costs of the prior lane and the detour lane in scenario $k$; each cost includes path length and a collision penalty against scenario $k$'s predicted agent positions. The robot solves
$$\min_{x \in \{0,1\}^p} \; \max_{k=1..K} \; \sum_{i=1}^{p} \big( (1-x_i)\, c^k_{i,0} + x_i\, c^k_{i,1} \big).$$
Relaxing $x$ to $[0,1]$ gives a linear program (LP) with $p$ variables and $K$ constraints. Rounding each $x_i$ to whichever option carries LP weight at least one half at most doubles every scenario's cost, which yields the factor 2. An LP this small solves in well under the cycle budget.
What is new is not the rounding, which is classical. It is three things together:
- Imperfect demonstrations are corrected segment by segment against worst-case crowd futures, rather than accepted or rejected whole.
- The decision comes with a worst-case guarantee at the deadline.
- The design explicitly avoids letting the number of options per segment grow into the regime where the hardness result bites.
How the pieces relate to prior work
The demonstration side is motivated by work showing that copying imperfect demonstrators fails. Imitation Learning by Estimating Expertise of Demonstrators (ILEED) learns state-dependent competence per demonstrator and beats plain behavioral cloning in 21 of 23 settings. DualCOIL pulls toward good and pushes away from bad demonstrations under a convex objective. Both are evaluated only in static simulation, so their output is a policy with no deployment-time safety reasoning about moving agents. We reuse them as the source of the prior lane and add the missing online robust correction.
The closest test-time method is Value-Guided Policy Steering (V-GPS). It samples $K$ whole action proposals from a frozen generalist policy and re-ranks them with a learned value function at 5 Hz with 1.6x overhead. It fails when all samples are poor. Our method differs in two ways:
- It composes segments, so one bad stretch of an otherwise good demonstration is repaired rather than discarding the whole proposal.
- It scores against explicit worst-case crowd futures rather than a learned value.
The dynamic-environment side supplies the evaluation regime and the strongest competitor. Safe Hierarchical Navigation in Crowded Dynamic Uncertain Environments (H-DAGap) tracks gaps between pedestrians as they open and close over time. It refines candidates by convex optimization, bounds prediction uncertainty with Kalman covariance inflation, and runs a 0.68 ms Safe Set Algorithm (a reactive filter that overrides commands that would leave a safe set). Its reported weakness is freezing in dense crowds when no safe forward option appears, and it uses no demonstrations. We keep its Kalman-based future sampling and its reactive filter as the bottom layer. We replace rule-based gap choice with demonstration-guided robust stitching.
The latency side constrains the design. Deep Learning Warm Starts for Trajectory Optimization on the International Space Station shows that learned initial guesses cut solver iterations by 50–60% but do worse than a cold start on unseen obstacle layouts. This is why we avoid making a nonconvex solver repair a learned guess inside the loop.
SOLVING QUADRATIC PROGRAMMING PROBLEMS ON GRAPHICS PROCESSING UNIT shows that batches of small quadratic programs parallelize well while single small ones do not. That matches our detour lanes: $p$ independent small quadratic programs, each connecting fixed boundary states.
Heavier robust machinery is also too slow for the loop:
- ALSO-X# takes seconds for distributionally robust chance constraints. - Evaluating Trajectory Collision Probability through Adaptive Importance Sampling certifies collision probability in under 2 s.
We accept a weaker object, a min-max over sampled futures rather than a certified chance bound, in exchange for millisecond decisions. We state that trade openly.
Research Program
We will build a three-layer navigator.
Layer 1: the prior. A policy is trained on heterogeneous crowd-navigation demonstrations. We generate demonstrators of graded quality by injecting structured, state-dependent errors into an expert planner's trajectories, following ILEED's observation that human errors are structured rather than uniform. The training rule is one of three: plain behavioral cloning, ILEED, or DualCOIL. At each cycle the prior proposes a trajectory over the horizon. We cut it into $p$ segments at knot states (position and velocity at fixed times).
Layer 2: the detour lanes. For each segment we solve one small quadratic program for a detour that connects the same two knot states. Because both lanes share knots, any combination of lanes is dynamically consistent. This is what makes the problem separable across segments except through the max over scenarios.
Layer 3: selection and safety. We sample $K$ crowd futures from Kalman predictions, fill the $2p \times K$ cost table, solve the LP, round, and execute. The Safe Set Algorithm filter runs underneath at kHz rates.
Analytically, we will state the 2-approximation for the shared-knot construction. We will also characterize what breaks when lanes do not share knots. Switching costs couple adjacent segments and turn the problem into a robust shortest path, which the RS hardness result says inherits the general barrier. Empirically, we will map the crossover in $(p, K)$ at which exact enumeration of all $2^p$ combinations stops meeting a 20 ms deadline on both desktop and ARM-class hardware.
Baselines
The naive reference is the demonstration prior executed directly under the Safe Set Algorithm filter, with no stitching. It shows what the reactive filter alone rescues from imperfect demonstrations. The filter-only ablation in the H-DAGap paper suggests that the filter matters but cannot resolve traps.
The strongest existing method is H-DAGap run in the same crowd simulator with 20 and 50 agents. It reports 100% success at 20 agents, 97% at 50 agents, and a 3% collision rate in dense scenes with its filter active. We will run the original algorithm with its published components, sharing the Kalman predictor and filter with our system so the only difference is the mid-level planner.
Beating it means two things at 50 agents, over matched random seeds and crowd layouts:
- a lower freezing/timeout rate than H-DAGap's residual 3%;
- a collision rate no worse than that 3%.
Demonstrations are not the reason H-DAGap would lose. It uses none, so the comparison tests whether demonstration foresight plus robust correction beats hand-designed gap reasoning.
The second strong competitor is V-GPS-style whole-trajectory re-ranking. We sample $N$ full trajectories from the same prior and pick the one with the best worst-case cost over the same $K$ futures. $N$ is set so that its compute matches our method's per-cycle budget. This isolates the value of segment composition over whole-proposal selection.
The third is an Astrobee-style learned warm start. A sequential convex solver is initialized from the prior and given the same deadline. It is run cold-started as well. Deadline misses count as executing the previous plan.
Three ablations isolate the key ingredients:
- Selection rule. Exact enumeration or a mixed-integer solver replaces LP rounding, with no deadline, to measure the true approximation ratio achieved. This is the cleanest check of whether rounding loses anything in practice.
- Objective. Mean-cost stitching replaces min-max, which decomposes per segment and is solved exactly. CVaR stitching sits between the two.
- Prior quality. Plain behavioral cloning versus ILEED versus DualCOIL priors under the same stitching, to show whether robust correction substitutes for, or complements, careful learning from imperfect data.
A final ablation raises the number of options per segment to three. This leaves the regime covered by the tight 2-approximation. We have no bound for it from the file, and we test empirically whether rounding degrades.
Why not just…?
Why not just enumerate all combinations exactly? With $p = 8$ segments and $K = 32$ futures there are only 256 combinations, and brute force is trivially fast. This is a real threat. If the best-performing configuration uses short horizons with few segments, the LP contributes nothing, and the contribution reduces to the two-lane stitching architecture.
The crossover experiment settles this. Enumeration costs grow as $2^p K p$, while the LP grows polynomially. We will report the smallest $p$ at which enumeration misses a 20 ms deadline on ARM hardware. We will also report whether navigation quality actually improves beyond that $p$. We will say plainly if it does not.
Why not just average over futures instead of taking the worst case? Mean cost splits into independent per-segment choices and is solved exactly with no approximation. The case against it is that averaging hides the rare future in which an agent cuts across the robot's path, which is exactly the failure mode the collision-probability paper documents for dynamic settings.
This is not established for crowds, however. The mean-versus-CVaR-versus-min-max ablation will compare collision rates in the worst 5% of episodes. If mean-cost stitching matches min-max on tail collisions, we will adopt it, and the complexity argument becomes moot.
Why not just train a better imitation policy and wrap it in a safety filter? The evidence against filter-only rescue is H-DAGap's own reported freezing in dense crowds. DualCOIL and ILEED gains are measured in static benchmarks, so a better prior may still walk into moving conflicts it never saw.
The prior-quality ablation directly measures how much of the gap a stronger prior closes by itself. If a DualCOIL prior under the filter matches our full system, then robust stitching is unnecessary.
Why not just re-rank more whole trajectories, as V-GPS does? Composing $p$ binary choices covers $2^p$ trajectories, while re-ranking covers $N$. The advantage should appear exactly when demonstrations are good in most segments but wrong in one. The compute-matched comparison, stratified by demonstrator quality, tests this.
Proposed Experiments
The primary testbed is the dense dynamic crowd simulation with 20 and 50 pedestrians used by H-DAGap. We add harder conditions with agents entering from outside the sensor field of view, the failure case that paper itself notes.
Metrics per episode are:
- success;
- collision;
- freezing/timeout;
- time to goal;
- per-cycle latency distribution and deadline-miss rate at 20 ms and 50 ms budgets;
- the empirical approximation ratio of rounded versus exact min-max cost, computed offline on logged cycles.
Demonstration sets are graded by the fraction of expert-quality demonstrators, from 1-in-10 up to all-expert. This mirrors ILEED's heterogeneous-demonstrator setting.
There are no existing crowd-navigation results for DualCOIL, ILEED, or V-GPS. We found no reported result on Lacuna for learned-prior methods in dense dynamic crowds, so those numbers will be produced here under the matched protocol.
Four checks decide the proposal:
- On logged instances, rounded solutions stay within factor 2 of the exact optimum, as the theory requires. We also report how close to 1 they typically are.
- At the $(p, K)$ values where exact enumeration misses the deadline, our method meets it with at least 99% reliability.
- At 50 agents, the full system reduces freezing below H-DAGap's residual failure rate without raising collisions above its 3%.
- The advantage over H-DAGap grows as demonstrator quality falls. If instead the advantage vanishes with imperfect demonstrations, the claim that stitching corrects demonstrator mistakes is refuted.
References
- Approximability of the robust representatives selection problem
- Imitation Learning by Estimating Expertise of Demonstrators
- DualCOIL: Offline Imitation Learning from Contrasting Demonstrations
- Steering Your Generalists: Improving Robotic Foundation Models via Value Guidance
- Safe Hierarchical Navigation in Crowded Dynamic Uncertain Environments
- Deep Learning Warm Starts for Trajectory Optimization on the International Space Station
- SOLVING QUADRATIC PROGRAMMING PROBLEMS ON GRAPHICS PROCESSING UNIT
- ALSO-X#: better convex approximations for distributionally robust chance constrained programs
- Evaluating Trajectory Collision Probability through Adaptive Importance Sampling for Safe Motion Planning