Sparse Diffusion Policy: A Sparse, Reusable, and Flexible Policy for Robot Learning

Yixiao Wang, Yifei Zhang, Mingxiao Huo, Thomas Tian, Xiang Zhang, Yichen Xie, Chenfeng Xu, Pengliang Ji, Wei Zhan, Mingyu Ding, Masayoshi Tomizuka

Abstract

As the field of robotics moves toward generalist agents capable of performing hundreds of tasks, traditional monolithic architectures face significant challenges in scalability, computational efficiency, and catastrophic forgetting. This paper introduces the Sparse Diffusion Policy (SDP), a modular framework that integrates Mixture of Experts (MoE) layers into a transformer-based diffusion policy. By selectively activating only a small subset of parameters for any given action, SDP achieves superior multitask performance while maintaining a constant inference cost. Our experiments across simulation and real-world environments demonstrate that SDP prevents forgetting during continual learning and enables rapid skill transfer to complex, long-horizon tasks with minimal parameter updates.

Introduction

The development of "generalist robots" requires models that can master a vast library of skills. However, traditional dense models activate every parameter for every task, leading to high computational overhead and a lack of modularity. When these models are fine-tuned on new tasks, they often suffer from catastrophic forgetting, where new knowledge overwrites previously learned skills. While parameter-efficient fine-tuning methods like LoRA exist, they often introduce an "inference tax" where the model's size grows linearly with the number of tasks.

Sparse Diffusion Policy (SDP) addresses these hurdles by creating a policy that is sparse, reusable, and flexible. By utilizing a Mixture of Experts (MoE) architecture, SDP allows for the efficient sharing of sub-skills across tasks while ensuring that the computational cost of inference remains fixed, regardless of the total number of tasks the robot has learned.

Methodology

SDP is built upon a transformer-based Diffusion Policy, modified to include MoE layers. The architecture consists of several key components:

1. The MoE Architecture and Router

Instead of standard dense layers, SDP utilizes layers containing multiple specialized "experts" (small neural networks). A router serves as a traffic controller, selecting the "Top-K" experts (typically one or two) best suited for the current state and task. This allows the model to activate only a fraction of its total parameters during any single inference step.

2. The Router as a Skill Planner

The authors conceptualize these experts as specialized skills. By chaining different experts together across multiple layers, the model can assemble complex behaviors from a library of simpler, modular building blocks. This combinatorial approach allows a finite set of experts to cover a vast behavior space.

3. Mutual Information (MI) Loss

To ensure experts actually specialize rather than becoming redundant generalists, the researchers introduced a specialized Mutual Information (MI) loss. This loss encourages experts to specialize in specific tasks or states, preventing bottlenecks and ensuring a diverse pool of available skills.

4. Continual Learning Strategy

SDP is designed for expansion. When a new task is introduced, the model freezes existing experts and routers to ensure "zero forgetting." It then adds a small number of new experts and a task-specific router. This modular expansion keeps the computational cost constant even as the robot's capabilities grow.

Experimental Evaluation

The researchers evaluated SDP across diverse environments to test its generalization and efficiency:

  • 2D Simulation (MimicGen): 8 tasks with 1K-10K human demonstrations each.
  • 3D Simulation (DexArt & Adroit): Complex dexterous manipulation tasks, including opening toilets, using hammers, and typing.
  • Real-World Robotics: Experiments using a FANUC LRMate industrial arm on tasks such as pulling objects, pick-and-place, and hanging cups.

Key Results and Insights

Multitask Efficiency and Success Rates

On the MimicGen benchmark, SDP outperformed dense baselines while requiring only a 1% increase in active parameters compared to a single-task model. In real-world tests, SDP maintained high success rates across all tasks, whereas dense baselines struggled to distinguish between different task distributions, particularly on complex tasks like "hanging a cup."

Efficient Skill Transfer

One of the most significant findings was the "Coffee Preparation" transfer experiment. A model pre-trained on simple tasks (like picking up a mug) was able to learn a complex, long-horizon coffee preparation task by training only a tiny task-specific router—representing less than 0.5% of the total parameters. This configuration achieved an 80% success rate, outperforming a model trained from scratch (70%) while using 250x fewer trainable parameters.

Zero-Forget Expansion

Because the architecture is modular and allows for freezing previous weights, the robot's performance on initial tasks remains identical even after learning dozens of subsequent tasks. This solves the catastrophic forgetting problem inherent in monolithic architectures.

Discussion and Future Work

While SDP represents a major step toward modular robot brains, some limitations remain. Currently, the router requires a task ID, which limits "universal" zero-shot performance where a robot might need to infer a task from natural language.

Future research directions include integrating SDP with Large Language Models (LLMs) to create language-conditioned routers. This would allow for more intuitive human-robot interaction and enable the robot to dynamically assemble skills based on verbal instructions, further enhancing the flexibility and usability of the Sparse Diffusion Policy framework.

Summary updated

BibTeX
@inproceedings{wang2024sparse,
  author = {Yixiao Wang and Yifei Zhang and Mingxiao Huo and Thomas Tian and Xiang Zhang and Yichen Xie and Chenfeng Xu and Pengliang Ji and Wei Zhan and Mingyu Ding and Masayoshi Tomizuka},
  title = {{Sparse Diffusion Policy: A Sparse, Reusable, and Flexible Policy for Robot Learning}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=zeYaLS2tw5},
}
Figure