Deep Reinforcement Learning with Task-Adaptive Retrieval via Hypernetwork
Yonggang Jin, Chenxu Wang, Tianyu Zheng, Liuyu Xiang, Yaodong Yang, Junge Zhang, Jie Fu, Zhaofeng He
TL;DR
The paper tackles sample inefficiency in deep reinforcement learning by introducing a hippocampus-inspired memory retrieval module that retrieves task-relevant past experiences. It couples a task-conditioned hypernetwork to adapt the retrieval network and a dynamic modification mechanism to coordinate retrieval with the policy network, within PPO. The approach, tested on multitask MiniGrid environments, achieves superior sample efficiency and higher rewards than strong baselines, especially as task count grows. This work demonstrates that task-aware memory retrieval and dynamic collaboration can substantially improve multitask reinforcement learning.
Abstract
Deep reinforcement learning algorithms are usually impeded by sampling inefficiency, heavily depending on multiple interactions with the environment to acquire accurate decision-making capabilities. In contrast, humans rely on their hippocampus to retrieve relevant information from past experiences of relevant tasks, which guides their decision-making when learning a new task, rather than exclusively depending on environmental interactions. Nevertheless, designing a hippocampus-like module for an agent to incorporate past experiences into established reinforcement learning algorithms presents two challenges. The first challenge involves selecting the most relevant past experiences for the current task, and the second challenge is integrating such experiences into the decision network. To address these challenges, we propose a novel method that utilizes a retrieval network based on task-conditioned hypernetwork, which adapts the retrieval network's parameters depending on the task. At the same time, a dynamic modification mechanism enhances the collaborative efforts between the retrieval and decision networks. We evaluate the proposed method across various tasks within a multitask scenario in the Minigrid environment. The experimental results demonstrate that our proposed method significantly outperforms strong baselines.
