arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2112.04123cs.LG
收藏

ShinRL:一个从理论和实践角度评估RL算法的库

ShinRL: A Library for Evaluating RL Algorithms from Theoretical and Practical Perspectives

Nara Institute of Science and Technology(奈良先端科学技术大学院大学);OMRON SINIC X(欧姆龙先端技术研究所)

Toshinori Kitamura, Ryo Yonetani

摘要:

我们介绍了ShinRL,一个专门用于从理论和实践角度评估强化学习(RL)算法的开源库。现有的RL库通常允许用户通过返回来评估深度RL算法的实际性能。然而,这些库对于分析算法是否如理论上预期的那样执行并不一定有用,例如Q学习是否真的实现了最佳Q函数。相比之下,ShinRL提供了一个RL环境接口,可以计算深入研究RL算法行为的指标,例如学习和最佳Q值之间的差距以及状态访问频率。此外,我们引入了一个灵活的求解器界面,用于评估理论上合理的算法(例如,动态规划和表格RL)和实际有效的(即,深度RL,通常具有一些额外的扩展和正则化)。作为一个案例研究,我们展示了如何将ShinRL的这两个特性结合起来,使分析深度Q学习的行为变得更容易。此外,我们还证明了ShinRL可以用于实证验证最近的理论发现,例如KL正则化对值迭代和深度Q学习的影响,以及熵正则化策略对对抗性奖励的鲁棒性。ShinRL的源代码可以在GitHub上找到:https://github.com/omron-sinicx/ShinRL。

英文摘要:

We present ShinRL, an open-source library specialized for the evaluation of reinforcement learning (RL) algorithms from both theoretical and practical perspectives. Existing RL libraries typically allow users to evaluate practical performances of deep RL algorithms through returns. Nevertheless, these libraries are not necessarily useful for analyzing if the algorithms perform as theoretically expected, such as if Q learning really achieves the optimal Q function. In contrast, ShinRL provides an RL environment interface that can compute metrics for delving into the behaviors of RL algorithms, such as the gap between learned and the optimal Q values and state visitation frequencies. In addition, we introduce a flexible solver interface for evaluating both theoretically justified algorithms (e.g., dynamic programming and tabular RL) and practically effective ones (i.e., deep RL, typically with some additional extensions and regularizations) in a consistent fashion. As a case study, we show that how combining these two features of ShinRL makes it easier to analyze the behavior of deep Q learning. Furthermore, we demonstrate that ShinRL can be used to empirically validate recent theoretical findings such as the effect of KL regularization for value iteration and for deep Q learning, and the robustness of entropy-regularized policies to adversarial rewards. The source code for ShinRL is available on GitHub: https://github.com/omron-sinicx/ShinRL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑