Rethinking Transformers in Solving POMDPs

Chenhao Lu, Ruizhe Shi, Yuyao Liu, Kaizhe Hu, Simon S. Du +1 more
5/27/2024
cs.LGcs.AI

No official code found. Best implementation: CTP314/TFPORL (16 stars, MIT, last commit 2024-05-23).

Abstract

Sequential decision-making algorithms such as reinforcement learning (RL) in real-world scenarios inevitably face environments with partial observability. This paper scrutinizes the effectiveness of a popular architecture, namely Transformers, in Partially Observable Markov Decision Processes (POMDPs) and reveals its theoretical limitations. We establish that regular languages, which Transformers struggle to model, are reducible to POMDPs. This poses a significant challenge for Transformers in learning POMDP-specific inductive biases, due to their lack of inherent recurrence found in other models like RNNs. This paper casts doubt on the prevalent belief in Transformers as sequence models for RL and proposes to introduce a point-wise recurrent structure. The Deep Linear Recurrent Unit (LRU) emerges as a well-suited alternative for Partially Observable RL, with empirical results highlighting the sub-optimal performance of the Transformer and considerable strength of LRU.

View on arXivView PDF

Code Implementations(1)

CTP314/TFPORLCommunity100%
MIT
160PythonMay 22, 20242 years agoMIT

Similar Papers

Cite this paper

@article{lu2024rethinking,
  title  = {Rethinking Transformers in Solving POMDPs},
  author = {Chenhao Lu and Ruizhe Shi and Yuyao Liu and Kaizhe Hu and Simon S. Du and Huazhe Xu},
  year   = {2024},
  eprint = {2405.17358},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17358v3},
  journal = {ICML 2024 2024}
}

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/2405.17358.svg)](https://codeofpaper.com/paper/2405.17358)

Discussion