arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.19812cs.SEcs.AI
收藏

模糊逻辑引导的奖励函数变异:一种用于测试强化学习程序的预言机

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

The Hong Kong Polytechnic University(香港理工大学)

Shiyu Zhang, Haoyang Song, Qixin Wang, Yu Pei

AI总结:

本文提出一种基于模糊逻辑的自动化预言机,通过量化智能体对奖励策略的符合趋势来检测RL程序缺陷,在复杂测试场景中优于人工预言机。

摘要:

强化学习(RL)已在众多领域获得广泛关注。然而,RL程序日益增长的复杂性给测试带来了挑战,尤其是预言机问题:即如何定义RL程序的正确性。传统的人工预言机难以应对这种复杂性,导致RL测试效率低下且可能不可靠。为缓解这一问题,我们提出了一种自动化预言机方法,利用模糊逻辑来利用RL特性。我们的预言机量化智能体行为对奖励策略的符合程度,并分析其在训练回合中的变化趋势。如果符合程度趋势违背了源自RL特性的预期,则将RL程序标记为“有缺陷(Buggy)”。我们在具有不同复杂度的RL程序上评估了所提出的预言机,并将其与人工预言机进行了比较。结果表明,尽管人工预言机在较简单的测试场景中表现良好,但我们的模糊预言机在复杂环境中展现出更优越的性能。所提出的方法在解决RL测试的预言机问题方面显示出前景,尤其是在人工测试力不从心的复杂场景中。它为提升RL程序测试的效率、可靠性和可扩展性提供了一种潜在的解决方案。本研究向RL程序的自动化测试迈出了一步,并突显了基于模糊逻辑的预言机在应对预言机问题上的潜力。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑