Semifactual Explanations for Reinforcement Learning
<|reference_start|>Semifactual Explanations for Reinforcement Learning: Reinforcement Learning (RL) is a learning paradigm in which the agent learns from its environment through trial and error. Deep reinforcement learning (DRL) algorithms represent the agent's policies using neural networks, making their decisions difficult to interpret. Explaining the behaviour of DRL agents is necessary to advance user trust, increase engagement, and facilitate integration with real-life tasks. Semifactual explanations aim to explain an outcome by providing "even if" scenarios, such as "even if the car were moving twice as slowly, it would still have to swerve to avoid crashing". Semifactuals help users understand the effects of different factors on the outcome and support the optimisation of resources. While extensively studied in psychology and even utilised in supervised learning, semifactuals have not been used to explain the decisions of RL systems. In this work, we develop a first approach to generating semifactual explanations for RL agents. We start by defining five properties of desirable semifactual explanations in RL and then introducing SGRL-Rewind and SGRL-Advance, the first algorithms for generating semifactual explanations in RL. We evaluate the algorithms in two standard RL environments and find that they generate semifactuals that are easier to reach, represent the agent's policy better, and are more diverse compared to baselines. Lastly, we conduct and analyse a user study to assess the participant's perception of semifactual explanations of the agent's actions.<|reference_end|>
@article{gajcin2024semifactual,
    title={Semifactual Explanations for Reinforcement Learning},
    author={Jasmina Gajcin, Jovan Jeromela, Ivana Dusparic},
    journal={arXiv preprint arXiv:2409.05435},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.05435},
    primaryClass={cs.AI}
}