TL;DR
While Large Language Models (LLMs) naturally exhibit in-context learning (ICL), Vision-Language-Action (VLA) robotic models pre-trained via imitation learning do not. RICL (Retraining for In-Context Learning) injects ICL capabilities post-hoc into an off-the-shelf VLA ($\pi_0$-FAST) using a modest dataset of 400 demonstrations. At test time, simply providing 10–20 demonstrations enables the robot to adapt to novel objects, motions, and scenes via retrieval-augmented generation—achieving a 31.25% success rate without a single gradient update, compared to just 2.5% for the base VLA.
What Problem Does This Paper Address?
Foundation models in NLP and computer vision can quickly adapt to new instructions or tasks simply by providing a few prompt examples in their context window. In robotics, however, multi-task VLAs are typically trained on narrower imitation learning objectives. Consequently, they lack emergent ICL capabilities: teaching a pre-trained VLA a new skill or object requires expensive gradient-based fine-tuning.
The authors ask: How can we inject in-context learning abilities into a pre-trained VLA post hoc, allowing users to teach a robot new behaviors with just a handful of reference demonstrations and zero parameter updates?
Methods
RICL adapts the retrieval-augmented generation (RAG) framework from recent agent architectures (like REGENT) and applies it to a pre-trained autoregressive VLA, specifically $\pi_0$-FAST-DROID:
- Retrieval Mechanism: When querying the model at state $s_t$, the system uses an off-the-shelf, frozen DINO-v2 encoder to embed the current top-down camera image. It queries an in-memory buffer of task demonstrations using $\ell_2$ distance in FAISS to retrieve the top 4 nearest neighbor states.
- Context Formatting: The retrieved multi-view images (top, side, wrist), task prompt, proprioceptive states, and action chunks are concatenated sequentially into the context window of the VLA, ordered from closest to furthest neighbor, followed by the current query state.
- Action Interpolation Layer: Rather than forcing the LLM backbone to predict continuous actions entirely from scratch, RICL combines the one-hot encoding of the nearest retrieved action token $a'$ with the LLM's predicted token distribution via distance-weighted exponential interpolation: $$\pi_{\text{RICL-VLA}} = e^{-\lambda d} \text{one-hot}(a') + (1 - e^{-\lambda d}) \sigma(\pi_\theta)$$
- Priming / Post-Training: Only the LLM backbone of the VLA is fine-tuned for 3 epochs; the vision encoder remains frozen. During training, cross-entropy loss is minimized purely over the query action predictions.
- RICL-Finetuning ("Finetune Like You Pretrain"): If test-time gradient updates are allowed, fine-tuning the model directly on the 20 task demonstrations using the exact same retrieval-augmented objective yields dramatic compounding performance gains.
Datasets
- Priming Dataset: The authors collected 400 demonstrations across 20 distinct pick-and-place tasks (20 demonstrations per task) on a real-world Franka DROID arm platform.
- Base Pre-training Data: Built on top of $\pi_0$-FAST-DROID, pre-trained on open-source robot trajectories and fine-tuned on the large-scale, in-the-wild DROID dataset.
- Evaluation Tasks: 8 evaluation tasks spanning novel objects and motions completely absent from DROID and priming data (e.g., grasping an idli plate with depressions, dragging/lifting a squeegee, slotting a bagel into a toaster), long-tail tasks (shelf door opening, toaster levers), and transfer to an entirely unseen kitchen sink environment.
Key Insights and Ideas
- Post-Hoc Adaptation is Sample-Efficient: A base VLA doesn't need to be trained from scratch with ICL objectives. Fine-tuning an existing 3B LLM backbone on just 400 priming demonstrations across 20 tasks is sufficient to unlock retrieval-based ICL.
- RAG Frees Parameter Capacity: Fine-tuning the RICL-VLA on task demonstrations drastically outperforms vanilla fine-tuning of the base VLA (61.67% vs. 31.67%). Because retrieval places relevant demonstrations directly in context, the model avoids memorization and allocates its capacity toward interpolating relevant actions.
- Latent Action Elicitation: In several rollouts, RICL exhibited emergent strategies not strictly present in the retrieval demos (e.g., closing its gripper and pushing an idli plate from the side instead of dipping fingers into the depressions), demonstrating that retrieved context can prime internal pre-trained representations rather than just acting as a rigid copy-paste mechanism.
- Zero Capability Degradation: When populated with uninformative, randomly chosen priming demonstrations, RICL maintained an 80% success rate on original tasks, matching the zero-shot capabilities of the base $\pi_0$-FAST model.
Key Results
- Zero-Shot Adaptation (No Gradient Updates):
- Base $\pi_0$-FAST-DROID: 2.5% full task success; 21.25% checkpoint completion rate.
- RICL-$\pi_0$-FAST-DROID: 31.25% full task success; 83.75% checkpoint completion rate with 20 retrieved demonstrations.
- Task Fine-Tuned (With Gradient Updates on 20 Demos):
- Vanilla $\pi_0$-FAST-DROID Fine-Tuned: 31.67% full success.
- RICL-$\pi_0$-FAST-DROID Fine-Tuned: 61.67% full success (nearly double the performance).
- Retrieval Sensitivity: Ablations on demonstration count show that performance plateaus require at least 10–20 demonstrations; dropping to 5 demonstrations causes the model to regress toward base VLA failure modes.
- Inference Speed: Retrieval with FAISS takes $<1$ ms. Despite context expansion, deployment runtimes only increased by $\approx 1.33\times$ compared to the base model.
Limitations and Future Work
- Demonstration Acquisition: RICL still relies on teleoperated robot trajectories. Incorporating human video demonstrations as retrieval context remains an open challenge.
- Motion Bounds: The model struggles to adapt to motions radically outside the distribution of its base pre-training (e.g., dynamic motions like swinging a tennis racket).
- Perceptual Sensitivity: While robust to minor tabletop perturbations and lighting changes, retrieval performance degrades under extreme viewpoint transformations unless similar viewpoint distributions are included during priming.
Summary updated