skip to main content
research-article
Open Access

Counterexample-guided inductive synthesis for probabilistic systems

Published:01 August 2021Publication History
Skip Abstract Section

Abstract

Abstract

This paper presents counterexample-guided inductive synthesis (CEGIS) to automatically synthesise probabilistic models. The starting point is a family of finite-stateMarkov chains with related but distinct topologies. Such families can succinctly be described by a sketch of a probabilistic program. Program sketches are programs containing holes. Every hole has a finite repertoire of possible program snippets by which it can be filled.We study several synthesis problems—feasibility, optimal synthesis, and complete partitioning—for a given quantitative specification φ. Feasibility amounts to determine a family member satisfying φ, optimal synthesis amounts to find a family member that maximises the probability to satisfy φ, and complete partitioning splits the family in satisfying and refuting members. Each of these problems can be considered under the additional constraint of minimising the total cost of instantiations, e.g., what are all possible instantiations for φ that are within a certain budget? The synthesis problems are tackled using a CEGIS approach. The crux is to aggressively prune the search space by using counterexamples provided by a probabilistic model checker. Counterexamples can be viewed as sub-Markov chains that rule out all family members that share this sub-chain. Our CEGIS approach leverages efficient probabilisticmodel checking,modern SMT solving, and programsnippets as counterexamples. Experiments on case studies froma diverse nature—controller synthesis, program sketching, and security—show that synthesis among up to a million candidate designs can be done using a few thousand verification queries.

References

  1. [ÁBD+14] Ábrahám E, Becker B, Dehnert C, Jansen N, Katoen J-P, Wimmer R (2014) Counterexample generation for discrete-time Markov models: An introductory survey, Springer, vol 8483 of LNCS, pp 65–121Google ScholarGoogle Scholar
  2. [ABD+15] Alur R, Bodík R, Dallal E, Fisman D, Garg P, Juniwal G, Kress-Gazit H, Madhusudan P, Martin MMK, Raghothaman M, Saha S, Seshia SA, Singh R, Solar-Lezama A, Torlak E, Udupa A (2015) Syntax-guided synthesis. In: Dependable software systems engineering, IOS Press, vol 40 of NATO Science for Peace and Security Series, pp 1–25Google ScholarGoogle Scholar
  3. [ADK+18] Abate A, David C, Kesseli P, Kroening D, Polgreen E (2018) Counterexample guided inductive synthesis modulo theories. In: CAV (1), Springer, vol 10981 of LNCS, pp 270–288Google ScholarGoogle Scholar
  4. [AHL+08] Antonik AHuth MLarsen KGNyman UWasowski A20 years of modal and mixed specificationsBulletin of the EATCS2008959412924424771169.68498Google ScholarGoogle Scholar
  5. [ASFS18] Alur RSingh RFisman DSolar-Lezama ASearch-based program synthesisCommun ACM20186112849310.1145/3208071Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. [BBPM99] Benini LBogliolo APaleologo GADe Micheli GPolicy optimization for dynamic power managementIEEE Trans CAD Integr Circuits Syst199918681383310.1109/43.766730Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. [BdAFK18] Baier C, de Alfaro L, Forejt V, Kwiatkowska M (2018) Model checking probabilistic systems. In: Handbook of model checking, Springer, pp 963–999Google ScholarGoogle Scholar
  8. [BDH+17] Budde CE, Dehnert C, Hahn EM, Hartmanns A, Junges S, Turrini A (2017) JANI: quantitative model and tool interaction. In: TACAS, vol 10206 of LNCS, pp 151–168Google ScholarGoogle Scholar
  9. [BGK+11] Bartocci E, Grosu R, Katsaros P, Ramakrishnan CR, Smolka SA (2011) Model repair for probabilistic systems. In: TACAS, Springer, vol 6605 of LNCS, pp 326–340Google ScholarGoogle Scholar
  10. [BHvMW09] Biere A, Heule M, van Maaren H, Walsh T (eds) (2009) Handbook of Satisfiability, IOS Press, vol 185 of Frontiers in artificial intelligence and applicationsGoogle ScholarGoogle Scholar
  11. [BK08] Baier C, Katoen J-P (2008) Principles of model checking MIT PressGoogle ScholarGoogle Scholar
  12. [BKL+12] Benes N, Křetínský J, Larsen KG, Møller MH, Srba J (2012) Dual-priced modal transition systems with time durations. In: LPAR, Springer, vol 7180 of LNCS, pp 122–137Google ScholarGoogle Scholar
  13. [BKL+15] Benes NKretínský JLarsen KGMøller MHSickert SSrba JRefinement checking on parametric modal transition systemsActa Inf2015522–3269297332358810.1007/s00236-015-0215-4Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. [BTGC16] Bornholt J, Torlak E, Grossman D, Ceze L (2016) Optimizing synthesis with metasketches. In: POPL, ACM, pp 775–788Google ScholarGoogle Scholar
  15. [CČF+17] Cardelli L, Češka M, Fränzle M, Kwiatkowska M, Laurenti L, Paoletti N, Whitby M (2017) Syntax-guided optimal synthesis for chemical reaction networks. In: CAV, Springer, vol 10427 of LNCS, pp 375–395Google ScholarGoogle Scholar
  16. [ČCH+11] Černý P, Chatterjee K, Henzinger TA, Radhakrishna A, Singh R (2011) Quantitative synthesis for concurrent programs. In: CAV, Springer, vol 6806 of LNCS, pp 243–259Google ScholarGoogle Scholar
  17. [CCS14] Chaudhuri S, Clochard M, Solar-Lezama A (2014) Bridging boolean and quantitative synthesis using smoothed proof search. In: POPL, ACM, pp 207–220Google ScholarGoogle Scholar
  18. [CDKB18] Chrszon PDubslaff CKlüppelholz SBaier CProFeat: feature-oriented engineering for family-based probabilistic model checkingFormal Asp Comput20183014575374747710.1007/s00165-017-0432-4Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. [ČDP+17] Češka MDannenberg FPaoletti NKwiatkowska MBrim LPrecise parameter synthesis for stochastic biochemical systemsActa Inf2017546589623368601110.1007/s00236-016-0265-2Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. [CGJ+16] Calinescu RGhezzi CJohnson KPezzé MRafiq YTamburrelli GFormal verification with confidence intervals to establish quality of service properties of software systemsIEEE Trans Rel201665110712510.1109/TR.2015.2452931Google ScholarGoogle ScholarCross RefCross Ref
  21. [CGKM12] Calinescu RGhezzi CKwiatkowska MZMirandola RSelf-adaptive software needs quantitative verification at runtimeCommun ACM2012559697710.1145/2330667.2330686Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. [CHH+13] Chen T, Hahn EM, Han T, Kwiatkowska MZ, Qu H, Zhang L (2013) Model repair for Markov decision processes. In: TASE, IEEE, pp 85–92Google ScholarGoogle Scholar
  23. [ČHJK19] Češka M, Hensel C, Junges S, Katoen J-P (2019) Counterexample-driven synthesis for probabilistic program sketches. In: Formal methods – the next 30 years, Springer International Publishing, vol 11800 of LNCS, pp 101–120Google ScholarGoogle Scholar
  24. [Cho17] Chonev V (2017) Reachability in augmented interval Markov chains. CoRR abs/1701.02996Google ScholarGoogle Scholar
  25. [ČJJK19] Češka M, Jansen N, Junges S, Katoen J-P (2019) Shepherding hordes of Markov chains. In: TACAS, Springer, vol 11428 of LNCSGoogle ScholarGoogle Scholar
  26. [CvG+17a] Calinescu R, Češka M, Gerasimou S, Kwiatkowska M, Paoletti N (2017) Designing robust software systems through parametric Markov chain synthesis. In: ICSA, IEEE, pp 131–140Google ScholarGoogle Scholar
  27. [CvG+17b] Calinescu R, Češka M, Gerasimou S, Kwiatkowska M, Paoletti N (2017) RODES: A robust-design synthesis tool for probabilistic systems. In: QEST, Springer, pp 304–308Google ScholarGoogle Scholar
  28. [CvG+18] Calinescu RČeška MGerasimou SKwiatkowska MPaoletti NEfficient synthesis of robust models for stochastic systemsJ Syst Softw201814314015810.1016/j.jss.2018.05.013Google ScholarGoogle ScholarCross RefCross Ref
  29. [DJKV17] Dehnert C, Junges S, Katoen J-P, Volk M (2017) A storm is coming: A modern probabilistic model checker. In: CAV, Springer, vol 10427 of LNCS, pp 592–600Google ScholarGoogle Scholar
  30. [DJW+14] Dehnert C, Jansen N, Wimmer R, Ábrahám E, Katoen J-P (2014) Fast debugging of PRISM models. In ATVA, Springer, vol 8837 of LNCS, pp 146–162Google ScholarGoogle Scholar
  31. [DKL+13] Delahaye BKatoen J-PLarsen KGLegay APedersen MLSher FWasowski AAbstract probabilistic automataInf Comput201323266116313252210.1016/j.ic.2013.10.002Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. [dMB08] de Moura LM, Bjørner N (2008) Z3: an efficient SMT solver. In: TACAS, Springer, vol 4963 of LNCS, pp 337–340Google ScholarGoogle Scholar
  33. [DR18] Dureja R, Rozier KY (2018) More scalable LTL model checking via discovering design-space dependencies. In: TACAS (1), Springer, vol 10805 of LNCS, pp 309–327Google ScholarGoogle Scholar
  34. [FTG16] Filieri ATamburrelli GGhezzi CSupporting self-adaptation via quantitative verification and sensitivity analysis at run timeIEEE Trans Software Eng2016421759910.1109/TSE.2015.2421318Google ScholarGoogle ScholarDigital LibraryDigital Library
  35. [GPS17] Gulwani SPolozov OSingh RProgram synthesis. Found Trends Program Lang201741–21119Google ScholarGoogle ScholarCross RefCross Ref
  36. [GS13] Ghezzi CSharifloo AMModel-based verification of quantitative non-functional properties for software product linesInf Softw Technol201355350852410.1016/j.infsof.2012.07.017Google ScholarGoogle ScholarDigital LibraryDigital Library
  37. [GTC15] Gerasimou S, Tamburrelli G, Calinescu R (2015) Search-based synthesis of probabilistic models for quality-of-service software engineering. In: ASE, IEEE Computer Society, pp 319–330Google ScholarGoogle Scholar
  38. [Hen13] Henzinger TAQuantitative reactive modeling and verificationComput Sci - R&D2013284331344Google ScholarGoogle ScholarDigital LibraryDigital Library
  39. [Hen18] Hensel C (2018) The probabilistic model checker storm: Symbolic methods for probabilistic model checking. PhD thesis, RWTH Aachen University, GermanyGoogle ScholarGoogle Scholar
  40. [HH14] Hartmanns A, Hermanns H (2014) The modest toolset: An integrated environment for quantitative modelling and verification. In: TACAS, Springer, pp 593–598Google ScholarGoogle Scholar
  41. [HHZ11] Hahn EMHermanns HZhang LProbabilistic reachability for parametric Markov modelsSoftw Tools Technol Transf201113131910.1007/s10009-010-0146-xGoogle ScholarGoogle ScholarCross RefCross Ref
  42. [HKD09] Han TKatoen J-PDamman BCounterexample generation in probabilistic model checkingIEEE Trans Software Eng200935224125710.1109/TSE.2009.5Google ScholarGoogle ScholarDigital LibraryDigital Library
  43. [HKP+19] Hartmanns A, Klauck M, Parker D, Quatmann T, Ruijters E (2019) The quantitative verification benchmark set. In: TACAS (1), Springer, vol 11427 of Lecture Notes in Computer Science, pp 344–350Google ScholarGoogle Scholar
  44. [JHTT19] Jansen N, Humphrey L, Tumova J, Topcu U (2019) Structured synthesis for probabilistic systems. In: NFM, Springer, vol 11460 of LNCS, pp 237–254Google ScholarGoogle Scholar
  45. [JJD+16] Junges S, Jansen N, Dehnert C, Topcu U, Katoen J-P (2016) Safety-constrained reinforcement learning for MDPs. In: TACAS, Springer, vol 9636 of LNCS, pp 130–146Google ScholarGoogle Scholar
  46. [JJW+18] Junges S, Jansen N, Wimmer R, Quatmann T, Winterer L, Katoen J-P, Becker B (2018) Finite-state controllers of POMDPs using parameter synthesis. In: UAI, AUAI Press, pp 519–529Google ScholarGoogle Scholar
  47. [JS17] Jha SSeshia SAA theory of formal synthesis via inductive learningActa Inf2017547693726371231410.1007/s00236-017-0294-5Google ScholarGoogle ScholarDigital LibraryDigital Library
  48. [Jun20] Junges S (2020) Parameter synthesis in Markov models. PhD thesis, RWTH Aachen University, Germany, to appearGoogle ScholarGoogle Scholar
  49. [Kat16] Katoen J-P (2016) The probabilistic model checking landscape. In: LICS, ACM, pp 31–45Google ScholarGoogle Scholar
  50. [KLC98] Kaelbling LPLittman MLCassandra ARPlanning and acting in partially observable stochastic domainsArtif Intell19981011–299134164153010.1016/S0004-3702(98)00023-XGoogle ScholarGoogle ScholarCross RefCross Ref
  51. [KNP11] Kwiatkowska M, Norman G, Parker D (2011) Prism 4.0: Verification of probabilistic real-time systems. In: CAV, vol 6806 of LNCS, Springer, pp 585–591Google ScholarGoogle Scholar
  52. [KNPV09] Kwiatkowska MZNorman GParker DVigliotti MGProbabilistic mobile ambientsTheor Comput Sci200941012–1312721303249927110.1016/j.tcs.2008.12.058Google ScholarGoogle ScholarDigital LibraryDigital Library
  53. [Kre17] Kretínský J (2017) 30 years of modal transition systems: Survey of extensions and analysis. In: Models, algorithms, logics and tools, Springer, vol 10460 of LNCS, pp 36–74Google ScholarGoogle Scholar
  54. [LCA+18] Lanna ACastro TAlves VRodrigues GSchobbens P-YApel SFeature-family-based reliability analysis of software product linesInform Softw Technol201894598110.1016/j.infsof.2017.10.001Google ScholarGoogle Scholar
  55. [LT88] Larsen KG, Thomsen B (1988) A modal process logic. In: LICS, IEEE Computer Society, pp 203–210Google ScholarGoogle Scholar
  56. [MKKC99] Meuleau N, Kim K-E, Kaelbling LP, Cassandra AR (1999) Solving POMDPs by searching the space of finite policies. In: UAI, Morgan Kaufmann Publishers Inc., pp 417–426Google ScholarGoogle Scholar
  57. [MMS96] Morgan CMcIver ASeidel KProbabilistic predicate transformersACM Trans Program Lang Syst199618332535310.1145/229542.229547Google ScholarGoogle ScholarDigital LibraryDigital Library
  58. [NORV15] Nori AV, Ozair S, Rajamani SK, Vijaykeerthy D (2015) Efficient synthesis of probabilistic programs. In: PLDI, ACM, pp 208–217Google ScholarGoogle Scholar
  59. [QDJ+16] Quatmann T, Dehnert C, Jansen N, Junges S, Katoen J-P (2016) Parameter synthesis for Markov models: Faster than ever. In: ATVA, vol 9938 of LNCS, pp 50–67Google ScholarGoogle Scholar
  60. [QJD+15] Quatmann T, Jansen N, Dehnert C, Wimmer R, Ábrahám E, Katoen J-P, Becker B (2015) Counterexamples for expected rewards. In: FM, Springer, vol 9109 of LNCS, pp 435–452Google ScholarGoogle Scholar
  61. [RAN+15] Rodrigues GN, Alves V, Nunes V, Lanna A, Cordy M, Schobbens P-Y, Sharifloo AM, Legay A (2015) Modeling and verification for probabilistic properties in software product lines. In: HASE, IEEE pp 173–180Google ScholarGoogle Scholar
  62. [Ros16] Rosenblum DS (2016) The power of probabilistic thinking. In: ASE, ACM, p 3Google ScholarGoogle Scholar
  63. [SDM08] Sesic ADautovic SMalbasa VDynamic power management of a system with a two-priority request queue using probabilistic-model checkingIEEE Trans CAD Integr Circuits Syst200827240340710.1109/TCAD.2007.911342Google ScholarGoogle ScholarDigital LibraryDigital Library
  64. [SLJB08] Solar-Lezama A, Jones CG, Bodik R (2008) Sketching concurrent data structures. In: PLDI, ACM, pp 136–148Google ScholarGoogle Scholar
  65. [SLTB+06] Solar-Lezama A, Tancau L, Bodik R, Seshia S, Saraswat V (2006) Combinatorial sketching for finite programs. In: ASPLOS, ACM, pp 404–415Google ScholarGoogle Scholar
  66. [Sol13] Solar-Lezama AProgram sketching. STTT2013155–6475495Google ScholarGoogle Scholar
  67. [SRBE05] Solar-Lezama A, Rabbah RM, Bodík R, Ebcioglu K (2005) Programming by sketching for bit-streaming programs. In: PLDI, ACM, pp 281–294Google ScholarGoogle Scholar
  68. [VK13] Varshosaz M, Khosravi R (2013) Discrete time Markov chain families: modeling and verification of probabilistic software product lines. In: SPLC Workshops, ACM, pp 34–41Google ScholarGoogle Scholar
  69. [VtBLL18] Vandin A, ter Beek MH, Legay A, Lluch-Lafuente A (2018) Qflan: A tool for the quantitative analysis of highly reconfigurable systems. In: FM, Springer, vol 10951 of LNCS, pp 329–337Google ScholarGoogle Scholar
  70. [WJÁ+12] Wimmer R, Jansen N, Ábrahám E, Becker B, Katoen J-P (2012) Minimal critical subsystems for discrete-time Markov models. In TACAS, Springer, vol 7214 of LNCS, pp 299–314Google ScholarGoogle Scholar
  71. [WJÁ+14] Wimmer RJansen NÁbrahám EKatoen J-PBecker BMinimal counterexamples for linear-time probabilistic verificationTheor Comput Sci201454961100324725210.1016/j.tcs.2014.06.020Google ScholarGoogle ScholarCross RefCross Ref
  72. [WJV+15] Wimmer, R., Jansen, N., Vorpahl, A., Ábrahám, E., Katoen, J.-P., Becker, B.: High-level counterexamples for probabilistic automata. Log Methods Comput Sci 11(1), (2015)Google ScholarGoogle Scholar
  73. [ZL18] Zhou W, Li W (2018) Safety-aware apprenticeship learning. In CAV'18, Springer, vol 10981 of LNCS, pp 662–680Google ScholarGoogle Scholar

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in

Full Access

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader