TL;DR
Learning from observation (LfO) allows AI agents to imitate experts just by watching their state changes, without needing a record of the exact actions taken. This paper introduces Diffusion Imitation from Observation (DIFO), which replaces the notoriously unstable neural network discriminators used in standard adversarial imitation learning with a conditional diffusion model. By using the diffusion model's single-step denoising loss as a reward signal, DIFO achieves state-of-the-art stability, performance, and data efficiency across a variety of robotic and control tasks.
What Problem Does This Paper Address?
In traditional Imitation Learning (or Learning from Demonstration), an AI learns by copying a dataset of expert state-action pairs. However, in the real world, action labels are often missing or impossible to get—think of trying to extract the exact motor torques from a YouTube video of a human opening a door.
Learning from Observation (LfO) attempts to solve this by training agents using state-only sequences. A popular way to do this is Adversarial Imitation Learning (e.g., GAIfO), where a "generator" (the agent) tries to produce state transitions that fool a "discriminator" (a neural network trained to tell the difference between expert and agent behavior). Unfortunately, these adversarial setups are notoriously brittle. Because the discriminator maps complex, high-dimensional state transitions down to a simple 1D "real or fake" score, it is highly prone to overfitting, making the training process unstable and highly sensitive to hyperparameters.
Methods
The authors propose DIFO, which integrates a diffusion model into the adversarial LfO framework to provide a more robust learning signal.
Instead of a standard Multi-Layer Perceptron (MLP) discriminator, DIFO uses a conditional Denoising Diffusion Probabilistic Model (DDPM).
- The Diffusion Discriminator: The model is trained to predict the next state ($s'$) given the current state ($s$). Crucially, it is conditioned on a binary label indicating whether the transition came from the expert or the learning agent.
- The Denoising Reward: To train the agent, DIFO doesn't actually need the diffusion model to generate full trajectories. Instead, it uses the single-step denoising loss. If the agent makes a move and the diffusion model (conditioned on the "expert" label) can easily denoise the resulting state, it means the transition looks highly probable under the expert's distribution.
- Training Loop: The system alternates between training the diffusion model to classify expert vs. agent transitions (using Binary Cross Entropy) and training the agent's policy (using standard RL algorithms like SAC or PPO) to maximize the "realness" reward provided by the diffusion model.
Datasets
The authors evaluated DIFO on a mix of vector-based and image-based continuous control environments from Gymnasium, D4RL, Minari, and Meta-World.
- Navigation & Locomotion: PointMaze, AntMaze (high-dimensional quadruped navigation), Walker.
- Manipulation: FetchPush, AdroitDoor (complex 39-dimension state space), OpenMicrowave.
- Image-Based Tasks: CarRacing (top-down driving), CloseDrawer (robotic arm manipulation from fixed camera frames).
Key Insights and Ideas
- High-dimensional prediction prevents overfitting: Standard discriminators output a single probability logit, making it easy for the agent to find "loopholes" and exploit the reward function. Because DIFO's diffusion discriminator must predict high-dimensional noise patterns, it is structurally much harder for the agent to trick it, leading to vastly more stable training.
- Single-step efficiency is enough: Running a full diffusion generation process (which takes hundreds of steps) at every single RL environment step would be computationally disastrous. The authors found that sampling just one denoising step provides a remarkably stable proxy for the Evidence Lower Bound (ELBO), yielding an accurate reward signal without the massive computational overhead.
- Asymmetric reconstruction training: The diffusion model is trained to reconstruct data (MSE loss) only for the expert demonstrations, not the agent's data. The authors discovered that trying to model the agent's chaotic, exploratory behavior early in training actually destabilizes the diffusion model.
Key Results
- Superior Performance: DIFO consistently matched or outperformed seven baselines (including GAIfO, WAIfO, BCO, and IQ-Learn) across all 8 environments, converging significantly faster in high-dimensional tasks like AntMaze and AdroitDoor.
- Extreme Data Efficiency: In the complex AntMaze task, the authors artificially restricted the number of expert demonstrations. When reduced from 200 down to 25 trajectories, every single baseline method collapsed to a 0% success rate. DIFO, however, maintained a ~20% success rate, proving it can squeeze more signal out of sparse data.
- Robustness to Noise: When the researchers injected heavy Gaussian noise into the agent's actions in the AntMaze environment, DIFO maintained its high performance, proving it can adapt to highly stochastic environments.
Limitations and Future Work
- Delayed Action Effects: Because DIFO's reward is based purely on state-to-state transitions $(s, s')$, it may struggle in environments where an action's true impact isn't visible until several states later.
- Cross-Embodiment Constraints: The current framework assumes the expert and the agent share the exact same state space. This limits its immediate applicability for cross-embodiment tasks (e.g., a robot with 6 joints learning from a robot with 8 joints, or from human video).
- Demonstration Quality: Like most imitation learning frameworks, DIFO is heavily bottlenecked by the quality of the expert data. If the demonstrations are sub-optimal, the agent will confidently learn sub-optimal behavior.
- Future Work: The authors note that because DIFO focuses purely on discrimination, it doesn't currently have a clean way to incorporate actual environmental rewards if they happen to be available alongside the expert data.
Summary updated