{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,31]],"date-time":"2026-03-31T19:49:44Z","timestamp":1774986584252,"version":"3.50.1"},"reference-count":59,"publisher":"Association for Computing Machinery (ACM)","issue":"3","funder":[{"DOI":"10.13039\/501100006374","name":"National Science Foundation","doi-asserted-by":"publisher","award":["2107050"],"award-info":[{"award-number":["2107050"]}],"id":[{"id":"10.13039\/501100006374","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2025,6,17]]},"abstract":"<jats:p>Combining query answering and data science workloads has become prevalent. An important class of such workloads is top-k queries with a scoring function implemented as an opaque UDF - a black box whose internal structure and scores on the search domain are unavailable. Some typical examples include costly calls to fuzzy classification and regression models. The models may also be changed in an ad-hoc manner. Since the algorithm does not know the scoring function's behavior on the input data, opaque top-k queries become expensive to evaluate exactly or speed up by indexing. Hence, we propose an approximation algorithm for opaque top-k query answering. Our proposed solution is a task-independent hierarchical index and a novel bandit algorithm. The index clusters elements by some cheap vector representation then builds a tree of the clusters. Our bandit is a diminishing returns submodular epsilon-greedy bandit algorithm that maximizes the sum of the solution set's scores. Our bandit models the distribution of scores in each arm using a histogram, then targets arms with fat tails. We prove that our bandit algorithm approaches a constant factor of the optimal algorithm. We evaluate our standalone library on large synthetic, image, and tabular datasets over a variety of scoring functions. Our method accelerates the time required to achieve nearly optimal scores by up to an order of magnitude compared to exhaustive scan while consistently outperforming baseline sampling algorithms.<\/jats:p>","DOI":"10.1145\/3725266","type":"journal-article","created":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T21:23:29Z","timestamp":1750281809000},"page":"1-25","source":"Crossref","is-referenced-by-count":2,"title":["Approximating Opaque Top-k Queries"],"prefix":"10.1145","volume":"3","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3945-925X","authenticated-orcid":false,"given":"Jiwon","family":"Chang","sequence":"first","affiliation":[{"name":"University of Rochester, Rochester, NY, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4710-8719","authenticated-orcid":false,"given":"Fatemeh","family":"Nargesian","sequence":"additional","affiliation":[{"name":"University of Rochester, Rochester, NY, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2025,6,18]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/2600057.2602844"},{"key":"e_1_2_2_2_1","volume-title":"Bohou Li, Mark Lindblad, Henry Lindeman, Alex Meyer, Parth Parmar, Tanvi Ranade, Mehul A Shah, et al.","author":"Anderson Eric","year":"2024","unstructured":"Eric Anderson, Jonathan Fritz, Austin Lee, Bohou Li, Mark Lindblad, Henry Lindeman, Alex Meyer, Parth Parmar, Tanvi Ranade, Mehul A Shah, et al., 2024. The Design of an LLM-powered Unstructured Analytics System. arXiv preprint arXiv:2409.00847, (2024)."},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2016.7498272"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-008-0127-9"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1287\/mnsc.2015.2254"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/6617.6621"},{"key":"e_1_2_2_7_1","unstructured":"Jeff Bilmes. 2022. Submodularity in machine learning and artificial intelligence. arXiv preprint arXiv:2202.00132 (2022)."},{"key":"e_1_2_2_8_1","first-page":"0","article-title":"Constrained k-means clustering","volume":"20","author":"Bradley Paul S","year":"2000","unstructured":"Paul S Bradley, Kristin P Bennett, and Ayhan Demiriz. 2000. Constrained k-means clustering. Microsoft Research, Redmond, Vol. 20, 0 (2000), 0.","journal-title":"Microsoft Research, Redmond"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2007.1011"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/1011767.1011798"},{"key":"e_1_2_2_11_1","unstructured":"CarGurus. [n.d.]. CarGurus. https:\/\/www.cargurus.com\/."},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1111\/j.1468-0262.2006.00705.x"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.14778\/3523210.3523223"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-024-00849-w"},{"key":"e_1_2_2_15_1","unstructured":"Lingjiao Chen Bilge Acun Newsha Ardalani Yifan Sun Feiyang Kang Hanrui Lyu Yongchan Kwon Ruoxi Jia Carole-Jean Wu Matei Zaharia et al. 2023. Data acquisition: A new frontier in data-centric AI. arXiv preprint arXiv:2311.13712 (2023)."},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2939672.2939785"},{"key":"e_1_2_2_17_1","volume-title":"Xingchen Wan, Bo Dai, Sherry Yang, Azade Nova, Pengcheng Yin, Phitchaya Mangpo Phothilimthana, Charles Sutton, and Dale Schuurmans.","author":"Dai Hanjun","year":"2024","unstructured":"Hanjun Dai, Bethany Yixin Wang, Xingchen Wan, Bo Dai, Sherry Yang, Azade Nova, Pengcheng Yin, Phitchaya Mangpo Phothilimthana, Charles Sutton, and Dale Schuurmans. 2024. UQE: A Query Engine for Unstructured Databases. arXiv preprint arXiv:2407.09522, (2024)."},{"key":"e_1_2_2_18_1","unstructured":"DataBricks. 2024. ai_query function. https:\/\/docs.databricks.com"},{"key":"e_1_2_2_19_1","volume-title":"A continual learning survey: Defying forgetting in classification tasks","author":"Lange Matthias De","year":"2021","unstructured":"Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ale\u0161 Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. 2021. A continual learning survey: Defying forgetting in classification tasks. IEEE transactions on pattern analysis and machine intelligence, Vol. 44, 7 (2021), 3366-3385."},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1327452.1327492"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-23088-2_10"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2009.5206848"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/2009916.2010048"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/237661.237715"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/375551.375567"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611540.3611574"},{"key":"e_1_2_2_27_1","volume-title":"Qmoe: Practical sub-1-bit compression of trillion-parameter models. arXiv preprint arXiv:2310.16795","author":"Frantar Elias","year":"2023","unstructured":"Elias Frantar and Dan Alistarh. 2023. Qmoe: Practical sub-1-bit compression of trillion-parameter models. arXiv preprint arXiv:2310.16795, (2023)."},{"key":"e_1_2_2_28_1","unstructured":"Vineet Goyal Salal Humair Orestis Papadigenopoulos and Assaf Zeevi. 2023. MNL-Prophet: sequential assortment selection under uncertainty. arXiv preprint arXiv:2308.05207 (2023)."},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.14778\/3489496.3489501"},{"key":"e_1_2_2_30_1","volume-title":"Conference on Innovative Data Systems Research (CIDR);(Online). 15","author":"Hagedorn Stefan","year":"2021","unstructured":"Stefan Hagedorn, Steffen Kl\u00e4be, and Kai-Uwe Sattler. 2021. Putting pandas in a box. In Conference on Innovative Data Systems Research (CIDR);(Online). 15."},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.14778\/3352063.3352096"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389766"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.14778\/3654621.3654639"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-18173-8_17"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457272"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1391729.1391730"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3650203.3663329"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/s41019-018-0074-4"},{"key":"e_1_2_2_39_1","unstructured":"Shu Liu Asim Biswal Audrey Cheng Xiangxi Mo Shiyi Cao Joseph E Gonzalez Ion Stoica and Matei Zaharia. 2024. Optimizing llm queries in relational workloads. arXiv preprint arXiv:2403.05821 (2024)."},{"key":"e_1_2_2_40_1","unstructured":"Ananay Mital. [n.d.]. US Used Cars Dataset. https:\/\/www.kaggle.com\/datasets\/ananaymital\/us-used-cars-dataset. Accessed: 2024--10--11."},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.14778\/3213880.3213890"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-024-00864-x"},{"key":"e_1_2_2_43_1","volume-title":"Lotus: Enabling semantic queries with llms over tables of unstructured and structured data. arXiv preprint arXiv:2407.11418","author":"Patel Liana","year":"2024","unstructured":"Liana Patel, Siddharth Jha, Carlos Guestrin, and Matei Zaharia. 2024. Lotus: Enabling semantic queries with llms over tables of unstructured and structured data. arXiv preprint arXiv:2407.11418, (2024)."},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/2009916.2010105"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1109\/DEXA.2012.21"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2009.109"},{"key":"e_1_2_2_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389728"},{"key":"e_1_2_2_48_1","volume-title":"International Conference on Machine Learning. PMLR, 351-359","author":"Soma Tasuku","year":"2014","unstructured":"Tasuku Soma, Naonori Kakimura, Kazuhiro Inaba, and Ken-ichi Kawarabayashi. 2014. Optimal budget allocation: Theoretical guarantee and efficient algorithm. In International Conference on Machine Learning. PMLR, 351-359."},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.5555\/3288898.3288960"},{"key":"e_1_2_2_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457244"},{"key":"e_1_2_2_51_1","unstructured":"Abirami Sukumaran. 2023. LLM with Vertex AI only using SQL queries in BigQuery. https:\/\/cloud.google.com\/blog\/products\/ai-machine-learning\/llm-with-vertex-ai-only-using-sql-queries-in-bigquery"},{"key":"e_1_2_2_52_1","volume-title":"International conference on machine learning. PMLR, 6105-6114","author":"Tan Mingxing","year":"2019","unstructured":"Mingxing Tan and Quoc Le. 2019. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning. PMLR, 6105-6114."},{"key":"e_1_2_2_53_1","doi-asserted-by":"publisher","DOI":"10.5555\/1316689.1316746"},{"key":"e_1_2_2_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-07443-6_10"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476249.3476255"},{"key":"e_1_2_2_56_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE48307.2020.00045"},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF02579435"},{"key":"e_1_2_2_58_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2016.7498307"},{"key":"e_1_2_2_59_1","volume-title":"Yanyan Shen, Yuncheng Wu, et al.","author":"Zhao Zhanhao","year":"2024","unstructured":"Zhanhao Zhao, Shaofeng Cai, Haotian Gao, Hexiang Pan, Siqi Xiang, Naili Xing, Gang Chen, Beng Chin Ooi, Yanyan Shen, Yuncheng Wu, et al., 2024. NeurDB: On the Design and Implementation of an AI-powered Autonomous Database. arXiv preprint arXiv:2408.03013, (2024)."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3725266","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,3,31]],"date-time":"2026-03-31T18:56:21Z","timestamp":1774983381000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3725266"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,17]]},"references-count":59,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2025,6,17]]}},"alternative-id":["10.1145\/3725266"],"URL":"https:\/\/doi.org\/10.1145\/3725266","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,17]]}}}