Traditional imitation learning paradigms, such as Behavioral Cloning or Adversarial Imitation Learning, treat expert data as a distribution to be matched via statistical density or supervised classification. When provided with hundreds of expert trajectories, these methods excel. However, when scaled down to a single demonstration, this statistical foundation collapses. A standard discriminator trained on one trajectory will instantly overfit, creating a razor-thin, binary reward signal that an exploring agent has virtually zero probability of discovering.
To learn effectively from a single demonstration, modern frameworks abandon pure pixel- or coordinate-level mimicry. Instead, they extract the underlying structure of the task. By transforming a single trajectory into continuous reward landscapes, warping geometric frames of reference, or abstracting low-level actions into high-level symbolic intents, these methods enable agents to generalize robustly from a single example.
Constructing Dense Landscapes from a Single Path
If an agent deviates even slightly from a single expert trajectory, a naive imitation objective provides no feedback. To solve this sparse-reward problem, researchers focus on converting a single sequence of states into a smooth, continuous reward landscape that guides the agent back to the expert path from anywhere in the state space.
One approach is to model the expert's state density explicitly rather than adversarially. Kim et al. demonstrate in Imitation with Neural Density Models that estimating the density of a single expert trajectory provides a fixed, stable reward function that avoids the training instabilities of adversarial discriminators. Similarly, Ni et al. introduce $f$-IRL, which derives analytic gradients for $f$-divergences to match the agent's state marginals directly to the expert's single trajectory, maximizing sample efficiency in data-constrained regimes.
Standard Discriminator: [ Expert Path ] ---> Sharp, binary reward (Overfits instantly)
Density/OT Mapping: [ ~ ~ 🌊 ~ ~ ] ---> Smooth, continuous gradient landscape
Another strategy leverages the environment's physics to expand the reward zone. In Expert Proximity as Surrogate Rewards for Single Demonstration Imitation Learning, Chiang et al. utilize a learned transition model to reward the agent not just for intersecting the expert's exact states, but for reaching states that can transition into the expert's downstream path.
When explicit action labels are missing from the demonstration, global trajectory alignment becomes necessary. Bobrin et al. develop Align Your Intents: Offline Imitation Learning via Optimal Transport, which maps states into a temporally aware latent "space of intentions" and uses Optimal Transport to align the agent's entire lifetime trajectory with the expert's. This global alignment perspective is shared by Rupf et al. in Zero-Shot Offline Imitation Learning via Optimal Transport, which matches predicted occupancy distributions to prevent the short-sighted, myopic errors common in step-by-step goal sequencing.
Spatial Warping and Object-Centric Geometry
A single demonstration captures a task performed in one specific spatial configuration—for instance, picking up a mug located at a precise set of coordinates. If the mug is moved, a raw coordinate-matching policy fails. To achieve spatial generalization, researchers frame one-shot learning as a geometric transformation problem.
Instead of tracking the robot's specific joint movements, these methods track the object's frame of reference. Vitiello et al. show in One-Shot Imitation Learning: A Pose Estimation Perspective that by calculating how an unseen object's 3D pose shifts between the demonstration and a new scene, a robot can mathematically translate and rotate its recorded trajectory to match the new environment configuration.
[ Demo: Mug at X ] -------> Extract Object Trajectory -------> [ New Scene: Mug at Y ]
| |
v v
Calculate Pose Delta ---------> Warp Trajectory to Fit Y
When objects vary not just in pose but in shape and size, rigid transformations are insufficient. Biza et al. address this in One-shot Imitation Learning via Interaction Warping by using non-rigid shape warping to map key interaction points (such as handles or rims) from a canonical object model to novel, deformed instances. This object-centric philosophy is mirrored in DITTO: Demonstration Imitation by Trajectory Transformation, where Heppert et al. focus exclusively on the spatial trajectory of the manipulated object rather than the human hand, warping the recorded motion paths to fit new environmental layouts seamlessly.
Abstracting Intent into Reusable Routines
Beyond spatial variations, environments often present non-stationary physics or multi-stage requirements. Mimicking low-level control inputs from a single trajectory is highly brittle under these conditions. The solution is abstraction: parsing the single demonstration into discrete, high-level semantic blocks or symbolic plans.
Zhao et al. implement this concept in Augmenting Policy Learning with Routines Discovered from a Single Demonstration by extracting macro-actions, or "routines," from a single demonstration. This allows the agent to reason at a higher temporal resolution and compose these routines dynamically. To insulate the agent from changing physical dynamics, Shin et al. (One-shot Imitation in a Non-Stationary Environment via Multi-Modal Skill) disentangle high-level "semantic skills" from low-level execution, ensuring that the core operational intent remains intact even if the underlying environment forces change.
At the highest level of abstraction, trajectories are translated directly into symbolic code or programs:
- Temporal Segmentation: In Robotic Imitation of Human Actions, Spisak et al. use generative diffusion models to segment a video demonstration temporally, mapping visual transitions into a symbolic plan that the robot executes using its own internal body schema.
- Program Synthesis: Silver et al. introduce Few-Shot Bayesian Imitation Learning with Logical Program Policies, which combines domain-specific languages with Bayesian inference to synthesize logical program policies from minimal examples, bypassing neural data inefficiencies entirely.
Bridging the Gap with Dynamics and Exploration
Even with dense rewards or geometric warping, an agent cannot always execute a task perfectly on the first attempt due to the "reality gap" or unobserved physical dynamics. Therefore, the single demonstration is often used as a guide for targeted exploration and online refinement.
Pavse et al. address this in RIDM: Reinforced Inverse Dynamics Modeling for Learning from a Single Observed Demonstration. RIDM treats the single state-only demonstration as a sequence of target set-points, using reinforcement learning to optimize an inverse dynamics model that learns the exact force or torque commands required to transition between those states.
[ Single Demo States ] ---> Treated as Sequential Set-Points
|
v
[ Inverse Dynamics Model ] ---> Outputs Actions
|
v
[ Reinforcement Learning ] ---> Fine-tunes Torques/Forces
To prevent the agent from getting stuck during this trial-and-error phase, Libardi et al. (Guided Exploration with Proximal Policy Optimization using a Single Demonstration) utilize a dual-buffer system within a PPO framework to prioritize "promising failures"—exploratory trajectories that closely miss the expert's path but provide critical information about the transition dynamics. Finally, Zhang et al. demonstrate in Overcoming Knowledge Barriers: Online Imitation Learning from Observation with Pretrained World Models that combining online practice with data-driven regularizers allows agents to break through knowledge barriers, using a single visual demonstration as an anchor while safely exploring and refining the policy through direct environment interaction.
Key Foundational Work
Neural Task Graphs: Generalizing to Unseen Tasks From a Single Video Demonstration (2019) — contributed 1 concept elements to this direction.
Learning Robust Plans for Mobile Robots from a Single Trial (1996) — contributed 1 concept elements to this direction.