Learning Policy Representations for Steerable Behavior Synthesis
Beiming Li, Sergio Rozada, Alejandro Ribeiro
TL;DR
This work develops a general policy representation framework that encodes policies as the expected state–action feature map under their occupancy measures, $h_\pi = \mathbb{E}_{d_\pi}[f(s,a)]$, enabling fixed-dimensional, behavior-centered embeddings. The authors combine a set-based estimator within a $\beta$-VAE with a value-aware contrastive objective to produce a smooth, $\delta$-ordered latent space aligned with multiple value functions, and they design a gradient-based optimization procedure to synthesize policies at test time under unseen value constraints. Their architecture couples a Transformer-based encoder, per-task projection heads, and differentiable value predictors, allowing zero-shot steering by optimizing in latent space while staying on the learned manifold. Experiments in Multi-Objective MuJoCo demonstrate accurate policy reconstruction, a structured latent geometry that correlates with returns, and successful constraint-satisfying behavior synthesis without additional environment interaction. Overall, the approach enables controllable, data-efficient behavior synthesis by manipulating policy representations rather than retraining policies.
Abstract
Given a Markov decision process (MDP), we seek to learn representations for a range of policies to facilitate behavior steering at test time. As policies of an MDP are uniquely determined by their occupancy measures, we propose modeling policy representations as expectations of state-action feature maps with respect to occupancy measures. We show that these representations can be approximated uniformly for a range of policies using a set-based architecture. Our model encodes a set of state-action samples into a latent embedding, from which we decode both the policy and its value functions corresponding to multiple rewards. We use variational generative approach to induce a smooth latent space, and further shape it with contrastive learning so that latent distances align with differences in value functions. This geometry permits gradient-based optimization directly in the latent space. Leveraging this capability, we solve a novel behavior synthesis task, where policies are steered to satisfy previously unseen value function constraints without additional training.
