TL;DR
Behavior cloning turns robot demonstrations into supervised regression, and a single regressed action fails when people demonstrate several valid ways to do the same thing. Chi et al. (2023) instead make the policy a conditional denoising diffusion model. Given camera images, it starts from noise and denoises a short sequence of future actions, which keeps multiple modes and stays stable to train. On the paper's simulation benchmarks it beats prior methods by 46.9% on average, by the paper's own measure, and it also does well on real robots.
Where you'll see it: imitation learning for manipulation arms, including teleoperated bimanual tasks such as folding a shirt or unrolling a mat.
The problem
Learning a robot policy from demonstrations looks like regression: map what the camera sees to the action the human took. Three properties of robot data make this harder than ordinary regression, and the paper names them.
The first is multimodality. A human pushing a T-shaped block can go around it from the left or from the right. Both are correct. A regressor trained with mean-squared error averages the two and drives into the middle. Earlier fixes changed the output head. Mixture density networks and Gaussian mixtures output several modes, but they are sensitive to tuning and can collapse. Discretised actions grow exponentially with dimension.
The second is precision. Some tasks, such as inserting a peg or pushing a block into a target outline, need small, accurate actions.
The third is consistency over time. If each step's action is drawn independently from a multimodal distribution, consecutive actions can switch modes and the robot jitters.
Energy-based policies, called implicit policies in the paper, handle multimodality but are hard to train. They need negative samples to estimate a normalising constant, and the paper shows that this makes training unstable and checkpoint selection hard.
Key idea
Treat the action sequence as data to be generated by a diffusion model, conditioned on the current observation. Diffusion models already generate high-dimensional images with several modes. The same machinery gives a policy that can represent any normalisable action distribution, and the paper's three additions make it work on a robot.
The first addition is to predict a sequence of actions and execute only part of it before replanning. The second is to condition on observations instead of modelling them jointly with actions, so the expensive visual encoder runs once per decision rather than once per denoising step. The third is to learn the noise predictor as the gradient of the action score, which avoids the normalising constant that makes energy-based training unstable.
flowchart LR O[Recent camera frames] --> E[Visual encoder, run once] E --> C[Observation features] N[Gaussian noise A^K] --> D[Denoiser epsilon theta, K steps] C --> D D --> A[Denoised action sequence A^0] A --> R[Execute first Ta actions, then replan] R -.-> O
The method
Denoising. A diffusion policy starts from a noise sample and runs steps. At each step it subtracts a predicted noise term and adds fresh Gaussian noise:
Here is the partly denoised action sequence at step , is the observation, is the noise-prediction network, and , and are coefficients set by the noise schedule. The paper reads each step as a noisy gradient descent step on an energy, where plays the role of the gradient. This is the Langevin view that the paper uses for its intuition.
Training. Draw a clean action sequence and an observation from the demonstrations. Pick a random step , add noise at that level, and train the network to predict the noise:
The paper relates this loss to the variational bound used for DDPMs, and it does not need negative samples. The observation enters the network as conditioning. It is not part of the noised data, which is what the paper means by conditioning on rather than the joint distribution.
Action horizons. At time the policy reads the last observations and predicts future actions. It executes only the first of them, then replans. Warm-starting each new prediction from the last one gives receding-horizon control. The paper's ablation found that an action horizon of 8 steps was best for most tasks.
Position control. The paper outputs position targets rather than velocities. Most earlier behavior-cloning work used velocity control. The paper finds position control works better for diffusion policies, and it also suffers less from latency.
Architectures. Two noise-prediction networks are tested:
- A 1D temporal convolutional network, adapted from Janner et al., with FiLM conditioning on the observation features at every convolution layer. The paper recommends starting here.
- A transformer decoder. Noised actions are the input tokens, the diffusion step is the first token, and observations enter through cross-attention with a causal mask on the action tokens. The paper reports it is better when actions change quickly, such as with velocity commands, but more sensitive to hyperparameters.
Visual encoder. A ResNet-18 trained from scratch with two changes. Global average pooling becomes spatial softmax pooling, which keeps where things are. BatchNorm becomes GroupNorm, which the paper says is needed when an exponential moving average of weights is used. Each camera has its own encoder, and the encoder is trained end to end with the policy.
Noise schedule and speed. The paper uses the square cosine schedule from iDDPM. In simulation, the same 100 denoising steps are used for training and inference. On real hardware it trains with 100 steps and uses DDIM to run inference in 16 steps, which the paper says gives inference fast enough for closed-loop control.
Worked example: how many denoising steps
The network is called once per step, so the cost of one decision is the number of inference steps times the cost of one network call. With 100 steps, that is 100 calls. With DDIM's 16 steps it is 16 calls, a factor of 100 over 16, which is 6.25 times fewer. The paper's own latency figure is 0.1 seconds on an NVIDIA 3080 GPU for its earlier setting of 10 inference steps. That is the figure quoted in Section 3.4, which does not match the 16 steps in the appendix. The text gives no reason for the difference, so treat the latency figure as the paper's own and not a result for 16 steps.
Results
Simulation. The paper evaluates on 15 tasks from four benchmarks: Robomimic, Push-T, Multimodal Block Pushing and Franka Kitchen. The abstract says 12 tasks, while the introduction and Section 5 say 15, and the paper does not explain the difference. Results use three training seeds and 50 environment starts per setting. Table 1 gives two numbers per cell, the best checkpoint and the average of the last 10. The headline is a 46.9% average improvement over the baselines, which the paper computes per task from the best baseline and best Diffusion Policy variant in its simulation tables (the real-world tasks are not in that average).
Two examples from the tables:
- Push-T with state observations (Table 1, last column, proficient-human data). LSTM-GMM scores 0.67 and BET 0.79 on the best checkpoint. The transformer diffusion policy scores 0.95 on the best checkpoint and 0.79 on the last-ten average.
- Multi-stage tasks (Table 4). On Kitchen, the probability of finishing four or more of the seven interactions is 0.96 for the transformer diffusion policy and 0.99 for the CNN one, against 0.44 for BET and 0.34 for LSTM-GMM. On Block Pushing, the probability of pushing both blocks is 0.94 against 0.71 for BET.
Multimodal behavior. Figure 3 shows the planar pushing case. The policy approaches the contact point from the left or the right, and each rollout commits to one side. LSTM-GMM and IBC lean to one side, and BET does not commit within a rollout.
Real Push-T (Table 6). On the UR5 robot, the end-to-end diffusion policy succeeds 95% of the time, against 65% for the transformer variant, 80% for the R3M-pretrained one, and 20% for LSTM-GMM with position control. Human demonstrators succeed 100% of the time. Episodes take 22.9 seconds on average against 20.3 for humans. IBC scores 0% in both control modes. The paper uses 136 demonstrations for this task.
Vision encoders (Table 5). Using the square task with proficient-human data, a ResNet-18 trained from scratch reaches 0.94. A ViT-B/16 trained from scratch reaches 0.22. Frozen pretrained encoders perform poorly, and fine-tuning the pretrained encoders at a tenth of the policy's learning rate gives the best results, up to 0.98 for CLIP-pretrained ViT-B/16.
Bimanual tasks (Section 7). The paper reports three bimanual tasks, each with 20 trials. Egg beater reaches 55% success from 210 demonstrations. Mat unrolling reaches 75% from 162 demonstrations. Shirt folding reaches 75% from 284 demonstrations. For the egg beater, an expert completed none of 10 demonstrations without haptic feedback, and all 10 with it.
Latency. With simulated latency, the position-control policy keeps its peak performance up to four steps of delay. Velocity control degrades more.
Why it mattered
The paper argues that a diffusion model can express any normalisable action distribution, handle high-dimensional action sequences, and train stably. Its ablations and benchmarks test these claims on the authors' own tasks. The paper's related-work section notes concurrent studies that reached similar simulation findings. Later adoption is outside what this lesson covers.
Its limits are stated. Behavior cloning inherits its usual weakness, which is poor performance with inadequate demonstrations. The method costs more compute and inference latency than LSTM-GMM. The authors suggest reinforcement learning as a route to using suboptimal data, and better diffusion samplers to cut inference steps.
Reading guide
Read the paper in this order. Each step names the prerequisites it needs.
- Section 1 and Figure 1. Needs Behavior Cloning. Figure 1 is the comparison of policy representations and is the clearest summary of the argument.
- Section 2.1 and 2.2. Needs Diffusion Model and DDIM Sampler. Read Equation 1 as the sampling rule and Equation 3 as the training loss.
- Section 2.3. Needs no new prerequisites. The change from a joint to a conditional distribution is the paper's main modelling step.
- Section 3.1. Needs Convolutional Neural Network and Transformer. The FiLM conditioning and the causal attention mask are the two details that matter.
- Section 3.2 and 3.3. Needs Residual Connection for the ResNet encoder and Batch Normalization to see why GroupNorm is used instead.
- Section 4.1 and 4.4. Needs Mixture Density Network for the multimodality baseline, and Softmax for the normalising constant that energy-based policies must estimate. The score-function form in Section 4.4 is the important step.
- Section 5 and Section 6. Needs only the terms defined earlier. Read Table 2 and Table 6 with the design choices from Section 3 in mind.
Check yourself
QuestionA demonstration set contains two valid ways to push a block, left and right, with equal frequency. What does a mean-squared-error regressor predict for the action, and what does a diffusion policy do instead?Show answer
Mean-squared-error regression minimises the average squared error, so it predicts the mean of the two modes. For a left action at minus one and a right action at plus one, that mean is zero, which is neither valid action and drives the robot into the middle. A diffusion policy samples from the learned distribution. Each rollout starts from a different noise sample and converges to one of the two modes, so it picks one side and commits to it.
QuestionA denoiser runs for 100 training steps with 16 inference steps. If each network call costs one unit, how many units does one action decision cost, and why does the paper use DDIM for real hardware?Show answer
One decision costs 16 network calls, one per inference step. DDIM decouples the number of inference steps from the number of training steps, so the policy can use 16 steps instead of 100. That is 16 units rather than 100, roughly a sixfold cut in compute per decision, which the paper needs to run in closed loop at 10 Hz.
QuestionWhy does the paper output position targets rather than velocities, and what is the evidence in its ablations?Show answer
The paper gives two reasons. Action multimodality is more pronounced in position control, and a diffusion policy models multimodality well, so it is less hurt by that drawback. Position control also suffers less from compounding error, which makes it better suited to predicting action sequences. The evidence is Figure 4: diffusion policy improves when switched from velocity to position control, while BC-RNN and BET get worse. Figure 5 adds that position control keeps peak performance up to four steps of simulated latency, and velocity control degrades more.
QuestionThe abstract says 12 tasks and the introduction says 15. Which number would you cite, and what would you check before quoting the 46.9% figure?Show answer
The paper gives 15 in the introduction and Section 5, and 12 in the abstract. The paper does not explain the mismatch, so cite the number with the caveat. Before quoting 46.9%, check the comparison set. The paper reports each baseline's best-performing number, taken from its own reproduction or from the original paper, and the average improvement is over those numbers. It is not one uniform comparison against a single method.
Sources
- Cheng Chi, Zhenjia Xu, Siyuan Feng, Eric Cousineau, Yilun Du, Benjamin Burchfiel, Russ Tedrake, Shuran Song. Diffusion Policy: Visuomotor Policy Learning via Action Diffusion. 2023. https://arxiv.org/abs/2303.04137
- Jonathan Ho, Ajay Jain, Pieter Abbeel. Denoising Diffusion Probabilistic Models. 2020. https://arxiv.org/abs/2006.11239