Epistemically-guided forward-backward exploration

Núria Armengol Urpí, Marin Vlastelica, Georg Martius, Stelian Coros

TL;DR

Standard zero-shot reinforcement learning algorithms decouple data collection from policy learning, relying on heuristic or reward-agnostic exploration. This paper introduces $\text{FBEE}^Q$, an epistemically guided exploration method tailored for forward-backward (FB) representations that actively selects policies maximizing posterior predictive uncertainty over value functions. By steering exploration toward what the model understands least, the method dramatically boosts sample efficiency across continuous control benchmarks.

What Problem Does This Paper Address?

In zero-shot reinforcement learning (RL), an agent interacts with an environment without task rewards during pretraining to discover optimal policies for any reward function specified later at test time. Forward-Backward (FB) representations achieve this by factorizing long-term state-action occupancy measures into a forward representation $F$ of the current state-action-latent tuple and a backward representation $B$ of future states.

However, learning accurate occupancy measures requires vast amounts of exploratory data. Prior FB works either relied on naive random sampling of latent policies or completely decoupled intrinsic exploration schemes (e.g., Random Network Distillation). Because these decoupled strategies do not account for what the zero-shot representation has already learned, the agent often collects redundant data or explores task-irrelevant dynamics.

Methods

The authors cast unsupervised data collection as an active Bayesian uncertainty minimization problem over the FB model’s predictions:

  • Ensembling $F$ with a Shared $B$: Standard ensemble disagreement fails if applied naively across both $F$ and $B$ because the matrix factorization is non-unique (invariant to arbitrary coordinate rotations). The authors resolve this by freezing a single $B$ representation and training an ensemble of $K$ forward networks $\{F_{\theta_k}\}_{k=1}^K$ using temporal difference updates.
  • Projecting Uncertainty from $F$ to $Q$: Instead of computing high-dimensional covariance matrices over $F$, the authors project ensemble disagreement into value space. Since $Q^{\pi_z}(s, a) \approx \langle F(s, a, z), z \rangle$, the predictive variance of the return under policy $\pi_z$ is directly estimated as: $$\operatorname{Var}[Q^{\pi_z}(s, a) \mid \mathcal{D}] = \frac{1}{K} \sum_{k=1}^K \left( \langle F_k(s, a, z) - \bar{F}(s, a, z),\, z \rangle \right)^2$$
  • Uncertainty Sampling ($\text{FBEE}^Q$): During training, the agent samples candidate reward embeddings $z$, evaluates the variance of expected returns under policy $\pi_z$, and executes the policy corresponding to the reward embedding $z^E$ that maximizes predictive uncertainty.
  • Fast Re-planning: Rather than committing to one latent policy for an entire rollout, the agent re-evaluates and switches $z^E$ every 100 interaction steps.

Datasets

The authors evaluate on continuous control tasks from the DeepMind Control (DMC) Suite, testing 15 downstream reward tasks across 5 distinct domains:

  1. Walker
  2. Cheetah
  3. Hopper
  4. Quadruped
  5. Point-mass maze (navigating from a fixed starting point to 20 target goal positions)

They also compare against offline pretraining buffers sourced from the Unsupervised Reinforcement Learning Benchmark (URLB) for the decoupled FB-RND baseline.

Key Insights and Ideas

  • Pure Exploration Without Exploitation: Unlike standard RL where agents must balance exploration with accumulating extrinsic rewards, unsupervised zero-shot RL has no extrinsic reward during training. Data collection is purely an experimental design problem.
  • $F$-uncertainty vs. $Q$-uncertainty: Measuring uncertainty over the matrix covariance of $F$ ($\text{FBEE}^F$) versus scalar returns of $Q$ ($\text{FBEE}^Q$) yields different behaviors; scatter plots reveal weak correlation ($R^2 = 0.18$ in Maze). However, focusing on $Q$ uncertainty directly targets the quantity used for downstream decision-making.
  • Latent Exploration Beats Action Noise: Direct random exploration in action space fails completely in continuous control. Exploring over structured reward embeddings $z$ induces coordinated, temporally extended behaviors that are far more informative.

Key Results

  • Superior Sample Efficiency: Across all five DMC domains, $\text{FBEE}^Q$ learns high-performing zero-shot policies significantly faster than standard FB (which samples $z$ uniformly at random).
  • Asymptotic Performance: In complex locomotion and navigation domains (Walker, Hopper, Quadruped, Maze), $\text{FBEE}^Q$ matches or outperforms both standard FB and offline FB-RND. In simpler environments like Cheetah, both methods reach near-maximal scores (~800–1000 return), though $\text{FBEE}^Q$ converges earlier.
  • Update Frequency Matters: Updating the active exploration embedding $z^E$ every 100 steps ($\text{FBEE}^Q$) yielded marked sample-efficiency gains compared to setting $z^E$ only once at the beginning of each episode ($\text{FBEE}^Q\text{-EPISODE}$), especially in Hopper and Maze.

Limitations and Future Work

  • Myopic Policy Selection: The policy selects $z^E$ greedily based on the predictive variance at the current state, rather than explicitly maximizing the cumulative reduction in uncertainty across all potential latent policies.
  • Heuristic Posterior Approximation: Fixing a single backward representation $B$ circumvents rotational non-uniqueness but prevents maintaining a fully Bayesian joint posterior over both representations.
  • Extension to Formal Exploration Paradigms: The authors identify incorporating Thompson sampling or Upper Confidence Bounds (UCB) over latent policies as promising avenues to better model information correlation across different $z \in \mathcal{Z}$.

Summary updated

BibTeX
@inproceedings{urpi2025epistemically,
  author = {Núria Armengol Urpí and Marin Vlastelica and Georg Martius and Stelian Coros},
  title = {{Epistemically-guided forward-backward exploration}},
  booktitle = {EWRL},
  year = {2025},
  url = {https://openreview.net/forum?id=CZ9FjKvncv},
}
Figure