Research
Learning Task and Motion Plans from Real Demonstrations with Hybrid Flow Matching
Long-horizon mobile manipulation requires deciding what to do (which cube to pick, where to place it) and how to move (base and arm trajectories), and the two decisions constrain each other.

- arXiv
- 2610.04771 · Preprint · not peer-reviewed
- Published
- 2026-10-03
- Authors
- Zuleika Redondo Garcia, Andreu Matoses Gimenez, Javier Alonso-Mora
In plain words
Long-horizon mobile manipulation requires deciding what to do (which cube to pick, where to place it) and how to move (base and arm trajectories), and the two decisions constrain each other.
AI summary
Overview
Research area: Robotics — task and motion planning (TAMP), imitation learning, and generative modeling (flow matching) for mobile manipulation.
Technical level: Advanced. The paper assumes familiarity with diffusion/flow-matching generative models, transformer architectures, and symbolic planning formalisms, though the core idea is describable in plain terms.
Scope: A single-network planner that jointly generates a symbolic action plan and continuous base-plus-end-effector trajectories for a mobile manipulator, trained from roughly one hundred real teleoperated demonstrations and executed in closed loop.
What This Paper Is About
Long-horizon mobile manipulation requires deciding what to do (which cube to pick, where to place it) and how to move (base and arm trajectories), and the two decisions constrain each other. Classical task and motion planning solves this with hand-written symbolic models plus expensive search; generative planners avoid the hand-written model but have so far needed thousands of scripted demonstrations on fixed-base arms and have been run open loop. This paper asks whether a single generative network can learn both levels from a small set of real teleoperated demonstrations and replan after every action.
Key Contributions
-
A hybrid flow matching planner in which one transformer simultaneously produces a symbolic plan using masked discrete flow matching and a motion trajectory using continuous flow matching, so each modality conditions the other during generation.
-
A training and generation scheme for the discrete plan that improves symbolic validity: grammar-constrained token reveal, freezing positions after the end-of-sequence token, supervision of padding positions, remasking steps, and learned balancing of the discrete and continuous losses via uncertainty weighting.
-
Two data augmentations exploiting the structure of task-and-motion demonstrations — plan suffixes (every suffix of a demonstration is itself a demonstration, giving M training samples from an M-action demo and enabling replanning after every action) and symbolic permutations of interchangeable objects (turning one demonstration into demonstrations of every permuted goal).
-
An evaluation on real demonstrations against motion-only flow matching and the hybrid diffusion formulation of Høeg et al., including ablations, a kinematic-simulation study of open- versus closed-loop execution, and deployment on a real mobile manipulator.
Main Findings
-
Plan validity improves step by step: the base implementation produces valid plans on 68% of held-out scenes; adding pad supervision gives 71%; adding learned loss balancing (the full method) reaches 76%. Unconstrained generation yields 55%.
-
Long-horizon validity is the bottleneck: validity is near perfect with four or fewer actions remaining but falls to about one third beyond 13 actions. On training demonstrations of similar length, validity stays above 95% up to 17 actions, so the failures are attributed to generalization to unseen scenes rather than model capacity.
-
Closed-loop replanning helps substantially: replanning after every action raises task completion from 40% to 53% in kinematic simulation (a 13% overall gain), and from 0 to 10–30% at long horizons. Between 8–10% of rollouts recover after a failed action.
-
Comparable to motion-only flow matching, with an explicit plan: motion-only flow matching reaches 39% open loop and 52% closed loop, against 40% and 53% for the hybrid planner, which additionally outputs the symbolic plan, supports action-level replanning, and supports goal conditioning.
-
Better than hybrid diffusion: the hybrid diffusion baseline trained on the authors' suffix samples reaches 62% plan validity and 6%/9% task completion (open/closed loop); trained on whole demonstrations it reaches 8% validity and 0% completion. Its median end-effector error is 0.71 m versus 0.25 m for the proposed method.
-
Permutation augmentation trades execution for generality: the goal-conditioned policy matches the base method's 76% plan validity and has the best long-horizon validity in the study (53%), but its task completion drops by 14%, which the authors attribute to the object-wise observation encoding required by the augmentation.
-
Ablation isolates each component: grammar and freezing raise validity from 55% to 68% and closed-loop completion from 41% to 53%; pad supervision adds 3% validity; learned loss balancing raises validity to 76% and long-horizon validity to 33%.
-
Real robot deployment works but is limited: across 30 unseen cube placements, the tower was built in about 30% of runs from short plans (d ≤ 6) and 10% from long plans (d ≥ 8); failures are grasps missed by a few centimeters and placements off the support.
-
Image-based perception holds up: replacing motion-capture object poses with DINOv2 keypoint-estimator features preserves plan validity (78% versus 76%) and costs 6% of open-loop task completion.
Methodology in Plain English
The robot is given a snapshot of the scene (its own pose and every object pose) and a symbolic goal, such as "R on Y on G on table T1". The system must output two aligned things: a sequence of actions in a small vocabulary (move to an approach region, pick a cube, place it on a support) and a matching sequence of waypoints for the base, end effector, and gripper.
Training data are 109 teleoperated demonstrations of a Clearpath Dingo-O base with a Kinova Gen3 Lite arm, plus 12 held-out validation demonstrations. Each demonstration contains 4–18 labeled actions and 17–69 waypoints sampled roughly every 0.8 s, and every waypoint is a 14-number vector.
The network is a single small transformer (four layers, width 256, eight heads, 7.5 million parameters). The plan is treated as a token sequence with a known grammar; noise in this modality means replacing tokens with a mask, and the model learns to predict the masked tokens. The trajectory is treated as continuous data; noise means Gaussian noise, and the model learns to predict the velocity that moves noise toward the demonstration. Both flows share one transformer and run in parallel, each feeding the other, with their own independent flow times. Generation runs for 100 steps.
Three tricks keep the generated plans well-formed: at each step, a token is only revealed if the grammar permits it under every possible completion of the masked prefix; once an end token appears, nothing after it is revealed; and at three fixed steps the least-confident tokens are re-masked and predicted again.
Data efficiency comes from reusing demonstrations. Cutting a demonstration at every action boundary produces M training samples from an M-action demo, and it is exactly what is needed to execute one action, observe the result, and replan. Renaming interchangeable cubes consistently in the goal, plan, and observation yields additional demonstrations of other tower orders at no cost, with the same physical trajectory. The discrete and continuous losses are combined with learned log-variance weights rather than a fixed weight.
Evaluation checks the sampled plan against a symbolic model, then executes it in a kinematic simulation where a cube within 9 cm of the end effector attaches when the gripper closes and released cubes settle on the support below.
Why This Matters
The work shows that a hand-written planning domain and a search procedure are not required for long-horizon mobile manipulation, and that a joint symbolic-plus-continuous generator can be trained from a demonstration set small enough to collect by teleoperation rather than by scripting. It also quantifies where the remaining gap lies: symbolic generalization over long horizons, and sub-centimeter execution accuracy in grasping and placement.
Potential real-world applications:
- Household tidying and object rearrangement, where a mobile robot must decide an ordering of picks and places and the base poses from which each is reachable.
- Assembly and construction tasks, such as building a stack or structure whose feasibility depends on which object is placed first.
- Warehouse and logistics manipulation, where a mobile base must approach shelves from valid sides before picking.
- Service robotics in cluttered rooms with multiple tables or surfaces of different heights, where the approach region matters as much as the grasp.
Industry relevance: the method trains in about 20 minutes on a single NVIDIA RTX 3090 and runs at 100 sampling steps, which is compatible with the compute typically available on a mobile manipulator. Replanning after every action converts a missed grasp into a retry rather than a failed run, which matters for deployment where per-run failures are costly.
Future Directions
- Closing the long-horizon generalization gap. Validity falls to roughly one third beyond 13 actions on unseen scenes, even though the model reproduces long training demonstrations above 95% validity. More diverse scenes, or a different conditioning scheme, are natural next steps.
- Decoupling goal conditioning from execution accuracy. The object-wise observation encoding needed for permutation augmentation costs 14% task completion while giving the best long-horizon validity; finding an encoding that preserves both is an open problem.
- Improving low-level precision. The authors report that most execution failures are grasp or placement errors of a few centimeters that better symbolic validity cannot fix, pointing to refinement of the continuous trajectory or of the gripper commands.
- Scaling the vocabulary and task set. The study uses three action types, three cubes, three tables, and ten approach regions across 109 demonstrations; whether the approach holds for richer action sets, more objects, and non-rigid or multi-object grasps is untested.
Target Audience
Robotics researchers working on task and motion planning, imitation learning, and generative policy learning; practitioners building mobile manipulation systems who need a planner trainable from teleoperated data rather than a hand-engineered domain; and graduate students familiar with diffusion or flow matching who want a concrete example of jointly modeling discrete and continuous decisions in one network. Readers without background in generative modeling will find the empirical comparisons and the closed-loop analysis accessible, but the method sections assume prior exposure to flow matching and transformer architectures.
Authors’ abstract
Long-horizon mobile manipulation requires a task plan and the motion that executes it. Generative planners trained on demonstration produce both in one pass, requiring neither a symbolic domain nor search. To date, however, they have relied on thousands of scripted demonstrations of fixed-base arms and executed open loop. This paper presents a hybrid flow matching planner: a single network generates the symbolic plan with masked discrete flow matching and the motion…
The full abstract on arXivRelated papers
- Flow Policies as Actions of Skill-Level World Models: Learned and Symbolic Abstractions for Long-Horizon Planning 2026-10-03 · cs.RO · Also by Andreu Matoses Gimenez, Javier Alonso-Mora
- Interaction-Aware Sampling-Based Motion Planning for Autonomous Surface Vessels in Urban Waterways 2026-10-30 · cs.RO · Also by Javier Alonso-Mora
- NeurRAFT: Robot Motion Planning via Anchor-Level Flow Matching with Clearance-Aware Preference Tuning 2026-08-25 · cs.RO · Key terms of the title in common
- DiFF: Doppler-informed Flow Matching for Human Motion Flow 2026-09-30 · cs.RO · Key terms of the title in common
- Learning Keypoint Constraints from Visual Demonstrations for Safe Motion Planning 2026-10-13 · cs.RO · Key terms of the title in common