                        Latent Diffusion Planning for Imitation Learning


                               Amber Xie 1 Oleh Rybkin 2 Dorsa Sadigh 1 Chelsea Finn 1


                         Abstract                                      collect. While it is often easier to collect in-domain data that
     Recent progress in imitation learning has been                    is suboptimal or action-free, these methods are not designed
     enabled by policy architectures that scale to com-                to use such data, as they rely on directly modeling optimal
     plex visuomotor tasks, multimodal distributions,                  actions.
     and large datasets. However, these methods of-                    Prior works in offline RL, reward-conditioned policies, or
     ten rely on learning from large amount of expert                  imitation learning from suboptimal demonstrations attempt
     demonstrations. To address these shortcomings,                    to leverage suboptimal trajectories, though they are still un-
     we propose Latent Diffusion Planning (LDP), a                     able to utilize action-free data. Notably, these works often
     modular approach consisting of a planner which                    make restrictive assumptions like access to either reward
     can leverage action-free demonstrations, and an                   labels (Kumar et al., 2020; Chen et al., 2021; Kumar et al.,
     inverse dynamics model which can leverage sub-                    2019a), the optimality of demonstrations (Beliaev et al.,
     optimal data, that both operate over a learned la-                2022), or similar metrics (Zhang et al., 2022), which can be
     tent space. First, we learn a compact latent space                impractical or noisy to label. Other works implicitly attempt
     through a variational autoencoder, enabling effec-                to use unlabelled, suboptimal data via pretraining on such
     tive forecasting of future states in image-based                  data and later fine-tuning the policy on the optimal data (Ra-
     domains. Then, we train a planner and an inverse                  dosavovic et al., 2023; Wu et al., 2023b; Cui et al., 2024).
     dynamics model with diffusion objectives. By                      While these approaches can potentially learn representations
     separating planning from action prediction, LDP                   during pretraining, it does not necessarily improve planning
     can benefit from the denser supervision signals of                capabilities of these methods.
     suboptimal and action-free data. On simulated vi-
     sual robotic manipulation tasks, LDP outperforms                  Our key idea is to take a modular approach, where we sepa-
     state-of-the-art imitation learning approaches, as                rate learning a video planner from learning an inverse dy-
     they cannot leverage such additional data. 1                      namics model. Each one of these two components can
                                                                       leverage different types of data. For instance, a planner
                                                                       can benefit from action-free data, while an IDM can lever-
1. Introduction                                                        age unlabelled suboptimal data. While using a modular
                                                                       approach has been proposed in recent prior work (Du et al.,
Combining large-scale expert datasets and powerful imita-              2023a; Black et al., 2023), prior approaches focus on high-
tion learning policies has been a promising direction for              level decision making by forecasting subgoals, limiting its
robot learning. Recent methods using transformer back-                 capabilities for closed loop re-planning in robotics tasks.
bones or diffusion heads (Octo Model Team et al., 2024;                These works also operate across images, which are high-
Kim et al., 2024; Zhao et al., 2024; Chi et al., 2023) have cap-       dimensional and expensive to generate. To create an efficient
italized on new robotics datasets pooled together from many            modular approach that can benefit from all forms of data
institutions (Khazatsky et al., 2024; Open X-Embodiment                (suboptimal, action-free, and optimal), we propose learn-
Collaboration et al., 2023), showing potential for learning            ing the planner and inverse-dynamics model over a learned,
generalizable robot policies. However, this recipe is funda-           compact latent space, allowing for closed-loop robot poli-
mentally limited by expert data, as robotics demonstration             cies. Our imitation learning objective consists of forecasting
data can be challenging, time-consuming, and expensive to              a dense trajectory of latent states, scaling up gracefully to
   1
     Stanford 2 UC Berkeley. Correspondence to: Amber Xie <am-
                                                                       vision-based domains without the computational complexi-
berxie@stanford.edu>.                                                  ties of video generation.

Proceedings of the 42 nd International Conference on Machine
                                                                       We propose Latent Diffusion Planning (LDP), which learns
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025            a planner that can be trained on action-free data; and an in-
by the author(s).                                                      verse dynamics model (IDM) that can be trained on data that
    1
      Project Website and Code: https://amberxie88.                    may be suboptimal. First, it trains a variational autoencoder
github.io/ldp/

                                                                   1
                                          Latent Diffusion Planning for Imitation Learning




Figure 1. Latent Diffusion Planning. Left: LDP separates the control problem into forecasting future states with a diffusion-based planner,
and extracting actions with a diffusion-based inverse dynamics model (IDM). This design enables training on heterogeneous sources of
data, including suboptimal data and action-free data. Right: Unlike action imitation methods such as diffusion policy, LDP is based on
forecasting a dense temporal sequence of latent states as well as actions. Using powerful diffusion models for both of these objectives
enables LDP to have competitive performance to state-of-the-art imitation learning. Further, unlike prior work on forecasting subgoals,
LDP predicts a dense temporal sequence of latent states, which enables scalable closed-loop planning.


with an image reconstruction loss, producing compressed                 2. Related Work
latent embeddings that are used by the planner and inverse
dynamics model. Then, it learns an imitation learning policy            Imitation Learning in Robotics. One common approach to
through two components: (1) a planner, which consumes                   learning robot control policies is imitation learning, where
demonstration state sequences, which may be action-free,                policies are learned from expert-collected demonstration
and (2) an inverse dynamics model, trained on in-domain,                datasets. This is most commonly done via behavior cloning,
possibly suboptimal, environment interactions. As diffusion             which reduces policy learning to a supervised learning ob-
objectives have proven to be effective for imitation learning           jective of mapping states to actions. Recently, Diffusion
in robotics tasks (Chi et al., 2023), we use diffusion for both         Policy (Chi et al., 2023) and Action Chunking with Trans-
forecasting plans (planner) and extracting actions (IDM),               formers (Zhao et al., 2023) have shown successful results in
which enables competitive performance. Our method is                    complex manipulation tasks using action chunking and more
closed-loop and reactive, as planning over latent space is              expressive architectures. Diffusion models have also been
much faster than generating visually and physically consis-             successful in capturing multimodal human behavior (Pearce
tent video frames.                                                      et al., 2023). Similarly, Behavior Transformer (Shafiullah
                                                                        et al., 2022) and VQ-BeT (Lee et al., 2024) improve the
In summary, our main contributions are threefold:                       ability of policies to capture multimodal behaviors. In this
                                                                        work, we focus on forecasting a sequence of future states
   • We propose a novel imitation learning algo-                        instead of actions, and use diffusion to capture multimodal
     rithm, Latent Diffusion Planning, a simple, diffusion              trajectories.
     planning-based method comprised of a learned vi-
                                                                        Learning from Unlabelled Suboptimal and Action-Free
     sual encoder, latent planner, and an inverse dynamics
                                                                        Data. Learning from suboptimal data has long been a goal
     model.
                                                                        of many robot learning methods, including reinforcement
   • We show that Latent Diffusion Planning can be trained              learning. A typical approach is offline reinforcement learn-
     on suboptimal or action-free data, and improves from               ing, which considers solving a Markov decision process
     learning on such data in the regime where demonstra-               from an offline dataset of states, actions, and reward (Levine
     tion data is limited.                                              et al., 2020; Kumar et al., 2020; Kostrikov et al., 2021;
                                                                        Hansen-Estruch et al., 2023; Yu et al., 2022). Particularly
   • We experimentally show that our method outperforms                 relevant are the approaches that use supervised learning
     prior video planning-based work by leveraging tempo-               conditioned on rewards (Schmidhuber, 2019; Kumar et al.,
     rally dense predictions in a latent space, which enables           2019a; Chen et al., 2021). In this work, we want to leverage
     fast inference for closed-loop planning.

                                                                    2
                                       Latent Diffusion Planning for Imitation Learning

suboptimal, reward-free data, such as play data or failed tra-        3. Background
jectories. In addition, we would like to avoid the additional
complexity of annotating the data with rewards or training a          Diffusion Models Diffusion models, such as Denoising
value function which the offline RL methods rely on.                  Diffusion Probabilistic Models (DDPMs), are likelihood-
                                                                      based generative models that learn an iterative denoising
Several works have also addressed learning from action-               process from a Gaussian prior to a data distribution (Sohl-
free data, such as using inverse models (Torabi et al., 2018;         Dickstein et al., 2015; Ho et al., 2020; Song et al., 2020).
Baker et al., 2022), latent action models (Edwards et al.,            During training time, DDPMs are trained to reverse a single
2019; Schmeckpeper et al., 2020; Bruce et al., 2024), or              noising step. Then, at sampling time, to reverse the diffusion
representation learning (Radosavovic et al., 2023; Wu et al.,         process, the model iteratively denoises a sample drawn from
2023b; Cui et al., 2024). In this work we focus on a simple           the known Gaussian prior.
recipe for robotic imitation learning that is naturally able to
leverage action-free data through state forecasting.                  Diffusion models may also be conditioned on additional
                                                                      context. For example, text-to-image generative models are
Diffusion and Image Prediction in Robot Learning. Dif-                conditioned on text, Diffusion Policy is conditioned on vi-
fusion models, due to their expressivity and training and             sual observations, and Decision Diffuser can be conditioned
sampling stability, have been applied to robot learning               on reward, skills, and constraints.
tasks. Diffusion has been used in offline reinforcement
learning (Hansen-Estruch et al., 2023) and imitation learn-           Recent generative models have used Latent Diffusion Mod-
ing (Chi et al., 2023). Diffuser (Janner et al., 2022) learns         els, which trains a diffusion model in a learned, compressed
a denoising diffusion model on trajectories, including both           latent space (Rombach et al., 2022; Peebles & Xie, 2023;
states and actions, in a model-based reinforcement learn-             Blattmann et al., 2023) to improve computational and mem-
ing setting. Decision Diffuser (Ajay et al., 2023) extends            ory efficiency. The latent space is typically learned via an
Diffuser by showing compositionality over skills, rewards,            autoencoder, with encoder E and decoder D trained to re-
and constraints, and instead diffuses over states and uses            construct x ≈ x̂ = D(E(x)). Instead of diffusing over x,
an inverse dynamics model to extract actions from the plan.           the diffusion model is trained on diffusing over z = E(x).
Due to the complexity of modeling image trajectories, Dif-            Imitation Learning In the imitation learning framework,
fuser and Decision Diffuser restrict their applications to            we assume access to a dataset of expert demonstrations,
low-dimensional states.                                               D ≜ {(s0 , x0 , a0 ), . . . , (sT , xT , aT )}, generated by πE , an
To scale up to diffusing over higher-dimensional plans,               expert policy. si , xi , ai correspond to the state, image, and
UniPi (Du et al., 2023a; Ko et al., 2023) adapts video models         action at timestep i respectively. The imitation learning ob-
for planning. Unlike works that rely on foundation models             jective is to extract a policy π̂(a|s, x) that most closely imi-
and video models for planning (Du et al., 2023b; Yang et al.,         tates πE . In robotics, this is typically approached through
2024; Zhou et al., 2024), our method avoids computational             behavior cloning, which learns the mapping between states
and modeling complexities of generative video modeling by             and actions directly via supervised learning. We consider
planning over latent embeddings instead.                              single-task imitation, where the dataset corresponds to a
                                                                      single task.
Previous works have used world models to plan over images
in a compact latent space (Hansen et al., 2024; Hafner et al.,        Diffusion Policy (Chi et al., 2023) is an instantiation of
2019; 2020). In contrast with these works, we focus on                diffusion models for imitation learning that has shown suc-
single task imitation instead of reinforcement learning.              cess in simulated and real-world tasks. Diffusion Policy
                                                                      uses a DDPM objective to model the distribution of action
Many prior works argue that state forecasting objectives are          sequences, conditioned on observations. The CNN instan-
uniquely suitable for robotics to improve planning quality            tiation uses a Conditional U-Net Architecture, based on
with trajectory optimization or reinforcement learning (Finn          the 1D Temporal CNN in (Janner et al., 2022), which en-
& Levine, 2017; Yang et al., 2023), by using the model                courages temporal consistency due to the inductive biases
directly to plan future states (Du et al., 2023b;a), as well as       of convolutions. LDP’s planner architecture is based on
representation learning (Wu et al., 2023a; Radosavovic et al.,        the CNN-based Diffusion Policy, though we forecast latent
2023). We follow this line of work by proposing a planning-           states instead of actions.
based method competitive to state-of-the-art robotic imita-
tion learning that can leverage heterogeneous data sources.           Datasets of expert demonstrations often do not provide suffi-
                                                                      cient state distribution coverage to effectively solve a given
                                                                      task with imitation learning. However, there often exists
                                                                      additional data in the form of action-free or suboptimal
                                                                      data, which may consist of failed policy rollouts, play data,
                                                                      or miscellaneous environment interactions. Unfortunately,

                                                                  3
                                          Latent Diffusion Planning for Imitation Learning

behavior cloning assumes access to data annotated with
optimal actions, so such additional data cannot be easily                 Algorithm 1 Inference with Latent Diffusion Planning
incorporated into training.                                                1: Input: Encoder E, Planner ϵψ , IDM ϵξ , Planner Dif-
                                                                              fusion Timesteps Tp , IDM Diffusion Timesteps TIDM ,
4. Latent Diffusion Planning                                                  Planning Horizon Hp , Action Horizon Ha

Latent Diffusion Planning consists of three parts, as shown                2: Observe initial state s0 and image x0 ; k = 0
in Figure 1: (1) Training an image encoder via an image                    3: while not done do
reconstruction loss, (2) learning an inverse dynamics model                4:   zk ← (E(xk ), sk )
to extract actions at from pairs of latent states zt , zt+1 , and
(3) learning a planner to forecast future latents zt .                           // Diffuse over latent embedding plan
                                                                           5:    zˆk+1 , ..., zˆk+Hp ∼ (0, I)
                                                                           6:    for t = Tp . . . 1 do
                                                                           7:       ϵ̂ ← ϵψ (zˆk+1 , ..., zˆk+Hp ; zk , t)
                                                                           8:       Update zˆk+1 , ..., zˆk+Hp using DDPM update with
                                                                                    ϵ̂
                                                                           9:    end for

                                                                                 // Diffuse over actions between latent embeddings
                                                                          10:    for i = 0 . . . Ha − 1 do
                                                                          11:       âk+i ∼ (0, I) // Predict action for each timestep in
                                                                                   action horizon
                                                                          12:      for t = TIDM . . . 1 do
                                                                          13:         ϵ̂ ← ϵξ (âk+i ; zˆk+i , zˆk+i+1 , t)
                                                                          14:         Update âk+i using DDPM update with ϵ̂
                                                                          15:      end for
                                                                          16:    end for

                                                                                 // Execute actions
                                                                          17:   for i = 0 . . . Ha − 1 do
                                                                          18:     sk+i+1 ← env.step(sk+i , âk+i )
                                                                          19:   end for
                                                                          20:   k ← k + Ha
                                                                          21: end while

Figure 2. After training the encoder, Latent Diffusion Planning
trains two diffusion models. Top: We train a inverse dynamics             & Welling, 2014; Rezende et al., 2014) to obtain a latent
model (IDM) with a diffusion objective to directly extract the
                                                                          encoder E and decoder D. Specifically, we optimize the β-
actions that will be used for control from pairs of latent states.
Bottom: We train a powerful latent diffusion model to forecast a
                                                                          VAE (Higgins et al., 2017) objective, where x is our original
chunk of future latent states. The planner and the IDM are used           image, z is our learned latent representation of the image, θ
together to produce an action chunk, similar to (Chi et al., 2023).       are the parameters for our decoder, ϕ are the parameters for
                                                                          our encoder, and β is the weight for the KL regularization
                                                                          term:
4.1. Learning the Latent Space
We circumvent planning over high-dimensional image ob-
servations by planning over a learned latent space. Similar                     LVAE (θ, ϕ; x, z, β) = Eqϕ (z | x) [log pθ (x | z)]
                                                                                                                                      (1)
to prior work in planning with world models (Watter et al.,                                              − βDKL (qϕ (z | x)||p(z))
2015; Ha & Schmidhuber, 2018; Hafner et al., 2020), we
learn this latent space using an image reconstruction objec-
                                                                          In practical scenarios, we may have a limited expert demon-
tive. Our planner thus becomes similar to video models that
                                                                          stration dataset, but much larger and diverse suboptimal or
forecast image frames in a learned latent space (Yan et al.,
                                                                          action-free datasets. In this phase of learning, we can make
2021; Hong et al., 2022; Blattmann et al., 2023).
                                                                          use of the visual information in such datasets for training a
In this work, we train a variational autoencoder (Kingma                  more robust latent encoder.

                                                                      4
                                            Latent Diffusion Planning for Imitation Learning

4.2. Planner and Inverse Dynamics Model                                          • Is Latent Diffusion Planning comparable to state-of-
                                                                                   the-art imitation learning algorithms that leverage sub-
Our policy consists of two separate modules: (1) a plan-
                                                                                   optimal data?
ner over latent embeddings z, and (2) an inverse dynamics
model similarly operating over the latent embeddings. The                        • Can Latent Diffusion Planning be an effective imita-
planner and IDM are both parameterized as DDPM models,                             tion learning method in a real-world robotics system,
motivated by the expressivity that diffusion models offer.                         where there may be suboptimal or action-free data?
The planner is conditioned on the current latent embedding,
                                                                              5.1. Experimental Setup
which consists of the concatenated latent image embedding
and robot proprioception, and diffuses over a horizon of                      Simulated Tasks We focus our experiments on 4 image-
future embeddings. We use Diffusion Policy’s Conditional                      based imitation learning tasks: (1) Robomimic Lift, (2)
U-Net architecture, with a CNN backbone. Concretely, we                       Robomimic Can, (3) Robomimic Square, and (4) ALOHA
optimize the following objective:                                             Sim Transfer Cube. Robomimic (Mandlekar et al., 2021) is
                                                                              a robotic manipulation and imitation benchmark, including
 Lplanner (ψ, z) = Et,ϵ [||ϵψ (zˆk+1 , . . . , zˆk+H ; zk , t) − ϵ||2 ]       the tasks Lift, Can, and Square. The Transfer Cube task is
                                                                    (2)       a simulated bimanual ALOHA task, in which one ViperX
where zk is the latent embedding at timestep k of the tra-                    6-DoF arm grabs a block and transfers it to the other arm
jectory; zˆk+1 , . . . , zˆk+H is the noised latent embedding                 (Zhao et al., 2023).
sequence, with corresponding noise ϵ; H is the maximum
horizon of the forecasted latent plan; t is the diffusion noise
timestep; and ψ are the parameters of the planner diffusion
model.
Our inverse dynamics model is trained to reconstruct the ac-
tion between a pair of states, conditioned on their associated
latent embeddings. We use the MLPResNet architecture
from IDQL (Hansen-Estruch et al., 2023) to diffuse actions,                   To demonstrate the effectiveness of Latent Diffusion Plan-
as it is more lightweight. We optimize the loss:                              ning, we assume a low demonstration data regime, such
                                                                              that additional suboptimal or action-free data can improve
       LIDM (ξ, z) = Et,ϵ [||ϵξ (âk ; zk , zk+1 , t) − ϵ||2 ]     (3)        performance. For Can and Square, we use 100 out of the
                                                                              200 demonstrations in the Robomimic datasets; for Lift, we
where zk is the latent embedding at timestep k of the trajec-                 use 3 demonstrations out of the 200 total; and for Trans-
tory; âk is the noised action, with corresponding noise ϵ; t                 fer Cube, we use 25 demonstrations. To further emphasize
is the diffusion noise timestep; and ξ are the parameters of                  the importance of suboptimal data, these demonstrations
the inverse dynamics diffusion model.                                         cover a limited state space of the environment. Our subopti-
Because our latent embedding is frozen from the learned                       mal data consists of 500 failed trajectories from an under-
VAE, the planner and IDM do not share parameters and can                      trained behavior cloning agent. Our action-free data consists
be trained separately (Figure 2). Then, at inference time, the                of 100 demonstrations for Lift, Can, and Square from the
two modules are combined to extract action sequences. First,                  Robomimic dataset, and 25 demonstrations for Cube. We
the planner forecasts a future horizon of states via DDPM                     evaluate the success rate out of 50 trials, using the best
sampling (Alg. 1 Lines 6-9). Then, we use the inverse                         checkpoint from the last 5 saved checkpoints, with 2 seeds.
dynamics model to extract actions from latent embedding                       Real World Task We
pairs produced by the planner, also via DDPM Diffusion                        create a real world
(Alg. 1 Lines 12-15). Like Diffusion Policy, we employ                        implementation of the
receding-horizon control (Mayne & Michalska, 1988), and                       Robomimic Lift task,
execute for a shorter horizon than the full forecasted horizon                where the task is to pick
(Alg. 1 Lines 17-19).                                                         up a red block from
                                                                              a randomly initialized
5. Experiments                                                                position.    We use a
                                                                              Frank Panda 7 degree
We seek to answer the following questions:                                    of freedom robot arm,
                                                                              with a wrist-mounted Zed camera. We use the DROID
   • Does Latent Diffusion Planning leverage action-free                      setup (Khazatsky et al., 2024) and teleoperate via the
     data for improved planning?                                              Oculus Quest 2 headset. We use cartesian pose control.

                                                                          5
                                        Latent Diffusion Planning for Imitation Learning


Table 1. Leveraging Action-Free Data. LDP is able to leverage suboptimal and action-free data. We compare against DP baselines that
leverage action-free data by using an IDM to relabel actions (DP-VPT) and video planning models that may use action-free data for the
video planner (UniPi). We find LDP to perform better than both approaches, especially when combined with suboptimal data.

            Method                              Lift          Can            Square        ALOHA Cube         Average
            DP                                  0.60 ± 0.00   0.63 ± 0.01    0.48 ± 0.00   0.32 ± 0.00        0.51
            DP-VPT                              0.69 ± 0.01   0.75 ± 0.01    0.48 ± 0.04   0.45 ± 0.03        0.59
            UniPi-OL + Action-Free              0.09 ± 0.05   0.23 ± 0.03    0.07 ± 0.03   0.02 ± 0.00        0.11
            UniPi-CL + Action-Free              0.14 ± 0.02   0.32 ± 0.04    0.09 ± 0.01   0.17 ± 0.03        0.18
            LDP                                 0.69 ± 0.03   0.70 ± 0.02    0.46 ± 0.00   0.64 ± 0.04        0.65
            LDP + Action-Free                   0.67 ± 0.01   0.78 ± 0.04    0.47 ± 0.03   0.70 ± 0.02        0.66
            LDP + Action-Free + Subopt          1.00 ± 0.00   0.98 ± 0.00    0.83 ± 0.01   0.97 ± 0.01        0.95



We collect 82 demonstrations, collect 84 suboptimal                         demos. This is representative of methods that lever-
trajectories, and 12 action-free demonstrations.                            age suboptimal data through learning trajectory-level
                                                                            features.
Our suboptimal data consists of failed trajectories from pol-
icy evaluations. This is an effective way to reuse the data             • Diffusion Policy with Video PreTraining (DP-VPT)
generated during iterations of training, that algorithms mod-             trains an inverse dynamics model to relabel action-
eling actions, such as Diffusion Policy, cannot use. Action-              free data, inspired by VPT (Baker et al., 2022) and
Free data may consist of kinesthetic demonstrations, human                BCO (Torabi et al., 2018).
videos, or handheld demonstrations (Chi et al., 2024). In our
                                                                        • Open-Loop UniPi (UniPi-OL) is based off of
case, we collect teleoperated demonstrations with actions
                                                                          UniPi (Du et al., 2023a), a video planner for robot
removed.
                                                                          manipulation. UniPi-OL generates a single video tra-
To evaluate our policies, we calculate the success rate across            jectory, extracts actions, and executes the actions in an
45 evaluation trials. To thoroughly evaluate performance                  open-loop fashion. We use a goal-conditioned behavior
across the initial state space, we evaluate across a grid of              cloning agent to reach generated subgoals (Wen et al.,
3x3 points, with 5 attempts per point. We evaluate 3 seeds                2024).
per method.
                                                                        • Closed-Loop UniPi (UniPi-CL) is a modification that
Baselines We consider two main categories of baselines: (1)               allows UniPi to perform closed-loop replanning over
Imitation learning with suboptimal or action-free data (DP,               image chunks. Like LDP, UniPi-CL generates dense
RC-DP, DP+Repr, DP PT + FT, DP-VPT), and (2) Video                        plans instead of waypoints, though in image space. We
planning (UniPi-OL, UniPi-CL).                                            learn an inverse dynamics model to extract actions.

   • Diffusion Policy (DP) is a state-of-the-art imitation           5.2. Imitation Learning with Action-Free Data
     learning algorithm.
                                                                     In Table 1, we examine how action-free data can be used to
   • Reward-Conditioned Diffusion Policy (RC-DP) uti-                improve imitation learning policies. Imitation learning poli-
     lizes suboptimal actions by conditioning the pol-               cies that model actions, such as DP, are unable to natively
     icy on a binary value indicating whether the action             use action-free data, while planning-based approaches can
     chunk comes from optimal demonstrations or not.                 benefit from this additional data.
     This method is inspired by reward-conditioned ap-
     proaches (Kumar et al., 2019b; Chen et al., 2021).              One approach is to relabel action-free data using an inverse
                                                                     dynamics model. We find this to be effective for most
   • Diffusion Policy with Representation Learning                   tasks, showing that the reannotated actions are useful for
     (DP+Repr) uses a VAE pretrained on demonstration,               policy improvement. However, we see that LDP is better
     suboptimal, and action-free data as the observation en-         able to leverage action-free data by directly using it for the
     coder. This is representative of methods that leverage          planner, rather than generating possibly inaccurate actions
     suboptimal data through representation learning.                to subsequently learn from.
   • Diffusion Policy Pretrain + Finetune (DP PT + FT)               Like LDP, video planning methods can directly use action-
     pretrains on suboptimal trajectories and finetunes on           free data for improving the planner, which for UniPi is the

                                                                 6
                                        Latent Diffusion Planning for Imitation Learning


Table 2. Leveraging Suboptimal Data. Latent Diffusion Planning can utilize suboptimal data for improved performance across a suite of
tasks. Video planning methods like UniPi consistently struggle, whereas reward-conditioned or pretraining DP approaches are able to
improve DP policy performance. LDP is best able to use suboptimal data, especially when combined with action-free data.

            Method                              Lift          Can              Square        ALOHA Cube       Average
            DP                                  0.60 ± 0.00   0.63 ± 0.01      0.48 ± 0.00   0.32 ± 0.00      0.51
            RC-DP                               0.40 ± 0.04   0.73 ± 0.03      0.66 ± 0.02   0.60 ± 0.04      0.60
            DP+Repr                             0.66 ± 0.04   0.61 ± 0.01      0.44 ± 0.02   0.25 ± 0.03      0.49
            DP PT + FT                          0.52 ± 0.02   0.67 ± 0.01      0.57 ± 0.03   0.78 ± 0.00      0.64
            UniPi-OL                            0.12 ± 0.06   0.28 ± 0.02      0.07 ± 0.01   0.00 ± 0.00      0.12
            UniPi-CL                            0.12 ± 0.02   0.30 ± 0.02      0.10 ± 0.04   0.15 ± 0.07      0.17
            LDP                                 0.69 ± 0.03   0.70 ± 0.02      0.46 ± 0.00   0.64 ± 0.04      0.65
            LDP + Subopt                        0.84 ± 0.06   0.68 ± 0.02      0.55 ± 0.03   0.71 ± 0.03      0.70
            LDP + Action-Free + Subopt          1.00 ± 0.00   0.98 ± 0.00      0.83 ± 0.01   0.97 ± 0.01      0.95



video generation model. We see limited improvement when                 motions of reaching toward or grasping the object, which
using action-free data, and both DP and LDP still strongly              are partially covered by the suboptimal dataset, provides
outperform UniPi-CL and UniPi-OL. UniPi methods par-                    a useful visuomotor prior for the policy. ALOHA Cube
ticularly struggle with more complex tasks like Square and              sees significant improvement, possibly because the larger
ALOHA Cube, implying that video planning is still ineffec-              action space of bimanual control benefits from additional
tive for tasks that require more precise manipulation skills.           reward-labelled data.
Qualitatively, for UniPi-OL, we find that while the goal-               Next, we explore using suboptimal data for feature-learning.
conditioned agent is able to follow goals effectively, the              DP + Repr uses suboptimal data for pretraining a vision-
policy still struggles with the difficult parts of the task, such       encoder, and DP PT + FT for pretraining the visuomotor
as grasping the object. Forecasting goals does not provide              policy. DP + Repr only improves policy performance for
the dense supervision for exactly how to grasp an object, and           the Lift task, implying that end-to-end training of the vi-
furthermore, UniPi-OL does not support replanning when a                sion encoder learns stronger features for complex manipula-
grasp is missed. UniPi-CL is able to address this by dense              tion tasks. DP PT + FT is particularly successful for tasks
image forecasting, and consistently outperforms UniPi-OL.               that require more precise manipulation, such as Square and
However, this closed-loop method is not only slow, but faces            ALOHA Cube, implying that learned prior motions is a use-
issues with video generation, such as regenerating static               ful policy initialization. Both the success of RC-DP and DP
frames during parts of the task with less movement, leading             PT + FT suggest that leveraging the suboptimal trajectories
the agent to be stuck in certain positions. This is especially          is a useful way to improve imitation learning results. LDP,
noticeable for the ALOHA Cube task, where the agent is                  which leverages suboptimal data for the latent encoder and
often stuck right before picking up the cube. Compared to               IDM, has higher overall performance than these methods,
UniPi-OL and UniPi-CL, LDP is able to circumvent many of                averaging across the suite of simulated tasks.
these issues due to its latent planning and dense forecasting.
                                                                        Next, we compare against UniPi, which plans over image
                                                                        subgoals (OL) or image chunks (CL). Due to the low demon-
5.3. Imitation Learning with Suboptimal Data                            stration data regime, learning effective and accurate video
In Table 2, we present imitation learning results with sub-             policies is difficult, and LDP strongly outperforms UniPi-
optimal data. First, LDP outperforms DP, which can only                 OL and UniPi-CL. In addition, we notice that UniPi-CL
utilize data with optimal actions. We notice, especially,               outperforms UniPi-OL for all tasks, implying that dense
that LDP with suboptimal data typically improves further                forecasting, even within the image domain, is more effec-
upon LDP, showing the potential of leveraging diverse data              tive than goal-conditioned methods.
sources outside of the demonstration dataset.                           Finally, we find that LDP with action-free and suboptimal
Next, RC-DP, a conditional variant of DP that utilizes sub-             data leads to the strongest performance. We find a signif-
optimal data, outperforms DP. By learning from suboptimal               icant improvement in all of the simulated tasks, including
data, RC-DP can learn priors of robot motions while dis-                compared to the variants of LDP that only use either action-
tinguishing optimal action sequences. We hypothesize that               free or suboptimal data. This suggests that the recipe for
for the Can, Square, and ALOHA Cube tasks, the primitive                combining these two data sources can lead to a stronger

                                                                    7
                                        Latent Diffusion Planning for Imitation Learning

                                                                       as in (Chi et al., 2024), can be a scalable direction.
Table 3. Real World Results For the Franka Lift task, we find
that LDP consistently outperforms DP. Suboptimal and action-free
data, that DP is unable to use, further improves performance.          5.5. Ablation: LDP Hierarchical
            Method                  Success Rate                       In an attempt to understand the effect of LDP’s dense fore-
            DP                         69.6 ± 4                        casting, we compare LDP with a hierarchical version of
            LDP                        73.3 ± 7                        LDP (LDP Hierarchical). In this implementation, LDP Hi-
            LDP + Subopt               74.8 ± 4                        erarchical plans over subgoals 4 steps apart, and extracts 4
            LDP + Action-Free          79.3 ± 3                        actions between pairs of forecasted latent states. Thus, LDP
                                                                       Hierarchical is closed-loop, yet the planner operates at a
                                                                       slightly abstracted level compared to non-hierarchical LDP.
planner and a more robust inverse dynamics model, leading              In Table 4, we find that LDP outperforms LDP Hierarchical
to the best performing model for these tasks.                          across the 3 Robomimic tasks. This suggests that dense
                                                                       forecasting is an important part and contribution of LDP.
5.4. Imitation Learning in the Real World                              This also reflects UniPi results in Table 1 and Table 2 that
                                                                       show closed-loop planning outperforms open-loop planning.
Real world data is more expensive and time-consuming to
collect; hence, examining the effect of easier-to-collect sub-
optimal and action-free data provides insights for scalable            Table 4. Hierarchical Ablation. LDP’s dense forecasting outper-
learning. In Table 3, we provide results on a Franka Lift              forms a hierarchical variant of LDP.
Cube task. In this task, we examine the performance of                   Method                     Lift        Can       Square
DP, which can only leverage action-labeled data, with our                LDP                     0.69 ± 0.03 0.70 ± 0.02 0.46 ± 0.00
method, which can use suboptimal and action-free data.                   LDP Hier.               0.53 ± 0.03 0.62 ± 0.04 0.31 ± 0.01
                                                                        LDP + Subopt           0.84 ± 0.06   0.68 ± 0.02   0.55 ± 0.03
                                                                        LDP Hier. + Subopt     0.65 ± 0.03   0.60 ± 0.02   0.43 ± 0.05


                                                                       6. Discussion
                                                                       We presented Latent Diffusion Planning, a simple planning-
                                                                       based method for imitation learning. We show that our
                                                                       design using powerful diffusion models for latent state fore-
                                                                       casting enables competitive performance with state-of-the-
                                                                       art imitation learning. We further show this latent state
                                                                       forecasting objective enables us to easily leverage heteroge-
                                                                       neous data sources. In the low-demonstration data imitation
                                                                       regime, LDP outperforms prior imitation learning work that
                                                                       does not leverage such additional data as effectively.
                                                                       Limitations. One limitation of the current approach is that
                                                                       the latent space for planning is simply learned with a vari-
                                                                       ational autoencoder and might not learn the most useful
                                                                       features for control. Future work will explore different rep-
                                                                       resentation learning objectives. Further, our method requires
                                                                       diffusing over states, which incurs additional computational
Figure 3. Visualizations of Generated Plans. LDP produces              overhead as compared to diffusing actions. However, we
dense, closed-loop plans. Here, we visualize decoded latents se-       expect continued improvements in hardware and inference
lected from an LDP trajectory for the Lift, Can, Square, ALOHA         speed will mitigate this drawback. Finally, we did not ex-
Cube, and Franka Lift tasks.
                                                                       plore applying recent improvements in diffusion models
                                                                       (Peebles & Xie, 2023; Lipman et al., 2022), which may be
We find that LDP is able to consistently outperform DP, es-
                                                                       important in large data regimes.
pecially with the addition of action-free data. For real-world
systems, this is promising, as collecting high-quality demos           Future work. We have validated in simulation and real
can be difficult and time intensive, whereas utilizing subop-          the hypothesis that latent state forecasting can leverage het-
timal trajectories, often a byproduct of evaluating policies,          erogeneous data sources. Future work can also evaluate
or collecting action-free trajectories more efficiently, such          whether this can be used to further improve more complex

                                                                   8
                                      Latent Diffusion Planning for Imitation Learning

real-world tasks. One direction is to use a diverse dataset         Bousmalis*, K., Vezzani*, G., Rao*, D., Devin*, C., Lee*,
of human collected data, such as with handheld data collec-           A. X., Bauza*, M., Davchev*, T., Zhou*, Y., Gupta*,
tion tools (Young et al., 2021). Another approach would               A., Raju, A., Laurens, A., Fantacci, C., Dalibard, V.,
be to use autonomously collected robotic data (Bousmalis*             Zambelli, M., Martins, M., Pevceviciute, R., Blokzijl, M.,
et al., 2023). As these alternative data sources are easier                                                                  ̇
                                                                      Denil, M., Batchelor, N., Lampe, T., Parisotto, E., Zołna,
to collect than demonstrations, they represent a different            K., Reed, S., Colmenarejo, S. G., Scholz, J., Abdolmaleki,
scaling paradigm that can outperform pure behavior cloning            A., Groth, O., Regli, J.-B., Sushkov, O., Rothörl, T., Chen,
approaches. By presenting a method that can leverage such             J. E., Aytar, Y., Barker, D., Ortiz, J., Riedmiller, M.,
data, we believe this work makes a step toward more perfor-           Springenberg, J. T., Hadsell†, R., Nori†, F., and Heess, N.
mant and general robot policies.                                      Robocat: A self-improving foundation agent for robotic
                                                                      manipulation. ArXiv, 2023.
Impact Statement                                                    Bruce, J., Dennis, M. D., Edwards, A., Parker-Holder, J.,
This paper presents work whose goal is to advance the field           Shi, Y., Hughes, E., Lai, M., Mavalankar, A., Steiger-
of Machine Learning. There are many potential societal                wald, R., Apps, C., et al. Genie: Generative interactive
consequences of our work, none which we feel must be                  environments. In Forty-first International Conference on
specifically highlighted here.                                        Machine Learning, 2024.

                                                                    Chen, L., Lu, K., Rajeswaran, A., Lee, K., Grover, A.,
Acknowledgments                                                       Laskin, M., Abbeel, P., Srinivas, A., and Mordatch, I. De-
                                                                      cision transformer: Reinforcement learning via sequence
We would like to thank members of ILIAD and IRIS at Stan-             modeling, 2021. URL https://arxiv.org/abs/
ford for fruitful discussions and feedback. We are grateful           2106.01345.
to Archit Sharma, Annie Chen, Austin Patel, Hengyuan Hu,
Jensen Gao, Joey Hejna, Mallika Parulekar, Mengda Xu,               Chi, C., Feng, S., Du, Y., Xu, Z., Cousineau, E., Burchfiel,
Philippe Hansen-Estruch, Shuang Li, Suvir Mirchandani,                B., and Song, S. Diffusion policy: Visuomotor policy
and Zeyi Liu for helpful conversations.                               learning via action diffusion. In Proceedings of Robotics:
                                                                      Science and Systems (RSS), 2023.
References                                                          Chi, C., Xu, Z., Pan, C., Cousineau, E., Burchfiel, B., Feng,
Ajay, A., Du, Y., Gupta, A., Tenenbaum, J., Jaakkola, T.,             S., Tedrake, R., and Song, S. Universal manipulation
  and Agrawal, P. Is conditional generative modeling all              interface: In-the-wild robot teaching without in-the-wild
  you need for decision-making?, 2023. URL https:                     robots. In Proceedings of Robotics: Science and Systems
  //arxiv.org/abs/2211.15657.                                         (RSS), 2024.

Baker, B., Akkaya, I., Zhokov, P., Huizinga, J., Tang, J.,          Cui, Z. J., Pan, H., Iyer, A., Haldar, S., and Pinto, L. Dy-
  Ecoffet, A., Houghton, B., Sampedro, R., and Clune,                 namo: In-domain dynamics pretraining for visuo-motor
  J. Video pretraining (vpt): Learning to act by watching             control. arXiv preprint arXiv:2409.12192, 2024.
  unlabeled online videos. Advances in Neural Information
                                                                    Darcet, T., Oquab, M., Mairal, J., and Bojanowski, P. Vision
  Processing Systems, 35:24639–24654, 2022.
                                                                      transformers need registers, 2023.
Beliaev, M., Shih, A., Ermon, S., Sadigh, D., and Pedarsani,        Du, Y., Yang, M., Dai, B., Dai, H., Nachum, O., Tenenbaum,
  R. Imitation learning by estimating expertise of demon-             J. B., Schuurmans, D., and Abbeel, P. Learning universal
  strators, 2022. URL https://arxiv.org/abs/                          policies via text-guided video generation, 2023a. URL
  2202.01288.                                                         https://arxiv.org/abs/2302.00111.
Black, K., Nakamoto, M., Atreya, P., Walke, H., Finn, C.,           Du, Y., Yang, M., Florence, P., Xia, F., Wahid, A., Ichter,
  Kumar, A., and Levine, S. Zero-shot robotic manipulation            B., Sermanet, P., Yu, T., Abbeel, P., Tenenbaum, J. B.,
  with pretrained image-editing diffusion models, 2023.               Kaelbling, L., Zeng, A., and Tompson, J. Video language
  URL https://arxiv.org/abs/2310.10639.                               planning, 2023b. URL https://arxiv.org/abs/
                                                                      2310.10625.
Blattmann, A., Rombach, R., Ling, H., Dockhorn, T., Kim,
  S. W., Fidler, S., and Kreis, K. Align your latents: High-        Edwards, A., Sahni, H., Schroecker, Y., and Isbell, C. Imi-
  resolution video synthesis with latent diffusion models. In         tating latent policies from observation. In International
  Proceedings of the IEEE/CVF Conference on Computer                  conference on machine learning, pp. 1755–1763. PMLR,
  Vision and Pattern Recognition, pp. 22563–22575, 2023.              2019.

                                                                9
                                      Latent Diffusion Planning for Imitation Learning

Finn, C. and Levine, S. Deep visual foresight for planning           Kingma, D. P. and Welling, M. Auto-encoding varia-
  robot motion. In 2017 IEEE International Conference on               tional bayes, 2014. URL https://arxiv.org/
  Robotics and Automation (ICRA), pp. 2786–2793. IEEE,                 abs/1312.6114.
  2017.
                                                                     Ko, P.-C., Mao, J., Du, Y., Sun, S.-H., and Tenenbaum, J. B.
Ha, D. and Schmidhuber, J. World models. arXiv preprint                Learning to Act from Actionless Videos through Dense
  arXiv:1803.10122, 2018.                                              Correspondences. arXiv:2310.08576, 2023.
Hafner, D., Lillicrap, T., Fischer, I., Villegas, R., Ha, D.,        Kostrikov, I., Nair, A., and Levine, S. Offline reinforcement
  Lee, H., and Davidson, J. Learning latent dynamics for               learning with implicit q-learning, 2021. URL https:
  planning from pixels, 2019. URL https://arxiv.                       //arxiv.org/abs/2110.06169.
  org/abs/1811.04551.
                                                                     Kumar, A., Peng, X. B., and Levine, S. Reward-conditioned
Hafner, D., Lillicrap, T., Ba, J., and Norouzi, M. Dream to            policies. arXiv preprint arXiv:1912.13465, 2019a.
  control: Learning behaviors by latent imagination, 2020.
  URL https://arxiv.org/abs/1912.01603.                              Kumar, A., Peng, X. B., and Levine, S. Reward-conditioned
                                                                       policies, 2019b. URL https://arxiv.org/abs/
Hansen, N., Su, H., and Wang, X. Td-mpc2: Scalable,                    1912.13465.
  robust world models for continuous control, 2024. URL
  https://arxiv.org/abs/2310.16828.                                  Kumar, A., Zhou, A., Tucker, G., and Levine, S. Conserva-
                                                                       tive q-learning for offline reinforcement learning, 2020.
Hansen-Estruch, P., Kostrikov, I., Janner, M., Kuba, J. G.,            URL https://arxiv.org/abs/2006.04779.
  and Levine, S. Idql: Implicit q-learning as an actor-
  critic method with diffusion policies, 2023. URL https:            Lee, S., Wang, Y., Etukuru, H., Kim, H. J., Shafiullah, N.
 //arxiv.org/abs/2304.10573.                                           M. M., and Pinto, L. Behavior generation with latent
                                                                       actions, 2024. URL https://arxiv.org/abs/
Higgins, I., Matthey, L., Pal, A., Burgess, C., Glorot,                2403.03181.
  X., Botvinick, M., Mohamed, S., and Lerchner, A.
  beta-VAE: Learning basic visual concepts with a con-               Levine, S., Kumar, A., Tucker, G., and Fu, J. Offline rein-
  strained variational framework. In International Confer-             forcement learning: Tutorial, review, and perspectives on
  ence on Learning Representations, 2017. URL https:                   open problems. arXiv preprint arXiv:2005.01643, 2020.
  //openreview.net/forum?id=Sy2fzU9gl.
                                                                     Lipman, Y., Chen, R. T., Ben-Hamu, H., Nickel, M., and
Ho, J., Jain, A., and Abbeel, P. Denoising diffusion prob-             Le, M. Flow matching for generative modeling. arXiv
  abilistic models, 2020. URL https://arxiv.org/                       preprint arXiv:2210.02747, 2022.
  abs/2006.11239.
                                                                     Mandlekar, A., Xu, D., Wong, J., Nasiriany, S., Wang, C.,
Hong, W., Ding, M., Zheng, W., Liu, X., and Tang, J.                  Kulkarni, R., Fei-Fei, L., Savarese, S., Zhu, Y., and
  Cogvideo: Large-scale pretraining for text-to-video gener-          Martı́n-Martı́n, R. What matters in learning from of-
  ation via transformers. arXiv preprint arXiv:2205.15868,            fline human demonstrations for robot manipulation. In
  2022.                                                               Conference on Robot Learning (CoRL), 2021.

Janner, M., Du, Y., Tenenbaum, J. B., and Levine, S. Plan-           Mayne, D. Q. and Michalska, H. Receding horizon control
  ning with diffusion for flexible behavior synthesis, 2022.          of nonlinear systems. In Proceedings of the 27th IEEE
  URL https://arxiv.org/abs/2205.09991.                               Conference on Decision and Control, pp. 464–465. IEEE,
                                                                      1988.
Khazatsky, A., Pertsch, K., Nair, S., Balakrishna, A.,
  Dasari, S., Karamcheti, S., Nasiriany, S., Srirama, M. K.,         Octo Model Team, Ghosh, D., Walke, H., Pertsch, K., Black,
  Chen, L. Y., Ellis, K., et al. Droid: A large-scale                  K., Mees, O., Dasari, S., Hejna, J., Xu, C., Luo, J.,
  in-the-wild robot manipulation dataset. arXiv preprint               Kreiman, T., Tan, Y., Chen, L. Y., Sanketi, P., Vuong,
  arXiv:2403.12945, 2024.                                              Q., Xiao, T., Sadigh, D., Finn, C., and Levine, S. Octo:
                                                                       An open-source generalist robot policy. In Proceedings of
Kim, M., Pertsch, K., Karamcheti, S., Xiao, T., Balakr-                Robotics: Science and Systems, Delft, Netherlands, 2024.
  ishna, A., Nair, S., Rafailov, R., Foster, E., Lam, G.,
  Sanketi, P., Vuong, Q., Kollar, T., Burchfiel, B., Tedrake,        Open X-Embodiment Collaboration, O’Neill, A., Rehman,
  R., Sadigh, D., Levine, S., Liang, P., and Finn, C. Open-           A., Gupta, A., Maddukuri, A., Gupta, A., Padalkar, A.,
  vla: An open-source vision-language-action model. arXiv              Lee, A., Pooley, A., Gupta, A., Mandlekar, A., Jain, A.,
  preprint arXiv:2406.09246, 2024.                                    Tung, A., Bewley, A., Herzog, A., Irpan, A., Khazatsky,

                                                                10
                                      Latent Diffusion Planning for Imitation Learning

A., Rai, A., Gupta, A., Wang, A., Kolobov, A., Singh, A.,                Z., Cui, Z. J., Zhang, Z., Fu, Z., and Lin, Z. Open X-
Garg, A., Kembhavi, A., Xie, A., Brohan, A., Raffin, A.,                 Embodiment: Robotic learning datasets and RT-X models.
Sharma, A., Yavary, A., Jain, A., Balakrishna, A., Wahid,                https://arxiv.org/abs/2310.08864, 2023.
A., Burgess-Limerick, B., Kim, B., Schölkopf, B., Wulfe,
B., Ichter, B., Lu, C., Xu, C., Le, C., Finn, C., Wang, C.,            Oquab, M., Darcet, T., Moutakanni, T., Vo, H., Szafraniec,
Xu, C., Chi, C., Huang, C., Chan, C., Agia, C., Pan, C.,                 M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-
Fu, C., Devin, C., Xu, D., Morton, D., Driess, D., Chen,                 Nouby, A., Howes, R., Huang, P.-Y., Xu, H., Sharma, V.,
D., Pathak, D., Shah, D., Büchler, D., Jayaraman, D.,                   Li, S.-W., Galuba, W., Rabbat, M., Assran, M., Ballas, N.,
Kalashnikov, D., Sadigh, D., Johns, E., Foster, E., Liu,                 Synnaeve, G., Misra, I., Jegou, H., Mairal, J., Labatut, P.,
F., Ceola, F., Xia, F., Zhao, F., Frujeri, F. V., Stulp, F.,             Joulin, A., and Bojanowski, P. Dinov2: Learning robust
Zhou, G., Sukhatme, G. S., Salhotra, G., Yan, G., Feng,                 visual features without supervision, 2023.
G., Schiavi, G., Berseth, G., Kahn, G., Yang, G., Wang,
G., Su, H., Fang, H.-S., Shi, H., Bao, H., Amor, H. B.,                Pearce, T., Rashid, T., Kanervisto, A., Bignell, D., Sun, M.,
Christensen, H. I., Furuta, H., Bharadhwaj, H., Walke,                   Georgescu, R., Macua, S. V., Tan, S. Z., Momennejad, I.,
H., Fang, H., Ha, H., Mordatch, I., Radosavovic, I., Leal,               Hofmann, K., and Devlin, S. Imitating human behaviour
I., Liang, J., Abou-Chakra, J., Kim, J., Drake, J., Peters,              with diffusion models, 2023. URL https://arxiv.
J., Schneider, J., Hsu, J., Vakil, J., Bohg, J., Bingham,                org/abs/2301.10677.
J., Wu, J., Gao, J., Hu, J., Wu, J., Wu, J., Sun, J., Luo,
                                                                       Peebles, W. and Xie, S. Scalable diffusion models with trans-
J., Gu, J., Tan, J., Oh, J., Wu, J., Lu, J., Yang, J., Malik,
                                                                         formers, 2023. URL https://arxiv.org/abs/
J., Silvério, J., Hejna, J., Booher, J., Tompson, J., Yang,
                                                                         2212.09748.
J., Salvador, J., Lim, J. J., Han, J., Wang, K., Rao, K.,
Pertsch, K., Hausman, K., Go, K., Gopalakrishnan, K.,                  Radosavovic, I., Shi, B., Fu, L., Goldberg, K., Darrell, T.,
Goldberg, K., Byrne, K., Oslund, K., Kawaharazuka, K.,                   and Malik, J. Robot learning with sensorimotor pre-
Black, K., Lin, K., Zhang, K., Ehsani, K., Lekkala, K.,                  training. In Conference on Robot Learning, pp. 683–693.
Ellis, K., Rana, K., Srinivasan, K., Fang, K., Singh, K. P.,             PMLR, 2023.
Zeng, K.-H., Hatch, K., Hsu, K., Itti, L., Chen, L. Y.,
Pinto, L., Fei-Fei, L., Tan, L., Fan, L. J., Ott, L., Lee, L.,         Rezende, D. J., Mohamed, S., and Wierstra, D. Stochastic
Weihs, L., Chen, M., Lepert, M., Memmel, M., Tomizuka,                   backpropagation and approximate inference in deep gen-
M., Itkina, M., Castro, M. G., Spero, M., Du, M., Ahn,                   erative models. In International conference on machine
M., Yip, M. C., Zhang, M., Ding, M., Heo, M., Srirama,                   learning, pp. 1278–1286. PMLR, 2014.
M. K., Sharma, M., Kim, M. J., Kanazawa, N., Hansen,
N., Heess, N., Joshi, N. J., Suenderhauf, N., Liu, N., Palo,           Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and
N. D., Shafiullah, N. M. M., Mees, O., Kroemer, O., Bas-                 Ommer, B. High-resolution image synthesis with latent
tani, O., Sanketi, P. R., Miller, P. T., Yin, P., Wohlhart, P.,          diffusion models, 2022. URL https://arxiv.org/
Xu, P., Fagan, P. D., Mitrano, P., Sermanet, P., Abbeel, P.,             abs/2112.10752.
Sundaresan, P., Chen, Q., Vuong, Q., Rafailov, R., Tian,
R., Doshi, R., Mart’in-Mart’in, R., Baijal, R., Scalise,               Schmeckpeper, K., Xie, A., Rybkin, O., Tian, S., Dani-
R., Hendrix, R., Lin, R., Qian, R., Zhang, R., Mendonca,                 ilidis, K., Levine, S., and Finn, C. Learning predictive
R., Shah, R., Hoque, R., Julian, R., Bustamante, S., Kir-                models from observation and interaction. In European
mani, S., Levine, S., Lin, S., Moore, S., Bahl, S., Dass,                Conference on Computer Vision, pp. 708–725. Springer,
S., Sonawani, S., Tulsiani, S., Song, S., Xu, S., Haldar,                2020.
S., Karamcheti, S., Adebola, S., Guist, S., Nasiriany,
S., Schaal, S., Welker, S., Tian, S., Ramamoorthy, S.,                 Schmidhuber, J. Reinforcement learning upside down:
Dasari, S., Belkhale, S., Park, S., Nair, S., Mirchandani,               Don’t predict rewards–just map them to actions. arXiv
S., Osa, T., Gupta, T., Harada, T., Matsushima, T., Xiao,                preprint arXiv:1912.02875, 2019.
T., Kollar, T., Yu, T., Ding, T., Davchev, T., Zhao, T. Z.,
                                                                       Shafiullah, N. M. M., Cui, Z. J., Altanzaya, A., and
Armstrong, T., Darrell, T., Chung, T., Jain, V., Kumar,
                                                                         Pinto, L. Behavior transformers: Cloning k modes with
V., Vanhoucke, V., Zhan, W., Zhou, W., Burgard, W.,
                                                                         one stone, 2022. URL https://arxiv.org/abs/
Chen, X., Chen, X., Wang, X., Zhu, X., Geng, X., Liu,
                                                                         2206.11251.
X., Liangwei, X., Li, X., Pang, Y., Lu, Y., Ma, Y. J.,
Kim, Y., Chebotar, Y., Zhou, Y., Zhu, Y., Wu, Y., Xu, Y.,              Sohl-Dickstein, J., Weiss, E. A., Maheswaranathan, N.,
Wang, Y., Bisk, Y., Dou, Y., Cho, Y., Lee, Y., Cui, Y.,                  and Ganguli, S. Deep unsupervised learning using
Cao, Y., Wu, Y.-H., Tang, Y., Zhu, Y., Zhang, Y., Jiang,                 nonequilibrium thermodynamics, 2015. URL https:
Y., Li, Y., Li, Y., Iwasawa, Y., Matsuo, Y., Ma, Z., Xu,                 //arxiv.org/abs/1503.03585.

                                                                  11
                                      Latent Diffusion Planning for Imitation Learning

Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Er-          Zhang, S., Cao, Z., Sadigh, D., and Sui, Y. Confidence-
  mon, S., and Poole, B. Score-based generative modeling               aware imitation learning from demonstrations with vary-
  through stochastic differential equations. arXiv preprint            ing optimality, 2022. URL https://arxiv.org/
  arXiv:2011.13456, 2020.                                              abs/2110.14754.

Torabi, F., Warnell, G., and Stone, P. Behavioral cloning            Zhao, T. Z., Kumar, V., Levine, S., and Finn, C. Learn-
  from observation. arXiv preprint arXiv:1805.01954,                   ing fine-grained bimanual manipulation with low-cost
  2018.                                                                hardware, 2023. URL https://arxiv.org/abs/
                                                                       2304.13705.
Watter, M., Springenberg, J., Boedecker, J., and Riedmiller,
 M. Embed to control: A locally linear latent dynamics               Zhao, T. Z., Tompson, J., Driess, D., Florence, P.,
 model for control from raw images. Advances in neural                 Ghasemipour, S. K. S., Finn, C., and Wahid, A. ALOHA
 information processing systems, 28, 2015.                             unleashed: A simple recipe for robot dexterity. In 8th An-
                                                                       nual Conference on Robot Learning, 2024. URL https:
Wen, C., Lin, X., So, J., Chen, K., Dou, Q., Gao, Y., and              //openreview.net/forum?id=gvdXE7ikHI.
 Abbeel, P. Any-point trajectory modeling for policy learn-
                                                                     Zhou, S., Du, Y., Chen, J., Li, Y., Yeung, D.-Y., and Gan,
 ing, 2024. URL https://arxiv.org/abs/2401.
                                                                       C. Robodreamer: Learning compositional world models
 00025.
                                                                       for robot imagination, 2024. URL https://arxiv.
Wu, P., Escontrela, A., Hafner, D., Abbeel, P., and Goldberg,          org/abs/2404.12377.
 K. Daydreamer: World models for physical robot learn-
 ing. In Conference on robot learning, pp. 2226–2240.
 PMLR, 2023a.

Wu, P., Majumdar, A., Stone, K., Lin, Y., Mordatch, I.,
 Abbeel, P., and Rajeswaran, A. Masked trajectory mod-
 els for prediction, representation, and control. In Inter-
 national Conference on Machine Learning, pp. 37607–
 37623. PMLR, 2023b.

Yan, W., Zhang, Y., Abbeel, P., and Srinivas, A. Videogpt:
  Video generation using vq-vae and transformers. arXiv
  preprint arXiv:2104.10157, 2021.

Yang, M., Du, Y., Ghasemipour, K., Tompson, J., Schuur-
  mans, D., and Abbeel, P. Learning interactive real-world
  simulators. arXiv preprint arXiv:2310.06114, 2023.

Yang, S., Walker, J., Parker-Holder, J., Du, Y., Bruce, J.,
  Barreto, A., Abbeel, P., and Schuurmans, D. Video as
  the new language for real-world decision making, 2024.
  URL https://arxiv.org/abs/2402.17139.

Young, S., Gandhi, D., Tulsiani, S., Gupta, A., Abbeel, P.,
  and Pinto, L. Visual imitation made easy. In Conference
  on Robot Learning, pp. 1992–2005. PMLR, 2021.

Yu, T., Kumar, A., Chebotar, Y., Hausman, K., Finn, C.,
  and Levine, S. How to leverage unlabeled data in offline
  reinforcement learning. In Chaudhuri, K., Jegelka, S.,
  Song, L., Szepesvari, C., Niu, G., and Sabato, S. (eds.),
  Proceedings of the 39th International Conference on Ma-
  chine Learning, volume 162 of Proceedings of Machine
  Learning Research, pp. 25611–25635. PMLR, 17–23 Jul
  2022. URL https://proceedings.mlr.press/
  v162/yu22c.html.

                                                                12
                                        Latent Diffusion Planning for Imitation Learning

A. Appendix
A.1. Additional Ablations
A.1.1. LDP WITH P RETRAINED E MBEDDINGS
We evaluate the effectiveness of planning and extracting actions from pretrained embeddings with a DINOv2 ablation. In
this approach, we replace our VAE embeddings with DINOv2 embeddings, with no other changes to the LDP architecture.
The DINOv2 latent embedding is 384-dimensional. We found directly planning over the DINOv2 embeddings does not lead
to good learned behaviors (0% success), which we hypothesize is due to the challenges of planning over a large latent space.
Thus, as an alternative, we fix a random projection matrix, reducing the 384 dim feature space to 16 dim, matching LDP. We
choose this, because this is a straightforward way of using frozen embeddings. It may be possible to plan over the large
embeddings space with a much larger and complex model, or it may be possible to learn alternative ways to project DINOv2
embeddings to a lower-dimensional space, but this may lead to fundamental changes in our method, so we leave more
complicated approaches to use pretrained embeddings for future work. We include results on Robomimic tasks in Table 5.

Table 5. DINOv2 Ablation. Planning over frozen embeddings (DINOv2), even when projected to a lower dimensional space, has
significantly lower success rate than planning over VAE embeddings. This suggests that the learned latent space is crucial to LDP’s
performance, and that a compact, well-structured latent space leads to optimal performance.
           Method                                               Latent Dim          Lift          Can         Square
           LDP w/ DINOv2 (frozen)                                  384           0.00 ± 0.00   0.00 ± 0.00   0.00 ± 0.00
           LDP w/ DINOv2 (frozen, randomly projected)               16           0.44 ± 0.24   0.03 ± 0.01   0.01 ± 0.01
           LDP + Action-Free + Subopt                               16           1.00 ± 0.00   0.98 ± 0.00   0.83 ± 0.01


A.1.2. U NI P I FROM P RETRAINED M ODEL
In our experimental results, we train our UniPi model from scratch on demonstration videos. To provide a comparison to
training UniPi from pre-trained weights, we use the AVDC-THOR pretrained checkpoint (Ko et al., 2023). We finetune for
an additional 50k steps at learning rate 1e-4.
In Table 6 and Table 7, we find that the pretrained UniPi model does not substantially improve performance, likely because
the pretrained model quality is limited. For UniPi-OL, there appears to be slightly improvement when pretraining from
scratch, possibly because without closed-loop planning, the pretrained initialization may be helpful.

                                           Table 6. UniPi from Pretrained Checkpoint
                              Method                            Lift          Can         Square
                              UniPi-OL (from scratch)        0.09 ± 0.03   0.27 ± 0.01   0.07 ± 0.01
                              UniPi-OL (from pretrain)       0.13 ± 0.05   0.31 ± 0.01   0.07 ± 0.01
                              UniPi-CL (from scratch)        0.12 ± 0.02   0.30 ± 0.02   0.10 ± 0.04
                              UniPi-CL (from pretrain)       0.13 ± 0.05   0.23 ± 0.01   0.08 ± 0.02


                                   Table 7. UniPi + Action-Free from Pretrained Checkpoint
                              Method                            Lift          Can         Square
                              UniPi-OL (from scratch)        0.11 ± 0.03   0.25 ± 0.03   0.05 ± 0.03
                              UniPi-OL (from pretrain)       0.10 ± 0.08   0.26 ± 0.00   0.08 ± 0.02
                              UniPi-CL (from scratch)        0.14 ± 0.02   0.32 ± 0.04   0.09 ± 0.01
                              UniPi-CL (from pretrain)       0.11 ± 0.03   0.25 ± 0.01   0.10 ± 0.00


A.2. Implementation Details
Diffusion Policy We use a Jax reimplementation of the convolutional Diffusion Policy, which we verify can reproduce
reported Robomimic benchmark results.

                                                                13
                                       Latent Diffusion Planning for Imitation Learning

UniPi We use the open-source implementation of UniPi (Ko et al., 2023). For UniPi-OL and UniPi-CL, we predict 7 future
frames. During training time, for UniPi-OL, the 7 future frames are evenly sampled from a training demonstration. For
UniPi-CL, the 7 future frames are the next consecutive frames.
The goal-conditioned behavior cloning agent is implemented as a goal-conditioned Diffusion Policy (Chi et al., 2023) agent,
and it is trained on chunks of 16. The inverse dynamics model is based off of IDQL (Hansen-Estruch et al., 2023), and
shares the same architecture as the IDM used in LDP.
We train the video prediction models for 200k gradient steps with batch size 16.
LDP The LDP VAE is adapted from Diffusion Transformer (Peebles & Xie, 2023). The planner is based directly off of the
convolutional U-Net from Diffusion Policy (Chi et al., 2023), with modifications to plan across latent embeddings instead of
action chunks. The IDM is based off of IDQL (Hansen-Estruch et al., 2023).


                                    Table 8. Diffusion Policy Architecture Hyperparameters
                                         UniPi-OL GCBC        DP and LDP           LDP - ALOHA Cube
                   down dims             [256, 512, 1024]     [256, 512, 1024]     [512, 1024, 2048]
                   n diffusion steps     100                  100                  100
                   batch size            256                  256                  256
                   lr                    1e-4                 1e-4                 1e-4
                   n grad steps          500k                 500k                 500k




                                          Table 9. IDM Architecture Hyperparameters
                                           UniPi-CL IDM       LDP IDM
                     n blocks              3                  3 (Lift, Square, ALOHA Cube); 5 (Can)
                     n diffusion steps     100                100
                     batch size            256                256
                     lr                    1e-4               1e-4
                     n grad steps          500k               500k




                                          Table 10. VAE Architecture Hyperparameters
                                                             VAE
                                block out channels           [128, 256, 256, 256, 256, 256]
                                down block types             [DownEncoderBlock2D] x6
                                up block types               [UpDecoderBlock2D] x6
                                latent channels              4
                                Latent Dim                   (2, 2, 4)
                                Lift KL Beta                 1e-5
                                Can KL Beta                  1e-6
                                Square KL Beta               1e-6
                                ALOHA Cube KL Beta           1e-7
                                n grad steps                 300k



A.3. Simulation Experiments
A.3.1. E NVIRONMENT
For all environments, we use an observation horizon of 1. For Robomimic tasks, we use the third-person view image. For
ALOHA Cube and Franka Lift, we use the wrist camera. All images are 64x64.

                                                             14
                                     Latent Diffusion Planning for Imitation Learning

A.3.2. DATASET S IZES
We detail the design decisions for the number of expert, action-free, and suboptimal trajectories. For simulated robotics
tasks, we kept consistent the action-free and suboptimal trajectories: 100 action-free trajectories for robomimic tasks and
500 suboptimal trajectories for all tasks.
Number of Demonstrations Robomimic includes 200 proficient demonstrations per task, and ALOHA includes 50
demonstrations per task. To showcase the effectiveness of our method, we always take half the number of demonstrations–
100 for Robomimic tasks, and 25 for ALOHA tasks. This is a consistent protocol we use to select the number of
demonstrations. However, Lift is a particularly simple task, so in order to not saturate our baseline methods with excessive
numbers of demos, we reduce the number of demonstrations to 3. Without this adjustment, Lift results would not be useful
to discern the effect of different types of data, and furthermore, Lift results would all be saturated.
Number of Action-Free Trajectories We chose to use the remaining half of the demonstrations as action-free trajectories.
Hence, ALOHA uses 25 action-free trajectories, and Robomimic uses 100 action-free trajectories. Note again that Lift only
used 3 expert demonstrations, but in order to keep our numbers as consistent as possible and avoid further confusion, we
opted to use 100 action-free trajectories.

A.3.3. M ETHOD D ETAILS
LDP VAE We train with additional action-free and suboptimal data. This VAE is shared across a single task for all variants
of LDP, and including for DP + Repr.
LDP + Subopt We train the inverse dynamics model with batches of 50% optimal, 50% suboptimal data.
LDP + Action-Free We train only the planner on additional action-free demos. The IDM is trained only on expert
demonstrations.
LDP + Action-Free + Subopt We train only the planner on additional action-free demos. We train the inverse dynamics
model with batches of 50% optimal, 50% suboptimal data.
LDP Hierarchical The IDM is parameterized as a Conditional U-Net, like the planner, but the IDM is smaller and has
down dims=[256, 512].
LDP DINOv2 In this variant, we plan over pretrained DINOv2 (Oquab et al., 2023; Darcet et al., 2023) embeddings instead
of VAE embeddings. We use the ViT-S variant and pad the 64x64 image to be 70x70, which matches the 14x14 patch
size. The batch size is reduced to 128, but the remaining hyperparameters are identical to LDP. We further project the
384-dimensional embedding to 16-dimensional via a random matrix, in order for easier planning. Results are presented in
Appendix A.1.1
DP + Repr We use the same VAE that LDP methods used.
DP PT + FT We pretrain for 300k steps and finetune with a lower learning rate (1e-5) for 200k steps.
DP-VPT We use an inverse dynamics model trained for 500k steps on curated data, as used in LDP, to relabel actions for
the action-free data.
UniPi We train two goal-conditioned agents and two inverse dynamics models and report the average success. For UniPi-OL
evaluations, we predetermine the number of steps for the GCBC to reach each image subgoal based on the demonstration
lengths. For Lift, evaluation episode lengths are 60 steps; Can is 140 steps; and Square is 160 steps. This maximum horizon
is also enforced for UniPi-CL evaluations, for consistency.




                                                            15
