Explaining Learned Reward Functions with Counterfactual Trajectories

Jan Wehner, Frans Oliehoek, Luciano Cavalcante Siebert
2/7/2024
1 citation
cs.AIcs.LG

Official code: janweh/Counterfactual-Trajectory-Explanations-for-Learned-Reward-Functions (1 star, Jupyter Notebook, last commit 2023-10-30).

Abstract

Learning rewards from human behaviour or feedback is a promising approach to aligning AI systems with human values but fails to consistently extract correct reward functions. Interpretability tools could enable users to understand and evaluate possible flaws in learned reward functions.

Show full abstract

We propose Counterfactual Trajectory Explanations (CTEs) to interpret reward functions in reinforcement learning by contrasting an original with a counterfactual partial trajectory and the rewards they each receive. We derive six quality criteria for CTEs and propose a novel Monte-Carlo-based algorithm for generating CTEs that optimises these quality criteria. Finally, we measure how informative the generated explanations are to a proxy-human model by training it on CTEs. CTEs are demonstrably informative for the proxy-human model, increasing the similarity between its predictions and the reward function on unseen trajectories. Further, it learns to accurately judge differences in rewards between trajectories and generalises to out-of-distribution examples. Although CTEs do not lead to a perfect understanding of the reward, our method, and more generally the adaptation of XAI methods, are presented as a fruitful approach for interpreting learned reward functions.

View on arXivView PDF

Code Implementations(1)

Code for my Master Thesis: I generate Counterfactual Trajectory Explanations about Reward Functions that were learned with Inverse Reinforcemnet Learning

11Jupyter Notebook, PythonOct 24, 20233 years ago

Similar Papers

Cite this paper

@article{wehner2024explaining,
  title  = {Explaining Learned Reward Functions with Counterfactual Trajectories},
  author = {Jan Wehner and Frans Oliehoek and Luciano Cavalcante Siebert},
  year   = {2024},
  eprint = {2402.04856},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.04856v4}
}

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

Discussion