PDiT: Interleaving Perception and Decision-making Transformers for Deep Reinforcement Learning
About
Designing better deep networks and better reinforcement learning (RL) algorithms are both important for deep RL. This work studies the former. Specifically, the Perception and Decision-making Interleaving Transformer (PDiT) network is proposed, which cascades two Transformers in a very natural way: the perceiving one focuses on \emph{the environmental perception} by processing the observation at the patch level, whereas the deciding one pays attention to \emph{the decision-making} by conditioning on the history of the desired returns, the perceiver's outputs, and the actions. Such a network design is generally applicable to a lot of deep RL settings, e.g., both the online and offline RL algorithms under environments with either image observations, proprioception observations, or hybrid image-language observations. Extensive experiments show that PDiT can not only achieve superior performance than strong baselines in different settings but also extract explainable feature representations. Our code is available at \url{https://github.com/maohangyu/PDiT}.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Offline Reinforcement Learning | D4RL Gym hopper-medium | Normalized Return68.2 | 54 | |
| Offline Reinforcement Learning | D4RL Gym hopper-expert | Normalized Avg Return111.4 | 43 | |
| Offline Reinforcement Learning | D4RL MuJoCo hopper-medium-replay | Normalized Score89.6 | 42 | |
| Offline Reinforcement Learning | D4RL Maze2d-large | Normalized Performance40 | 39 | |
| Offline Reinforcement Learning | D4RL Maze2d-medium | Normalized Performance51.2 | 29 | |
| Offline Reinforcement Learning | D4RL Maze2d-umaze | Normalized Performance Score73.2 | 20 | |
| Offline Reinforcement Learning | D4RL Gym-MuJoCo walker2d-expert | Normalized Score108.8 | 19 | |
| Offline Reinforcement Learning | D4RL Gym MuJoCo walker2d-medium-replay | Normalized Score74.1 | 8 | |
| Offline Reinforcement Learning | D4RL Gym MuJoCo halfcheetah-medium | Normalized Score42.8 | 8 | |
| Offline Reinforcement Learning | D4RL Gym MuJoCo halfcheetah-medium-replay | Normalized Score40.8 | 8 |