AI Wiki中文/EN

Diffusion policy: robot actions made by denoising

扩散策略

How a diffusion policy generates a chunk of robot actions by denoising random noise under the guidance of camera observations, why this keeps several demonstrated strategies apart instead of averaging them, and what a synthetic obstacle example shows about samplers, step counts and action chunks.

On this pageIntuitionMathematics & methodImplementationLimitationsExercisesResearch connections

Actions drawn out of noise

A diffusion policy is a robot controller that makes its next actions the way an image diffusion model makes a picture. It starts from random numbers and cleans them up step by step, guided by what the camera sees. It is used when demonstrations show several good ways to do a task, because it keeps those ways apart instead of averaging them. Diffusion Policy

Here is a small example. A robot must get past an obstacle straight ahead. About half of the human demonstrations go around on the left and half on the right. A policy trained to minimise squared error learns the average of the two. That average points straight at the obstacle. A diffusion policy instead learns the whole spread of demonstrated actions. Each time it runs, it picks one side and sticks to it.

A few terms first. A policy is the rule that turns what the robot observes into what it does. A visuomotor policy takes camera images in and sends motor commands out. Learning a policy by copying demonstrations is called behaviour cloning (behavior cloning), a form of imitation learning. A distribution with several separate peaks is called multimodal, and each peak is a mode.

Chi et al. introduced Diffusion Policy in 2023. They argue that predicting robot actions is harder than ordinary regression for three reasons. Demonstrations are often multimodal. Consecutive actions are strongly linked. And many tasks need precise actions. Section 1

The method borrows the machinery of diffusion models, in particular the denoising diffusion probabilistic model (DDPM). What changes is the thing being generated: a short sequence of future robot actions instead of an image. The camera images are not generated. They only steer the denoising. Section 2.3

Two habits make it practical on real robots. It predicts a chunk of several future actions at once, runs only the first few, and then plans again. And at run time it uses a faster sampler, so 10 denoising steps replace 100. Sections 2.3 and 3.4

The rest of the article gives the equations, runs a synthetic version of the obstacle problem, and lists what the method does not fix.

From denoising images to denoising actions

This section states how a diffusion policy is trained and sampled, then explains the design choices that make it work on robots.

Adding noise to actions

A diffusion model learns by watching clean data become noisier. Ho et al. define a chain of noise levels k=1,…,Kk=1,\dots,K. A clean sample x0x_0 can be pushed to any level kk in one shot. Eq. 4

q(xk∣x0)=N ⁣(αˉk x0,  (1−αˉk)I),αk=1−βk,αˉk=∏s=1kαsq(x_k\mid x_0)=\mathcal N\!\big(\sqrt{\bar\alpha_k}\,x_0,\;(1-\bar\alpha_k)I\big),\qquad \alpha_k=1-\beta_k,\quad \bar\alpha_k=\prod_{s=1}^{k}\alpha_s

In words: the noisy version at level kk is the clean sample shrunk by αˉk\sqrt{\bar\alpha_k}, plus Gaussian noise with variance 1−αˉk1-\bar\alpha_k. Here βk\beta_k is the small amount of noise added at step kk, and αˉk\bar\alpha_k is the product of all α\alpha values up to kk. As kk grows, αˉk\bar\alpha_k falls toward 0 and the sample becomes almost pure noise.

The list of βk\beta_k values is called the noise schedule. Chi et al. compare it to a learning-rate schedule. For their control tasks, the squared-cosine schedule from improved DDPM worked best. Sections 2.1 and 3.3

Training: guess the noise

In a diffusion policy the clean sample is an action sequence At0A_t^0, taken from a demonstration at time tt. The condition is the observation history OtO_t: the last few camera images and robot states. Training minimises the loss below. It is Chi et al.’s Eq. 5, written with Ho et al.’s coefficients. Eqs. 3 and 5 Algorithm 1

L(θ)=Ek, ε, (Ot,At0)∥ε−εθ(Ot,  αˉk At0+1−αˉk ε,  k)∥2\mathcal L(\theta)=\mathbb E_{k,\,\varepsilon,\,(O_t,A_t^0)}\Big\|\varepsilon-\varepsilon_\theta\big(O_t,\;\sqrt{\bar\alpha_k}\,A_t^0+\sqrt{1-\bar\alpha_k}\,\varepsilon,\;k\big)\Big\|^2

In words: take a demonstrated action sequence, pick a random noise level kk, and mix in standard Gaussian noise ε\varepsilon. Then train the network εθ\varepsilon_\theta to guess that noise from the noisy actions, the observations and kk. The loss is the squared error of the guess. Ho et al. showed that this simple loss corresponds to optimising a variational bound on the likelihood of the data. Section 3.2

Notice where the squared error sits. It is on the noise guess, not on the action. That difference is what lets the model keep several modes, as the example below shows.

Sampling: remove the noise a little at a time

To act, the policy draws a random action sequence AtKA_t^K from a standard Gaussian. It then applies KK denoising steps, from k=Kk=K down to k=1k=1. Eq. 4

Atk−1=α(Atk−γ εθ(Ot,Atk,k))+N(0,σ2I),α=1αk,  γ=βk1−αˉkA_t^{k-1}=\alpha\big(A_t^{k}-\gamma\,\varepsilon_\theta(O_t,A_t^{k},k)\big)+\mathcal N(0,\sigma^2 I),\qquad \alpha=\tfrac{1}{\sqrt{\alpha_k}},\ \ \gamma=\tfrac{\beta_k}{\sqrt{1-\bar\alpha_k}}

In words: each step subtracts a scaled noise guess from the current actions, rescales the result, and adds a little fresh noise with variance σ2\sigma^2. The values of α\alpha and γ\gamma shown are Ho et al.’s choice of coefficients. Algorithm 2 Chi et al. write the fresh noise inside the bracket. With σ\sigma rescaled, the two forms are the same. Ho et al. report that two choices of σ2\sigma^2, namely βk\beta_k or a slightly smaller β~k\tilde\beta_k, gave similar results. Section 3.2

Chi et al. read each step as one noisy step of gradient descent. Eq. 2 The noise guess points along the direction in which the actions become more likely. In the language of score matching, it estimates the score: the gradient of the log-probability. Eq. 8

εθ(a,o)≈−∇alog⁡p(a∣o)(up to a scale 1−αˉk at level k)\varepsilon_\theta(a,o)\approx-\nabla_a\log p(a\mid o)\quad(\text{up to a scale }\sqrt{1-\bar\alpha_k}\text{ at level }k)

In words: the noise guess is, up to sign and scale, the slope of the log-probability of action aa given observation oo. Chi et al.’s Eq. 8 leaves out the scale. The factor 1−αˉk\sqrt{1-\bar\alpha_k} is the standard relation at level kk, and the example code uses it. Subtracting the noise guess moves a sample uphill in probability, toward a likely action.

Why several modes survive

Two sources of randomness keep the modes apart. The random starting sample decides which basin, and so which mode, the sample ends up in. The fresh noise added at each step keeps some variety on the way. Section 4.1

Chi et al. show this on Push-T, a simulated task in which a round end effector pushes a T-shaped block onto a fixed target. Demonstrators could go around the block on the left or the right. Diffusion Policy learned both and committed to one side per rollout. A Gaussian-mixture policy (LSTM-GMM) and an implicit policy (IBC) leaned toward one mode. A transformer baseline (BET) failed to commit. Fig. 3 A mixture of Gaussians is the classic alternative for multimodal outputs; see Gaussian mixtures.

Why training is stable

An implicit, or energy-based, policy gives every action an energy E(o,a)E(o,a) and sets p(a∣o)=e−E(o,a)/Z(o,θ)p(a\mid o)=e^{-E(o,a)}/Z(o,\theta). The normalising constant ZZ sums over all possible actions, so it cannot be computed exactly. IBC estimates it with negative samples, and Chi et al. link this to unstable training. Section 4.4

The score does not depend on ZZ, because ZZ does not change with aa. So a diffusion policy never needs ZZ, in training or at run time. Eqs. 6–8 See energy-based networks for the general idea. Chi et al. claim more stable training than IBC. That is a comparison, not a general guarantee.

Observations steer, actions are generated

Diffuser (Janner et al., 2022), an earlier diffusion model used for planning, modelled actions and observations jointly. Diffusion Policy models only p(At∣Ot)p(A_t\mid O_t), the actions given the observations. Section 2.3 So the images are encoded once per decision, however many denoising steps follow. This saves time and makes it practical to train the vision encoder end to end. Sections 1 and 2.3

The encoder is a ResNet-18 trained from scratch. It uses spatial-softmax pooling instead of global average pooling, and GroupNorm instead of BatchNorm. Section 3.2

Predict a chunk, run part of it

At time tt the policy reads the last ToT_o observations; ToT_o is the observation horizon. It predicts the next TpT_p actions, the prediction horizon. It runs the first TaT_a of them, the action execution horizon, and then plans again. Section 2.3, Fig. 2 This pattern is called receding-horizon control. It is the same idea as in model predictive control.

Predicting a whole sequence at once keeps consecutive actions consistent. If each step were sampled on its own from a multimodal distribution, step 3 could go left and step 4 right. The robot would then jitter between two valid paths. Section 4.3 Sequences also help with idle actions: pauses in human demonstrations that single-step policies tend to copy and get stuck on. Section 4.3

In Chi et al.’s ablation, an execution horizon of 8 steps was best for most tasks. Longer horizons made the robot slow to react. Section 5.3, Fig. 5

A close relative: action chunking in ACT

ACT, a policy from Zhao et al., uses the same idea under the name action chunking. ACT is not a diffusion model. It is a transformer trained as a conditional variational autoencoder (CVAE). Every kk steps it outputs the next kk actions, which cuts the number of decisions by a factor of kk. To avoid jerks at chunk borders, it can instead query every step and average all predictions made for the current time. Section IV-A

at=∑iwi At[i]∑iwi,wi=e−m ia_t=\frac{\sum_i w_i\,A_t[i]}{\sum_i w_i},\qquad w_i=e^{-m\,i}

In words: the action run at time tt is a weighted average of all stored predictions for time tt. At[i]A_t[i] is the ii-th such prediction, with i=0i=0 the oldest, and mm sets how fast the weights fall off. This is called temporal ensembling.

With temporal ensembling turned off, ACT’s success rate averaged over four simulated settings rose from 1% at k=1k=1 to 44% at k=100k=100. It dipped slightly at k=200k=200 and k=400k=400, which is close to running open loop. Section VI-A, Fig. 7a

Two networks for the noise guess

Chi et al. tried two networks for εθ\varepsilon_\theta. The first is a 1-D convolutional network (CNN) over time. It receives the observations and kk through FiLM conditioning, a learned scale and shift of its features. It works well out of the box but struggles when actions change quickly, as with velocity commands. Section 3.1

The second is a time-series diffusion transformer. Its noisy action tokens attend to earlier tokens only and cross-attend to the observation features. It was best on many state-based tasks but more sensitive to hyperparameters. The authors recommend starting with the CNN. Section 3.1

Faster sampling with DDIM

A hundred denoising steps per decision are too slow for a robot. Chi et al. use DDIM to decouple the number of steps used in training from the number used at run time. With 100 training steps and 10 inference steps, one inference took 0.1 s on an Nvidia 3080 GPU in their real-world experiments. Section 3.4 We did not read the DDIM paper itself. The update in the example code is the standard deterministic form described in the DDIM article.

A sanity check on a linear system

Chi et al. also give an argument for a linear system st+1=Ast+Bat+wts_{t+1}=As_t+Ba_t+w_t whose demonstrator always uses a=−Ksa=-Ks. The best noise guess is then εθ(s,a,k)=(a+Ks)/σk\varepsilon_\theta(s,a,k)=(a+Ks)/\sigma_k, and DDIM sampling lands exactly on a=−Ksa=-Ks. Section 4.5 So for a single-mode expert, a diffusion policy reduces to ordinary regression.

The same argument looks further ahead. To predict the action t′t' steps later, the policy must output −K(A−BK)t′st-K(A-BK)^{t'}s_t. So cloning a sequence quietly requires learning a model of the task’s dynamics. Section 4.5 This is an argument, not an experiment.

Position or velocity actions

Chi et al. found that position-control actions consistently beat velocity-control actions for Diffusion Policy. Two baselines, BC-RNN and BET, got worse with position control. The authors speculate that position control has more multimodality, which diffusion handles well, and less compounding error. Section 4.2, Fig. 4

They also simulated latency. Performance stayed at its peak for delays up to 4 steps. Velocity control suffered more from latency than position control. Section 5.3

A sibling generator: flow matching

Flow matching is a related way to turn noise into data. The π0 robot model uses it to generate chunks of H=50H=50 actions. It trains a velocity field vθv_\theta on mixtures Aτ=τA+(1−τ)εA^\tau=\tau A+(1-\tau)\varepsilon with target A−εA-\varepsilon. It then samples with 10 forward-Euler steps. Section IV

Watch the direction of time. In π0, τ=0\tau=0 is pure noise and τ=1\tau=1 is data. In DDPM it is the reverse: k=Kk=K is noise and k=0k=0 is data. π0 is covered in vision–language–action models.

A synthetic obstacle: averaging versus sampling

This section runs the obstacle example from the opening and measures what each policy does. The program is an original synthetic toy that uses numpy only, with fixed seeds. There is one fixed observation, so the policy only has to model the action distribution for that observation. The 200 demonstrations pass on the left (+1+1) or the right (−1-1), plus Gaussian noise with standard deviation 0.1. An action hits the obstacle when ∣a∣≤0.5|a|\le 0.5.

One simplification matters. The denoiser is not a trained neural network. It is the exact best noise guess for a two-component Gaussian mixture fitted to the demonstrations. It stands in for a trained network, so the example tests the sampler and the action representation, not how well a network learns. The schedule is squared-cosine with K=100K=100. The DDPM sampler uses σk2=β~k\sigma_k^2=\tilde\beta_k, and the DDIM sampler is deterministic.

import numpy as np

# Synthetic toy: an obstacle sits straight ahead; demonstrators pass it on the
# left (+1) or the right (-1) with equal frequency. One fixed observation, so
# the policy only has to model p(action | this observation).
rng = np.random.default_rng(0)
N = 200
side = rng.choice([-1.0, 1.0], size=N)
demos = side + 0.1 * rng.standard_normal(N)
print("demonstrations:", N, "| share passing left (+):", round(float(np.mean(demos > 0)), 3))

# 1) Mean-regression policy: the squared-loss optimum for a constant predictor
#    is the sample mean, which drives straight at the obstacle.
mse_action = float(np.mean(demos))
print("mean-regression action: %.3f  (|a| < 0.5 means hitting the obstacle)" % mse_action)

# 2) A two-component Gaussian model of the demos, estimated by splitting on sign.
#    The denoiser below is the EXACT noise predictor for this model; it stands
#    in for a trained network, so no learning error is involved.
mus = np.array([demos[demos > 0].mean(), demos[demos < 0].mean()])
pis = np.array([np.mean(demos > 0), np.mean(demos < 0)])
s2 = float(np.mean(np.concatenate([demos[demos > 0] - mus[0], demos[demos < 0] - mus[1]]) ** 2))
print("fitted modes: %.3f / %.3f, mode std %.3f" % (mus[0], mus[1], np.sqrt(s2)))

K = 100
steps = np.arange(K + 1)
f = np.cos(((steps / K) + 0.008) / 1.008 * np.pi / 2) ** 2   # squared-cosine schedule
abar = f / f[0]
alphas = np.ones(K + 1)
alphas[1:] = np.clip(abar[1:] / abar[:-1], 1e-4, 1.0)
betas = 1.0 - alphas


def eps_hat(x, k, mu_vec):
    # x: (n, d). mu_vec: (2, d). Optimal epsilon-prediction for the mixture.
    a = abar[k]
    v = a * s2 + (1.0 - a)
    d2 = ((x[:, None, :] - np.sqrt(a) * mu_vec[None, :, :]) ** 2).sum(-1)
    logw = np.log(pis)[None, :] - 0.5 * d2 / v
    logw -= logw.max(1, keepdims=True)
    r = np.exp(logw)
    r /= r.sum(1, keepdims=True)
    score = -(x[:, None, :] - np.sqrt(a) * mu_vec[None, :, :]) / v
    score = (r[:, :, None] * score).sum(1)
    return -np.sqrt(1.0 - a) * score


def ddpm_sample(n, mu_vec, gen):
    d = mu_vec.shape[1]
    x = gen.standard_normal((n, d))
    for k in range(K, 0, -1):
        e = eps_hat(x, k, mu_vec)
        x = (x - betas[k] / np.sqrt(1.0 - abar[k]) * e) / np.sqrt(alphas[k])
        if k > 1:
            var = betas[k] * (1.0 - abar[k - 1]) / (1.0 - abar[k])
            x = x + np.sqrt(var) * gen.standard_normal((n, d))
    return x


def ddim_sample(n, mu_vec, gen, n_steps):
    d = mu_vec.shape[1]
    ks = np.linspace(K, 0, n_steps + 1).round().astype(int)
    x = gen.standard_normal((n, d))
    for k, kp in zip(ks[:-1], ks[1:]):
        e = eps_hat(x, k, mu_vec)
        x0 = (x - np.sqrt(1.0 - abar[k]) * e) / np.sqrt(abar[k])
        x = np.sqrt(abar[kp]) * x0 + np.sqrt(1.0 - abar[kp]) * e
    return x


def report(name, a):
    a = a.ravel()
    print("%-22s left %.3f | right %.3f | hit obstacle %.3f | mean %.3f"
          % (name, np.mean(a > 0.5), np.mean(a < -0.5), np.mean(np.abs(a) <= 0.5), a.mean()))


gen = np.random.default_rng(1)
report("DDPM, K=100 steps:", ddpm_sample(4000, mus[:, None], gen))
report("DDIM, 10 steps:", ddim_sample(4000, mus[:, None], gen, 10))
report("DDIM, 2 steps:", ddim_sample(4000, mus[:, None], gen, 2))
mix = np.where(gen.random(4000) < pis[0], mus[0], mus[1]) + np.sqrt(s2) * gen.standard_normal(4000)
report("direct mixture draw:", mix)

# 3) Action chunks. Over an 8-step chunk each demo keeps one side for the whole
#    chunk. Sampling each step independently from the per-step mixture switches
#    sides; denoising the whole 8-D chunk jointly commits to one side.
Tp = 8
mu_chunk = np.stack([np.full(Tp, mus[0]), np.full(Tp, mus[1])])
chunks = ddpm_sample(2000, mu_chunk, gen)
indep = np.where(gen.random((2000, Tp)) < pis[0], mus[0], mus[1]) + np.sqrt(s2) * gen.standard_normal((2000, Tp))


def switches(c):
    s = np.sign(c)
    return float(np.mean(np.sum(s[:, 1:] != s[:, :-1], axis=1)))


def jitter(c):
    return float(np.mean(np.abs(np.diff(c, axis=1))))


print("chunk length Tp = %d (7 consecutive pairs)" % Tp)
print("independent per-step sampling: side switches per chunk %.3f, mean |a_t - a_t-1| %.3f"
      % (switches(indep), jitter(indep)))
print("joint chunk denoising (DDPM):  side switches per chunk %.3f, mean |a_t - a_t-1| %.3f"
      % (switches(chunks), jitter(chunks)))

The program prints:

demonstrations: 200 | share passing left (+): 0.555
mean-regression action: 0.099  (|a| < 0.5 means hitting the obstacle)
fitted modes: 0.990 / -1.011, mode std 0.104
DDPM, K=100 steps:     left 0.545 | right 0.455 | hit obstacle 0.000 | mean 0.079
DDIM, 10 steps:        left 0.559 | right 0.439 | hit obstacle 0.003 | mean 0.107
DDIM, 2 steps:         left 0.351 | right 0.264 | hit obstacle 0.385 | mean 0.090
direct mixture draw:   left 0.544 | right 0.456 | hit obstacle 0.000 | mean 0.077
chunk length Tp = 8 (7 consecutive pairs)
independent per-step sampling: side switches per chunk 3.477, mean |a_t - a_t-1| 1.054
joint chunk denoising (DDPM):  side switches per chunk 0.000, mean |a_t - a_t-1| 0.104

The average crashes. 55.5% of the demonstrations pass on the left. The fitted modes sit at 0.990 and −1.011, each with standard deviation 0.104. The squared-loss optimum for a constant prediction is the sample mean, 0.099. A hand check with the rounded values: 0.555 × 0.990 − 0.445 × 1.011 ≈ 0.100. That action lies inside the obstacle zone, and no demonstrator chose anything like it.

Sampling keeps both sides. Each sampler drew 4,000 actions.

samplerleftrighthit obstaclemean
DDPM, 100 steps0.5450.4550.0000.079
DDIM, 10 steps0.5590.4390.0030.107
DDIM, 2 steps0.3510.2640.3850.090
direct mixture draw0.5440.4560.0000.077

With 100 DDPM steps, the samples split 0.545 left and 0.455 right, close to the demonstrations’ 0.555. None hits the obstacle. The average of the samples, 0.079, is near the crash point, yet no single sample is. That is the core idea: a diffusion policy matches the distribution, not its mean. The direct draw from the mixture is the reference answer, and DDPM matches it closely.

Too few steps cost quality. Ten DDIM steps are nearly as good: 0.003 of samples hit. Two steps are not: 0.385 hit, because samples are dragged toward the middle before they have picked a side. This is the trade-off behind Chi et al.’s choice of 10 inference steps. It is also behind the latency cost they list as a limitation.

Chunks stop the jitter. The last part models 8-step action chunks. In the demonstrations each chunk stays on one side. Sampling every step on its own from the per-step mixture switches sides 3.477 times per chunk on average. The mean change between steps is 1.054. A hand check: with 7 consecutive pairs and side probabilities 0.555 and 0.445, the expected number of switches is 7 × 2 × 0.555 × 0.445 ≈ 3.46. Denoising the whole 8-dimensional chunk jointly gives 0.000 switches and a mean change of 0.104. This is the temporal consistency Chi et al. describe. Section 4.3

The toy does not show how well a network learns the score from images. It does not show closed-loop behaviour or anything about real robots.

What a diffusion policy does not fix

This section lists the limits the authors state, the care needed with their numbers, and the limits of the example.

It is still behaviour cloning. The authors’ limitations section says Diffusion Policy inherits the limits of behaviour cloning: with inadequate demonstrations it performs suboptimally. Limitations section It does not remove compounding error, where small mistakes lead the robot into states the demonstrations never covered. That problem is treated in imitation learning. Chunking cuts the number of decisions, as in ACT’s kk-fold reduction, but it does not remove the drift. Section IV-A

It is slower than one-pass policies. The same section lists higher compute cost and inference latency than simpler methods such as LSTM-GMM. Action sequences only partly hide this for high-rate control. Limitations section The toy shows the other side of the trade: with 2 DDIM steps, 38.5% of samples land in the obstacle.

The headline gain belongs to its benchmarks. The journal version (arXiv v5) evaluates 15 tasks from 4 benchmarks. It reports an average improvement in success rate of 46.9% over the prior state of the art. Abstract, Section 5.3 Appendix B.2 explains the calculation. For each simulation-benchmark task (multi-human variants left out), it takes the relative gain of the best Diffusion Policy variant over the best baseline, then averages these gains. Appendix B.2 So 46.9% is an average relative improvement on the authors’ simulated task set. It is not 46.9 percentage points, and not a claim about every task. The abstract on the arXiv listing page says 12 tasks, and the v1 abstract says 11; the numbers in this article are from the v5 PDF only.

Read the tables with care. Each benchmark entry has two numbers: the best checkpoint, then the average of the last 10 checkpoints. Each is averaged over 3 training seeds and 50 initial conditions. Table 1 The two can differ a lot. On state-based Transport-mh, LSTM-GMM scores 0.62/0.20 and the CNN Diffusion Policy 0.68/0.46. On ToolHang-ph, LSTM-GMM scores 0.67/0.31 and the transformer version 1.00/0.87. Table 1 How to evaluate robot policies fairly is the subject of embodied evaluation.

One real-world result in context. On a real UR5 arm doing Push-T, Diffusion Policy succeeded 95% of the time. Commands were sent at 10 Hz and interpolated to 125 Hz. Appendix C.1 Its average IoU, the overlap between the final and the target block pose, was 0.80, against 0.84 for humans. The best IBC and LSTM-GMM variants succeeded 0% and 20% of the time. End-to-end visual training beat pretrained ImageNet and R3M encoders on this task. Section 6.1 This is one task on one robot.

The example is a toy. Its denoiser is exact for a fitted mixture, not learned. It has one observation, one action dimension and no dynamics.

Exercises

These exercises check the averaging argument, a few hand calculations, two common overstatements, and method choice.

  1. Why does a squared-loss policy fail on the obstacle example, and why does a diffusion policy not?

    Answer: Squared loss is minimised by the conditional mean. With demonstrations near +0.99 and −1.01 in proportions 0.555 and 0.445, the mean is about 0.099. Nobody demonstrated that action, and it hits the obstacle. A diffusion policy also uses squared error, but on the noise guess. Through εθ\varepsilon_\theta it learns the score of the whole action distribution and samples from it. Each sample starts from random noise and is pushed into one of the two basins. So samples go left or right, with a hit rate of 0.000 at K=100K=100, rather than to their average (Chi et al., Section 4.1).

  2. (a) Demonstrations are +1 with probability 0.6 and −1 with probability 0.4. What does the mean-regression policy output? (b) With αˉk=0.36\bar\alpha_k=0.36, a clean action a0=1a_0=1 and noise ε=−0.5\varepsilon=-0.5, compute the noisy action aka_k and the training target. (c) The policy predicts Tp=16T_p=16 actions and runs Ta=8T_a=8, and each inference takes 0.1 s. At a 10 Hz command rate, how many inferences per second are needed, and what share of the time is spent on inference?

    Answer: (a) 0.6 − 0.4 = 0.2. (b) ak=0.36⋅1+0.64⋅(−0.5)=0.6−0.4=0.2a_k=\sqrt{0.36}\cdot1+\sqrt{0.64}\cdot(-0.5)=0.6-0.4=0.2. The network is trained to output ε=−0.5\varepsilon=-0.5 when given OtO_t, the noisy action 0.2 and kk. (c) 8 actions at 10 Hz last 0.8 s, so 1/0.8 = 1.25 inferences per second. That is 1.25 × 0.1 s = 0.125 s per second, or 12.5% of the time. With Ta=1T_a=1 it would be 10 inferences per second, which is 100% of the time. Running action sequences is what makes a 0.1 s sampler usable.

  3. A colleague says: “More denoising steps are always better, and a longer action horizon is always better.” Give a counterexample to each from the sources or the example.

    Answer: Steps: in the toy, 10 DDIM steps give almost the same distribution as 100 DDPM steps (hit rate 0.003 against 0.000). Past some point, extra steps only add latency, and Chi et al. use 10 at inference (Section 3.4). Too few steps do fail: 2 steps give a hit rate of 0.385. Horizon: Chi et al.’s ablation found an execution horizon of 8 best and longer ones worse, because the robot reacts slowly (Section 5.3). ACT’s success also dipped at k=200k=200 and k=400k=400, close to open loop (Section VI-A).

  4. Choose between a deterministic squared-error policy, a Gaussian-mixture policy, an implicit (energy-based) policy and a diffusion policy, and justify the choice. (a) A lane-keeping controller whose expert is a single linear feedback law. (b) A pushing task where demonstrators go around an object on either side. (c) A 50 Hz two-arm task on a small onboard computer. (d) A task with a few hundred demonstrations and no time to tune checkpoints.

    Answer: (a) Squared-error regression. The expert has one mode (a=−Ksa=-Ks), and Chi et al.’s linear argument (Section 4.5) shows diffusion reduces to the same answer, so its extra cost buys nothing. (b) A diffusion policy, or a mixture. The data are multimodal; Chi et al. show LSTM-GMM leaning toward one mode and BET jittering (Fig. 3). (c) A diffusion policy with few DDIM steps and long action chunks, or a one-pass chunking policy such as ACT. Measure latency first, since the authors list cost as a limitation. (d) A diffusion policy rather than IBC. Chi et al. report that IBC’s evaluation success oscillates during training, which makes checkpoint selection hard (Section 4.4). They also report that Diffusion Policy’s hyperparameters were mostly consistent across tasks (Section 5.3).

History and further reading

This section places Diffusion Policy among related work and points to the sources.

Chi, Xu, Feng, Cousineau, Du, Burchfiel, Tedrake and Song presented Diffusion Policy at RSS 2023. They later extended it into the journal version read here, arXiv v5 of 14 March 2024. arXiv v5 The denoising machinery comes from the DDPM paper by Ho, Jain and Abbeel, read here as arXiv v2 of December 2020. DDPM

Action chunking appeared independently in ACT, posted to arXiv in April 2023 together with the low-cost ALOHA hardware for two-arm manipulation. ACT How such demonstrations are collected is the subject of teleoperation.

Diffusion policies then became a common backbone in later work. The DROID dataset paper tests co-training with a Robomimic diffusion policy. It generates 16-step action sequences and runs 8 of them open loop before planning again. Section V-A Datasets of this kind are covered in robot datasets. Large vision–language–action models such as π0 swap the diffusion head for flow matching over 50-step chunks. Section IV

For further reading, start with Chi et al.’s Sections 2–4, which hold the method and the arguments above. Ho et al.’s Sections 2–3 give the DDPM derivation. On this wiki, see diffusion models, DDPM, DDIM, score matching and flow matching for the generative side, and imitation learning for the learning setup.

Make a prediction, then check

Half of the demonstrations pass an obstacle on the left (action about +1) and half on the right (about −1). Which statement about a mean-regression policy and a diffusion policy is correct?

Choose one answer

Learning objectives

  • Explain how a diffusion policy moves the denoising diffusion process into action space: predict noise conditioned on observations, denoise from Gaussian noise into an action sequence, and write the training loss and denoising update.
  • Explain why a diffusion policy can represent multimodal demonstrations while mean regression averages the modes, and describe the trade-offs of observation, prediction and execution horizons with receding-horizon execution, and the cost of inference steps and latency.

Prerequisites & connections

Explore related knowledge →

References

  1. Diffusion Policy: Visuomotor Policy Learning via Action Diffusion — arXiv v5 (journal version), scoped
    Cheng Chi; Zhenjia Xu; Siyuan Feng; Eric Cousineau; Yilun Du; Benjamin Burchfiel; Russ Tedrake; Shuran Song · 2024
  2. Denoising Diffusion Probabilistic Models (v2): chain, variance and loss
    Jonathan Ho; Ajay Jain; Pieter Abbeel · 2020
  3. Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware (ALOHA / ACT) — arXiv v1, scoped
    Tony Z. Zhao; Vikash Kumar; Sergey Levine; Chelsea Finn · 2023
  4. π0: A Vision-Language-Action Flow Model for General Robot Control — arXiv v4, scoped
    Kevin Black; Noah Brown; Danny Driess; Adnan Esmail; Michael Equi; Chelsea Finn; Niccolo Fusai; Lachy Groom; Karol Hausman; Brian Ichter; et al. (Physical Intelligence) · 2026
  5. DROID: A Large-Scale In-The-Wild Robot Manipulation Dataset — arXiv v2, scoped
    Alexander Khazatsky; Karl Pertsch; Suraj Nair; Ashwin Balakrishna; Sudeep Dasari; et al. · 2025

Version1 · Editorial status: Recorded technical checks completed

View technical check record (AI)

Claude · 2026-12-03 · Independent AI check (Claude subagent, not the author; not a human or expert review). No Gemini-app style edits were logged for this topic in gemini-edits-016a.json, so the checker did the D012 readability pass on the opening itself before the factual check; research was done by a separate research subagent (facts.md) and the prose by a writer subagent. I ran example.py with the pinned interpreter (numpy 1.26.4) and diffed it against example.stdout.txt (identical), confirmed the python block in en.mdx and zh.mdx is byte-identical to example.py, and matched every quoted number (0.555, 0.099, 0.990/-1.011/0.104, the four sampler rows, 3.477 vs 0.000 switches, 1.054 vs 0.104). I re-derived the hand checks (0.555x0.990-0.445x1.011 = 0.100, 7x2x0.555x0.445 = 3.46) and the exercise answers (0.2; a_k = 0.2 with target -0.5; 1.25 inferences/s and 12.5%). I re-read Chi et al. arXiv v5 through its arXiv HTML page: abstract, section list, 2.3 (conditional p(A|O) vs Janner et al.'s joint distribution for planning), 3.4 (100/10 DDIM steps, 0.1 s on 'a Nvidia 3080 GPU'), Fig. 3 caption and 5.3 (Push-T modes, LSTM-GMM/IBC bias, BET fails to commit; action horizon 8; latency up to 4 steps), Table 1 (Transport-mh and ToolHang-ph entries), 4.5 (linear system), 6.1 (95%, IoU 0.80 vs 0.84, best IBC/LSTM-GMM variants 0%/20%, R3M/ImageNet), 9 'Limitations and Future Work' (section number confirmed), Appendix B.2 (how 46.9% is computed) and Appendix C.1 (10 Hz commands interpolated to 125 Hz); and the arXiv abstract pages of v1 (11 tasks) and the current listing (12 tasks). I re-read ACT v1 VI-A and its Fig. 7 (1% at k = 1 to 44% at k = 100, dip at 200/400, temporal ensemble weights), DROID v2 V-A (Robomimic diffusion policy, 16-step sequences, 8 executed open loop) and pi0 v4 IV (H = 50, tau = 0 noise to tau = 1 data, 10 Euler steps). I did not re-open the DDPM paper beyond relying on its existing reviewed source note, did not read the DDIM paper (DDIM is cited only through Chi 3.4, as the article says), and did not read Chi 5.2, 5.4, 6.2-7 or the other appendices; I did not run the site validator or build.

  • Re-ran example.py with the pinned interpreter (numpy 1.26.4): output identical to example.stdout.txt; code blocks byte-identical in both languages; every quoted number and hand calculation re-derived.
  • Checked against the Chi et al. v5 HTML: 15 tasks from 4 benchmarks; 46.9% is, per Appendix B.2, the mean relative gain over the best baseline on the simulation tasks; DDIM 100/10 steps and 0.1 s (paper says Nvidia 3080); the two limitations in Section 9; Table 1 and Section 6.1 numbers.
  • The toy denoiser is stated as the exact noise predictor of a fitted Gaussian mixture standing in for a trained network; the note that pi0's tau runs opposite to DDPM's k is correct; ACT and DROID statements match the papers.
  • zh/en match section by section, with identical equations, citation sets, exercises and answers; unpublished topics appear only as inline code; aliases unique ignoring case; no lint-listed stock phrases.

Source locations checked:

  • Diffusion Policy: Visuomotor Policy Learning via Action Diffusion — arXiv v5 (journal version), scoped · arXiv v5 PDF via pdftotext (PDF page = printed page). p. 1 abstract (15 tasks, 4 benchmarks, 46.9%); pp. 1–2 §1 (multimodality, sequential correlation, precision; advantages; contributions); p. 2 §2.1 Eqs. 1–2; p. 3 §2.2 Eq. 3, §2.3 Eqs. 4–5, T_o/T_p/T_a, p(A|O) vs Diffuser's joint; pp. 3–4 §3.1 CNN (FiLM) vs time-series transformer, recommendation; p. 4 §3.2 ResNet-18 spatial softmax GroupNorm; §3.3 squared cosine; §3.4 DDIM 100/10, 0.1 s on a Nvidia 3080 GPU (paper wording); §4.1 multimodality (Fig. 3); §4.2 position vs velocity (Fig. 4); p. 5 §4.3 temporal consistency and idle actions; pp. 6–7 §4.4 Eqs. 6–8 IBC instability; p. 8 §4.5 linear system; §5 opening; p. 9 Tables 1–2; p. 10 §5.3 (action horizon 8, latency 4 steps); p. 11 §6.1 real Push-T (95%, IoU 0.80 vs 0.84; IBC 0%, LSTM-GMM 20%; idle actions kept); pp. 13–15 limitations and conclusion. NOT read: §5.2, §5.4, §6.2–§7, appendix; Table 3 beyond header. Checker (2026-12-03) additionally read the arXiv v5 HTML: §3.4 (Nvidia 3080 wording), §5.3, Table 1, Fig. 3 caption, §6.1, §9 'Limitations and Future Work' (section number confirmed), Appendix B.2 (46.9% = mean relative gain of best DP variant over best baseline per simulation task, mh excluded) and Appendix C.1 (10 Hz commands interpolated to 125 Hz).
  • Denoising Diffusion Probabilistic Models (v2): chain, variance and loss · arXiv v2 PDF pp. 2–4 via pdftotext: §2 Eq. 4 closed-form q(x_t|x_0) with α_t = 1 − β_t and ᾱ_t; §3.2 σ_t² = β_t vs β̃_t 'similar results' (p. 3); Eqs. 8–11 ε-parametrisation; Algorithms 1–2 (p. 4). NOT read: §4 experiments, appendix.
  • Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware (ALOHA / ACT) — arXiv v1, scoped · arXiv v1 PDF via pdftotext: §IV-A pp. 4–5 (k-step chunks, k-fold horizon reduction, temporal ensemble w_i = exp(−m·i), w_0 oldest); §IV-B p. 5 (CVAE for human data); §VI-A p. 9 (1% at k = 1 → 44% at k = 100, dip at 200/400); Fig. 7(a) caption and text (checker: in v1 the chunk-size plot is Fig. 7a, not Fig. 8; Fig. 8 shows teleoperation examples).
  • π0: A Vision-Language-Action Flow Model for General Robot Control — arXiv v4, scoped · arXiv v4 PDF via pdftotext, §IV pp. 4–5 only for this topic: A^τ = τA + (1 − τ)ε, target A − ε, beta-distributed τ, forward Euler with δ = 0.1 (10 steps), H = 50.
  • DROID: A Large-Scale In-The-Wild Robot Manipulation Dataset — arXiv v2, scoped · arXiv v2 PDF via pdftotext, §V-A p. 7 only for this topic: Robomimic diffusion policy, 16-step action sequences, 8 executed open loop, ResNet-50 encoders.

Related topics

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.