# Poster 29847

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29847

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everybody, I'm Gautam from the University of Pennsylvania. I'm here today to talk to you about Regent, our paper on a retrieval augmented generalist agent that can act in context and completely new environments.
Our motivating question is this, is scaling current agent architectures the most effective way to build adaptive, generalist agents? We posit that the answer is no. We propose a novel approach to pre-train small policies on small datasets and adapt them to unseen environments just via rag and in-context learning without any fine-tuning.
Here is our problem setting. We train on a bunch of different environments, 145 different environments from MetaWorld, Atari, Mujoko and BBAI robotics and games. And we expect the agent to generalize to completely unseen held out MetaWorld, Atari and Mujoko environments. And to do so, the agent is provided with a few demonstrations in these held out environments, but it never fine-tunes on these.
student simply retrieves information from these held-out demonstrations and throws them into its context and plays these held-out games and does these held -out robotics tasks without ever fine -tuning on data there. We also have another setting in ProgGen in our paper. Our key idea is simply that retrieval offers a really powerful bias for adaptation and we show that even a simple retrieval -based one nearest neighbor agent is a really good baseline for today's state-of-the-art generalist agent and from there we build Regen.
What exactly is regent? In this image, you see an unseen environment depicted by the globe on the right, which emits an image here denoted by st raw, which can be encoded into st and embedding. Using that embedding and using a retrieval buffer of a few demonstrations in this unseen environment, regent retrieves the closest states, rewards, and actions denoted by
S prime R prime A prime and S R A double prime and so on and it throws them into the context of the transformer
With a forward prop through the transformer, as well as an interpolation with the first retrieved action a prime, the region predicts actions that allow it to play and do tasks and games that are completely new without ever fine tuning on that data in the retrieval buffer. It simply retrieves from a few demos in an unseen environment, throws it into its context and plays those games with this interpolation that is key.
The way to train Regent is to minimize a behavior cloning loss over all of the actions, the actions in the context as well as the query action. And it is trained over about 100,000 transitions from each of the 145 trading environments in a similar scale in the other setting. And it's trained just like it's deployed. And the way we actually...
evaluated is by plotting normalized return which compares the performance of each policy with an expert performance against the number of demos that that policy uses in an unseen environment here meta world doorknock regent uses these unseen demos without ever fine-tuning on it just by retrieving and throwing into its context the other baselines some of them are
are trained with a lot more data and they're also fine-tuned or parameter efficient fine-tuned on the demos in the unseen environments so even after fine -tuning what we observe is that the baselines are not competitive with either retriever play which is a really good baseline or regent which outperforms everybody
And it also, which is given by the green line, and it further improves after fine tuning on those demos in the retrieval buffer denoted on the x-axis and to give you the purple dash dotted line. What you'll notice is that both in the metaworld environments where we started from like 25 to 100 demos that we just retrieved from and in the Atari environments where we have about 10,000 states to 25 ,000 states that we just retrieved from.
Regent uses an order of magnitude less data to adapt to these completely new environments compared to the state -of-the-art baselines that we compare with and others, including Gatto from Google DeepMind and its open source version Jet. These are all rollouts in the unseen environments where Regent has not been trained on any of these environments, just retrieves data from these environments and throws it into its context and it's able to play these games and do these robotic tasks.
Are databases the right biases a really important context awareness is a super useful bias and so is retrieval. We also think region is pretty cool. Please find more information at our website at this QR code or this link. In future work and with a quick sneak peek we're actually bringing region to real robots enabling vision language models to adapt to new objects and tasks. Thank you.
