NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

COG: Connecting New Skills to Past Experience with Offline Reinforcement Learning

Avi Singh, Albert Yu, Jonathan Yang, Jesse Zhang, Aviral Kumar, Sergey LevinearXiv 2020

TL;DR

This paper introduces COG, a method that leverages offline reinforcement learning to enable robots to learn new skills by combining task-specific data with large, unlabeled datasets of prior robotic experiences. This allows robots to generalize to novel situations and perform complex, multi-stage tasks by implicitly learning world dynamics, even when the prior data doesn't directly solve the new task.

What Problem Does This Paper Address?

Traditional reinforcement learning (RL) for robotics often requires collecting vast amounts of data from scratch for each new task. This is time-consuming and expensive, leading to policies that are highly specialized and brittle, failing when faced with even slightly different initial conditions. For example, a robot trained to grasp an object from an open drawer might fail if the drawer is closed. The challenge is to equip robots with a more general understanding of their environment and the ability to compose learned behaviors to handle unseen scenarios, without explicit planning or hierarchical skill decomposition.

Methods

The core of COG is the application of offline reinforcement learning, specifically Conservative Q-Learning (CQL), to integrate diverse datasets. The key idea is to use a large, unlabeled dataset of prior robotic experiences (D_prior) alongside a smaller, labeled dataset for the specific new task (D_T).

  • Offline RL with CQL: Instead of online interaction, COG trains policies using pre-collected datasets. CQL is used because it's designed to handle the distribution shift inherent in offline RL, preventing overestimation of Q-values for actions not present in the dataset.
  • Data Integration: D_prior is initialized into the replay buffer with zero rewards, as it doesn't directly correspond to the new task. D_T is added with its associated sparse rewards. CQL then learns a policy that maximizes rewards on D_T while leveraging the "world understanding" gained from D_prior.
  • Dynamic Programming: The paper highlights how Q-learning's ability to propagate values backward through trajectories is crucial. Even if D_prior doesn't contain successful executions of the new task, it can provide transitions that connect states from which the new task is solvable to states where the task is not yet solved, allowing the policy to learn how to bridge these gaps.
  • End-to-End Learning: Policies are trained directly from high-dimensional image observations to low-level robot control commands.
  • Online Fine-tuning: After the offline training phase, a small amount of online interaction can be used to further fine-tune the policy, significantly improving performance.

Datasets

  • D_prior (Prior Data): Large datasets of unlabeled, task-agnostic robotic interactions. These can include imperfect scripted behaviors, unsupervised exploration, or data from previously solved tasks. For experiments, this included scripted grasping, picking, placing, and drawer opening/closing behaviors.
  • D_T (Task Data): Smaller datasets collected specifically for the new task, containing labeled rewards.
  • Benchmarks: The paper evaluates COG on simulated tasks (picking and placing, grasping from a drawer with various initial conditions) and a real-world robotic arm setup. The "grasping from a drawer" task is particularly challenging, requiring the robot to handle initial conditions like closed drawers or obstructions, which are not explicitly part of the task-specific training data but are present in the prior data.

Key Insights and Ideas

  • Implicit World Understanding: Prior data, even if unsuccessful for the target task, can teach a robot about the underlying dynamics of its environment. This "common sense" allows it to generalize to novel situations.
  • Dynamic Programming as a Unifier: The paper demonstrates that standard off-policy RL algorithms, particularly Q-learning, can implicitly stitch together behaviors from different datasets without explicit skill decomposition or planning.
  • Leveraging Unlabeled Data: The ability to utilize large amounts of unlabeled prior data is a significant step towards more data-efficient and generalizable robotic learning.
  • Bridging the Gap: COG effectively bridges the gap between states seen in task-specific data and states encountered in novel initial conditions by propagating value information from the successful task data into the prior data.

Key Results

  • Generalization to Novel Initial Conditions: COG achieved high success rates (e.g., 70-75% for grasping from a drawer with challenging initial conditions like closed or blocked drawers) where baselines like standard SAC or behavioral cloning failed completely.
  • Outperforming Baselines: COG significantly outperformed behavioral cloning (BC) baselines (including an oracle BC) and a standard off-policy RL method (SAC) on tasks requiring generalization.
  • Effective Fine-tuning: Online fine-tuning further boosted performance, achieving over 90% success rates on novel initial conditions for the drawer task with minimal additional data.
  • Real-World Success: The method demonstrated effectiveness on a real-world robotic arm, successfully grasping an object from a closed drawer in 7 out of 8 trials.

Limitations and Future Work

  • Reward Labeling: The paper notes that the prior data is labeled with zero rewards, and more sophisticated reward inference methods could potentially improve performance.
  • Offline vs. Online: While the core contribution is offline learning, the authors acknowledge that further exploration into online fine-tuning strategies and combining offline and online learning could yield even better results.
  • Exploration of Implicit Models: The authors believe that further research into how model-free RL can enable the acquisition of implicit mechanical models of the world is a promising direction.
  • Naïve Prior Data Labeling: The current approach uses a simple strategy for incorporating prior data. More advanced methods for leveraging this data could be explored.

Summary updated

BibTeX
@misc{singh2020cog,
  author = {Avi Singh and Albert Yu and Jonathan Yang and Jesse Zhang and Aviral Kumar and Sergey Levine},
  title = {{COG: Connecting New Skills to Past Experience with Offline Reinforcement Learning}},
  year = {2020},
  eprint = {2010.14500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.14500},
}
Figure