Jan Eisenhut, Á. Torralba, M. Christakis, Jörg Hoffmann
{"title":"Automatic Metamorphic Test Oracles for Action-Policy Testing","authors":"Jan Eisenhut, Á. Torralba, M. Christakis, Jörg Hoffmann","doi":"10.1609/icaps.v33i1.27185","DOIUrl":null,"url":null,"abstract":"Testing is a promising way to gain trust in learned action policies π. \nPrior work on action-policy testing in AI planning formalized bugs\nas states t where π is sub-optimal with respect to a given testing\nobjective. Deciding whether or not t is a bug is as hard as (optimal)\nplanning itself. How can we design test oracles able to recognize some\nstates t to be bugs efficiently? Recent work introduced metamorphic\noracles which compare policy behavior on state pairs (s,t) where t is\neasier to solve; if π performs worse on t than on s, we know that t\nis a bug. Here, we show how to automatically design such oracles in\nclassical planning, based on simulation relations between states. We\nintroduce two oracle families of this kind: first, morphing query\nstates t to obtain suitable s; second, maintaining and comparing upper\nbounds on h* across the states encountered during testing. Our\nexperiments on ASNet policies show that these oracles can find bugs\nmuch more quickly than the existing alternatives, which are\nsearch-based; and that the combination of our oracles with\nsearch-based ones almost consistently dominates all other oracles.","PeriodicalId":239898,"journal":{"name":"International Conference on Automated Planning and Scheduling","volume":"214 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Conference on Automated Planning and Scheduling","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1609/icaps.v33i1.27185","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Testing is a promising way to gain trust in learned action policies π.
Prior work on action-policy testing in AI planning formalized bugs
as states t where π is sub-optimal with respect to a given testing
objective. Deciding whether or not t is a bug is as hard as (optimal)
planning itself. How can we design test oracles able to recognize some
states t to be bugs efficiently? Recent work introduced metamorphic
oracles which compare policy behavior on state pairs (s,t) where t is
easier to solve; if π performs worse on t than on s, we know that t
is a bug. Here, we show how to automatically design such oracles in
classical planning, based on simulation relations between states. We
introduce two oracle families of this kind: first, morphing query
states t to obtain suitable s; second, maintaining and comparing upper
bounds on h* across the states encountered during testing. Our
experiments on ASNet policies show that these oracles can find bugs
much more quickly than the existing alternatives, which are
search-based; and that the combination of our oracles with
search-based ones almost consistently dominates all other oracles.