# DemoStream: Batched Task-and-Motion-Plan Optimization for Automated Learning from Demonstration

Robotics.world

> Learning manipulation skills from demonstration works, but it needs enormous numbers of demonstrations, and teleoperation is too expensive per task. TAMP planners can solve tasks autonomously and…

**arXiv**: 2610.22020 · Preprint · not peer-reviewed

**Published**: 2026-10-15

**Authors**: Caelan Garrett, Neel Jawale, Fabio Ramos

## In plain words

Learning manipulation skills from demonstration works, but it needs enormous numbers of demonstrations, and teleoperation is too expensive per task. TAMP planners can solve tasks autonomously and therefore generate demonstrations without human input, but prior TAMP-generated data has been hard to learn from because the solutions are suboptimal and multi-modal (many different ways to solve the same task).

## AI summary

## Overview

**Research area:** Robotics — task and motion planning (TAMP), automated demonstration generation, and imitation learning / behavior cloning for visuomotor manipulation policies.

**Technical level:** Advanced. The paper assumes familiarity with PDDL-style planning, streams, inverse kinematics, motion planning, and behavior cloning (BC-RNN and Diffusion Policy).

**Scope:** The paper introduces DemoStream, a GPU-accelerated TAMP system with batched "streams" and batched computation-graph optimization that generates optimized demonstrations for imitation learning, evaluated in simulation across stacking, packing, multi-arm, and open-world RoboLab tasks, plus real-world demonstration collection on a Franka Panda.

## What This Paper Is About

Learning manipulation skills from demonstration works, but it needs enormous numbers of demonstrations, and teleoperation is too expensive per task. TAMP planners can solve tasks autonomously and therefore generate demonstrations without human input, but prior TAMP-generated data has been hard to learn from because the solutions are suboptimal and multi-modal (many different ways to solve the same task). The goal is to make TAMP produce *high-quality*, easy-to-learn demonstrations, not merely feasible ones, and to show this works on real hardware.

## Key Contributions

1. **Batched TAMP representations:** "batch streams," conditional samplers that take a batch of input tuples and return outputs for all of them at once (e.g., a batched IK stream solving N = 128 subproblems), plus batched versions of functions like `Distance` and `Collision`.
2. **A new planning algorithm (`batch-stream`)** built on the lazy-stream algorithm, whose key subroutine `batch-optimization` performs batched constraint satisfaction over a computation graph, exploring many candidate solutions in parallel and returning the lowest-cost binding.
3. **Automated demonstration generation via agentic, batched TAMP** end-to-end into imitation learning, including LLM coding agents that author batched goal tests for open-world natural-language goals.
4. **An empirical analysis** of how action space, TAMP and motion cost function, and batch size affect downstream policy success rate, plus simulation experiments on long-horizon, multi-robot, and open-world tasks, and safe real-world demonstration collection at 66 demos per hour.

## Main Findings

- **Feasible is not learnable:** Without solution optimization (a "Zero" cost), TAMP can still solve tasks but trains policies with 0% success in the Joint-Abs and Joint-Rel action spaces. For IK-Rel, Zero cost reached 46% (cuRoboV2), 20% (J-PRM), 34% (J-PRM:T), and 36% (T-PRM).
- **Task-space costing wins:** Minimizing task-space TAMP costs combined with a task-space PRM (T-PRM) gave the best BC-RNN results on Stack-Three across action spaces: 76% (Joint-Abs), 72% (Joint-Rel), and 82% (IK-Rel). The authors attribute this to reduced wrist-camera motion shrinking the observation distribution.
- **Diffusion Policy on the same data was stronger:** 86% (Joint-Abs), 90% (Joint-Rel), and 86% (IK-Rel) with the task-space cost configuration.
- **Soft end-effector minimization still helps:** J-PRM:T (joint-space PRM with a task-space metric) outperformed cuRoboV2 and J-PRM, and joint-space costs with cuRoboV2 (described as representative of cuTAMP) were also outperformed.
- **Better than MimicGen, without human demos:** DemoStream achieved a 93% demonstration success rate and 82% policy success rate versus MimicGen's 35% demo SR and 34% policy SR, over a DemoStream demo length of 113 ± 6 versus 243 ± 16. MimicGen episodes were individually faster (9s vs 6s per demo), but its higher failure rate made the time per *successful* demo worse. (The body text quotes the DemoStream demo SR as 92%.)
- **Bigger batches help:** Scaling the IK batch size from 1 to 256 by factors of 4 increased demo success rate, shortened demonstrations, narrowed their length distribution, and raised policy success rate.
- **Length alone does not predict learnability:** Halving and quartering execution speed produced longer demonstrations but policy success rose slightly to 90% and 92%; the authors report that coefficient of variation (standard deviation over mean) correlates meaningfully with policy success rate.
- **Hard tasks remain hard:** Demo success and policy success (BC-RNN / Diffusion) varied widely: Stack-Two 100% / 100% / 90%; Stack-Four 72% / 54% / 64%; Bin-Stack 97% / 82% / 98%; Multi-Arm 54% / 12% / 50%; Pack-Two 93% / 94% / 96%; Pack-Either 94% / 90% / 82%; 50% Blocked 99% / 88% / 86%; 100% Blocked 99% / 94% / 90%.
- **Open-world objects are harder to grasp:** RoboLab tasks showed lower demo success rates — Rubiks-Bowl 51%, Rubiks-Near 63%, Rubiks-Left 27%, Banana-Bowl 40%, Rubiks-Banana 3%, Mustard-Raisin 55%, Mustard-Bin 17% — yet several distilled into strong policies (e.g., Rubiks-Near BC-RNN 96%, Mustard-Bin BC-RNN 86%).
- **Real-world collection works:** On a DROID-style Franka Panda, DemoStream collected 75 demonstrations per task at 66 demos per hour, with demo success rates of 72% (Stack-Two, 178 ± 13 steps, 48s), 83% (Banana-Bin, 214 ± 19 steps, 49s), and 79% (Apple-Lime, 323 ± 28 steps, 69s); final-checkpoint policy success rates were 65%, 75%, and 60% respectively, averaging 67%.

## Methodology in Plain English

The system borrows a planning language (ScheduleStream) in which tasks are described with discrete objects, continuous robot configurations and SE(3) poses, and "streams" that generate candidate values satisfying predicates such as `Grasp`, `Support`, `Kin`, and `Motion`.

The core change is making those generators work on *batches*. Instead of one IK problem at a time, a batched IK stream takes 128 grasp/placement pairs and solves them together on the GPU. Grasp sampling generates 10,000 antipodal points per object with vectorized collision filtering, and placement sampling generates 10,000 candidate placements, also filtered in batch.

Planning happens in two nested loops. The outer algorithm repeatedly solves a discrete search problem over actions (`move`, `pick`, `place`), then, for the found plan, retraces the streams into a computation graph and extracts the plan's cost functions. The inner subroutine walks through that graph, expanding a list of candidate parameter bindings batch by batch, evaluating costs in batch and keeping the cheapest bindings, and finally returns the minimum-cost binding (or fails if the best cost exceeds a threshold). Because costs are evaluated as soon as values are bound, cheap branches are prioritized inside the batched calls.

For data collection, the authors sample initial states, plan, execute plans open-loop in batched simulation (IsaacLab), keep successful rollouts, and stop at 1,000 demonstrations. They then train BC-RNN or Diffusion Policy models on observations (proprioception plus wrist and external camera images) to predict actions, and measure rollout success. Real-world object geometry is estimated from a SAM3-segmented point cloud, since TAMP cannot read ground-truth geometry there.

## Why This Matters

The paper reframes demonstration generation as a *data quality optimization* problem rather than a coverage problem: it shows quantitatively that a planner which solves tasks but ignores solution quality can produce datasets that train policies with zero success. That is a useful negative result for anyone building synthetic robot datasets.

Real-world applications:

- **Warehouse and logistics picking/stacking**, where tasks change constantly and annotated human demos per task do not scale.
- **Household service robots** handling open-ended natural-language goals ("put the Rubik's cube left of the bowl") in unstructured scenes.
- **Manufacturing bin packing and kitting**, where collision-aware placement and multi-arm coordination matter.
- **Data engines for foundation models / VLAs**, supplying large volumes of safe, autonomously collected real robot trajectories without teleoperators present.

Industry relevance: the work is squarely aimed at the data bottleneck for vision-language-action models, and it demonstrates a path from GPU-accelerated planning infrastructure to production-scale robot data collection, with reported throughput of 66 demos per hour and safety guarantees from planning.

## Future Directions

- **Reduce the TAMP bottleneck:** the authors note TAMP, not simulation, is the bottleneck at several seconds per successful demonstration, and that batching whole problems (rather than solution optimization) trades off quality against GPU memory.
- **Improve grasping for complex objects:** RoboLab results (down to 3% demo success on Rubiks-Banana) show the grasp sampler needs more attempts or better geometry estimation; how to systematize that is left open.
- **Extend the cost-function study:** the finding that task-space costs help is explained by wrist-camera motion, but whether this generalizes to other camera arrangements, mobile bases, or tactile sensing is unexamined.
- **Scale autonomy further:** the real-world pipeline still relies on human-performed randomized resets and success labeling for some tasks, which the authors suggest TAMP could automate.

## Target Audience

Robotics researchers and engineers working on manipulation, task and motion planning, and learning from demonstration; practitioners building synthetic data pipelines for imitation learning or VLA training; and graduate students who want a concrete example of using GPU batching to improve solution quality in a combinatorial planner. Readers need comfort with planning formalisms and behavior cloning to follow the technical details, though the central takeaway — that demonstration quality determines whether imitation learning works at all — is accessible to a broader audience.

## Authors’ abstract

Learning from demonstration is an effective strategy for endowing robots with manipulation capabilities but requires training on datasets comprised of massive amounts of demonstrations. Existing demonstration collection approaches either require constant human involvement, for example, via teleoperation or are specialized for a single task. Task and Motion Planning (TAMP) systems are able to autonomously solve and therefore generate demonstrations for general-purpose tasks;…

[The full abstract on arXiv](https://arxiv.org/abs/2610.22020)

[Read the original paper](https://arxiv.org/abs/2610.22020)

## Related papers

- [cuArms: GPU-Accelerated Conflict-Based Planning for Multi-Arm Manipulation](https://robotics.world/paper/cuarms-gpu-accelerated-conflict-based-planning-for-multi-arm-2610.36250) 2026-10-26 · cs.RO · Also by Caelan Garrett, Fabio Ramos
- [Learning Keypoint Constraints from Visual Demonstrations for Safe Motion Planning](https://robotics.world/paper/learning-keypoint-constraints-from-visual-demonstrations-for-safe-2610.19295) 2026-10-13 · cs.RO · Key terms of the title in common
- [ARC: A Reasoning Recipe for Robot Foundation Models](https://robotics.world/paper/arc-a-reasoning-recipe-for-robot-foundation-models-2610.12386) 2026-10-08 · cs.RO · Also by Fabio Ramos
- [Learning Task and Motion Plans from Real Demonstrations with Hybrid Flow Matching](https://robotics.world/paper/learning-task-and-motion-plans-from-real-demonstrations-with-hybrid-2610.04771) 2026-10-03 · cs.RO · Key terms of the title in common
- [OpenJaws: An Open Hardware UMI Framework with Stereo Localization for Generalist Manipulation](https://robotics.world/paper/openjaws-an-open-hardware-umi-framework-with-stereo-localization-for-2610.36598) 2026-10-27 · cs.RO · Also by Neel Jawale

---

Canonical: https://robotics.world/paper/demostream-batched-task-and-motion-plan-optimization-for-automated-2610.22020
