Towards Applicable Reinforcement Learning: Improving the Generalization and Sample Efficiency with Policy Ensemble

Zhengyu Yang, Kan Ren, Xufang Luo, Minghuan Liu, Weiqing Liu, Jiang Bian, Weinan Zhang, Dongsheng Li

Introduction

Reinforcement Learning (RL) has achieved significant milestones in controlled simulations, yet its transition to real-world applications—such as financial trading or logistics—remains hampered by two critical issues: sample inefficiency and poor generalization. Real-world data collection is often prohibitively expensive, and environments frequently undergo "distribution shifts" where testing conditions differ from training data. While ensemble methods are a staple for robustness in supervised learning, their application in RL has been challenging due to coordination issues between independently trained agents.

Methodology: Ensemble Proximal Policy Optimization (EPPO)

The authors propose Ensemble Proximal Policy Optimization (EPPO), a framework designed to train a diverse team of policies simultaneously. EPPO constructs an ensemble policy $\hat{\pi}$ by aggregating $K$ individual sub-policies.

The EPPO architecture featuring shared data collection and specialized loss functions for ensemble cooperation and diversity.

The framework integrates three core mechanisms:

  1. Shared Data Collection: To minimize interaction costs, only the aggregated ensemble policy $\hat{\pi}$ interacts with the environment. The resulting trajectories are shared to update all sub-policies.
  2. Ensemble-Aware Loss ($L_e$): This objective optimizes the collective performance of the ensemble, encouraging sub-policies to cooperate and compensate for each other's individual failures.
  3. Diversity Enhancement Regularization ($L_d$): To avoid "mode collapse" (where all sub-policies converge to the same behavior), a penalty encourages action orthogonality. This diversity promotes broader exploration and enhances robustness against environmental shifts.

Mathematically, the authors demonstrate that mean aggregation naturally increases the policy's entropy, providing an intrinsic "curiosity" bonus that aids exploration without manual hyperparameter tuning.

Experimental Evaluation

EPPO was rigorously tested across three domains:

  • Minigrid: Grid-world tasks with sparse rewards and partial observability to evaluate exploration.
  • Atari Games: Standard benchmarks to assess performance at scale.
  • Financial Trading: Real-world order execution tasks using historical market data, requiring agents to manage market impact and maximize returns under volatile conditions.

Key Results and Discussion

EPPO consistently outperformed vanilla PPO and existing ensemble baselines across all metrics.

Performance comparison, ablation study, and sensitivity analysis of the ensemble size K on the Multi-room task.
  • Superior Exploration: In the Minigrid Multi-room task, EPPO reached goals significantly faster than PPO, while many other ensemble methods failed to converge.
  • Robustness to Shift: In financial trading, the diversity regularization ($L_d$) proved crucial. By maintaining a diverse set of sub-policies, the agent avoided overfitting to specific historical trends, maintaining a high Price Advantage (PA) even when market conditions shifted.
  • Scalability: On Atari benchmarks like Alien, EPPO achieved scores nearly 70% higher than vanilla PPO (1984.0 vs. 1174.6).

Conclusion

EPPO addresses the fundamental limitations of RL in practical settings by leveraging policy ensembles. By combining shared data collection with ensemble-aware and diversity-promoting objectives, EPPO achieves superior sample efficiency and generalization. Future work will extend this framework to continuous control tasks and investigate dynamic ensemble sizing.

Summary updated

BibTeX
@inproceedings{yang2022towards,
  author = {Zhengyu Yang and Kan Ren and Xufang Luo and Minghuan Liu and Weiqing Liu and Jiang Bian and Weinan Zhang and Dongsheng Li},
  title = {{Towards Applicable Reinforcement Learning: Improving the Generalization and Sample Efficiency with Policy Ensemble}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/508},
}
Figure