English

Mapping representations in Reinforcement Learning via Semantic Alignment for Zero-Shot Stitching

Machine Learning 2025-03-05 v1 Artificial Intelligence

Abstract

Deep Reinforcement Learning (RL) models often fail to generalize when even small changes occur in the environment's observations or task requirements. Addressing these shifts typically requires costly retraining, limiting the reusability of learned policies. In this paper, we build on recent work in semantic alignment to propose a zero-shot method for mapping between latent spaces across different agents trained on different visual and task variations. Specifically, we learn a transformation that maps embeddings from one agent's encoder to another agent's encoder without further fine-tuning. Our approach relies on a small set of "anchor" observations that are semantically aligned, which we use to estimate an affine or orthogonal transform. Once the transformation is found, an existing controller trained for one domain can interpret embeddings from a different (existing) encoder in a zero-shot fashion, skipping additional trainings. We empirically demonstrate that our framework preserves high performance under visual and task domain shifts. We empirically demonstrate zero-shot stitching performance on the CarRacing environment with changing background and task. By allowing modular re-assembly of existing policies, it paves the way for more robust, compositional RL in dynamically changing environments.

Keywords

Cite

@article{arxiv.2503.01881,
  title  = {Mapping representations in Reinforcement Learning via Semantic Alignment for Zero-Shot Stitching},
  author = {Antonio Pio Ricciardi and Valentino Maiorca and Luca Moschella and Riccardo Marin and Emanuele Rodolà},
  journal= {arXiv preprint arXiv:2503.01881},
  year   = {2025}
}

Comments

11 pages, 3 figures, 2 tables

R2 v1 2026-06-28T22:05:12.885Z