Making Universal Policies Universal
Niklas Höpner, David Kuric, Herke van Hoof
TL;DR
This work tackles learning generalist policies across agents that share observations but differ in actions by extending the universal policy framework to a cross-agent setting. It introduces UCAP, a diffusion-based planner trained on a pooled instruction-trajectory dataset and paired with agent-specific inverse dynamics models, enabling planning that generalizes across agents. Empirical results in BabyAI show positive transfer from pooling data, with conditioning on agent information—especially action-space encoding—delivering notable improvements, including up to $42.20\%$ gains over single-agent training. The study also analyzes generalization to unseen agents and discusses limitations such as slower planning and the challenge of extending to more diverse observation spaces, outlining directions for scaling to larger, heterogeneous domains.
Abstract
The development of a generalist agent capable of solving a wide range of sequential decision-making tasks remains a significant challenge. We address this problem in a cross-agent setup where agents share the same observation space but differ in their action spaces. Our approach builds on the universal policy framework, which decouples policy learning into two stages: a diffusion-based planner that generates observation sequences and an inverse dynamics model that assigns actions to these plans. We propose a method for training the planner on a joint dataset composed of trajectories from all agents. This method offers the benefit of positive transfer by pooling data from different agents, while the primary challenge lies in adapting shared plans to each agent's unique constraints. We evaluate our approach on the BabyAI environment, covering tasks of varying complexity, and demonstrate positive transfer across agents. Additionally, we examine the planner's generalisation ability to unseen agents and compare our method to traditional imitation learning approaches. By training on a pooled dataset from multiple agents, our universal policy achieves an improvement of up to $42.20\%$ in task completion accuracy compared to a policy trained on a dataset from a single agent.
