Improving Policy Optimization with Generalist-Specialist Learning

Zhiwei Jia, Xuanlin Li, Zhan Ling, Shuang Liu, Yiran Wu, Hao Su

Deep reinforcement learning (RL) agents often struggle to master diverse environments simultaneously, hitting performance plateaus when faced with too many variations. To address this, researchers introduce Generalist-Specialist Learning (GSL), a three-phase framework designed to break through optimization bottlenecks. GSL trains a "generalist" agent, spawns a population of "specialists" to master difficult sub-tasks, and then distills that specialized expertise back into the generalist.

The Challenge: Generalization vs. Optimization

In RL, there is a fundamental tension between generalization (performing well across many environment variations) and optimization (reaching peak performance on a specific task).

The authors identify two major hurdles when training on many variations at once:

  1. Catastrophic Ignorance: Agents often focus on shared early-stage behaviors (like moving forward) but ignore context-specific cues needed for later stages (like which specific door to enter).
  2. Catastrophic Forgetting: As the agent tries to learn new variations, it often loses the ability to solve ones it had previously mastered.

Current "generalist" agents learn shared basics quickly but plateau at sub-optimal levels. Conversely, "specialists" reach high performance but lack the breadth to generalize. GSL aims to capture the best of both worlds.

The GSL Framework

The GSL framework operates in three distinct phases to systematically build and refine agent capabilities:

The GSL framework: Phase I (Generalist Learning), Specialist Learning via cloning, and Phase II (Fine-tuning via distillation).
  • Phase I: Initial Generalist Learning. A single policy is trained on all environment variations. This allows the agent to quickly learn shared features and early-stage behaviors.
  • Plateau Detection & Specialist Training. The system monitors the average return. Once the generalist's performance stops improving significantly, Phase I ends. The generalist is then cloned into a population of specialists. Each specialist is assigned a small, difficult subset of environment variations, allowing them to quickly reach high performance on their specific tasks.
  • Phase II: Guided Generalist Learning. The specialists generate demonstrations of successful trajectories. The generalist's training is then resumed, using these demonstrations as auxiliary rewards through techniques like Demonstration Augmented Policy Gradient (DAPG) or Generative Adversarial Imitation Learning (GAIL).

Key Insights

  • The "Plateau" is the Signal: A major contribution of this work is the study of timing. The authors found that starting specialists too early is inefficient. It is better to let the generalist learn the "easy" shared parts first, launching specialists only when the generalist hits a wall.
The training curve shows how specialists (red) and the final merged generalist (green) overcome the initial generalist's plateau (blue).
  • Shared vs. Context-Specific Stages: Most complex tasks have a shared beginning (e.g., "approach the chair") and a context-specific end (e.g., "push this specific chair geometry"). Generalists excel at the former; specialists are required for the latter.
  • Demonstrations as Rewards: Instead of simple Behavior Cloning (which can be brittle if specialists disagree on tactics), GSL uses specialist expertise to shape the reward function. This allows the generalist to continue exploring while being "pulled" toward successful strategies.

Experimental Results

The authors evaluated GSL on several high-dimensional and procedurally generated benchmarks, including Procgen (2D vision-based games), Meta-World V2 (robotic manipulation), ManiSkill (3D physical manipulation), and an illustrative "Brush" Maze. GSL consistently outperformed standard RL baselines (PPO, PPG, and SAC) across the board:

  • Procgen: On the "BigFish" game, GSL achieved a training return of 31.1 compared to PPO's 24.6. Crucially, it also improved generalization on unseen levels (30.0 vs 24.3).
  • Meta-World: In the MT-10 task, GSL boosted the success rate from 58.4% to 77.5%.
  • ManiSkill: GSL significantly improved performance on the complex PushChair task, which involves dual-arm coordination and 3D point cloud processing.

Limitations and Future Work

While highly effective, the GSL framework does come with trade-offs. Training a large population of specialists in parallel requires more computational resources than training a single agent. Additionally, the plateau criteria used to trigger Phase II requires tuning for different environment dynamics. Finally, specialists are currently assigned to the "lowest-performing" variations; future work could explore more sophisticated curriculum strategies for partitioning the environment space.

Summary updated

BibTeX
@inproceedings{jia2022improving,
  author = {Zhiwei Jia and Xuanlin Li and Zhan Ling and Shuang Liu and Yiran Wu and Hao Su},
  title = {{Improving Policy Optimization with Generalist-Specialist Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=sUm2tut-IuY},
}
Figure