Optimal Transport-Guided Safety in Temporal Difference Reinforcement Learning

Zahra Shahrooei, Ali Baheri
2/22/2025
cs.LG

Official code: SAILRIT/Risk-averse-TD-Learning (3 stars, last commit 2025-02-23).

Abstract

The primary goal of reinforcement learning is to develop decision-making policies that prioritize optimal performance, frequently without considering safety. In contrast, safe reinforcement learning seeks to reduce or avoid unsafe behavior. This paper views safety as taking actions with more predictable consequences under environment stochasticity and introduces a temporal difference algorithm that uses optimal transport theory to quantify the uncertainty associated with actions. By integrating this uncertainty score into the decision-making objective, the agent is encouraged to favor actions with more predictable outcomes. We theoretically prove that our algorithm leads to a reduction in the probability of visiting unsafe states. We evaluate the proposed algorithm on several case studies in the presence of various forms of environment uncertainty. The results demonstrate that our method not only provides safer behavior but also maintains the performance. A Python implementation of our algorithm is available at \href{https://github.com/SAILRIT/Risk-averse-TD-Learning}{https://github.com/SAILRIT/OT-guided-TD-Learning}.

View on arXivView PDF

Code Implementations(1)

A python implementation of risk-Averse TD learning based on optimal transport theory

30PythonFeb 18, 20251 years ago

Similar Papers

Cite this paper

@article{shahrooei2025optimal,
  title  = {Optimal Transport-Guided Safety in Temporal Difference Reinforcement Learning},
  author = {Zahra Shahrooei and Ali Baheri},
  year   = {2025},
  eprint = {2502.16328},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.16328v2}
}

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/2502.16328.svg)](https://codeofpaper.com/paper/2502.16328)

Discussion