Retrieve-Augmented Generation for Speeding up Diffusion Policy without Additional Training

Sodtavilan Odonchimed, Tatsuya Matsushima, Simon Holk, Yusuke Iwasawa, Yutaka MatsuoarXiv 2025 · DOI

Abstract

Diffusion Policies (DPs) have set new benchmarks in robotic imitation learning by capturing complex, multi-modal action distributions. However, their high inference latency, caused by iterative denoising, often limits real-time application. We present RAGDP (Retrieve-Augmented Generation for Diffusion Policies), a training-free framework that accelerates inference by up to 20x. By retrieving similar expert actions and using them as a "warm start" for the denoising process, RAGDP maintains high accuracy without the need for additional training or distillation.

Introduction

Robotic Diffusion Policies generate actions by iteratively refining Gaussian noise. While effective, this sequential process often requires over 100 steps, leading to significant computational overhead. Existing acceleration methods like fast samplers (e.g., DDIM) often sacrifice accuracy as step counts decrease, while knowledge distillation techniques (e.g., Consistency Policies) require extensive retraining and are susceptible to compounding errors known as covariate shift.

RAGDP addresses these challenges by leveraging a retrieval-based approach inspired by Large Language Models. Instead of starting from pure noise, RAGDP initializes the denoising process from a noisy version of a retrieved expert action, significantly reducing the required number of iterations while preserving task success rates.

Methodology

Framework Overview

RAGDP operates in two distinct stages: Knowledge Base Construction and Inference.

RAGDP Overview: (a) Diffusion Policy representation, (b) Observation and Prediction Horizons, and (c) the two-stage RAGDP framework.
  1. Stage 1: Knowledge Base Construction: Expert observation-action pairs from the training dataset are encoded into a vector space and stored in a database using FAISS.
  2. Stage 2: Inference (The "Leap"): Upon receiving a new observation $O_t$, the system queries the database for the most relevant expert demonstration. Rather than starting at the maximum noise level $\sigma_{max}$, the process "leaps" to an intermediate noise level defined by a leap-ratio ($r$).

The Leap Mechanism

The core innovation of RAGDP is the "warm start" initialization. The retrieved action is mixed with noise to match an intermediate step $rT$, and the pre-trained model performs only the remaining $(1-r)T$ steps. This allows the model to refine a structured action rather than inventing one from scratch.

Comparison of standard SDE denoising (top) vs. RAGDP's leap mechanism for Variance Preserving (VP) and Variance Exploding (VE) models across different leap-ratios.

RAGDP supports two main diffusion formulations to ensure compatibility with common models:

  • RAGDP-VP: Optimized for Variance Preserving models (e.g., DDPM).
  • RAGDP-VE: Optimized for Variance Exploding models (e.g., EDM).

Experimental Setup

The framework was evaluated on the robomimic benchmark across four tasks:

  • SQUARE-PH/MH: Nut-and-bolt assembly with human (PH) and mixed-quality (MH) data.
  • ToolHang-PH: Complex dual-tool manipulation.
  • Push-T PH: T-shaped object pushing task.

Results and Discussion

Performance and Efficiency

RAGDP demonstrates a superior speed-accuracy trade-off compared to standard fast samplers and distillation methods. At a 20x speedup, RAGDP-VP maintains a 64% recovery rate of the original model's performance, whereas standard fast samplers like DPM++ drop to 16%. Notably, RAGDP-VE at 4x speedup achieved a 103.36% recovery rate, suggesting that retrieval-refined actions can sometimes outperform the base model's generations from pure noise.

Key Insights

  • Warm Start Advantage: Initializing with a structured action allows the model to focus on local refinement to fit the current state rather than global structure discovery.
  • Training-Free Application: Unlike distillation, RAGDP can be applied to any pre-trained Diffusion Policy instantly without additional training costs.
  • Resilience: The method remains effective even with "dirty" or mixed-quality demonstration data in the knowledge base, showing robustness to sub-optimal demonstrations.

Conclusion and Future Work

RAGDP provides a robust, training-free solution for accelerating Diffusion Policies. While highly effective, the current implementation requires manual tuning of the leap-ratio $r$. Future work will focus on automating this selection and optimizing retrieval for extremely large-scale demonstration databases to ensure minimal overhead as the knowledge base scales.

Summary updated

BibTeX
@misc{odonchimed2025retrieve,
  author = {Sodtavilan Odonchimed and Tatsuya Matsushima and Simon Holk and Yusuke Iwasawa and Yutaka Matsuo},
  title = {{Retrieve-Augmented Generation for Speeding up Diffusion Policy without Additional Training}},
  year = {2025},
  eprint = {2507.21452},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.21452},
}
Figure