超越滑动窗口:在非马尔可夫环境中学习管理内存
Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environments
AI总结:
本文提出自适应堆叠元算法,通过维护较小的记忆堆栈,在非马尔可夫环境中减少计算和内存需求,同时有效管理记忆以避免过度删除重要经验。
摘要:
近年来,基于序列模型的通用代理开发取得了显著成功,这促使人们更加关注在复杂现实世界中部署计算受限代理的问题。在这些更现实的领域中,一个关键挑战是代理观察之间高度非马尔可夫依赖性,这在小型受控领域中较少见。文献中处理这一问题的主要方法是将最近的观察窗口堆叠在一起(帧堆叠),但该窗口大小必须随着非马尔可夫依赖性程度增加而增长,这导致了在动作推断和学习中计算和内存需求的显著增加。在本文中,我们受到启发,认识到在许多高度非马尔可夫的环境中,环境仅在时间尺度上因果依赖于少量的观察。因此,一个自然的方向是考虑维护相对较小的自适应记忆堆栈的元算法,以便在时间上表达高度非马尔可夫依赖性,同时在每一步考虑更少的观察,从而在计算和内存需求上获得显著节省。因此,我们提出了一种元算法(自适应堆叠),以实现这一点,并提供收敛保证,并量化了对于MLP、LSTM和基于Transformer的代理减少的计算和内存约束。我们的实验使用了流行的内存任务,这使我们能够控制非马尔可夫依赖性的程度。这使我们能够展示适当的元算法可以学习删除不预测未来奖励的记忆,而不会过度删除重要的经验。代码:https://github.com/geraudnt/adaptive-stacking
英文摘要:
Recent success in developing increasingly general purpose agents based on sequence models has led to increased focus on the problem of deploying computationally limited agents within the vastly more complex real-world. A key challenge experienced in these more realistic domains is highly non-Markovian dependencies with respect to the agent's observations, which are less common in small controlled domains. The predominant approach for dealing with this in the literature is to stack together a window of the most recent observations (Frame Stacking), but this window size must grow with the degree of non-Markovian dependencies, which results in prohibitive computational and memory requirements for both action inference and learning. In this paper, we are motivated by the insight that in many environments that are highly non-Markovian with respect to time, the environment only causally depends on a relatively small number of observations over that time-scale. A natural direction would then be to consider meta-algorithms that maintain relatively small adaptive stacks of memories such that it is possible to express highly non-Markovian dependencies with respect to time while considering fewer observations at each step and thus experience substantial savings in both compute and memory requirements. Hence, we propose a meta-algorithm (Adaptive Stacking) for achieving exactly that with convergence guarantees and quantify the reduced computation and memory constraints for MLP, LSTM, and Transformer-based agents. Our experiments utilize popular memory tasks, which give us control over the degree of non-Markovian dependencies. This allows us to demonstrate that an appropriate meta-algorithm can learn the removal of memories not predictive of future rewards without excessive removal of important experiences. Code: https://github.com/geraudnt/adaptive-stacking
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。