AGaLiTe: Approximate Gated Linear Transformers for Online Reinforcement Learning

Subhojeet Pramanik, Esraa Elelimy, Marlos C. Machado, Adam White
10/24/2023
cs.LGcs.AI

Official code: subho406/agalite (24 stars, Apache-2.0, last commit 2024-10-15).

Abstract

In this paper we investigate transformer architectures designed for partially observable online reinforcement learning. The self-attention mechanism in the transformer architecture is capable of capturing long-range dependencies and it is the main reason behind its effectiveness in processing sequential data. Nevertheless, despite their success, transformers have two significant drawbacks that still limit their applicability in online reinforcement learning: (1) in order to remember all past information, the self-attention mechanism requires access to the whole history to be provided as context. (2) The inference cost in transformers is expensive. In this paper, we introduce recurrent alternatives to the transformer self-attention mechanism that offer context-independent inference cost, leverage long-range dependencies effectively, and performs well in online reinforcement learning task. We quantify the impact of the different components of our architecture in a diagnostic environment and assess performance gains in 2D and 3D pixel-based partially-observable environments (e.g. T-Maze, Mystery Path, Craftax, and Memory Maze). Compared with a state-of-the-art architecture, GTrXL, inference in our approach is at least 40% cheaper while reducing memory use more than 50%. Our approach either performs similarly or better than GTrXL, improving more than 37% upon GTrXL performance in harder tasks.

View on arXivView PDF

Code Implementations(1)

subho406/agaliteOfficial100%
Apache-2.0

AGaLiTe: Approximate Gated Linear Transformers for Online Reinforcement Learning (Published in TMLR)

241PythonOct 9, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{pramanik2023agalite,
  title  = {AGaLiTe: Approximate Gated Linear Transformers for Online Reinforcement Learning},
  author = {Subhojeet Pramanik and Esraa Elelimy and Marlos C. Machado and Adam White},
  year   = {2023},
  eprint = {2310.15719},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.15719v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.15719.svg)](https://codeofpaper.com/paper/2310.15719)

Discussion