Understanding Behavioral Metric Learning: A Large-Scale Study on Distracting Reinforcement Learning Environments

Ziyan Luo, Tianwei Ni, Pierre-Luc Bacon, Doina Precup, Xujie Si
5/31/2025
cs.LGcs.AI

No official code found. Best implementation: Rayluo-mila/understanding-metric-learning (12 stars, MIT, last commit 2025-08-20).

Abstract

A key approach to state abstraction is approximating behavioral metrics (notably, bisimulation metrics) in the observation space and embedding these learned distances in the representation space. While promising for robustness to task-irrelevant noise, as shown in prior work, accurately estimating these metrics remains challenging, requiring various design choices that create gaps between theory and practice. Prior evaluations focus mainly on final returns, leaving the quality of learned metrics and the source of performance gains unclear. To systematically assess how metric learning works in deep reinforcement learning (RL), we evaluate five recent approaches, unified conceptually as isometric embeddings with varying design choices. We benchmark them with baselines across 20 state-based and 14 pixel-based tasks, spanning 370 task configurations with diverse noise settings. Beyond final returns, we introduce the evaluation of a denoising factor to quantify the encoder's ability to filter distractions. To further isolate the effect of metric learning, we propose and evaluate an isolated metric estimation setting, in which the encoder is influenced solely by the metric loss. Finally, we release an open-source, modular codebase to improve reproducibility and support future research on metric learning in deep RL.

View on arXivView PDF

Code Implementations(1)

MIT

The official implementation of the paper "Understanding Behavioral Metric Learning: A Large-Scale Study on Distracting Reinforcement Learning Environments"

120Shell, PythonFeb 28, 20251 years agoMIT
metric-learningreinforcement-learning

Similar Papers

Cite this paper

@article{luo2025understanding,
  title  = {Understanding Behavioral Metric Learning: A Large-Scale Study on Distracting Reinforcement Learning Environments},
  author = {Ziyan Luo and Tianwei Ni and Pierre-Luc Bacon and Doina Precup and Xujie Si},
  year   = {2025},
  eprint = {2506.00563},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00563v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.00563.svg)](https://codeofpaper.com/paper/2506.00563)

Discussion