Think Before You Act: Decision Transformers with Working Memory
Jikun Kang, Romain Laroche, Xingdi Yuan, Adam Trischler, Xue Liu, Jie Fu
TL;DR
The paper addresses inefficiency and forgetting in multi-task offline RL by integrating an explicit working memory module into a Decision Transformer (DT-Mem). It introduces a content-addressable memory that stores, blends, and retrieves task-relevant information, with memory updates guided by attention and retrieval by content addressing, and uses LoRA to fine-tune memory with limited data. Empirical results on Atari and Meta-World show that DT-Mem achieves better generalization with fewer parameters and faster training than prior memory-based DT methods, and that memory fine-tuning yields strong task adaptability. Overall, the approach enhances cross-task transfer and efficiency, suggesting a practical path toward scalable memory-augmented decision-making.
Abstract
Decision Transformer-based decision-making agents have shown the ability to generalize across multiple tasks. However, their performance relies on massive data and computation. We argue that this inefficiency stems from the forgetting phenomenon, in which a model memorizes its behaviors in parameters throughout training. As a result, training on a new task may deteriorate the model's performance on previous tasks. In contrast to LLMs' implicit memory mechanism, the human brain utilizes distributed memory storage, which helps manage and organize multiple skills efficiently, mitigating the forgetting phenomenon. Inspired by this, we propose a working memory module to store, blend, and retrieve information for different downstream tasks. Evaluation results show that the proposed method improves training efficiency and generalization in Atari games and Meta-World object manipulation tasks. Moreover, we demonstrate that memory fine-tuning further enhances the adaptability of the proposed architecture.
