{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,15]],"date-time":"2026-09-15T01:20:26Z","timestamp":1789435226989,"version":"build-2803163510"},"reference-count":52,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2026,5,14]],"date-time":"2026-05-14T00:00:00Z","timestamp":1778716800000},"content-version":"vor","delay-in-days":2,"URL":"http:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["IIS-2348919"],"award-info":[{"award-number":["IIS-2348919"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000038","name":"Natural Sciences and Engineering Research Council of Canada","doi-asserted-by":"publisher","award":["Discovery"],"award-info":[{"award-number":["Discovery"]}],"id":[{"id":"10.13039\/501100000038","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2026,5,12]]},"abstract":"<jats:p>\n                    Subset sampling (also known as Poisson sampling), where the decision to include any specific element in the sample is made independently of all others, is a fundamental primitive in data analytics, enabling efficient approximation by processing representative subsets rather than massive datasets. While sampling from explicit lists is well-understood, modern applications-such as machine learning over relational data--often require sampling from a set defined implicitly by a relational join. In this paper, we study the problem of\n                    <jats:italic toggle=\"yes\">subset sampling over joins<\/jats:italic>\n                    : drawing a random subset from the join results, where each join result is included independently with some probability. We address the general setting where the probability is derived from input tuple weights via decomposable functions (e.g., product, sum, min, max). Since the join size can be exponentially larger than the input, the naive approach of materializing all join results to perform subset sampling is computationally infeasible. We propose the first efficient algorithms for subset sampling over acyclic joins: (1) a\n                    <jats:italic toggle=\"yes\">static index<\/jats:italic>\n                    for generating multiple (independent) subset samples over joins; (2) a\n                    <jats:italic toggle=\"yes\">one-shot<\/jats:italic>\n                    algorithm for generating a single subset sample over joins; (3) a\n                    <jats:italic toggle=\"yes\">dynamic index<\/jats:italic>\n                    that can support tuple insertions, while maintaining a one-shot sample or generating multiple (independent) samples. Our techniques achieve near-optimal time and space complexity with respect to the input size and the expected sample size.\n                  <\/jats:p>","DOI":"10.1145\/3801913","type":"journal-article","created":{"date-parts":[[2026,5,14]],"date-time":"2026-05-14T12:50:22Z","timestamp":1778763022000},"page":"1-26","source":"Crossref","is-referenced-by-count":2,"title":["Subset Sampling over Joins"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-3798-9578","authenticated-orcid":false,"given":"Aryan","family":"Esmailpour","sequence":"first","affiliation":[{"name":"University of Illinois Chicago, Chicago, IL, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7890-665X","authenticated-orcid":false,"given":"Xiao","family":"Hu","sequence":"additional","affiliation":[{"name":"University of Waterloo, Waterloo, Canada"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-2902-259X","authenticated-orcid":false,"given":"Jinchao","family":"Huang","sequence":"additional","affiliation":[{"name":"The Chinese University of Hong Kong, Hong Kong, Hong Kong"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2114-8886","authenticated-orcid":false,"given":"Stavros","family":"Sintos","sequence":"additional","affiliation":[{"name":"University of Illinois Chicago, Chicago, IL, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,5,14]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.5555\/551350"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611976489.8"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3695835"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/3695833"},{"issue":"4","key":"e_1_2_1_5_1","first-page":"1737","volume":"42","author":"Atserias A.","year":"2013","unstructured":"A. Atserias, M. Grohe, and D. Marx. Size Bounds and Query Plans for Relational Joins. SIAM J. of Comp., 42(4): 1737-1767, 2013.","journal-title":"Size Bounds and Query Plans for Relational Joins. SIAM J. of Comp."},{"key":"e_1_2_1_6_1","volume-title":"Practical coreset constructions for machine learning. arXiv preprint arXiv:1703.06476","author":"Bachem O.","year":"2017","unstructured":"O. Bachem, M. Lucic, and A. Krause. Practical coreset constructions for machine learning. arXiv preprint arXiv:1703.06476, 2017."},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the ACM on Management of Data, 4(2)","author":"Bekkers L.","year":"2026","unstructured":"L. Bekkers, F. Neven, L. Pantelis, and S. Vansummeren. Poisson sampling over acyclic joins. Proceedings of the ACM on Management of Data, 4(2), 2026."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/3034786.3034789"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3618260.3649648"},{"key":"e_1_2_1_10_1","volume-title":"The computational complexity of algebraic and numeric problems","author":"Borodin A.","year":"1975","unstructured":"A. Borodin and J. I. Munro. The computational complexity of algebraic and numeric problems, volume 1. Elsevier, 1975."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31594-7_12"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3375395.3387662"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/3578517"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/304182.304206"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.52202\/068431-0032"},{"key":"e_1_2_1_16_1","unstructured":"Y. Chen and K. Yi. Random Sampling and Size Estimation Over Cyclic Joins. In C. Lutz and J. C. Jung editors 23rd International Conference on Database Theory (ICDT 2020) volume 155 of Leibniz International Proceedings in Informatics (LIPIcs) pages 7:1-7:18 Dagstuhl Germany 2020. Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik. ISBN 978-3-95977-139-9."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2019.00145"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE51399.2021.00103"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1090\/S0025-5718-1965-0178586-1"},{"key":"e_1_2_1_20_1","volume-title":"Introduction to algorithms","author":"Cormen T. H.","year":"2022","unstructured":"T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein. Introduction to algorithms. MIT press, 2022."},{"issue":"1","key":"e_1_2_1_21_1","first-page":"1","article-title":"Synopses for massive data: Samples, histograms, wavelets, sketches","volume":"4","author":"Cormode G.","year":"2012","unstructured":"G. Cormode, M. Garofalakis, P. J. Haas, and C. Jermaine. Synopses for massive data: Samples, histograms, wavelets, sketches. Foundations and Trends\u00ae in Databases, 4(1-3):1-294, 2012.","journal-title":"Foundations and Trends\u00ae in Databases"},{"key":"e_1_2_1_22_1","first-page":"2742","volume-title":"International Conference on Artificial Intelligence and Statistics","author":"Curtin R.","year":"2020","unstructured":"R. Curtin, B. Moseley, H. Ngo, X. Nguyen, D. Olteanu, and M. Schleich. Rk-means: Fast clustering for relational data. In International Conference on Artificial Intelligence and Statistics, pages 2742-2752. PMLR, 2020."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3654921"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3584372.3588666"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1314690.1314696"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3695831"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1993636.1993712"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3695827"},{"key":"e_1_2_1_29_1","volume-title":"Treewidth and hypertree width. Tractability: Practical Approaches to Hard Problems, 1:20","author":"Gottlob G.","year":"2014","unstructured":"G. Gottlob, G. Greco, F. Scarcello, et al. Treewidth and hypertree width. Tractability: Practical Approaches to Hard Problems, 1:20, 2014."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/304182.304208"},{"key":"e_1_2_1_31_1","volume-title":"Subset Sampling and Its Extensions. arXiv preprint arXiv:2003.01075","author":"Huang J.","year":"2023","unstructured":"J. Huang and S. Wang. Subset Sampling and Its Extensions. arXiv preprint arXiv:2003.01075, 2023."},{"key":"e_1_2_1_32_1","first-page":"520","volume-title":"SIGKDD","author":"Huang J.","year":"2025","unstructured":"J. Huang and S. Wang. Dips: Optimal dynamic index for poisson \u03c0ps sampling. In SIGKDD, pages 520-531, 2025."},{"key":"e_1_2_1_33_1","volume-title":"ICDT","author":"Huang J.","year":"2026","unstructured":"J. Huang, Y. Tao, and S. Wang. Acyclic join sampling under selections: Dichotomy, union sampling, and enumeration. In ICDT, 2026."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-023-00817-w"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3209889.3209896"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3584372.3588676"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/2723372.2723713"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2882903.2915235"},{"key":"e_1_2_1_39_1","volume-title":"Tractable hypergraph properties for constraint satisfaction and conjunctive queries. Journal of the ACM (JACM), 60(6):1-51","author":"Marx D.","year":"2013","unstructured":"D. Marx. Tractable hypergraph properties for constraint satisfaction and conjunctive queries. Journal of the ACM (JACM), 60(6):1-51, 2013."},{"key":"e_1_2_1_40_1","first-page":"21","article-title":"Diversity of answers to conjunctive queries","author":"Merkl T. C.","year":"2025","unstructured":"T. C. Merkl, R. Pichler, and S. Skritek. Diversity of answers to conjunctive queries. Logical Methods in Computer Science, 21, 2025.","journal-title":"Logical Methods in Computer Science"},{"key":"e_1_2_1_41_1","volume-title":"International Colloquium on Automata, Languages, and Programming","author":"Moseley B.","year":"2021","unstructured":"B. Moseley, K. Pruhs, A. Samadian, and Y. Wang. Relational algorithms for k-means clustering. In International Colloquium on Automata, Languages, and Programming, 2021."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511814075"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/3196959.3196990"},{"key":"e_1_2_1_44_1","unstructured":"F. Olken. Random sampling from databases. PhD thesis University of California Berkeley 1993."},{"key":"e_1_2_1_45_1","volume-title":"Computational geometry. texts and monographs in computer science","author":"Preparata F. P.","year":"1985","unstructured":"F. P. Preparata and M. I. Shamos. Computational geometry. texts and monographs in computer science. Berlin, Springer-Verlag, 1985."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/2882903.2882939"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-35514-2_32"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3767712"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE48307.2020.00129"},{"key":"e_1_2_1_50_1","first-page":"82","volume-title":"Proceedings of the Seventh International Conference on Very Large Data Bases -","volume":"7","author":"Yannakakis M.","year":"1981","unstructured":"M. Yannakakis. Algorithms for acyclic database schemes. In Proceedings of the Seventh International Conference on Very Large Data Bases - Volume 7, VLDB '81, page 82-94. VLDB Endowment, 1981."},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/3580305.3599458"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3183739"}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3801913","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3801913","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,14]],"date-time":"2026-05-14T12:51:13Z","timestamp":1778763073000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3801913"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,12]]},"references-count":52,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2026,5,12]]}},"alternative-id":["10.1145\/3801913"],"URL":"https:\/\/doi.org\/10.1145\/3801913","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,5,12]]}}}