TL;DR
STRAP (Sub-sequence Trajectory Retrieval for Augmented Policy Learning) bypasses the need for massive, hard-to-train generalist robot policies by retrieving relevant sub-trajectories from large offline datasets at deployment time. By combining off-the-shelf vision foundation models with subsequence dynamic time warping, STRAP enables data-efficient, few-shot imitation learning that significantly outperforms standard multi-task and full-trajectory retrieval methods.
What Problem Does This Paper Address?
In robot learning, the standard approach to leveraging large, diverse datasets is to train a massive, multi-task "generalist" policy. However, these generalist models frequently suffer from negative transfer—where learning conflicting behaviors across different tasks degrades performance on any single specific task.
While fine-tuning a specialist policy on a target task is an alternative, collecting enough in-domain data is expensive and time-consuming. Non-parametric data retrieval offers a middle ground: use a few target demonstrations to pull relevant data from a large offline corpus to augment training.
The catch? Prior retrieval methods usually retrieve entire trajectories or single states. This is highly limiting because two tasks might be completely different overall (e.g., "baking a cake" vs. "cleaning a counter") but share identical low-level behaviors (e.g., "wiping a surface" or "opening a drawer"). Full-trajectory retrieval misses these shared sub-components, leading to severe data underutilization.
Methods
The authors introduce STRAP, a framework that automatically extracts and retrieves data at the sub-trajectory level.
The STRAP pipeline consists of four main steps:
- Automatic Segmentation: Target demonstrations ($\mathcal{D}_{\text{target}}$) are automatically sliced into atomic motion chunks (sub-trajectories) using a simple proprioceptive heuristic: identifying "transition states" where the robot's end-effector velocity drops below a certain threshold (e.g., pausing right after grasping an object).
- Foundation Model Embedding: Instead of training domain-specific encoders from scratch, STRAP uses off-the-shelf vision foundation models (like DINOv2 or CLIP) to embed camera frames. These models provide robust, semantic representations that ignore spurious visual changes like lighting or background textures.
- Subsequence Dynamic Time Warping (S-DTW): To match a short target sub-trajectory against much longer, unsegmented trajectories in the offline dataset ($\mathcal{D}_{\text{prior}}$), STRAP utilizes S-DTW. This allows the system to find optimal matches regardless of variations in execution speed, trajectory length, or where the behavior occurs within the larger sequence.
- Augmented Policy Learning: The retrieved sub-trajectories ($\mathcal{D}_{\text{retrieval}}$) are combined with the original target demonstrations. A language-conditioned transformer policy is then trained on this augmented dataset via Behavior Cloning (BC).
Datasets
The authors evaluated STRAP across both simulated and real-world environments:
- LIBERO Benchmark (Simulation): Evaluated on 10 long-horizon manipulation tasks (LIBERO-10) acting as $\mathcal{D}_{\text{target}}$, utilizing a prior dataset of 4,500 trajectories across 90 different tasks (LIBERO-90) as $\mathcal{D}_{\text{prior}}$.
- DROID-Kitchen (Real World): A vegetable pick-and-place task evaluated across three real kitchen environments. The prior dataset included 150 multi-task demonstrations, scaled up in further experiments with an additional 5,000 trajectories from the large-scale open-source DROID dataset.
- Franka-Pen-in-Cup (Real World): Used to evaluate STRAP's ability to retrieve sub-tasks from a completely "unrelated" prior dataset consisting of 100 demonstrations across 10 distinct tasks.
Key Insights and Ideas
- Granularity is Everything: Slicing trajectories into sub-sequences unlocks hidden value in multi-task datasets. Seemingly irrelevant tasks suddenly become useful training data because they share foundational kinematic primitives.
- Zero-Shot Perceptual Features Work Out-of-the-Box: Moving away from custom-trained VAEs or optical flow encoders to web-scale pre-trained models (DINOv2) makes retrieval highly robust against changes in object poses, textures, and backgrounds without requiring any in-domain encoder training.
- Duplication as Natural Up-Weighting: If a specific sub-trajectory is retrieved multiple times because it matches multiple target chunks, it naturally "up-weights" that crucial behavior in the training mix, improving policy robustness.
Key Results
- Simulation Performance: On the LIBERO-10 benchmark, STRAP outperformed state-of-the-art retrieval baselines (BehaviorRetrieval and FlowRetrieval) by +24.7% and +25.0% in success rate, respectively. It also beat full-trajectory retrieval by +4.1%, proving the value of sub-trajectory matching.
- Real-World Robustness: In the DROID-Kitchen environment, standard Behavior Cloning failed to generalize to new object poses (scoring 10–14%). STRAP achieved success rates between 45% and 63%.
- Scalability: When $\mathcal{D}_{\text{prior}}$ was expanded with 5,000 highly diverse trajectories from the DROID dataset, baseline multi-task policies collapsed due to data imbalance, whereas STRAP's performance actually improved because it cleanly filtered out irrelevant data.
Limitations and Future Work
- Heuristic Chunking: The velocity-threshold segmentation method is simple but can occasionally produce sub-optimal, overly long sub-trajectories if the robot doesn't distinctly pause between sub-tasks. The authors suggest integrating video-language models (VLMs) or action recognition networks for cleaner semantic segmentation in the future.
- Deployment Overhead: Because retrieval and policy training happen at test time based on the encountered scenario, there is a computational delay before deployment (approximately 5 minutes for retrieval and 35 minutes for policy training in their setup). Optimizing this pipeline for faster turnarounds remains an open engineering challenge.
Summary updated