Pure-Past Action Masking

Publication date

2024-03-24

Authors

Varricchione, GiovanniORCID 0000-0002-5466-9012ISNI 0000000527856455
Alechina, NatashaORCID 0000-0003-3306-9891ISNI 0000000124421545
Dastani, MehdiISNI 0000000043464658
De Giacomo, Giuseppe
Logan, BrianORCID 0000-0003-0648-7107ISNI 0000000124462996
Perelli, Giuseppe

Editors

Advisors

Supervisors

Document Type

/dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/conferencearticle
Open Access logo

License

taverne

Abstract

We present Pure-Past Action Masking (PPAM), a lightweight approach to action masking for safe reinforcement learning. In PPAM, actions are disallowed (“masked”) according to specifications expressed in Pure-Past Linear Temporal Logic (PPLTL). PPAM can enforce non-Markovian constraints, i.e., constraints based on the history of the system, rather than just the current state of the (possibly hidden) MDP. The features used in the safety constraint need not be the same as those used by the learning agent, allowing a clear separation of concerns between the safety constraints and reward specifications of the (learning) agent. We prove formally that an agent trained with PPAM can learn any optimal policy that satisfies the safety constraints, and that they are as expressive as shields, another approach to enforce non-Markovian constraints in RL. Finally, we provide empirical results showing how PPAM can guarantee constraint satisfaction in practice.

Keywords

Taverne, Artificial Intelligence

Citation

Varricchione, G, Alechina, N, Dastani, M, De Giacomo, G, Logan, B & Perelli, G 2024, 'Pure-Past Action Masking', Proceedings of the AAAI Conference on Artificial Intelligence, vol. 38, no. 19, pp. 21646-21655. https://doi.org/10.1609/aaai.v38i19.30163