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

预先训练的语言模型作为文本游戏的先验知识

Pre-trained Language Models as Prior Knowledge for Playing Text-based Games

Indian Institute of Technology Kanpur(印度理工学院坎普尔分校)

Ishika Singh, Gargi Singh, Ashutosh Modi

摘要:

最近,文本世界游戏被提出来使人工智能体能够理解和推理真实世界的场景。这些基于文本的游戏对于人工智能体来说是具有挑战性的,因为它需要在部分可观察的环境中使用自然语言进行理解和交互。智能体通过文本描述来观察环境,这些文本描述甚至对人类玩家都具有足够的挑战性。过去的方法没有给予足够的重视的语言理解能力的建议代理。通常,这些方法从零开始训练,代理在训练期间使用时间损失函数在线学习文本表示和游戏玩法。鉴于RL方法的样本效率低下,学习足够丰富的文本表示以能够在如此复杂的游戏环境设置中使用文本观察来理解和推理是低效的。在本文中,我们提出了一个简单的RL与LM框架,其中我们使用基于transformer的语言模型与深度RL模型,以提高代理的语义理解。我们对我们的框架进行了详细的研究,以证明我们的模型在流行游戏Zork 1上的表现优于所有现有代理,达到了44.7的分数,比最先进的模型高出1.6。总体而言,我们提出的方法优于14个基于文本的游戏中的4个游戏,而在其余游戏中的表现与最先进的模型相当。

英文摘要:

Recently, text world games have been proposed to enable artificial agents to understand and reason about real-world scenarios. These text-based games are challenging for artificial agents, as it requires an understanding of and interaction using natural language in a partially observable environment. Agents observe the environment via textual descriptions designed to be challenging enough for even human players. Past approaches have not paid enough attention to the language understanding capability of the proposed agents. Typically, these approaches train from scratch, an agent that learns both textual representations and the gameplay online during training using a temporal loss function. Given the sample-inefficiency of RL approaches, it is inefficient to learn rich enough textual representations to be able to understand and reason using the textual observation in such a complicated game environment setting. In this paper, we improve the semantic understanding of the agent by proposing a simple RL with LM framework where we use transformer-based language models with Deep RL models. We perform a detailed study of our framework to demonstrate how our model outperforms all existing agents on the popular game, Zork1, to achieve a score of 44.7, which is 1.6 higher than the state-of-the-art model. Overall, our proposed approach outperforms 4 games out of the 14 text-based games, while performing comparable to the state-of-the-art models on the remaining games.

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

↑