Skip to main content
QUICK REVIEW

[Paper Review] Think Before You Act: Decision Transformers with Working Memory

Jikun Kang, Romain Laroche|arXiv (Cornell University)|May 24, 2023
Explainable Artificial Intelligence (XAI)Computer Science5 citations
TL;DR

This paper proposes Decision Transformers with Memory (DT-Mem), a memory-augmented reinforcement learning architecture that explicitly stores and retrieves task-specific experience using a content-addressable working memory module. By integrating low-rank adaptation (LoRA) for efficient fine-tuning, DT-Mem achieves state-of-the-art generalization on Atari games and Meta-World tasks with only 10% of the model parameters, significantly improving sample efficiency and adaptability.

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.

Motivation & Objective

  • To address the inefficiency of large language model-based agents that rely on implicit parameter-based memory and suffer from catastrophic forgetting.
  • To improve training efficiency and generalization across tasks by explicitly modeling working memory, inspired by human cognitive processes.
  • To enable efficient adaptation to new tasks using minimal fine-tuning data via low-rank adaptation (LoRA) on the memory module.
  • To reduce computational and data requirements compared to existing methods while maintaining or improving performance.
  • To provide a more interpretable and modular alternative to parameter-based memory in decision transformers.

Proposed method

  • The method introduces an internal working memory module implemented as a content-addressable matrix for storing task-specific experiences.
  • Memory update is performed via an attention-based mechanism that computes correlations between input sequences and memory keys, updating values using attended weights.
  • Memory retrieval uses content-based addressing to locate and retrieve relevant information based on query similarity to stored keys.
  • The memory module is fine-tuned using low-rank adaptation (LoRA), which applies a small set of learnable parameters to modulate memory outputs for new tasks.
  • The architecture leverages a pre-trained Decision Transformer for general knowledge, while only the memory module is adapted during fine-tuning, preserving parameter efficiency.
  • The system uses a dual mechanism: memory update to store new experiences and memory retrieval to condition decision-making on past task-relevant information.

Experimental results

Research questions

  • RQ1Can explicit internal working memory improve generalization and sample efficiency in multi-task reinforcement learning?
  • RQ2How does content-addressable memory retrieval compare to implicit parameter-based memorization in terms of catastrophic forgetting and performance?
  • RQ3To what extent can low-rank adaptation (LoRA) enable efficient fine-tuning of the memory module on new tasks with minimal data?
  • RQ4Does the proposed memory-augmented architecture outperform existing methods like MDT, HDT, and PDT in both Atari and Meta-World benchmarks?
  • RQ5What is the impact of memory size and fine-tuning data quantity on the performance and adaptability of the model?

Key findings

  • DT-Mem achieved state-of-the-art performance on Meta-World ML45 benchmarks, outperforming HDT, PDT, and MDT with a test score of 0.95±0.10 after fine-tuning.
  • On Meta-World, DT-Mem improved test performance (no fine-tuning) by 8% and test performance after fine-tuning by 3% compared to HDT.
  • In Atari games, DT-Mem achieved comparable or better generalization than MDT-Top3 using only 10% of the model parameters.
  • When fine-tuned on 20% of the Pong dataset for 200k steps, DT-Mem Top3 improved performance by 1.154% over MDT-Top3, demonstrating effective adaptation.
  • The method reduced performance drop from 0.978% (on 10% data) to a 1.154% gain (on 20% data), showing that increased fine-tuning data improves generalization.
  • The memory module with LoRA adaptation used only 147K parameters, significantly fewer than HDT’s 147K adaptation parameters and 2.3M hyper-network, reducing computational overhead.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.