Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Shiyu, Song, Haoyang, Wang, Qixin, Pei, Yu
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911935973294080
author Zhang, Shiyu
Song, Haoyang
Wang, Qixin
Pei, Yu
author_facet Zhang, Shiyu
Song, Haoyang
Wang, Qixin
Pei, Yu
contents Reinforcement Learning (RL) has gained significant attention across various domains. However, the increasing complexity of RL programs presents testing challenges, particularly the oracle problem: defining the correctness of the RL program. Conventional human oracles struggle to cope with the complexity, leading to inefficiencies and potential unreliability in RL testing. To alleviate this problem, we propose an automated oracle approach that leverages RL properties using fuzzy logic. Our oracle quantifies an agent's behavioral compliance with reward policies and analyzes its trend over training episodes. It labels an RL program as "Buggy" if the compliance trend violates expectations derived from RL characteristics. We evaluate our oracle on RL programs with varying complexities and compare it with human oracles. Results show that while human oracles perform well in simpler testing scenarios, our fuzzy oracle demonstrates superior performance in complex environments. The proposed approach shows promise in addressing the oracle problem for RL testing, particularly in complex cases where manual testing falls short. It offers a potential solution to improve the efficiency, reliability, and scalability of RL program testing. This research takes a step towards automated testing of RL programs and highlights the potential of fuzzy logic-based oracles in tackling the oracle problem.
format Preprint
id arxiv_https___arxiv_org_abs_2406_19812
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programs
Zhang, Shiyu
Song, Haoyang
Wang, Qixin
Pei, Yu
Software Engineering
Artificial Intelligence
68T05, 68T27, 93C42
D.2.5; I.2.3
Reinforcement Learning (RL) has gained significant attention across various domains. However, the increasing complexity of RL programs presents testing challenges, particularly the oracle problem: defining the correctness of the RL program. Conventional human oracles struggle to cope with the complexity, leading to inefficiencies and potential unreliability in RL testing. To alleviate this problem, we propose an automated oracle approach that leverages RL properties using fuzzy logic. Our oracle quantifies an agent's behavioral compliance with reward policies and analyzes its trend over training episodes. It labels an RL program as "Buggy" if the compliance trend violates expectations derived from RL characteristics. We evaluate our oracle on RL programs with varying complexities and compare it with human oracles. Results show that while human oracles perform well in simpler testing scenarios, our fuzzy oracle demonstrates superior performance in complex environments. The proposed approach shows promise in addressing the oracle problem for RL testing, particularly in complex cases where manual testing falls short. It offers a potential solution to improve the efficiency, reliability, and scalability of RL program testing. This research takes a step towards automated testing of RL programs and highlights the potential of fuzzy logic-based oracles in tackling the oracle problem.
title Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programs
topic Software Engineering
Artificial Intelligence
68T05, 68T27, 93C42
D.2.5; I.2.3
url https://arxiv.org/abs/2406.19812