ROSER: Few-Shot Robotic Sequence Retrieval for Scalable Robot Learning
Organizations: University of Nevada, Las Vegas · University of Toronto · LatentWorlds AI, NL
Abstract
A critical bottleneck in robot learning is the scarcity of task-labeled, segmented training data, despite the abundance of large-scale robotic datasets recorded as long, continuous interaction logs. Existing datasets contain vast amounts of diverse behaviors, yet remain structurally incompatible with modern learning frameworks that require cleanly segmented, task-specific trajectories. We address this data utilization crisis by formalizing robotic sequence retrieval: the task of extracting reusable, task-centric segments from unlabeled logs using only a few reference examples. We introduce ROSER, a lightweight few-shot retrieval framework that learns task-agnostic metric spaces over temporal windows, enabling accurate retrieval with as few as 3-5 demonstrations, without any task-specific training required. To validate our approach, we establish comprehensive evaluation protocols and benchmark ROSER against classical alignment methods, learned embeddings, and language model baselines across three large-scale datasets (e.g., LIBERO, DROID, and nuScenes). Our experiments demonstrate that ROSER consistently outperforms all prior methods in both accuracy and efficiency, achieving sub-millisecond per-match inference while maintaining superior distributional alignment. By reframing data curation as few-shot retrieval, ROSER provides a practical pathway to unlock underutilized robotic datasets, fundamentally improving data availability for robot learning.
Figures & tables
| Model | WD | DTW NN | Spectral WD | Temp Corr. | Density | Diversity |
|---|---|---|---|---|---|---|
| gemma | 0.17 | 12.98 | 0.0028 | 0.51 | 0.32 | 16.29 |
| llama | 0.16 | 12.08 | 0.0024 | 0.57 | 0.37 | 14.61 |
| momentfm | 0.14 | 11.04 | 0.0023 | 0.62 | 0.41 | 15.10 |
| qwen | 0.17 | 13.04 | 0.0029 | 0.51 | 0.29 | 15.07 |
| shapelet | 0.19 | 11.81 | 0.0034 | 0.56 | 0.40 | 11.74 |
| dtaidistance | 0.092 | 6.42 | 0.0022 | 0.70 | 0.75 | 7.27 |
| Model | WD | DTW NN | Spectral WD | Temp Corr. | Density | Diversity |
|---|---|---|---|---|---|---|
| gemma | 1.02 | 36.56 | 0.00071 | 0.35 | 0.59 | 51.69 |
| llama | 0.73 | 30.74 | 0.00073 | 0.37 | 0.79 | 50.05 |
| momentfm | 0.67 | 24.09 | 0.00086 | 0.42 | 0.79 | 48.86 |
| qwen | 0.96 | 43.95 | 0.00083 | 0.28 | 0.49 | 74.38 |
| shapelet | 0.93 | 32.25 | 0.0015 | 0.14 | 0.46 | 48.82 |
| dtaidistance | 0.54 | 13.19 | 0.00069 | 0.48 | 1.07 | 19.98 |
| Model | WD | DTW NN | Spectral WD | Temp Corr. | Density | Diversity |
|---|---|---|---|---|---|---|
| Gemma | 0.23 | 30.33 | 0.0021 | 0.35 | 0.69 | 49.54 |
| Llama | 0.23 | 29.56 | 0.0018 | 0.37 | 0.72 | 48.66 |
| Momentfm | 0.23 | 29.88 | 0.0019 | 0.36 | 0.64 | 48.87 |
| Qwen | 0.24 | 31.03 | 0.0023 | 0.33 | 0.65 | 50.05 |
| Shapelet | 0.26 | 29.64 | 0.0028 | 0.37 | 0.72 | 46.50 |
| Dtaidistance | 0.21 | 25.23 | 0.0017 | 0.37 | 0.80 | 34.97 |
| Dataset | K-Shot | WD | DTW NN | Spectral WD | Temp Corr. | Density | Diversity |
|---|---|---|---|---|---|---|---|
| Libero | 10 | 0.086 | 6.57 | 0.0019 | 0.72 | 0.69 | 8.8 |
| 7 | 0.10 | 6.84 | 0.0022 | 0.71 | 0.59 | 8.38 | |
| 5 | 0.12 | 8.41 | 0.0026 | 0.68 | 0.49 | 9.61 | |
| 3 | 0.11 | 7.06 | 0.0025 | 0.69 | 0.55 | 8.72 | |
| nuScenes | 10 | 0.27 | 12.84 | 0.00056 | 0.53 | 1.30 | 26.69 |
| 7 | 0.35 | 12.62 | 0.00050 | 0.54 | 1.24 | 23.65 |
| Model | LIBERO | nuScenes | DROID |
|---|---|---|---|
| Gemma | 0.1558 | 0.1348 | 0.1347 |
| LLaMA | 0.8566 | 0.7929 | 0.7919 |
| MomentFM | 0.1088 | 0.2092 | 0.1040 |
| Qwen | 0.4449 | 0.4225 | 0.4176 |
| Shapelet | 0.002526 | 0.001717 | 0.001617 |
| Dtaidistance | 0.09030 | 0.1805 | 0.1770 |
Appendix figures & tables39 assets
Supplementary material from the paper’s appendix.
Appendix
| Notation | Description |
|---|---|
| Offline, Retrieved and reference trajectory datasets (collections of tasks) | |
| Trajectories for task | |
| Individual trajectories from task of or | |
| Lengths of the r-th retrieved and i-th reference trajectories in task | |
| Number of features per time step | |
| Feature at time of trajectory or |
| Dataset | Top- | WD | DTW NN | Spectral WD | Temp Corr. | Density | Diversity |
|---|---|---|---|---|---|---|---|
| Libero | 50 | 0.080 | 4.96 | 0.0017 | 0.78 | 0.82 | 6.15 |
| 70 | 0.081 | 5.27 | 0.0018 | 0.77 | 0.77 | 6.75 | |
| 90 | 0.083 | 5.70 | 0.0019 | 0.75 | 0.71 | 7.46 | |
| 110 | 0.085 | 6.09 | 0.0019 | 0.74 | 0.67 | 8.11 | |
| 130 | 0.086 | 6.36 | 0.0020 | 0.73 | 0.64 | 8.62 | |
| 150 | 0.086 | 6.57 | 0.0019 | 0.72 | 0.69 | 8.8 |
| Dataset | Removed Feature | WD | DTW NN | Spectral WD | Temp Corr. | Density | Diversity |
|---|---|---|---|---|---|---|---|
| Libero | N/A | 0.086 | 6.57 | 0.0019 | 0.72 | 0.69 | 8.8 |
| EE Pos | 0.12 | 7.9 | 0.0023 | 0.67 | 0.51 | 9.2 | |
| Gripper States | 0.10 | 7.52 | 0.0023 | 0.67 | 0.56 | 9.12 | |
| Joint States | 0.12 | 9.28 | 0.0022 | 0.69 | 0.53 | 12.13 | |
| nuScenes | N/A | 0.27 | 12.84 | 0.00056 | 0.53 | 1.30 | 26.69 |
| Velocity | 0.41 | 17.22 | 0.0005 | 0.54 | 0.95 | 40.7 |