Reinforcement learning with non-ergodic reward increments: robustness via ergodicity transformations

Dominik Baumann, Erfaun Noorani, James Price, Ole Peters, Colm Connaughton +1 more
10/17/2023
cs.LG

Official code: baumanndominik/ergodic_rl (3 stars, MIT, last commit 2025-01-11).

Abstract

Envisioned application areas for reinforcement learning (RL) include autonomous driving, precision agriculture, and finance, which all require RL agents to make decisions in the real world. A significant challenge hindering the adoption of RL methods in these domains is the non-robustness of conventional algorithms. In particular, the focus of RL is typically on the expected value of the return. The expected value is the average over the statistical ensemble of infinitely many trajectories, which can be uninformative about the performance of the average individual. For instance, when we have a heavy-tailed return distribution, the ensemble average can be dominated by rare extreme events. Consequently, optimizing the expected value can lead to policies that yield exceptionally high returns with a probability that approaches zero but almost surely result in catastrophic outcomes in single long trajectories. In this paper, we develop an algorithm that lets RL agents optimize the long-term performance of individual trajectories. The algorithm enables the agents to learn robust policies, which we show in an instructive example with a heavy-tailed return distribution and standard RL benchmarks. The key element of the algorithm is a transformation that we learn from data. This transformation turns the time series of collected returns into one for whose increments expected value and the average over a long trajectory coincide. Optimizing these increments results in robust policies.

View on arXivView PDF

Code Implementations(1)

MIT
31Python, Jupyter NotebookSep 29, 20231 years agoMIT

Similar Papers

Cite this paper

@article{baumann2023reinforcement,
  title  = {Reinforcement learning with non-ergodic reward increments: robustness via ergodicity transformations},
  author = {Dominik Baumann and Erfaun Noorani and James Price and Ole Peters and Colm Connaughton and Thomas B. Schön},
  year   = {2023},
  eprint = {2310.11335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11335v3}
}

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

Discussion