Manuscript Offprint

arXiv:2610.18188

OneDemo: Unified Policy Learning and Data Generation from a Single Demonstration

Ying Qian, Jianshu Hu, Han Fang, Shuguang Li, Yutong Ban

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Learning robot policies from demonstrations is often limited by the cost of collecting diverse, high-quality expert data. While an appealing alternative is to expand a single successful demonstration into a diverse set of successful trajectories, existing augmentation methods typically rely on manually designed transformation rules or complex trajectory planning, requiring substantial task-specific engineering and human effort. We introduce OneDemo, a reinforcement learning framework that learns to edit a single successful demonstration for new task configurations. We formulate demonstration editing as a structured reinforcement learning problem, in which an editor learns, from sparse task-success rewards, both when to transition between object-centric trajectory segments and how to geometrically adapt each segment. The learned editor serves both as a task policy and as a reusable demonstration generator. Across 15 Meta-World tasks, OneDemo reaches a 92.7% success rate within 53.7k environment interactions on average. Across 9 DexMimicGen tasks, it generates successful demonstrations with a 98.4% average success rate, and BC-RNN policies trained on the generated data achieve 99.6% average success at matched dataset scale. These results show that learning to edit a single successful demonstration provides a structured and effective basis for both policy learning and scalable demonstration generation.

1 INTRODUCTION

Learning manipulation policies from demonstrations has emerged as a powerful paradigm for complex robotic tasks, including long-horizon and bimanual manipulation. Modern imitation learning methods (Zhao et al., 2023; Chi et al., 2025; Ze et al., 2024; Liu et al., 2025) can reproduce sophisticated behaviors when provided with sufficiently large and diverse demonstration datasets. Collecting such datasets through human teleoperation, however, remains expensive and time-consuming, while the resulting demonstrations typically cover only a small fraction of the task configurations a robot may encounter.

A natural alternative is to generate additional demonstrations by adapting a small number of successful trajectories to new object poses, scene configurations, or task initializations. If these adaptations can be performed reliably, a single demonstration can provide supervision over a substantially broader task distribution. Existing approaches toward this goal face an important trade-off. Simple perturbation-based augmentation is easy to apply (Wang et al., 2024; Zhou et al., 2023), but can produce invalid or unsuccessful trajectories when the target task configuration deviates substantially from the source demonstration. More structured approaches, such as MimicGen (Mandlekar et al., 2023), obtain substantially higher reliability by decomposing demonstrations into object-centric segments and geometrically transforming them to new scenes. Their behavior, however, is largely determined by manually specified task structure and trajectory-generation procedures.

In this work, we ask whether the edits required to adapt a successful demonstration to a new task configuration can instead be learned. Recent work has begun to explore related directions: DemoGrasp (Yuan et al., 2026) learns a single global edit to a demonstrated dexterous grasp using reinforcement learning, while DexFlyWheel (Zhu et al., 2025) combines demonstration-based aug-

Figure

Figure 1: OneDemo learns to edit a single demonstration to generate varying successful trajectories under new spatial configurations. Left: OneDemo adapts the source trajectory to generate successful augmentations. Right: Recurrent behavior cloning (BC-RNN) trained on demonstrations augmented by OneDemo improves success from 76.3% to 99.6% compared with DexMimicGen data.

mentation with residual reinforcement learning in an iterative data-generation pipeline. Building on this emerging direction, we investigate a more structured form of demonstration editing that extends to long-horizon, bimanual, and dexterous manipulation.

Starting from a single source trajectory, we formulate demonstration editing as a structured reinforcement learning problem. Rather than exploring directly over low-level robot actions, the policy operates over edits to an existing successful motion: it learns when to transition between object-centric trajectory segments, and how to apply compact geometric residual corrections to their motion. Specifically, we represent the source demonstration as an ordered sequence of object-centric stages, each associated with an anchor object or frame. At the beginning of each stage, the policy predicts both a duration, which determines the number of timesteps assigned to that stage, and a rigid-body residual transformation that adapts the corresponding motion to the current scene. We optimize these decisions using PPO (Schulman et al., 2017) with only sparse task-success rewards, with the anchor sequence providing only a coarse initialization.

A key consequence of this formulation is that the learned trajectory editor serves both as a task policy and as a demonstration generator. As a task policy, it adapts and executes the source demonstration under new task configurations, while restricting exploration to structured modifications of an already successful trajectory rather than low-level robot actions. This structured exploration can substantially simplify the reinforcement learning problem. The same editor can then be rolled out across task configurations to generate successful trajectories for downstream learning.

Our experiments evaluate both roles of the proposed system. When deployed directly as a policy, OneDemo learns high-performing task behavior from a single source demonstration within a small interaction budget. When used as a demonstration generator, it produces high-quality trajectories that substantially improve downstream imitation learning at matched dataset scale.

Our main contributions are:

  1. We introduce ONEDEMO, a structured reinforcement learning framework that uses a single successful demonstration to define a compact search space for adapting behavior to new spatial task configurations.

  2. We formulate demonstration adaptation as learning two complementary edits from sparse task-success rewards: temporal segmentation of the source trajectory and object-centric residual transformations that geometrically adapt each trajectory segment to the current task configuration.

  3. We show that the learned trajectory editor serves both as a sample-efficient task policy and as a high-quality demonstration generator. When used directly as a policy, it achieves strong performance with only a small budget of online environment interactions. When used for data generation, it produces successful demonstrations across long-horizon, bimanual, and dexterous manipulation tasks that substantially improve downstream policy learning.

References (25)