{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T16:59:55Z","timestamp":1794848395361,"version":"4.9.1"},"publisher-location":"Cham","reference-count":41,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783032325365","type":"print"},{"value":"9783032325372","type":"electronic"}],"license":[{"start":{"date-parts":[[2026,1,1]],"date-time":"2026-01-01T00:00:00Z","timestamp":1767225600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,7,24]],"date-time":"2026-07-24T00:00:00Z","timestamp":1784851200000},"content-version":"vor","delay-in-days":204,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2026]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Several extensions of Datalog perform probabilistic inference by allowing users to annotate input facts and rules with probabilities. While extremely useful in many domains (e.g., quantitative program analysis), existing systems typically do not support\n                    <jats:italic>incremental inference<\/jats:italic>\n                    , meaning that even small changes trigger costly recomputation from scratch. This paper presents  (Stands for Probabilistic INcremental Querying), the first incremental solving framework for probabilistic Datalog. Given a previously solved program and a set of changes,  updates query probabilities by reusing the old derivation graphs and compiled decision diagrams. The key idea is to translate structural changes into parametric updates whenever sound to avoid redundant recomputation. Our framework combines an incremental derivation graph construction algorithm with an adaptive BDD construction technique that safely reuses existing BDDs via weight calibration whenever possible. Experimentally,  achieves an average speedup of\n                    <jats:inline-formula>\n                      <jats:alternatives>\n                        <jats:tex-math>$$17\\times $$<\/jats:tex-math>\n                        <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                          <mml:mrow>\n                            <mml:mn>17<\/mml:mn>\n                            <mml:mo>\u00d7<\/mml:mo>\n                          <\/mml:mrow>\n                        <\/mml:math>\n                      <\/jats:alternatives>\n                    <\/jats:inline-formula>\n                    over recomputation from scratch on a representative set of program analysis benchmarks.\n                  <\/jats:p>","DOI":"10.1007\/978-3-032-32537-2_8","type":"book-chapter","created":{"date-parts":[[2026,7,23]],"date-time":"2026-07-23T08:43:43Z","timestamp":1784796223000},"page":"169-190","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Incremental Inference for\u00a0Probabilistic Datalog"],"prefix":"10.1007","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-7978-4723","authenticated-orcid":false,"given":"Xuyang","family":"Li","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-6276-3525","authenticated-orcid":false,"given":"Weiyi","family":"Chen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8006-1230","authenticated-orcid":false,"given":"Isil","family":"Dillig","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5877-2677","authenticated-orcid":false,"given":"Jingbo","family":"Wang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,7,24]]},"reference":[{"key":"8_CR1","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"457","DOI":"10.1007\/978-3-662-46800-5_18","volume-title":"Advances in Cryptology \u2013 EUROCRYPT 2015","author":"G Barthe","year":"2015","unstructured":"Barthe, G., Bela\u00efd, S., Dupressoir, F., Fouque, P.-A., Gr\u00e9goire, B., Strub, P.-Y.: Verified proofs of higher-order masking. In: Oswald, E., Fischlin, M. (eds.) EUROCRYPT 2015. LNCS, vol. 9056, pp. 457\u2013485. Springer, Heidelberg (2015). https:\/\/doi.org\/10.1007\/978-3-662-46800-5_18"},{"key":"8_CR2","doi-asserted-by":"publisher","unstructured":"Bravenboer, M., Smaragdakis, Y.: Strictly declarative specification of sophisticated points-to analyses. In: Proceedings of the 24th ACM SIGPLAN Conference on Object Oriented Programming Systems Languages and Applications, pp. 243\u2013262 (2009). https:\/\/doi.org\/10.1145\/1639949.1640108","DOI":"10.1145\/1639949.1640108"},{"key":"8_CR3","doi-asserted-by":"publisher","unstructured":"Bryant, R.E.: Binary decision diagrams. In: Handbook of model checking, pp. 191\u2013217. Springer (2018). https:\/\/doi.org\/10.1007\/978-3-319-10575-8_7","DOI":"10.1007\/978-3-319-10575-8_7"},{"key":"8_CR4","doi-asserted-by":"publisher","unstructured":"Chen, J., Feng, Y., Dillig, I.: Precise detection of side-channel vulnerabilities using quantitative cartesian hoare logic. In: Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, pp. 875\u2013890. CCS \u201917, Association for Computing Machinery, New York, NY, USA (2017). https:\/\/doi.org\/10.1145\/3133956.3134058","DOI":"10.1145\/3133956.3134058"},{"key":"8_CR5","doi-asserted-by":"publisher","unstructured":"Cheng, C., Luo, Y., Jiang, J.H.R.: Knowledge compilation for incremental and checkable stochastic Boolean satisfiability. In: Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, pp. 1862\u20131872. (2024). https:\/\/doi.org\/10.24963\/ijcai.2024\/206","DOI":"10.24963\/ijcai.2024\/206"},{"key":"8_CR6","doi-asserted-by":"publisher","unstructured":"Coron, J.S., Prouff, E., Rivain, M., Roche, T.: Higher-order side channel security and mask refreshing. In: International Workshop on Fast Software Encryption, pp. 410\u2013424. Springer (2013). https:\/\/doi.org\/10.1007\/978-3-662-43933-3_21","DOI":"10.1007\/978-3-662-43933-3_21"},{"key":"8_CR7","unstructured":"De\u00a0Raedt, L., Kimmig, A., Toivonen, H.: Problog: A probabilistic prolog and its application in link discovery. In: IJCAI 2007, Proceedings of the 20th International Joint Conference on Artificial Intelligence. pp. 2462\u20132467. IJCAI-INT JOINT CONF ARTIF INTELL (2007). https:\/\/dl.acm.org\/doi\/10.5555\/1625275.1625673"},{"issue":"3","key":"8_CR8","doi-asserted-by":"publisher","first-page":"358","DOI":"10.1017\/S1471068414000076","volume":"15","author":"D Fierens","year":"2015","unstructured":"Fierens, D., et al.: Inference and learning in probabilistic logic programs using weighted Boolean formulas. Theory Pract. Logic Program. 15(3), 358\u2013401 (2015). https:\/\/doi.org\/10.1017\/S1471068414000076","journal-title":"Theory Pract. Logic Program."},{"issue":"2","key":"8_CR9","doi-asserted-by":"publisher","first-page":"157","DOI":"10.1145\/170036.170066","volume":"22","author":"A Gupta","year":"1993","unstructured":"Gupta, A., Mumick, I.S., Subrahmanian, V.S.: Maintaining views incrementally. ACM SIGMOD Rec. 22(2), 157\u2013166 (1993). https:\/\/doi.org\/10.1145\/170036.170066","journal-title":"ACM SIGMOD Rec."},{"key":"8_CR10","doi-asserted-by":"publisher","unstructured":"Heo, K., Raghothaman, M., Si, X., Naik, M.: Continuously reasoning about programs using differential Bayesian inference. In: Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 561\u2013575 (2019). https:\/\/doi.org\/10.1145\/3314221.3314616","DOI":"10.1145\/3314221.3314616"},{"key":"8_CR11","doi-asserted-by":"publisher","unstructured":"Kusano, M., Wang, C.: Flow-sensitive composition of thread-modular abstract interpretation. In: Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 799\u2013809 (2016).https:\/\/doi.org\/10.1145\/2950290.2950291","DOI":"10.1145\/2950290.2950291"},{"key":"8_CR12","doi-asserted-by":"publisher","unstructured":"Kusano, M., Wang, C.: Thread-modular static analysis for relaxed memory models. In: Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering, pp. 337\u2013348 (2017). https:\/\/doi.org\/10.1145\/3106237.3106243","DOI":"10.1145\/3106237.3106243"},{"key":"8_CR13","doi-asserted-by":"publisher","unstructured":"Lagniez, J.M., Marquis, P.: An improved decision-DNNF compiler. In: IJCAI 17, 667\u2013673 (2017). https:\/\/doi.org\/10.24963\/ijcai.2017\/93","DOI":"10.24963\/ijcai.2017\/93"},{"key":"8_CR14","doi-asserted-by":"publisher","unstructured":"Lai, Y., Meel, K.S., Yap, R.H.: The power of literal equivalence in model counting. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, pp. 3851\u20133859. (2021). https:\/\/doi.org\/10.1609\/aaai.v35i5.16503","DOI":"10.1609\/aaai.v35i5.16503"},{"key":"8_CR15","doi-asserted-by":"publisher","unstructured":"Lai, Y., Meel, K.S., Yap, R.H.: Panini: an efficient and flexible knowledge compiler. In: International Conference on Computer Aided Verification, pp. 92\u2013105. Springer (2025). https:\/\/doi.org\/10.1007\/978-3-031-98682-6_6","DOI":"10.1007\/978-3-031-98682-6_6"},{"key":"8_CR16","doi-asserted-by":"publisher","unstructured":"Li, T., Zhang, X.: Combining formal and informal information in Bayesian program analysis via soft evidences. Proc. ACM Programm. Lang. 9(OOPSLA1), 1774\u20131801 (2025) https:\/\/doi.org\/10.1145\/3720508","DOI":"10.1145\/3720508"},{"key":"8_CR17","doi-asserted-by":"publisher","unstructured":"Li, Z., Huang, J., Naik, M.: Scallop: A language for neurosymbolic programming. Proc. ACM Programm. Lang. 7(PLDI), 1463\u20131487 (2023). https:\/\/doi.org\/10.1145\/3591280","DOI":"10.1145\/3591280"},{"key":"8_CR18","doi-asserted-by":"crossref","unstructured":"Lloyd, J.W.: Foundations of Logic Programming. Springer-Verlag, Berlin, Heidelberg, 2nd, extended edn. (1987)","DOI":"10.1007\/978-3-642-83189-8"},{"issue":"6","key":"8_CR19","doi-asserted-by":"publisher","first-page":"194","DOI":"10.1145\/2908080.2908096","volume":"51","author":"M Madsen","year":"2016","unstructured":"Madsen, M., Yee, M.H., Lhot\u00e1k, O.: From Datalog to flix: a declarative language for fixed points on lattices. ACM SIGPLAN Notices 51(6), 194\u2013208 (2016). https:\/\/doi.org\/10.1145\/2908080.2908096","journal-title":"ACM SIGPLAN Notices"},{"key":"8_CR20","doi-asserted-by":"publisher","unstructured":"Naik, M., Aiken, A., Whaley, J.: Effective static race detection for java. In: Proceedings of the 27th ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 308\u2013319 (2006). https:\/\/doi.org\/10.1145\/1133981.1134018","DOI":"10.1145\/1133981.1134018"},{"key":"8_CR21","doi-asserted-by":"publisher","unstructured":"Przymusinski, T.C.: On the declarative semantics of deductive databases and logic programs. In: Foundations of deductive databases and logic programming, pp. 193\u2013216. Elsevier (1988). https:\/\/doi.org\/10.1016\/B978-0-934613-40-8.50009-9","DOI":"10.1016\/B978-0-934613-40-8.50009-9"},{"key":"8_CR22","doi-asserted-by":"publisher","unstructured":"Raghothaman, M., Kulkarni, S., Heo, K., Naik, M.: User-guided program reasoning using Bayesian inference. In: Proceedings of the 39th ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 722\u2013735 (2018). https:\/\/doi.org\/10.1145\/3192366.3192417","DOI":"10.1145\/3192366.3192417"},{"key":"8_CR23","doi-asserted-by":"publisher","unstructured":"Rivain, M., Prouff, E.: Provably secure higher-order masking of AES. In: International Workshop on Cryptographic Hardware and Embedded Systems, pp. 413\u2013427. Springer (2010). https:\/\/doi.org\/10.1007\/978-3-642-15031-9_28","DOI":"10.1007\/978-3-642-15031-9_28"},{"key":"8_CR24","doi-asserted-by":"publisher","unstructured":"Saha, S., Ghentiyala, S., Lu, S., Bang, L., Bultan, T.: Obtaining information leakage bounds via approximate model counting. Proc. ACM Program. Lang. 7(PLDI) (Jun 2023). https:\/\/doi.org\/10.1145\/3591281","DOI":"10.1145\/3591281"},{"key":"8_CR25","doi-asserted-by":"publisher","unstructured":"Scholz, B., Jordan, H., Suboti\u0107, P., Westmann, T.: On fast large-scale program analysis in Datalog. In: Proceedings of the 25th International Conference on Compiler Construction, pp. 196\u2013206. CC \u201916, Association for Computing Machinery, New York, NY, USA (2016). https:\/\/doi.org\/10.1145\/2892208.2892226","DOI":"10.1145\/2892208.2892226"},{"key":"8_CR26","doi-asserted-by":"publisher","unstructured":"Smaragdakis, Y., Kastrinis, G., Balatsouras, G.: Introspective analysis: context-sensitivity, across the board. In: Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 485\u2013495 (2014). https:\/\/doi.org\/10.1145\/2594291.2594320","DOI":"10.1145\/2594291.2594320"},{"key":"8_CR27","unstructured":"Somenzi, F.: CUDD: CU decision diagram package, release 3.0.0. Software library (2015). https:\/\/github.com\/cuddorg\/cudd"},{"key":"8_CR28","unstructured":"Sundermann, C., Raab, H., He, T., Th\u00fcm, T., Schaefer, I.: Exploiting d-dnnfs for repetitive counting queries on feature models (2023). arXiv:2303.12383 arXiv preprint"},{"key":"8_CR29","doi-asserted-by":"publisher","unstructured":"Sung, C., Lahiri, S.K., Enea, C., Wang, C.: Datalog-based scalable semantic diffing of concurrent programs. In: Proceedings of the 33rd ACM\/IEEE International Conference on Automated Software Engineering, pp. 656\u2013666. ASE 2018, ACM, New York, NY, USA (2018). https:\/\/doi.org\/10.1145\/3238147.3238211","DOI":"10.1145\/3238147.3238211"},{"key":"8_CR30","doi-asserted-by":"publisher","unstructured":"Szab\u00f3, T., Bergmann, G., Erdweg, S., Voelter, M.: Incrementalizing lattice-based program analyses in datalog. Proc. ACM Programm. Lang. 2(OOPSLA), 1\u201329 (2018). https:\/\/doi.org\/10.1145\/3276509","DOI":"10.1145\/3276509"},{"key":"8_CR31","doi-asserted-by":"publisher","unstructured":"Szab\u00f3, T., Erdweg, S., Bergmann, G.: Incremental whole-program analysis in Datalog with lattices. In: Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation, pp. 1\u201315. (2021). https:\/\/doi.org\/10.1145\/3453483.3454026","DOI":"10.1145\/3453483.3454026"},{"key":"8_CR32","doi-asserted-by":"publisher","unstructured":"Szab\u00f3, T., Erdweg, S., Voelter, M.: Inca: a DSL for the definition of incremental program analyses. In: Proceedings of the 31st IEEE\/ACM International Conference on Automated Software Engineering, pp. 320\u2013331 (2016). https:\/\/doi.org\/10.1145\/2970276.2970298","DOI":"10.1145\/2970276.2970298"},{"key":"8_CR33","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"140","DOI":"10.1007\/978-3-030-25540-4_8","volume-title":"Computer Aided Verification","author":"S Tizpaz-Niari","year":"2019","unstructured":"Tizpaz-Niari, S., \u010cern\u00fd, P., Trivedi, A.: Quantitative mitigation of timing side channels. In: Dillig, I., Tasiran, S. (eds.) CAV 2019. LNCS, vol. 11561, pp. 140\u2013160. Springer, Cham (2019). https:\/\/doi.org\/10.1007\/978-3-030-25540-4_8"},{"issue":"OOPSLA2","key":"8_CR34","doi-asserted-by":"publisher","first-page":"220","DOI":"10.1145\/3763058","volume":"9","author":"J Wang","year":"2025","unstructured":"Wang, J., Halalingaiah, S., Chen, W., Wang, C., Dillig, I.: Probabilistic inference for Datalog with correlated inputs. Proc. ACM Programm. Lang. 9(OOPSLA2), 220\u2013247 (2025). https:\/\/doi.org\/10.1145\/3763058","journal-title":"Proc. ACM Programm. Lang."},{"key":"8_CR35","doi-asserted-by":"publisher","unstructured":"Wang, J., Sung, C., Raghothaman, M., Wang, C.: Data-driven synthesis of provably sound side channel analyses. In: 2021 IEEE\/ACM 43rd International Conference on Software Engineering (ICSE), pp. 810\u2013822 IEEE (2021). https:\/\/doi.org\/10.1109\/ICSE43902.2021.00079","DOI":"10.1109\/ICSE43902.2021.00079"},{"key":"8_CR36","doi-asserted-by":"publisher","unstructured":"Wang, J., Sung, C., Wang, C.: Mitigating power side channels during compilation. In: Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp. 590\u2013601 (2019). https:\/\/doi.org\/10.1145\/3338906.3338913","DOI":"10.1145\/3338906.3338913"},{"key":"8_CR37","doi-asserted-by":"publisher","unstructured":"Whaley, J., Avots, D., Carbin, M., Lam, M.S.: Using Datalog with binary decision diagrams for program analysis. In: Asian Symposium on Programming Languages and Systems, pp. 97\u2013118. Springer (2005). https:\/\/doi.org\/10.1007\/11575467_8","DOI":"10.1007\/11575467_8"},{"key":"8_CR38","doi-asserted-by":"publisher","unstructured":"Yang, S., Meel, K.S.: Towards projected and incremental pseudo-Boolean model counting. In: Proceedings of the AAAI Conference on Artificial Intelligence. vol.\u00a039, pp. 11399\u201311407 (2025). https:\/\/doi.org\/10.1609\/aaai.v39i11.33240","DOI":"10.1609\/aaai.v39i11.33240"},{"key":"8_CR39","doi-asserted-by":"publisher","unstructured":"Zhang, X., Grigore, R., Si, X., Naik, M.: Effective interactive resolution of static analysis alarms. Proc. ACM Programm. Lang. 1(OOPSLA) , 1\u201330 (2017). https:\/\/doi.org\/10.1145\/3133881","DOI":"10.1145\/3133881"},{"key":"8_CR40","doi-asserted-by":"publisher","unstructured":"Zhang, X., Mangal, R., Grigore, R., Naik, M., Yang, H.: On abstraction refinement for program analyses in Datalog. In: Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 239\u2013248 (2014). https:\/\/doi.org\/10.1145\/2594291.2594327","DOI":"10.1145\/2594291.2594327"},{"key":"8_CR41","doi-asserted-by":"publisher","unstructured":"Zhao, D., Subotic, P., Raghothaman, M., Scholz, B.: Towards elastic incrementalization for Datalog. In: Proceedings of the 23rd International Symposium on Principles and Practice of Declarative Programming, pp. 1\u201316 (2021). https:\/\/doi.org\/10.1145\/3479394.3479415","DOI":"10.1145\/3479394.3479415"}],"container-title":["Lecture Notes in Computer Science","Computer Aided Verification"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-032-32537-2_8","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,23]],"date-time":"2026-07-23T08:43:45Z","timestamp":1784796225000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-032-32537-2_8"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026]]},"ISBN":["9783032325365","9783032325372"],"references-count":41,"URL":"https:\/\/doi.org\/10.1007\/978-3-032-32537-2_8","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-032-32537-2","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026]]},"assertion":[{"value":"24 July 2026","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"The authors have no competing interests to declare that are relevant to the content of this article.","order":1,"name":"Ethics","label":"Disclosure of Interests","group":{"name":"EthicsHeading","label":"Ethics"}},{"value":"CAV","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Conference on Computer Aided Verification","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Lisbon","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Portugal","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2026","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"26 July 2026","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"29 July 2026","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"38","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"cav2026","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/www.floc26.org\/program","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}