arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.03804cs.LG
收藏

易于使用的强化学习屏蔽技术

Easy-to-Use Shielding for Reinforcement Learning

Institute of Information Security, Graz University of Technology(信息安全研究所,格拉茨技术大学)

Stefan Pranger, Bettina Könighofer

AI总结:

提出tempestpy库,将形式化屏蔽合成集成到Gymnasium API中,降低强化学习安全探索的门槛,并扩展了随机多人博弈的屏蔽算法。

摘要:

安全探索是强化学习中的一个关键挑战,旨在防止智能体在探索环境时做出有害决策。屏蔽是一种利用环境模型形式的领域知识来决定动作安全性的技术。尽管已经成熟,但由于缺乏将形式化屏蔽合成与标准强化学习框架连接起来的可访问端到端基础设施,屏蔽在强化学习中的应用有限。应用屏蔽通常需要形式化方法的专业知识和大量的工程工作,使其脱离典型的强化学习工作流程。我们通过将屏蔽合成工具Tempest扩展为安全强化学习的实用后端来解决这一问题。我们的核心贡献是tempestpy,一个Python库,它将基于Tempest的屏蔽合成直接集成到Gymnasium API中,使得屏蔽可以在现有的强化学习管道中合成和部署。这降低了屏蔽的入门门槛,将形式化安全探索方法转化为强化学习实践者可用的组件。我们还扩展了Tempest的算法支持,以计算随机多人博弈的可靠屏蔽,保留了形式化安全保证。我们端到端地展示了最终的工作流程,并在多个环境中评估了有屏蔽和无屏蔽的强化学习。为了便于建模,我们为MiniGrid提供了符号模型,并引入了MiniGridSafe,这是一个游乐场环境集合,旨在使屏蔽易于访问且实验透明。MiniGridSafe通过具有概率转换和额外智能体的安全导向场景扩展了MiniGrid,使得在简单直观的设置中研究具有挑战性的安全方面成为可能。

英文摘要:

Safe exploration is a key challenge in Reinforcement Learning (RL) that aims to prevent agents from making harmful decisions while exploring their environment. Safe exploration is a key challenge in Reinforcement Learning (RL) that aims to prevent agents from making harmful decisions while exploring their environment. Shielding is one such technique that assumes domain knowledge in the form of an environment model to decide upon action safety. Although well-established, shielding has seen limited adoption in RL due to the lack of accessible end-to-end infrastructure connecting formal shield synthesis with standard RL frameworks. Applying shielding typically requires expertise in formal methods and substantial engineering effort, keeping it outside the typical RL workflow. We address this by extending our shield synthesis tool Tempest into a practical backend for safe RL. Our core contribution is tempestpy, a Python library that integrates Tempest-based shield synthesis directly into the Gymnasium API, allowing shields to be synthesized and deployed within existing RL pipelines. This lowers the barrier to entry for shielding and turns formal safe-exploration methods into a usable component for RL practitioners. We also extend Tempest's algorithmic support to compute sound shields for stochastic multiplayer games, preserving formal safety guarantees. We demonstrate the resulting workflow end to end and evaluate shielded and unshielded RL across multiple environments. To facilitate modeling, we provide symbolic models for MiniGrid and introduce MiniGridSafe, a collection of playground environments designed to make shielding easily accessible and experimentally transparent. MiniGridSafe extends MiniGrid with safety-oriented scenarios featuring probabilistic transitions and additional agents, enabling the study of challenging safety aspects in a simple and intuitive setting.

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

↑