RL比监督学习更擅长泛化,靠的是组合失败经验找新解法。
Good Actions Succeed, Bad Actions Generalize: A Case Study on Why RL Generalizes Better
- RL通过拼接过往失败轨迹片段来应对新任务
- 在未见环境和状态目标上,RL成功率显著高于监督学习
- 适合研究模型泛化机制或提升智能体鲁棒性的研究人员
监督学习(SL)与强化学习(RL)均被广泛用于训练复杂任务的通用智能体,但其泛化能力及内在机制尚未完全明晰。本文以Habitat视觉导航任务为基准,对比评估了近端策略优化(PPO)与行为克隆(BC)在两种零样本泛化场景下的表现:已知环境中的状态-目标对泛化,以及未知环境的泛化。实验显示,无论在成功率还是SPL指标上,PPO均持续优于BC。尽管增加最优训练数据可使BC在SPL上达到与PPO相当的水平,但在成功率上仍显著落后。我们归因于二者泛化机制的根本差异:BC通过模仿成功轨迹实现泛化,而基于时序差分的RL则通过组合过往轨迹片段(多为失败案例)构建新解法,从而高效探索巨大状态空间,并发现超越人类认知的新策略。本研究不仅提供实证依据与理解,还提出改进SL与RL泛化能力的算法设计建议。
原文摘要 · Abstract (English)
Supervised learning (SL) and reinforcement learning (RL) are both widely used to train general-purpose agents for complex tasks, yet their generalization capabilities and underlying mechanisms are not yet fully understood. In this paper, we provide a direct comparison between SL and RL in terms of zero-shot generalization. Using the Habitat visual navigation task as a testbed, we evaluate Proximal Policy Optimization (PPO) and Behavior Cloning (BC) agents across two levels of generalization: state-goal pair generalization within seen environments and generalization to unseen environments. Our experiments show that PPO consistently outperforms BC across both zero-shot settings and performance metrics-success rate and SPL. Interestingly, even though additional optimal training data enables BC to match PPO's zero-shot performance in SPL, it still falls significantly behind in success rate. We attribute this to a fundamental difference in how models trained by these algorithms generalize: BC-trained models generalize by imitating successful trajectories, whereas TD-based RL-trained models generalize through combinatorial experience stitching-leveraging fragments of past trajectories (mostly failed ones) to construct solutions for new tasks. This allows RL to efficiently find solutions in vast state space and discover novel strategies beyond the scope of human knowledge. Besides providing empirical evidence and understanding, we also propose practical guidelines for improving the generalization capabilities of RL and SL through algorithm design.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。