REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environments

Abstract

Do generalist agents only require large models pre-trained on massive amounts of data to rapidly adapt to new environments? We propose a novel approach to pre-train relatively small models and adapt them to unseen environments via in-context learning, without any finetuning. Our key idea is that retrieval offers a powerful bias for fast adaptation. Indeed, we demonstrate that even a simple retrieval-based 1-nearest neighbor agent offers a surprisingly strong baseline for today's state-of-the-art generalist agents. From this starting point, we construct a semi-parametric agent, REGENT, that trains a transformer-based policy on sequences of queries and retrieved neighbors. REGENT can generalize to unseen robotics and game-playing environments via retrieval augmentation and in-context learning, achieving this with up to 3x fewer parameters and up to an order-of-magnitude fewer pre-training datapoints, significantly outperforming today's state-of-the-art generalist agents.

Cite

Text

Sridhar et al. "REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environments." NeurIPS 2024 Workshops: AFM, 2024.

Markdown

[Sridhar et al. "REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environments." NeurIPS 2024 Workshops: AFM, 2024.](https://mlanthology.org/neuripsw/2024/sridhar2024neuripsw-regent/)

BibTeX

@inproceedings{sridhar2024neuripsw-regent,
  title     = {{REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environments}},
  author    = {Sridhar, Kaustubh and Dutta, Souradeep and Jayaraman, Dinesh and Lee, Insup},
  booktitle = {NeurIPS 2024 Workshops: AFM},
  year      = {2024},
  url       = {https://mlanthology.org/neuripsw/2024/sridhar2024neuripsw-regent/}
}