PoliFormer: Scaling On-Policy RL with Transformers Results in Masterful Navigators

Kuo-Hao Zeng, Zichen Zhang, Kiana Ehsani, Rose Hendrix, Jordi Salvador, Alvaro Herrasti, Ross Girshick, Aniruddha Kembhavi, Luca Weihs

Abstract

PoliFormer is a Transformer-based navigation agent that achieves state-of-the-art performance in ObjectNav tasks by scaling on-policy Reinforcement Learning (RL) to hundreds of millions of interactions. By integrating a frozen DINOv2 vision foundation model with a Llama-style causal decoder and an efficient training recipe, PoliFormer overcomes the scaling plateaus of traditional RNN-based RL agents. The model demonstrates significant improvements on major benchmarks and transfers seamlessly to real-world robots without fine-tuning.

Introduction

Navigating a robot to locate specific objects (ObjectNav) is a challenging long-horizon task. Historically, RL approaches using shallow architectures like GRUs have struggled to scale, often plateauing early in training. While Imitation Learning (IL) models like SPOC have leveraged Transformers to achieve better results by mimicking expert paths, they often lack the robustness to recover from errors encountered during inference. PoliFormer addresses this by successfully scaling deep Transformers using on-policy RL, combining the architectural power of Transformers with the exploratory robustness of large-scale RL.

PoliFormer Overview: Scaling RL training with Transformers, architecture overview, and sim-to-real results.

Methods

The PoliFormer architecture is built on three core pillars:

  1. Vision Foundation Model: It utilizes a frozen DINOv2 (Vision Transformer) to extract rich, high-level visual features from RGB observations.
  2. Causal Transformer Decoder: These features are processed by a Transformer State Encoder followed by a Causal Transformer Decoder based on the Llama 2 architecture.
  3. Efficient Scaling with KV-Cache: To overcome the $O(t^2)$ computational bottleneck of standard Transformers in sequential RL tasks, PoliFormer implements a KV-cache. This reduces step complexity to $O(t)$, allowing the model to maintain long-term memory with the speed of an RNN.

Training was conducted using Decentralized Distributed Proximal Policy Optimization (DD-PPO) across 32 GPUs, leveraging hundreds of parallel rollouts in up to 150,000 procedurally generated environments (ProcTHOR).

Results and Discussion

PoliFormer sets new benchmarks in both simulation and real-world environments. On the CHORES-S benchmark, it achieved an 85.5% success rate, a 28.5% absolute improvement over the previous state-of-the-art (SPOC). In zero-shot sim-to-real transfers, PoliFormer outperformed baselines by 33.3% on the Stretch RE-1 and 13.3% on the LoCoBot.

Quantitative Results: Ablation studies on model architecture components and zero-shot sim-to-real performance comparison.

Ablation studies highlight the importance of the Transformer architecture: switching from a GRU to a Transformer decoder yielded a 5.5% boost, and increasing the decoder depth from 1 to 3 layers added another 4%. Furthermore, the "BoxNav" variant demonstrates the model's flexibility as a navigation foundation, capable of being prompted by external object detectors like Detic or VLMs like GPT-4o to find specific targets.

Conclusion and Future Work

PoliFormer demonstrates that scaling on-policy RL with Transformers is not only possible but results in superior navigation capabilities. While currently RGB-only and limited by discretized actions, the model's continued improvement at 700 million training steps suggests significant potential for further scaling. Future research will focus on incorporating depth sensing, continuous control, and developing universal cross-embodiment models for diverse robot types.

Summary updated

Abstract

We present PoliFormer (Policy Transformer), an RGB-only indoor navigation agent trained end-to-end with reinforcement learning at scale that generalizes to the real-world without adaptation despite being trained purely in simulation. PoliFormer uses a foundational vision transformer encoder with a causal transformer decoder enabling long-term memory and reasoning. It is trained for hundreds of millions of interactions across diverse environments, leveraging parallelized, multi-machine rollouts for efficient training with high throughput. PoliFormer is a masterful navigator, producing state-of-the-art results across two distinct embodiments, the LoCoBot and Stretch RE-1 robots, and four navigation benchmarks. It breaks through the plateaus of previous work, achieving an unprecedented 85.5% success rate in object goal navigation on the CHORES-S benchmark, a 28.5% absolute improvement. PoliFormer can also be trivially extended to a variety of downstream applications such as object tracking, multi-object navigation, and open-vocabulary navigation with no finetuning.
BibTeX
@inproceedings{zeng2024poliformer,
  author = {Kuo-Hao Zeng and Zichen Zhang and Kiana Ehsani and Rose Hendrix and Jordi Salvador and Alvaro Herrasti and Ross Girshick and Aniruddha Kembhavi and Luca Weihs},
  title = {{PoliFormer: Scaling On-Policy RL with Transformers Results in Masterful Navigators}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=KdVLK0Wo5z},
}
Figure