[Paper Review] Learning from Demonstrations via Capability-Aware Goal Sampling
Cago introduces capability-aware goal sampling to guide learning from demonstrations, forming an adaptive curriculum that improves sample efficiency and final performance on long-horizon sparse tasks. It uses demonstration-aligned Go-Explore with a BC explorer and a world-model-based imagination loop.
Despite its promise, imitation learning often fails in long-horizon environments where perfect replication of demonstrations is unrealistic and small errors can accumulate catastrophically. We introduce Cago (Capability-Aware Goal Sampling), a novel learning-from-demonstrations method that mitigates the brittle dependence on expert trajectories for direct imitation. Unlike prior methods that rely on demonstrations only for policy initialization or reward shaping, Cago dynamically tracks the agent's competence along expert trajectories and uses this signal to select intermediate steps--goals that are just beyond the agent's current reach--to guide learning. This results in an adaptive curriculum that enables steady progress toward solving the full task. Empirical results demonstrate that Cago significantly improves sample efficiency and final performance across a range of sparse-reward, goal-conditioned tasks, consistently outperforming existing learning from-demonstrations baselines.
Motivation & Objective
- Motivate imitation learning in long-horizon, sparse-reward tasks where exact imitation is impractical.
- Propose a framework that uses demonstrations to scaffold goal-directed learning rather than direct imitation.
- Develop a capability-aware mechanism to sample intermediate goals that lie at the boundary of the agent's current abilities.
- Enable automatic test-time goal inference through a goal predictor to generalize beyond demonstrated endpoints.
Proposed method
- Represent demonstrations as structured roadmaps and track the agent’s capability to reach stages along each demo.
- Maintain a visitation dictionary Dict_visit to monitor which demonstration observations have been approached by the agent.
- Sample intermediate goals g from a capability-aware region G_cap centered around the agent’s current capability along a demonstration.
- Train a goal-conditioned policy pi^G to reach sampled goals using a two-phase Go-Explore rollout (Go-phase toward g, Explore-phase with a BC Explorer).
- Incorporate a world-model Dreamer-style imagined rollout loop to augment training data with imagined trajectories around demonstration regions, guided by a temporal-distance reward D_t(s,g).
- Introduce a goal predictor P_phi to infer plausible goals at test time from current observations, enabling generalization without true final goals.

Experimental results
Research questions
- RQ1Does Cago outperform existing imitation-learning baselines that use demonstrations in alternative ways?
- RQ2Can capability-aware goal sampling align with the agent’s evolving learning progress to improve training efficiency?
- RQ3How essential are capability-aware goal sampling and BC-Explorer components to Cago’s performance?
Key findings
- Cago consistently outperforms baselines on MetaWorld very hard tasks in final performance and learning efficiency.
- In Adroit tasks, Cago reaches higher final performance after extended training, surpassing comparable Dreamer-based approaches.
- ManiSkill tasks show Cago as the only method achieving high success with the given demonstrations.
- Ablations show removing capability-aware goal sampling or the BC-Explorer significantly degrades performance, highlighting their importance.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.