[论文解读] Can Agents Run Relay Race with Strangers? Generalization of RL to Out-of-Distribution Trajectories
本文引入了中继评估(relay-evaluation)方法,通过从独立训练的‘陌生人’智能体中选取中间轨迹状态来测试强化学习智能体在分布外、可控制状态下的泛化能力。该文提出自轨迹增强(Self-Trajectory Augmentation, STA),利用Q函数对智能体自身过往高性能状态进行再训练,使MuJoCo环境中的中继失败率降低三倍以上,同时不损害标准性能。
In this paper, we define, evaluate, and improve the ``relay-generalization'' performance of reinforcement learning (RL) agents on the out-of-distribution ``controllable'' states. Ideally, an RL agent that generally masters a task should reach its goal starting from any controllable state of the environment instead of memorizing a small set of trajectories. For example, a self-driving system should be able to take over the control from humans in the middle of driving and must continue to drive the car safely. To practically evaluate this type of generalization, we start the test agent from the middle of other independently well-trained \emph{stranger} agents' trajectories. With extensive experimental evaluation, we show the prevalence of \emph{generalization failure} on controllable states from stranger agents. For example, in the Humanoid environment, we observed that a well-trained Proximal Policy Optimization (PPO) agent, with only 3.9\% failure rate during regular testing, failed on 81.6\% of the states generated by well-trained stranger PPO agents. To improve "relay generalization," we propose a novel method called Self-Trajectory Augmentation (STA), which will reset the environment to the agent's old states according to the Q function during training. After applying STA to the Soft Actor Critic's (SAC) training procedure, we reduced the failure rate of SAC under relay-evaluation by more than three times in most settings without impacting agent performance and increasing the needed number of environment interactions. Our code is available at https://github.com/lan-lc/STA.
研究动机与目标
- 评估强化学习智能体在训练过程中未见过的可控制状态下的泛化能力,特别是在自动驾驶车辆接管等现实场景中的表现。
- 识别在独立训练的其他智能体生成的状态上测试时,高性能强化学习智能体中泛化失败的普遍性。
- 提出一种实用且高效的训练方法,提升对分布外状态的泛化能力,同时不降低标准性能。
提出的方法
- 引入中继评估:通过在其他独立训练的智能体(陌生人)的高奖励轨迹中间位置初始化智能体,来测试其性能。
- 使用t-SNE可视化方法展示,即使使用相同算法的智能体,其状态分布也高度分离,表明状态空间覆盖不足。
- 提出自轨迹增强(STA):在训练过程中,随机将智能体重置到其过去曾获得高回报的状态,利用Q函数优先选择不确定性高或性能下降的状态进行再训练。
- 通过引入智能体自身历史轨迹中的状态来扩展训练分布,提升对多样化可控制状态的鲁棒性。
- 将STA应用于SAC算法,不修改其核心算法设计,确保兼容性并保持极低的计算开销。
- 利用Q值估计识别那些曾经有效但当前置信度低的状态,实现针对性的再训练。
实验结果
研究问题
- RQ1标准强化学习智能体在相同环境中,对其他独立训练智能体生成的可控制状态的泛化能力如何?
- RQ2即使在标准评估中表现优异,高性能智能体在被初始化于陌生人智能体轨迹中间时,其失败程度有多大?
- RQ3我们能否在不增加训练成本或降低标准性能的前提下,提升对分布外、可控制状态的泛化能力?
- RQ4利用历史状态和Q函数引导的自监督轨迹增强,是否能显著降低中继评估中的失败率?
- RQ5所提出的自轨迹增强(STA)方法在不同强化学习算法和环境中是否均有效?
主要发现
- 在Humanoid环境中,经过充分训练的PPO智能体在标准评估下的失败率为3.9%,但在中继评估中,对其他PPO智能体生成的81.6%状态均出现失败。
- 使用标准训练流程训练的SAC智能体在标准评估下的失败率为0.92%,但在中继评估中,对陌生人智能体状态的失败率高达38.0%。
- 所提出的自轨迹增强(STA)方法在大多数设置中使SAC的中继评估失败率降低三倍以上,显著提升了泛化能力。
- STA在不增加环境交互次数或降低标准性能的前提下提升了泛化性能,证明了其高效性与兼容性。
- t-SNE可视化结果证实,即使使用相同算法,不同智能体的状态分布也高度不重叠,从而验证了中继评估的必要性。
- 稳健智能体(如SA/ATLA PPO)在陌生人状态上失败,表明对抗鲁棒性并不等同于对分布外可控制状态的泛化能力。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。