The Rise of Diffusion Models in Imitation Learning
- Sep 13, 2024
- 7 min read
The Short Version
Trace diffusion models from 2015 DDPMs through their adoption in imitation learning.
Apply Diffusion Policies (2021) to learn behaviors from unstructured datasets without reward functions.
Use BESO's Classifier-Free Guidance to cut denoising steps from over 30 to just 3 for real-time control.
Add attention mechanisms via OCTO (2024) to focus on critical action sequences and boost precision.
Adopt CrossFormers (2024) to handle long-range temporal and spatial dependencies in sequential tasks.
Weigh computational complexity, data quality dependency, and scaling challenges before deployment.
Consult the cited papers on DDPMs, GAIL, BESO, OCTO, and CrossFormers for deeper reading.

Who this is for
Robotics researchers
Imitation learning engineers
Machine learning practitioners
Robot control developers
AI product teams evaluating diffusion policies
Diffusion models have emerged as a transformative force in imitation learning, allowing robots to generate behaviors that closely mimic human actions. Originally designed for tasks like image generation, these models have evolved into powerful tools for teaching robots to learn from human demonstrations, handle uncertainty, and execute complex multi-step tasks with precision.
This article traces their development — from the early Denoising Diffusion Probabilistic Models (DDPMs) to recent advances like BESO, OCTO, and CrossFormers — exploring their strengths, weaknesses, and the breakthroughs that pushed the field forward.
How did diffusion models move from image generation to imitation learning?
Diffusion models began gaining attention in the generative modeling world around 2015, with the introduction of Denoising Diffusion Probabilistic Models (DDPMs). These models work by progressively adding noise to data and then learning to reverse that process, generating high-quality samples through a denoising procedure. The framework found early success in image generation, where DDPMs produced impressive results by creating images from random noise.
While diffusion models were first applied to image and text generation, researchers soon realized their potential for imitation learning. Imitation learning — teaching robots to mimic expert behavior through demonstrations — often struggles with noisy, unstructured data and the need to generate diverse action sequences. Diffusion models' ability to work with noise and generate plausible samples made them an ideal candidate for the job.
What are Diffusion Policies, and why did they matter?
By 2021, diffusion models were being applied directly to imitation learning challenges. The introduction of Diffusion Policies marked a turning point, letting robots learn behaviors from unstructured, large-scale datasets without reward functions or manual supervision. This was a departure from traditional methods like Generative Adversarial Imitation Learning (GAIL), which relied on reward functions and could struggle with complex, multi-modal tasks.
Diffusion Policies excelled at multi-step decision-making and robust generalization. Robots learned to act by denoising their inputs, progressively refining the predicted actions at each step. Their real strength lay in generating diverse behaviors — essential for real-world tasks where multiple solutions may be valid.
Strengths: Robust generalization, ability to handle noisy demonstrations, and multi-modal behavior generation.
Weaknesses: Slower action generation due to the high number of denoising steps required.

What did BESO add to goal-conditioned imitation learning?
One of the most significant advances came in 2022 with BESO (BEhavior generation with ScOre-based Diffusion Policies). BESO applied Score-based Diffusion Models (SDMs) to Goal-Conditioned Imitation Learning (GCIL), tackling the challenge of generating goal-directed behaviors from unstructured play data.
What set BESO apart was its use of Classifier-Free Guidance (CFG), which let it learn both goal-dependent and goal-independent policies at the same time. That flexibility made it capable across a wide range of tasks. BESO also improved efficiency dramatically, reducing the number of denoising steps from over 30 to just 3 — making it far more suitable for real-time robotic applications.
Strengths: Fast action generation with minimal denoising steps, multi-task learning, and generalization to both goal-dependent and independent tasks.
Weaknesses: Still somewhat limited by the quality of unstructured data used for training.
Key Reference: Ajay et al. (2022), "Goal-Conditioned Imitation Learning using Score-based Diffusion Policies."
How well do diffusion models imitate human behavior?
In 2023, diffusion models were refined to better mimic human behavior, particularly in tasks like human pose prediction and robot motion planning. They used diffusion processes to generate behavior sequences that aligned with human demonstrations, even when the data was noisy or unstructured. By progressively denoising inputs, the models generated multiple plausible behaviors — handling the inherent ambiguity of human actions.
This flexibility in handling noise became one of their standout features, making them superior to more rigid models that required structured, clean data. The models also showed impressive generalization across different tasks and environments, underscoring their versatility.
Strengths: Strong handling of noisy data, capable of generating diverse behaviors, and generalization across tasks.
Weaknesses: Can still be computationally intensive in real-time applications.
What did OCTO gain by adding attention mechanisms?
As diffusion models matured, new architectures added mechanisms to push performance further. In 2024, OCTO introduced attention mechanisms into diffusion-based imitation learning. By applying attention layers, OCTO let the model focus on critical action sequences, ensuring the most important aspects of a task got priority during training and execution.
This was especially useful in robotic control, where ignoring irrelevant information can make the difference between success and failure. Combining attention with diffusion processes improved both the efficiency and precision of action generation, making OCTO highly effective for real-time applications.
Strengths: Attention mechanisms improve focus and precision, making the model more efficient.
Weaknesses: Attention layers add computational complexity, potentially limiting scalability.
Key Reference: OCTO (2024), "An Open-Source Generalist Robot Policy."

How do CrossFormers handle temporal and spatial data?
Also in 2024, CrossFormers applied diffusion principles to the challenges of temporal and spatial sequence learning. By combining transformer-based architectures with diffusion models, CrossFormers could handle long-range dependencies in sequential data — such as motion planning or video prediction. Capturing both temporal patterns and spatial relationships made CrossFormers particularly effective at learning complex action sequences that unfold over time.
Strengths: Handles long-range temporal dependencies, capable of learning complex multi-step actions.
Weaknesses: Handling both temporal and spatial data can make training and inference more resource-intensive.
Key Reference: CrossFormers (2024), "Scaling Cross-Embodied Learning: One Policy for Manipulation, Navigation, Locomotion and Aviation."
The strengths and weaknesses of diffusion-based imitation learning
Strengths
Robustness to noisy data: Diffusion models excel at handling unstructured, noisy data, making them ideal for learning from real-world human demonstrations.
Diverse action generation: By generating multiple plausible solutions, they adapt to tasks where several approaches are valid.
Flexibility across tasks: From human pose prediction to robotic control, they generalize strongly across tasks and environments.
Efficiency improvements: Innovations like BESO — cutting denoising steps from over 30 to just 3 — are making diffusion models more viable in real time.
Weaknesses
Computational complexity: Even as they get more efficient, these models can still be demanding, especially for real-time decision-making.
Data quality dependency: They handle noise well, but the quality of the demonstrations still shapes final performance.
Scaling challenges: Advanced models like OCTO and CrossFormers add complexity (attention mechanisms, transformer-based architectures) that, while beneficial, can hinder scalability in large-scale deployments.
Model | Year | Key contribution | Main trade-off |
DDPMs | ~2015 | Denoising framework for high-quality generation | Built for images, not yet robotics |
Diffusion Policies | 2021 | Learn behaviors from unstructured data, no reward function | Slow — many denoising steps |
BESO | 2022 | Goal-conditioned learning; steps cut from 30+ to 3 | Limited by unstructured data quality |
Human-behavior diffusion | 2023 | Handles noisy, ambiguous human demonstrations | Computationally intensive in real time |
OCTO | 2024 | Attention mechanisms for focus and precision | Added computational complexity |
CrossFormers | 2024 | Long-range temporal + spatial dependencies | Resource-intensive training and inference |
The future of diffusion models in imitation learning
Diffusion models have rapidly become a cornerstone of imitation learning, enabling robots to learn complex, multi-step behaviors from unstructured human demonstrations. From the early applications of DDPMs to the recent innovations in BESO, OCTO, and CrossFormers, these models keep pushing the boundaries of robotic behavior generation. Challenges remain — particularly around computational efficiency and scaling — but the future of diffusion-based imitation learning looks promising.
As the field evolves, pairing diffusion models with attention mechanisms and transformer architectures will likely lead to even more powerful, efficient, and adaptable systems capable of tackling the most complex real-world tasks. If you want to put these policies to work on real hardware, the Trossen SDK from Trossen Robotics is a natural starting point for experimenting with imitation learning on physical robots.
Papers for further reading

Frequently Asked Questions
What are diffusion models in imitation learning?
Diffusion models are a transformative force in imitation learning, allowing robots to generate behaviors that closely mimic human actions. Originally designed for image generation, they now teach robots to learn from human demonstrations, handle uncertainty, and execute complex multi-step tasks.
When did diffusion models first gain attention?
Diffusion models began gaining attention in the generative modeling world around 2015, with the introduction of Denoising Diffusion Probabilistic Models (DDPMs), which add noise to data and learn to reverse the process through denoising.

What made Diffusion Policies a turning point?
Introduced by 2021, Diffusion Policies let robots learn behaviors directly from unstructured, large-scale datasets without reward functions or manual supervision, departing from methods like GAIL that struggled with complex, multi-modal tasks.
How did BESO improve efficiency?
BESO (2022) applied Score-based Diffusion Models to Goal-Conditioned Imitation Learning and used Classifier-Free Guidance to reduce denoising steps from over 30 to just 3, making it more suitable for real-time robotic applications.
What do OCTO and CrossFormers add?
In 2024, OCTO introduced attention mechanisms to focus on critical action sequences, while CrossFormers combined transformer architectures with diffusion to handle long-range temporal and spatial dependencies in sequential data.

What are the main weaknesses of diffusion-based imitation learning?
They can be computationally demanding for real-time decision-making, depend on the quality of demonstrations, and advanced models like OCTO and CrossFormers add complexity that can hinder scalability in large-scale deployments.
Sources
_Citations preserved from the original article._
Comments