Task-Prototype Guided Flow Matching for Few-Shot Generalization in Vision-Language Robot Manipulation
Organizations: School of Computer Science, Henan Institute of Science and Technology
Abstract
Vision-language robot manipulation policies can follow semantic instructions, but adapting them to a new procedure from only a few demonstrations remains difficult because language underspecifies contact timing, motion phases, corrective behavior, and execution style. This paper presents Task-Prototype Guided Flow Matching (TP-Flow), a few-shot manipulation framework that converts support demonstrations into structured task-prototype tokens and uses them to guide both the initial flow prior and the velocity field. TP-Flow employs symmetric cross-attention with learnable queries to extract phase-level prototypes, parameterizes a task-adaptive initial distribution, and injects prototype information through gated adaptive normalization. It is trained with an episodic support-query objective and prototype contrastive regularization, so few-shot adaptation is simulated during training while nuisance information is suppressed. On the LEROBOT-ARM-SO101 platform, TP-Flow achieves 66.8%, 79.6%, and 82.1% success rates under 1-, 4-, and 6-shot settings, with a 75.5% few-shot AUC. At 1-shot, it improves over CFM, Pooled-Demo CFM, and In-Context Flow by 29.8, 14.5, and 9.9 percentage points. It also improves held-out target-group generalization across novel-object transfer, goal recombination, long-horizon composition, and contact/correction tasks. TP-Flow maintains real-time execution with six online prototype tokens, 54.3 ms latency, 3.9 GB peak memory, and a 10 Hz control rate, while reducing the noisy-support success drop to 6.2%. Theoretical diagnostics show that prototype distance aligns with action-distribution distance, the adaptive prior reduces transport cost, and gated modulation keeps measured trajectory deviations below the derived ODE bound. The code repository is omitted for anonymous review.
Figures & tables
| Split | Task group | Representative task examples |
| Source | short-horizon prior | grasp a red cube; place a blue cube into a gray tray; push a green block to a target mark; close a book; grasp a spray bottle; press a stapler |
| Target | spatial transfer | place the cube in the left tray; move a cup to the back-right region; push a puck to a shifted mark; place a marker into a pen holder; place headphones into a paper box |
| Target | object transfer | grasp a spray bottle with changed pose; pick a soft sponge block; place a transparent cup upright; grasp a thin marker pen; handle folded headphones near a paper box |
| Target | goal transfer | pour water from a bottle into a cup; place a cup on a coaster; put a marker into a pen holder; cover a tea canister with its lid; transfer a block from bowl to tray |
| Target | long-horizon | pour water into a cup after bottle alignment; cover the tea canister after lid pickup; place headphones into a paper box; carry a cube around an obstacle and place it |
| Diag. | robustness | cluttered support demo; eight-frame support subsampling; perturbed support object pose; failed lid alignment; stapler press with shifted contact point; small support-view occlusion |
| Hyperparameter | Value |
| RGB resolution | |
| Robot-state dimension | |
| Action dimension | |
| Hidden dimension | |
| Support shots | |
| Support tokens per demo |
| Method | SR@1 | SR@2 | SR@4 | SR@6 | FS-AUC | Gain@1 | Horizon |
| ResNet-T | |||||||
| Transformer BC | |||||||
| OpenVLA | |||||||
| ACT | |||||||
| Diffusion Policy | |||||||
| FlowPolicy |
| Target group | Best-base method | Best-base SR | TP-Flow SR | Gain | Avg. horizon |
| Spatial transfer | In-Context Flow | ||||
| Object transfer | In-Context Flow | ||||
| Goal transfer | Pooled-Demo CFM | ||||
| Long-horizon | In-Context Flow | ||||
| Robust diagnostic | Pooled-Demo CFM |
| Method | SR@4 | Smoothness | Replan error | Action norm | Contact recovery | Jerk events |
| OpenVLA | ||||||
| ACT | ||||||
| Diffusion Policy | ||||||
| FlowPolicy | ||||||
| CFM | ||||||
| Pooled-Demo CFM |
| Method | Clean SR | Noise-drop | Proto. stab. | Latency ms | Context len. | Mem. GB | Gate/noise corr. |
| Pooled-Demo CFM | 1 | ||||||
| In-Context Flow | 64 | ||||||
| TP-Flow w/o adaptive prior | 6 | ||||||
| TP-Flow w/o gated modulation | 6 | ||||||
| TP-Flow w/o contrastive loss | 6 | ||||||
| TP-Flow | 6 |
| Target group | Representative query tasks | Best-base method | Best-base SR | TP-Flow SR | Gain | Horizon |
| Seen-task variation | close a book; grasp a spray bottle with a changed initial pose; press a stapler from a shifted contact point | In-Context Flow | ||||
| Novel object | grasp a spray bottle; place folded headphones into a paper box; grasp a thin marker pen | In-Context Flow | ||||
| Goal recombination | pour water from a bottle into a cup; place a marker into a pen holder; cover a tea canister with its lid | Pooled-Demo CFM | ||||
| Long-horizon composition | align bottle and pour water into a cup; pick up a lid and cover the tea canister; place headphones into a paper box after reorientation | In-Context Flow | ||||
| Contact and correction | press a stapler; recover marker insertion after rim contact; correct lid pose before covering the tea canister | Pooled-Demo CFM |
| Variant | SR@1 | SR@4 | FS-AUC | Noise-drop | Proto. stab. | Latency ms |
| Full TP-Flow | ||||||
| w/o structured prototype | ||||||
| w/o reverse attention path | ||||||
| w/o adaptive prior | ||||||
| w/o gated AdaLN | ||||||
| w/o contrastive loss |
| Method | Online conditioning | Scaling | Context len. | Latency ms | Peak mem. GB | Control rate Hz |
| CFM | none | 0 | ||||
| Pooled-Demo CFM | pooled support vector | 1 | ||||
| In-Context Flow | raw support tokens | 64 | ||||
| TP-Flow w/ | prototype tokens | 4 | ||||
| TP-Flow w/ | prototype tokens | 6 | ||||
| TP-Flow w/ | prototype tokens | 8 |
Generalization in Robotic Manipulation
Generalization in robotic manipulation studies how robots transfer grasping and interaction skills to new objects, scenes, tasks, and embodiments.
See all 353 papers