对比回溯:聚焦关键步骤以实现强化学习中的快速学习与泛化
Contrastive Retrospection: honing in on critical steps for rapid learning and generalization in RL
AI总结:
本文提出对比回溯算法ConSpec,通过离线对比学习识别任务关键步骤并给予内在奖励,以可解释方式改善信用分配,实现快速学习与分布外泛化。
摘要:
在现实生活中,成功往往取决于多个在时间上彼此相隔遥远且与最终奖励相距甚远的关键步骤。这些关键步骤很难用依赖贝尔曼方程进行信用分配的传统强化学习(RL)方法来识别。在此,我们提出一种新的 RL 算法,该算法使用离线对比学习来聚焦这些关键步骤。这个我们称之为对比回溯(ConSpec)的算法可以添加到任何现有的 RL 算法中。ConSpec 通过一种新颖的对比损失来学习任务中关键步骤的一组原型,并在当前状态与其中一个原型匹配时提供内在奖励。ConSpec 中的原型为信用分配提供了两个关键好处:(i)它们能够快速识别所有关键步骤。(ii)它们以易于解释的方式做到这一点,从而在感官特征被改变时实现分布外泛化。与其他当代用于信用分配的 RL 方法不同,ConSpec 利用了这样一个事实:回顾性地识别成功所依赖的一小组步骤(并忽略其他状态)比前瞻性地预测每一步的奖励更容易。ConSpec 在多种 RL 任务中极大地改善了学习效果。代码可在以下链接获取:https://github.com/sunchipsster1/ConSpec
英文摘要:
In real life, success is often contingent upon multiple critical steps that are distant in time from each other and from the final reward. These critical steps are challenging to identify with traditional reinforcement learning (RL) methods that rely on the Bellman equation for credit assignment. Here, we present a new RL algorithm that uses offline contrastive learning to hone in on these critical steps. This algorithm, which we call Contrastive Retrospection (ConSpec), can be added to any existing RL algorithm. ConSpec learns a set of prototypes for the critical steps in a task by a novel contrastive loss and delivers an intrinsic reward when the current state matches one of the prototypes. The prototypes in ConSpec provide two key benefits for credit assignment: (i) They enable rapid identification of all the critical steps. (ii) They do so in a readily interpretable manner, enabling out-of-distribution generalization when sensory features are altered. Distinct from other contemporary RL approaches to credit assignment, ConSpec takes advantage of the fact that it is easier to retrospectively identify the small set of steps that success is contingent upon (and ignoring other states) than it is to prospectively predict reward at every taken step. ConSpec greatly improves learning in a diverse set of RL tasks. The code is available at the link: https://github.com/sunchipsster1/ConSpec
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。