{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,5,13]],"date-time":"2025-05-13T22:00:49Z","timestamp":1747173649409,"version":"3.40.5"},"reference-count":29,"publisher":"Cambridge University Press (CUP)","issue":"5-6","license":[{"start":{"date-parts":[[2019,9,20]],"date-time":"2019-09-20T00:00:00Z","timestamp":1568937600000},"content-version":"unspecified","delay-in-days":19,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Theory and Practice of Logic Programming"],"published-print":{"date-parts":[[2019,9]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>A large class of traditional graph and data mining algorithms can be concisely expressed in Datalog, and other Logic-based languages, once aggregates are allowed in recursion. In fact, for most BigData algorithms, the difficult semantic issues raised by the use of non-monotonic aggregates in recursion are solved by<jats:italic>Pre-Mappability<\/jats:italic>(<jats:inline-formula><jats:alternatives><jats:graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" orientation=\"portrait\" mime-subtype=\"gif\" mimetype=\"image\" position=\"float\" xlink:type=\"simple\" xlink:href=\"S1471068419000358_inline1\"\/><jats:tex-math>${\\cal P}$<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula><jats:italic>reM<\/jats:italic>), a property that assures that for a program with aggregates in recursion there is an equivalent aggregate-stratified program. In this paper we show that, by bringing together the formal abstract semantics of stratified programs with the efficient operational one of unstratified programs,<jats:inline-formula><jats:alternatives><jats:graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" orientation=\"portrait\" mime-subtype=\"gif\" mimetype=\"image\" position=\"float\" xlink:type=\"simple\" xlink:href=\"S1471068419000358_inline2\"\/><jats:tex-math>$\\[{\\cal P}\\]$<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula><jats:italic>reM<\/jats:italic>can also facilitate and improve their parallel execution. We prove that<jats:inline-formula><jats:alternatives><jats:graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" orientation=\"portrait\" mime-subtype=\"gif\" mimetype=\"image\" position=\"float\" xlink:type=\"simple\" xlink:href=\"S1471068419000358_inline3\"\/><jats:tex-math>$\\[{\\cal P}\\]$<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula><jats:italic>reM<\/jats:italic>-optimized lock-free and decomposable parallel semi-naive evaluations produce the same results as the single executor programs. Therefore,<jats:inline-formula><jats:alternatives><jats:graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" orientation=\"portrait\" mime-subtype=\"gif\" mimetype=\"image\" position=\"float\" xlink:type=\"simple\" xlink:href=\"S1471068419000358_inline4\"\/><jats:tex-math>$\\[{\\cal P}\\]$<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula><jats:italic>reM<\/jats:italic>can be assimilated into the data-parallel computation plans of different distributed systems, irrespective of whether these follow bulk synchronous parallel (BSP) or asynchronous computing models. In addition, we show that non-linear recursive queries can be evaluated using a hybrid stale synchronous parallel (SSP) model on distributed environments. After providing a formal correctness proof for the recursive query evaluation with<jats:inline-formula><jats:alternatives><jats:graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" orientation=\"portrait\" mime-subtype=\"gif\" mimetype=\"image\" position=\"float\" xlink:type=\"simple\" xlink:href=\"S1471068419000358_inline5\"\/><jats:tex-math>$\\[{\\cal P}\\]$<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula><jats:italic>reM<\/jats:italic>under this relaxed synchronization model, we present experimental evidence of its benefits.<\/jats:p>","DOI":"10.1017\/s1471068419000358","type":"journal-article","created":{"date-parts":[[2019,9,20]],"date-time":"2019-09-20T09:06:21Z","timestamp":1568970381000},"page":"1056-1072","source":"Crossref","is-referenced-by-count":4,"title":["A Case for Stale Synchronous Distributed Model for Declarative Recursive Computation"],"prefix":"10.1017","volume":"19","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0950-606X","authenticated-orcid":false,"given":"ARIYAM","family":"DAS","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"CARLO","family":"ZANIOLO","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"56","published-online":{"date-parts":[[2019,9,20]]},"reference":[{"key":"S1471068419000358_ref16","doi-asserted-by":"crossref","first-page":"874","DOI":"10.1017\/S147106841800042X","article-title":"A datalog-based computational model for coordination-free, data-parallel systems","volume":"18","author":"Interlandi","year":"2018","journal-title":"Theory and Practice of Logic Programming"},{"key":"S1471068419000358_ref23","doi-asserted-by":"crossref","first-page":"1135","DOI":"10.1145\/2882903.2915229","volume-title":"SIGMOD","author":"Shkapsky","year":"2016"},{"key":"S1471068419000358_ref12","unstructured":"Das, A. and Zaniolo, C. 2019. A case for stale synchronous distributed model for declarative recursive computation. CoRR abs\/1907.10278."},{"key":"S1471068419000358_ref4","doi-asserted-by":"crossref","first-page":"15:1","DOI":"10.1145\/2450142.2450151","article-title":"Relational transducers for declarative networking","volume":"60","author":"Ameloot","year":"2013","journal-title":"J. ACM"},{"key":"S1471068419000358_ref1","doi-asserted-by":"publisher","DOI":"10.1145\/2694413.2694415"},{"key":"S1471068419000358_ref10","unstructured":"Cui, H. , Cipar, J. , Ho, Q. , Kim, J. K. , Lee, S. , Kumar, A. , Wei, J. , Dai, W. , Ganger, G. R. , Gibbons, P. B. , Gibson, G. A. , and Xing, E. P. 2014. Exploiting bounded staleness to speed up big data analytics. In USENIX ATC. 37\u201348."},{"key":"S1471068419000358_ref18","unstructured":"Lee, S. , Kim, J. K. , Zheng, X. , Ho, Q. , Gibson, G. A. , and Xing, E. P. 2014. On model parallelization and scheduling strategies for distributed machine learning. In NIPS. 2834\u20132842."},{"key":"S1471068419000358_ref8","unstructured":"Cipar, J. , Ho, Q. , Kim, J. K. , Lee, S. , Ganger, G. R. , Gibson, G. , Keeton, K. , and Xing, E. 2013. Solving the straggler problem with bounded staleness. In Proceedings of the 14th USENIX Conference on Hot Topics in Operating Systems. HotOS\u201913. 22\u201322."},{"key":"S1471068419000358_ref25","doi-asserted-by":"crossref","unstructured":"Yan, D. , Cheng, J. , Lu, Y. , and Ng, W. 2015. Effective techniques for message reduction and load balancing in distributed graph computation. In WWW. 1307\u20131317.","DOI":"10.1145\/2736277.2741096"},{"key":"S1471068419000358_ref28","first-page":"1048","article-title":"Fixpoint semantics and optimization of recursive Datalog programs with aggregates","volume":"17","author":"Zaniolo","year":"2017","journal-title":"TPLP"},{"key":"S1471068419000358_ref13","doi-asserted-by":"crossref","first-page":"101","DOI":"10.1016\/0743-1066(92)90048-8","article-title":"Parallel bottom-up processing of datalog queries","volume":"14","author":"Ganguly","year":"1992","journal-title":"J. Log. Program"},{"key":"S1471068419000358_ref19","doi-asserted-by":"crossref","first-page":"716","DOI":"10.14778\/2212351.2212354","article-title":"Distributed graphlab: A framework for machine learning and data mining in the cloud","volume":"5","author":"Low","year":"2012","journal-title":"Proc. VLDB Endow"},{"key":"S1471068419000358_ref3","doi-asserted-by":"crossref","first-page":"21:1","DOI":"10.1145\/2809784","article-title":"Weaker forms of monotonicity for declarative networking: A more fine-grained answer to the calm-conjecture","volume":"40","author":"Ameloot","year":"2015","journal-title":"ACM Trans. Database Syst"},{"key":"S1471068419000358_ref27","unstructured":"Zaniolo, C. , Yang, M. , Das, A. , and Interlandi, M. 2016. The magic of pushing extrema into recursion: Simple, powerful datalog programs. In AMW."},{"key":"S1471068419000358_ref17","unstructured":"Krevat, E. , Tucek, J. , and Ganger, G. R. 2011. Disks are like snowflakes: No two are alike. In Proceedings of the 13th USENIX Conference on Hot Topics in Operating Systems. HotOS\u201913. 14\u201314."},{"key":"S1471068419000358_ref2","doi-asserted-by":"crossref","first-page":"36:1","DOI":"10.1145\/3106412","article-title":"Parallel-correctness and transferability for conjunctive queries","volume":"64","author":"Ameloot","year":"2017","journal-title":"J. ACM"},{"key":"S1471068419000358_ref11","doi-asserted-by":"crossref","unstructured":"Das, A. , Gandhi, S. M. , and Zaniolo, C. 2018. Astro: A datalog system for advanced stream reasoning. In CIKM\u201918. 1863\u20131866.","DOI":"10.1145\/3269206.3269223"},{"key":"S1471068419000358_ref14","doi-asserted-by":"crossref","unstructured":"Gu, J. , Watanabe, Y. , Mazza, W. , Shkapsky, A. , Yang, M. , Ding, L. , and Zaniolo, C. 2019. Rasql: Greater power and performance for big data analytics with recursive-aggregate-sql on spark. In SIGMOD\u201919.","DOI":"10.1145\/3299869.3324959"},{"key":"S1471068419000358_ref29","unstructured":"Zaniolo, C. , Yang, M. , Interlandi, M. , Das, A. , Shkapsky, A. , and Condie, T. 2018. Declarative bigdata algorithms via aggregates and relational database dependencies. In AMW."},{"key":"S1471068419000358_ref5","unstructured":"Ananthanarayanan, G. , Kandula, S. , Greenberg, A. , Stoica, I. , Lu, Y. , Saha, B. , and Harris, E. 2010. Reining in the outliers in map-reduce clusters using mantri. In Proceedings of the 9th USENIX Conference on Operating Systems Design and Implementation. OSDI\u201910. 265\u2013278."},{"key":"S1471068419000358_ref6","doi-asserted-by":"crossref","unstructured":"Aref, M. , ten Cate, B. , Green, T. J. , Kimelfeld, B. , Olteanu, D. , Pasalic, E. , Veldhuizen, T. L. , and Washburn, G. 2015. Design and implementation of the logicblox system. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data. 1371\u20131382.","DOI":"10.1145\/2723372.2742796"},{"key":"S1471068419000358_ref7","doi-asserted-by":"crossref","unstructured":"Beckman, P. , Iskra, K. , Yoshii, K. , and Coghlan, S. 2006. The influence of operating systems on the performance of collective operations at extreme scale. In 2006 IEEE International Conference on Cluster Computing. 1\u201312.","DOI":"10.1109\/CLUSTR.2006.311846"},{"key":"S1471068419000358_ref9","first-page":"806","article-title":"Scaling-up reasoning and advanced analytics on bigdata","volume":"18","author":"Condie","year":"2018","journal-title":"TPLP"},{"key":"S1471068419000358_ref15","unstructured":"Ho, Q. , Cipar, J. , Cui, H. , Kim, J. K. , Lee, S. , Gibbons, P. B. , Gibson, G. A. , Ganger, G. R. , and Xing, E. P. 2013. More effective distributed ml via a stale synchronous parallel parameter server. In NIPS. 1223\u20131231."},{"key":"S1471068419000358_ref20","doi-asserted-by":"crossref","unstructured":"Malewicz, G. , Austern, M. H. , Bik, A. J. , Dehnert, J. C. , Horn, I. , Leiser, N. , and Czajkowski, G. 2010. Pregel: A system for large-scale graph processing. In SIGMOD\u201910. 135\u2013146.","DOI":"10.1145\/1807167.1807184"},{"key":"S1471068419000358_ref21","doi-asserted-by":"crossref","first-page":"471","DOI":"10.1007\/s00778-012-0299-1","article-title":"Extending the power of datalog recursion","volume":"4","author":"Mazuran","year":"2013","journal-title":"The VLDB Journal 22"},{"key":"S1471068419000358_ref22","doi-asserted-by":"crossref","first-page":"1906","DOI":"10.14778\/2556549.2556572","article-title":"Distributed socialite: A datalog-based language for large-scale graph analysis","volume":"6","author":"Seo","year":"2013","journal-title":"Proc. VLDB Endow"},{"key":"S1471068419000358_ref24","doi-asserted-by":"crossref","first-page":"1542","DOI":"10.14778\/2824032.2824052","article-title":"Asynchronous and fault-tolerant recursive datalog evaluation in shared-nothing engines","volume":"8","author":"Wang","year":"2015","journal-title":"Proc. VLDB Endow"},{"key":"S1471068419000358_ref26","doi-asserted-by":"crossref","first-page":"229","DOI":"10.1007\/s00778-016-0448-z","article-title":"Scaling up the performance of more powerful datalog systems on multicore machines","volume":"2","author":"Yang","year":"2017","journal-title":"VLDB J. 26"}],"container-title":["Theory and Practice of Logic Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S1471068419000358","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2019,12,7]],"date-time":"2019-12-07T12:22:03Z","timestamp":1575721323000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S1471068419000358\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,9]]},"references-count":29,"journal-issue":{"issue":"5-6","published-print":{"date-parts":[[2019,9]]}},"alternative-id":["S1471068419000358"],"URL":"https:\/\/doi.org\/10.1017\/s1471068419000358","relation":{},"ISSN":["1471-0684","1475-3081"],"issn-type":[{"type":"print","value":"1471-0684"},{"type":"electronic","value":"1475-3081"}],"subject":[],"published":{"date-parts":[[2019,9]]}}}