TL;DR
GO-DICE is a novel offline imitation learning algorithm that tackles long-horizon, goal-conditioned tasks by combining hierarchical policy learning with stationary distribution matching. By automatically segmenting demonstrations into sub-tasks and learning goal-conditioned options, it significantly outperforms existing baselines on complex robotic manipulation tasks without requiring environment interaction or unstable adversarial training.
What Problem Does This Paper Address?
Offline Imitation Learning (IL) allows autonomous agents to learn complex behaviors entirely from pre-recorded datasets of demonstrations, eliminating the need for expensive, time-consuming, or potentially dangerous exploration in the real world. However, standard offline IL algorithms face two major hurdles:
- Long Horizons: As tasks become longer and require a sequence of multiple steps (e.g., picking up and placing multiple objects in order), standard flat policies suffer from compounding errors and struggle to plan effectively.
- Changing Goals: Most imitation learning methods train a policy for a single specific task specification. If the target goal changes, the model typically requires complete retraining.
While hierarchical reinforcement learning (like the options framework) and goal-conditioning have been used to address these issues individually, combining them in a purely offline setting—while remaining robust to imperfect or noisy demonstration data—remains a significant challenge.
Methods
The authors introduce GO-DICE (Goal-Conditioned Option-Aware Offline Stationary DIstribution Correction Estimation). The core architecture relies on a hierarchical decomposition of the task:
- Hierarchical Policy Representation: Influenced by the options framework, GO-DICE learns a high-level policy ($\pi_H$) that selects which sub-task (or option) to execute, and a set of low-level policies ($\pi_L$) that execute primitive actions for the chosen sub-task.
- Goal Conditioning: Crucially, both the high-level and low-level policies are conditioned on the overall task goal ($g$), allowing the agent to dynamically adjust its strategy when goals change.
- Stationary Distribution Matching (DICE): Instead of using adversarial training (like GAIL), which is notoriously unstable offline, GO-DICE frames policy learning as a direct convex optimization problem. It minimizes the KL-divergence between the stationary distribution of the learned policy and the expert demonstrations, using a dataset of imperfect demonstrations as a regularizer to prevent distribution drift.
- Iterative Sub-task Inference: Since sub-task labels are rarely provided in offline datasets, GO-DICE uses a Viterbi-style decoding subroutine to automatically infer latent sub-tasks from unannotated trajectories. It alternates between inferring these sub-tasks and updating the policy networks.
The authors also introduce a semi-supervised variant, GO-DICE-Semi, which can leverage partial human annotations of sub-task transitions when available to further guide the learning process.
Datasets
The algorithm was evaluated on challenging robotic manipulation tasks simulated in MuJoCo, based on the Gymnasium-Robotics Fetch Pick-and-Place benchmark:
- PnP$\times$1, PnP$\times$2, PnP$\times$3: Tasks requiring the robot arm to pick and place 1, 2, or 3 objects into dynamically changing target locations.
- Stack$\times$3: A task requiring the robot to stack 3 blocks on top of each other.
The training data consisted of a mix of successful expert demonstrations ($D_E$) and imperfect demonstrations ($D_I$) generated by noisy or random policies.
Key Insights and Ideas
- Target Networks for Latent Options: Because sub-task inference and policy optimization are tightly coupled, the optimization can easily diverge. The authors found that using slowly updating target networks ($\pi'$) for the Viterbi decoding step was absolutely critical for training stability.
- The Value of Structural Supervision: Providing even a tiny amount of human-labeled sub-task segmentations (e.g., labeling where a "reach" ends and a "grasp" begins) yields massive performance gains. This suggests that supervising the structure of a task is far more sample-efficient than simply collecting more expert trajectories.
- Compositional Zero-Shot Transfer: Because the low-level policies learn isolated primitives (like reaching or grasping), a low-level policy trained on a simple single-object task can be directly plugged into a multi-object task zero-shot, matching the performance of a policy trained on the complex task from scratch.
Key Results
GO-DICE was benchmarked against Behavioral Cloning (BC), GoFAR, and g-DemoDICE (a flat equivalent of GO-DICE).
- Multi-Object Scaling: While all methods performed well on the simple single-object task (PnP$\times$1), the performance gap widened dramatically on multi-object tasks. On PnP$\times$2 and PnP$\times$3, GO-DICE and GO-DICE-Semi achieved significantly higher cumulative returns than all flat baselines, which failed to scale to longer horizons.
- Zero-Shot Transfer Success: In zero-shot transfer experiments, low-level policies trained on PnP$\times$1 ($\pi_L^{PnP\times1}$) were evaluated on PnP$\times$3. They achieved an average return of $3.2 \pm 1.13$, performing comparably to policies trained directly on the complex PnP$\times$3 task ($3.5 \pm 0.45$).
Limitations and Future Work
Despite its success, GO-DICE's performance degrades as the number of objects increases (e.g., moving from 2 to 3 objects). The authors note that in dense multi-object environments, the robot frequently causes unintended collisions—such as accidentally knocking over an object it already placed.
Because the current offline formulation lacks a mechanism for online self-correction, future work will focus on integrating self-correcting demonstrations or exploring how GO-DICE can be used as an offline pre-training step for online reinforcement learning.
Summary updated