Augmenting Autotelic Agents with Large Language Models

Cédric Colas, Laetitia Teodorescu, Pierre-Yves Oudeyer, Xingdi Yuan, Marc-Alexandre Côté

Abstract

Humans learn to master open-ended repertoires of skills by imagining and practicing their own goals. This autotelic learning process, literally the pursuit of self-generated (auto) goals (telos), becomes more and more open-ended as the goals become more diverse, abstract and creative. The resulting exploration of the space of possible skills is supported by an inter-individual exploration: goal representations are culturally evolved and transmitted across individuals, in particular using language. Current artificial agents mostly rely on predefined goal representations corresponding to goal spaces that are either bounded (e.g. list of instructions), or unbounded (e.g. the space of possible visual inputs) but are rarely endowed with the ability to reshape their goal representations, to form new abstractions or to imagine creative goals. In this paper, we introduce a language model augmented autotelic agent (LMA3) that leverages a pretrained language model (LM) to support the representation, generation and learning of diverse, abstract, human-relevant goals. The LM is used as an imperfect model of human cultural transmission; an attempt to capture aspects of humans’ common-sense, intuitive physics and overall interests. Specifically, it supports three key components of the autotelic architecture: 1) a relabeler that describes the goals achieved in the agent’s trajectories, 2) a goal generator that suggests new high-level goals along with their decomposition into subgoals the agent already masters, and 3) reward functions for each of these goals. Without relying on any hand-coded goal representations, reward functions or curriculum, we show that LMA3 agents learn to master a large diversity of skills in a task-agnostic text-based environment.

Introduction

In the field of autotelic reinforcement learning, the primary objective is to develop agents capable of learning an open-ended set of skills through autonomous play. However, current agents often remain confined to narrow goal spaces, either following fixed instructions or exploring states that lack human relevance. Humans overcome this by leveraging cultural transmission—learning what is interesting or useful from others through language.

The challenge addressed in this research is how to endow artificial agents with this sense of "human-like interest" and the ability to describe complex, abstract goals without requiring manual engineering of reward functions for every possible task.

The LMA3 Framework

The authors introduce LMA3 (Language Model Augmented Autotelic Agent), which augments standard reinforcement learning with three LLM-powered components that act as a proxy for human cultural knowledge:

  1. LM Relabeler: Analyzes agent trajectories and describes achievements in natural language (e.g., "You opened the fridge and then closed it"), enabling hindsight experience replay.
  2. LM Goal Generator: Suggests new high-level goals based on past successes and decomposes them into manageable subgoals.
  3. LM Reward Function: Serves as a judge by reading trajectories and determining if a goal was met, providing the necessary reward signal for learning.
The LMA3 architecture integrates an LLM as a model of cultural transmission to support goal generation, relabeling, and reward functions.

Experimental Setup

The framework was tested in CookingWorld, a task-agnostic, text-based kitchen simulation containing various furniture, tools, and ingredients. To evaluate the agent's progress, the researchers developed a hand-coded set of 69 human-defined goals (e.g., "prepare the meal") to measure alignment with human interests.

Results and Emergent Diversity

LMA3 demonstrated a remarkable ability to bootstrap competence from zero prior knowledge. Key findings include:

  • Performance: Agents achieved near-perfect success rates on the human-defined evaluation set after a period of memory-based finetuning.
  • Reward Accuracy: The LLM-based reward function showed a 91% agreement rate with human labels.
  • Emergent Diversity: Beyond the 69 evaluation goals, LMA3 discovered approximately 9,000 distinct goal descriptions within just 10,000 episodes. The inclusion of "Human Tips" in prompts significantly increased the discovery of complex, multi-step behaviors.
Goal diversity over training episodes, demonstrating that LMA3 discovers a vast repertoire of distinct skills.

Conclusion and Future Work

While LMA3 successfully leverages LLMs for cultural transmission, several limitations remain. The computational cost of LLM APIs is a significant barrier to scaling, and the current text-only environment lacks physical grounding. Future research aims to integrate vision-to-text systems and transition to more complex, open worlds like Minecraft to further test the boundaries of autotelic learning.

Summary updated

BibTeX
@inproceedings{colas2023augmenting,
  author = {Cédric Colas and Laetitia Teodorescu and Pierre-Yves Oudeyer and Xingdi Yuan and Marc-Alexandre Côté},
  title = {{Augmenting Autotelic Agents with Large Language Models}},
  booktitle = {CoLLAs},
  year = {2023},
  url = {https://openreview.net/forum?id=FG7KmWOugF},
}
Figure