Rethinking Transformers in Solving POMDPs
Chenhao Lu, Ruizhe Shi, Yuyao Liu, Kaizhe Hu, Simon S. Du, Huazhe Xu
TL;DR
This work investigates the suitability of Transformer architectures for solving POMDPs, highlighting theoretical limitations that arise from their parallel, non-recurrent structure. By constructing POMDPs from regular languages and analyzing fitting and generalization limits under circuit complexity arguments, the authors demonstrate that Transformers struggle with POMDP-induced inductive biases. They propose the Deep Linear Recurrent Unit (LRU) as a practical, principled alternative that blends recurrence with attention, and provide extensive experiments across regular-language–derived POMDPs, PyBullet occlusion tasks, and long-term memory environments showing LRUs' strong performance relative to Transformers and LSTMs. The findings suggest that incorporating recurrence, even in a linear form, yields substantial benefits for partially observable decision-making, guiding future sequence-model design in RL settings.
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.
