Co-GAIL: Learning Diverse Strategies for Human-Robot Collaboration

Chen Wang, Claudia Pérez-D'Arpino, Danfei Xu, Li Fei-Fei, C. Karen Liu, Silvio Savarese

TL;DR

Co-GAIL is a novel imitation learning framework that allows robots to learn complex collaborative strategies by observing human-human demonstrations. By co-optimizing a human and robot policy in simulation and using a latent strategy space, the system enables robots to anticipate and adapt to the diverse, reciprocal behaviors of real-world human partners.

What Problem Does This Paper Address?

Human-robot collaboration (HRC) is notoriously difficult because humans are "moving targets." Unlike a static environment, a human partner reacts to the robot’s actions, adjusts their strategy on the fly, and exhibits a wide variety of ways to complete the same task (e.g., handing over an object from the left vs. the right).

Existing methods often fall short in two ways:

  1. Static Modeling: They treat the human as a fixed part of the environment, failing to account for how humans and robots influence each other's behavior during a task.
  2. Mode Collapse: Standard imitation learning tends to overfit to the "easiest" or most common strategies in a dataset, leaving the robot helpless when a human partner chooses a rarer, more complex approach.

Methods

The authors introduce Co-GAIL (Collaborative Generative Adversarial Imitation Learning). The core idea is to move beyond simple "cloning" of behavior and instead model the interaction as a Markov Game.

Key components include:

  • Co-optimization: During training, the system learns two policies simultaneously—a "human" policy and a "robot" policy. This allows the robot to practice against a partner that evolves and reacts, mimicking real-world reciprocity.
  • Latent Strategy Space ($z$): The model uses a latent code to represent different high-level strategies. A recognition network ($\psi$) learns to infer this code from the history of interactions, essentially giving the robot a "mental model" of the human's intent.
  • Behavior Reconstruction Loss ($L_a$): This is the "secret sauce." While previous methods (like InfoGAIL) use mutual information to encourage diversity, Co-GAIL adds a specific loss to ensure the model can reconstruct any expert behavior from the dataset. This prevents the model from ignoring rare strategies and ensures broad "coverage" of the human demonstration data.

Datasets

The researchers evaluated Co-GAIL on three distinct collaborative domains using custom-collected human-human demonstrations:

  1. 2D-Fetch-Quest: A grid-world game requiring strategic coordination and role-switching to unlock rooms and retrieve treasures. (60 demonstrations).
  2. HR-Handover: A high-dimensional 3D task where a human hands an object to a 7-DOF robot arm in various positions. (160 demonstrations).
  3. HR-SeqManip: A multi-step manipulation task involving opening drawers and placing objects, requiring both strategy-level and motion-level coordination. (120 demonstrations).

Key Insights and Ideas

  • Reciprocity is Key: Training the robot against a learning human policy (rather than a static one) makes the resulting robot policy significantly more robust to the "jitter" and adjustments of real human users.
  • Diversity as Coverage: The authors argue that for HRC, diversity shouldn't just mean "being different" (as in some reinforcement learning approaches); it should mean "covering the full distribution of plausible human strategies."
  • Latent Codes as Communication: The inferred latent strategy acts as a silent communication protocol. By identifying the human's "style" or "intent" early in an episode, the robot can proactively position itself to assist.

Key Results

Co-GAIL consistently outperformed baselines like Behavior Cloning (BC) and standard Multi-Agent GAIL across all metrics:

  • Replay Evaluation: When tested against unseen human trajectories, Co-GAIL achieved a success rate of 53.3% in the 2D game, compared to just 21.1% for standard BC.
  • Real-Human Trials: In "human-in-the-loop" tests with four real operators, Co-GAIL maintained high success rates (up to 100% in some tasks), while baselines struggled to adapt to the users' varied movements.
  • Strategy Discovery: Qualitative visualizations showed that Co-GAIL successfully disentangled distinct strategies (e.g., "handover on the left" vs. "handover on the right") into clear clusters in the latent space, whereas other methods showed significant overlap or "mode collapse."

Limitations and Future Work

  • Fixed Roles: Currently, the roles of "leader" and "follower" are assigned in advance. The authors note that allowing agents to switch roles dynamically online would further improve the collaborative experience.
  • Sim-to-Real Gap: While the system was tested with real humans controlling simulated robots and in some proof-of-concept real-world handovers, a full deployment on physical hardware requires more robust state estimation and domain randomization to handle real-world physics.
  • Task Complexity: While multi-step, the tasks are still relatively short. Scaling to long-horizon household chores remains a challenge.

Summary updated

Abstract

We present a method for learning a human-robot collaboration policy from human-human collaboration demonstrations. An effective robot assistant must learn to handle diverse human behaviors shown in the demonstrations and be robust when the humans adjust their strategies during online task execution. Our method co-optimizes a human policy and a robot policy in an interactive learning process: the human policy learns to generate diverse and plausible collaborative behaviors from demonstrations while the robot policy learns to assist by estimating the unobserved latent strategy of its human collaborator. Across a 2D strategy game, a human-robot handover task, and a multi-step collaborative manipulation task, our method outperforms the alternatives in both simulated evaluations and when executing the tasks with a real human operator in-the-loop. Supplementary materials and videos at https://sites.google.com/view/co-gail-web/home
BibTeX
@inproceedings{wang2021co,
  author = {Chen Wang and Claudia Pérez-D'Arpino and Danfei Xu and Li Fei-Fei and C. Karen Liu and Silvio Savarese},
  title = {{Co-GAIL: Learning Diverse Strategies for Human-Robot Collaboration}},
  booktitle = {Conference on Robot Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=N1Ar1ByQsW1},
}
Figure