REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environments
Kaustubh Sridhar, Souradeep Dutta, Dinesh Jayaraman, Insup Lee
TL;DR
REGENT tackles rapid adaptation to unseen environments by combining retrieval augmentation with in-context learning in a semi-parametric policy. Starting from a strong, learning-free baseline (Retrieve and Play), REGENT pre-trains a transformer that conditions on sequences of query states and retrieved demonstrations, interpolating between R&P and the learned policy via a distance-based weight. The approach yields state-of-the-art generalization in JAT/Gato and ProcGen benchmarks with far fewer pretraining transitions and parameters, and remains effective without finetuning on unseen tasks. The work underscores retrieval as a powerful bias for generalist agents, proposes formal sub-optimality bounds, and outlines future directions to extend this capability to longer horizons and broader embodiment diversity.
Abstract
Building generalist agents that can rapidly adapt to new environments is a key challenge for deploying AI in the digital and real worlds. Is scaling current agent architectures the most effective way to build generalist agents? We propose a novel approach to pre-train relatively small policies on relatively small datasets 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. Website: https://kaustubhsridhar.github.io/regent-research
