Task-Agnostic Pre-training and Task-Guided Fine-tuning for Versatile Diffusion Planner¶
Conference: ICML2025
arXiv: 2409.19949
Code: To be confirmed
Area: Diffusion Models / Reinforcement Learning / Multi-Task Planning
Keywords: Diffusion Models, Multi-Task RL, Pre-training and Fine-tuning, Sub-optimal Data, Policy Gradient, Behavior Cloning Regularization
TL;DR¶
Proposes the SODP framework: first pre-trains a diffusion planner with a large dataset of sub-optimal multi-task trajectories without reward labels, then quickly adapts to downstream tasks using policy-gradient-based RL fine-tuning, and introduces BC regularization to prevent performance collapse, achieving a 60.56% success rate (SOTA) on Meta-World 50 tasks.
Background & Motivation¶
- Difficulty in Multi-Task RL: Traditional methods assume a shared latent structure across tasks, making it difficult to capture multimodal optimal behavior distributions. Although diffusion models excel at modeling complex distributions, existing approaches either rely on costly expert demonstration data or require reward labels for each task.
- Core Problem: Can a versatile diffusion planner be learned from a large volume of low-quality, sub-optimal trajectories without reward annotations, enabling rapid adaptation to various downstream tasks?
- Motivation: Drawing an analogy to the pre-training + RLHF paradigm of LLMs, this work introduces the concept of "pre-training on a large amount of sub-optimal data followed by fine-tuning on a small amount of task-specific rewards" into the diffusion planner for multi-task RL.
Method¶
Overall Architecture¶
SODP = Sub-Optimal data → Diffusion Planner, which consists of pre-training and fine-tuning stages.
Stage One: Unconditional Pre-training¶
An unconditional diffusion model is trained on a multi-task mixed dataset \(\mathcal{D} = \cup_{i=1}^{N} \mathcal{D}_i\) to predict future action sequences based on historical states:
where \(\mathbf{a}_t^0 = (a_t, a_{t+1}, \ldots, a_{t+H-1})\) is an action sequence of length \(H\), and \(\mathbf{s}_t\) is a historical state sequence of length \(T_o\).
Pre-training Loss (standard denoising loss):
Key Designs: Focuses on shared action spaces (e.g., robot end-effector poses) to promote cross-task generalization, eliminating the need for reward labels or task descriptions.
Stage Two: Reward-Based Policy Gradient Fine-Tuning¶
The denoising process is modeled as a \(K\)-step MDP, optimized using PPO-style importance sampling:
Fine-Tuning Goal: Maximize the expected cumulative reward of the downstream task \(\mathcal{T}\): $\(J^{\mathcal{T}}(\theta) = \sum_t \mathbb{E}_{p_\theta(\mathbf{a}_t^0 | \mathbf{s}_t)} [r^{\mathcal{T}}(\mathbf{a}_t^0)]\)$
Policy Gradient Estimation (with PPO clipping):
where \(\rho_k(\theta, \theta_{\text{old}}) = \frac{p_\theta(\mathbf{a}_t^{k-1} | \mathbf{a}_t^k, \mathbf{s}_t)}{p_{\theta_{\text{old}}}(\mathbf{a}_t^{k-1} | \mathbf{a}_t^k, \mathbf{s}_t)}\) is the importance ratio.
BC Regularization¶
A behavior cloning regularization term is introduced to prevent performance collapse during fine-tuning, where the target policy \(\mu\) is approximated by recent optimal experiences:
Final Fine-Tuning Loss: \(\mathcal{L}_{\text{fine-tuning}}^{\mathcal{T}}(\theta) = \mathcal{L}_{\text{Imp}}^{\mathcal{T}}(\theta) + \lambda \mathcal{L}_{\text{BC}}(\theta)\)
Key Experimental Results¶
Main Results: Meta-World 50 Tasks (MT50-rand, sub-optimal data)¶
| Method | Average Success Rate |
|---|---|
| RLPD | 10.16% |
| IBRL | 25.29% |
| Cal-QL | 35.09% |
| MTBC | 34.53% |
| MTDQL | 17.33% |
| MTDT | 42.33% |
| MTIQL | 43.28% |
| Prompt-DT | 48.40% |
| MTDIFF-P | 48.67% |
| HarmoDT-F | 57.20% |
| SODP (Ours) | 60.56% |
Efficient Fine-Tuning Verification (Only 100k steps of online fine-tuning)¶
| Method | Average Success Rate |
|---|---|
| RLPD | 7.62% |
| Cal-QL | 24.60% |
| HarmoDT-F | 57.37% |
| SODP | 59.26% |
Regularization Ablation¶
- No regularization: Performance rapidly degrades, and the model loses its pre-trained capability.
- KL regularization: The model gets stuck oscillating near sub-optimal regions.
- PL (Pre-training Loss) regularization: Exploration lacks direction, potentially leading to worse regions.
- BC Regularization (Ours): Retains pre-trained knowledge while effectively exploring high-reward regions.
Multi-Task Pre-training Gains¶
Pre-training on MT-10 and transferring to unseen tasks leads to success rates such as: drawer-open 34.7%, plate-slide-side 55.3%, and handle-pull-side 71.3%, whereas pre-training on a single task fails completely (0%).
Highlights & Insights¶
- Paradigm Innovation: Successfully transfers the "pre-training + RLHF" paradigm from the LLM domain to multi-task RL diffusion planners, extracting value even from low-quality data.
- Ingenious BC Regularization Design: Uses recent optimal experiences to approximate the target policy, which simultaneously prevents forgetting and guides exploration, outperforming KL/PL regularization.
- High Data Efficiency: Achieves 59.26% success with only 100k steps of fine-tuning, with virtually no performance drop.
- Pre-training without Reward Labels: Lowers the barrier and cost of multi-task data collection.
Limitations & Future Work¶
- Validation Only in Simulation: Both Meta-World and Adroit are simulated environments; the method has not been tested on physical robots.
- Online Fine-Tuning Still Requires Environment Interaction: Each downstream task requires an online RL environment, and the sim-to-real gap for physical deployment is not discussed.
- Questionable Classification: The paper actually focuses on RL planning rather than image generation; the current categorization under
image_generationmight be inaccurate. - Scalability to be Verified: The scale of 50 tasks is limited; performance on larger-scale task sets (e.g., hundreds of tasks) remains unknown.
- Computational Cost of Denoising Steps \(K\): PPO fine-tuning requires computing the importance ratio for each denoising step, resulting in significant computational overhead when \(K\) is large.
Rating¶
- Novelty: ⭐⭐⭐⭐ — The first systematic exploration of the pre-training + RL fine-tuning paradigm on diffusion planners; the BC regularization design is innovative.
- Experimental Thoroughness: ⭐⭐⭐⭐ — Comprehensive evaluations on 50 tasks with various baselines and thorough ablation studies, though it lacks physical robot verification.
- Writing Quality: ⭐⭐⭐⭐ — Clear structure, solid mathematical derivations, and a standardized notation system.
- Value: ⭐⭐⭐⭐ — Provides a viable pathway for training multi-task agents driven by low-quality data.