{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,20]],"date-time":"2026-11-20T20:00:58Z","timestamp":1795204858819,"version":"4.10.3"},"reference-count":70,"publisher":"Association for Computing Machinery (ACM)","issue":"1","funder":[{"name":"NSF &#x28;National Science Foundation&#x29;","award":["DGE-2243822"],"award-info":[{"award-number":["DGE-2243822"]}]},{"name":"NSF &#x28;National Science Foundation&#x29;","award":["IIS-2129008"],"award-info":[{"award-number":["IIS-2129008"]}]},{"name":"NSF &#x28;National Science Foundation&#x29;","award":["IIS-1940759"],"award-info":[{"award-number":["IIS-1940759"]}]},{"name":"NSF &#x28;National Science Foundation&#x29;","award":["IIS-1940757"],"award-info":[{"award-number":["IIS-1940757"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2026,4,2]]},"abstract":"<jats:p>Modern database systems allow users to query or process unstructured text or document columns using LLM-powered functions. Users can express an operation in natural language (e.g., ''identify if this review mentions billing issues''), with the system executing the operation on each document, in a row-by-row fashion. One way to reduce cost on a batch of documents is to employ the model cascade framework: a cheap proxy model processes each document, and only uncertain cases are escalated to a more accurate, expensive oracle. However, model cascades miss important optimization opportunities; for example, often only part of a document is needed to answer a query, or other related, but simpler operations (e.g., ''is the review sentiment negative?'', ''does the review mention money?'') can be handled by cheap models more effectively than the original operation, while still being correlated with it.<\/jats:p>\n                  <jats:p>We introduce the task cascades framework, which generalizes model cascades by varying not just the model, but also the document portion and operation at each stage. Our framework uses an LLM agent to generate simplified, decomposed, or otherwise related operations and selects the most relevant document portions, constructing hundreds of candidate tasks from which it assembles a task cascade. We show that optimal cascade selection is intractable via reduction from Minimum Sum Set Cover, but our iterative approach constructs effective cascades. We also provide an extension that offers statistical accuracy guarantees: the resulting cascade meets a user-defined accuracy target (with respect to the oracle) up to a bounded failure probability. Across eight real-world document processing tasks at a 90% target accuracy, task cascades reduce end-to-end cost by an average of 36% compared to model cascades, at a production scale.<\/jats:p>","DOI":"10.1145\/3786702","type":"journal-article","created":{"date-parts":[[2026,4,7]],"date-time":"2026-04-07T17:54:13Z","timestamp":1775584453000},"page":"1-26","source":"Crossref","is-referenced-by-count":1,"title":["Task Cascades for Efficient Unstructured Data Processing"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0919-9672","authenticated-orcid":false,"given":"Shreya","family":"Shankar","sequence":"first","affiliation":[{"name":"University of California Berkeley, Berkeley, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9789-7197","authenticated-orcid":false,"given":"Sepanta","family":"Zeighami","sequence":"additional","affiliation":[{"name":"University of California Berkeley, Berkeley, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4538-4752","authenticated-orcid":false,"given":"Aditya","family":"Parameswaran","sequence":"additional","affiliation":[{"name":"University of California Berkeley, Berkeley, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,7]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the Conference on Innovative Data Systems Research (CIDR). https:\/\/mail.vldb.org\/cidrdb\/papers\/2025\/p13-anderson.pdf","author":"Anderson Eric","year":"2025","unstructured":"Eric Anderson, Jonathan Fritz, Austin Lee, Bohou Li, Mark Lindblad, Henry Lindeman, Alex Meyer, Parth Parmar, Tanvi Ranade, Mehul A. Shah, Benjamin Sowell, Dan Tecuci, Vinayak Thapliyal, and Matt Welsh. 2025. The Design of an LLM-powered Unstructured Analytics System. In Proceedings of the Conference on Innovative Data Systems Research (CIDR). https:\/\/mail.vldb.org\/cidrdb\/papers\/2025\/p13-anderson.pdf"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2019.00132"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.14778\/3626292.3626294"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/3725337"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3517857"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2020.sigdial-1.8"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3035918.3056097"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/276305.276343"},{"key":"e_1_2_1_9_1","volume-title":"FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance. Transactions on Machine Learning Research","author":"Chen Lingjiao","year":"2024","unstructured":"Lingjiao Chen, Matei Zaharia, and James Zou. 2024. FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance. Transactions on Machine Learning Research (2024)."},{"key":"e_1_2_1_10_1","volume-title":"ARM: An Alignment-Oriented LLM-based Retrieval Method. In The 4th Table Representation Learning Workshop at ACL","author":"Chen Peter Baile","year":"2025","unstructured":"Peter Baile Chen, Yi Zhang, Mike Cafarella, and Dan Roth. [n.d.]. Can we Retrieve Everything All at Once? ARM: An Alignment-Oriented LLM-based Retrieval Method. In The 4th Table Representation Learning Workshop at ACL 2025."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/N18-2097"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2187836.2187931"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1060745.1060764"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2020.emnlp-main.21"},{"key":"e_1_2_1_15_1","volume-title":"Query rewriting via llms. arXiv preprint arXiv:2502.12918","author":"Dharwada Sriram","year":"2025","unstructured":"Sriram Dharwada, Himanshu Devrani, Jayant Haritsa, and Harish Doraiswamy. 2025. Query rewriting via llms. arXiv preprint arXiv:2502.12918 (2025)."},{"key":"e_1_2_1_16_1","unstructured":"Till D\u00f6hmen. 2024. Introducing the prompt() Function: Use the Power of LLMs with SQL! https:\/\/motherduck.com\/blog\/sql-llm-prompt-function-gpt-models\/. Accessed: 2025-06-22."},{"key":"e_1_2_1_17_1","doi-asserted-by":"crossref","unstructured":"Yu Fan Jingwei Ni Jakob Merane Etienne Salimbeni Yang Tian Yoan Hermstr\u00fcwer Yinya Huang Mubashara Akhtar Florian Geering Oliver Dreyer et al. 2025. LEXam: Benchmarking Legal Reasoning on 340 Law Exams. arXiv preprint arXiv:2505.12864 (2025).","DOI":"10.2139\/ssrn.5265144"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-004-1110-5"},{"key":"e_1_2_1_19_1","first-page":"645927","article-title":"Approximate Query Processing: Taming the TeraBytes","volume":"10","author":"Garofalakis Minos N","year":"2001","unstructured":"Minos N Garofalakis and Phillip B Gibbons. 2001. Approximate Query Processing: Taming the TeraBytes.. In VLDB, Vol. 10. 645927-672356.","journal-title":"VLDB"},{"key":"e_1_2_1_20_1","volume-title":"Perform intelligent SQL queries using AlloyDB AI query engine. https:\/\/cloud.google.com\/alloydb\/docs\/ai\/evaluate-semantic-queries-ai-operators. Accessed: 2025-06-22","author":"Cloud Google","year":"2025","unstructured":"Google Cloud. 2025. Perform intelligent SQL queries using AlloyDB AI query engine. https:\/\/cloud.google.com\/alloydb\/docs\/ai\/evaluate-semantic-queries-ai-operators. Accessed: 2025-06-22; Last updated: 2025-06-11."},{"key":"e_1_2_1_21_1","unstructured":"gqfiddler. 2022. SCOTUS Opinions. https:\/\/www.kaggle.com\/datasets\/gqfiddler\/scotus-opinions. Accessed: 2025-07-16."},{"key":"e_1_2_1_22_1","volume-title":"The Cascades Framework for Query Optimization","author":"Graefe Goetz","year":"1995","unstructured":"Goetz Graefe. 1995. The Cascades Framework for Query Optimization. IEEE Data(base) Engineering Bulletin, Vol. 18 (1995), 19-29. https:\/\/api.semanticscholar.org\/CorpusID:260706023"},{"key":"e_1_2_1_23_1","volume-title":"Language Model Cascades: Token-Level Uncertainty And Beyond. In The Twelfth International Conference on Learning Representations.","author":"Gupta Neha","unstructured":"Neha Gupta, Harikrishna Narasimhan, Wittawat Jitkrittum, Ankit Singh Rawat, Aditya Krishna Menon, and Sanjiv Kumar. [n.d.]. Language Model Cascades: Token-Level Uncertainty And Beyond. In The Twelfth International Conference on Learning Representations."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/170035.170078"},{"key":"e_1_2_1_25_1","volume-title":"CUAD: An Expert-Annotated NLP Dataset for Legal Contract Review. NeurIPS","author":"Hendrycks Dan","year":"2021","unstructured":"Dan Hendrycks, Collin Burns, Anya Chen, and Spencer Ball. 2021. CUAD: An Expert-Annotated NLP Dataset for Legal Contract Review. NeurIPS (2021)."},{"key":"e_1_2_1_26_1","volume-title":"ThriftLLM: On Cost-Effective Selection of Large Language Models for Classification Queries. arXiv preprint arXiv:2501.04901","author":"Huang Keke","year":"2025","unstructured":"Keke Huang, Yimin Shi, Dujian Ding, Yifei Li, Yang Fei, Laks Lakshmanan, and Xiaokui Xiao. 2025. ThriftLLM: On Cost-Effective Selection of Large Language Models for Classification Queries. arXiv preprint arXiv:2501.04901 (2025)."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.acl-long.792"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_a_00407"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3654989"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3725356"},{"key":"e_1_2_1_31_1","unstructured":"Saurav Kadavath Tom Conerly Amanda Askell Tom Henighan Dawn Drain Ethan Perez Nicholas Schiefer Zac Hatfield-Dodds Nova DasSarma Eli Tran-Johnson et al. 2022. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221 (2022)."},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.14778\/3372716.3372725"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.14778\/3137628.3137664"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407804"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476249.3476285"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3517897"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-30115-8_22"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.14778\/3696435.3696440"},{"key":"e_1_2_1_39_1","volume-title":"Querying Templatized Document Collections with Large Language Models. In 2025 IEEE 41st International Conference on Data Engineering (ICDE). IEEE Computer Society, 2422-2435","author":"Lin Yiming","year":"2025","unstructured":"Yiming Lin, Madelon Hulsebos, Ruiying Ma, Shreya Shankar, Sepanta Zeighami, Aditya G Parameswaran, and Eugene Wu. 2025. Querying Templatized Document Collections with Large Language Models. In 2025 IEEE 41st International Conference on Data Engineering (ICDE). IEEE Computer Society, 2422-2435."},{"key":"e_1_2_1_40_1","volume-title":"Proceedings of the Conference on Innovative Database Research (CIDR). 2.","author":"Liu Chunwei","year":"2025","unstructured":"Chunwei Liu, Matthew Russo, Michael Cafarella, Lei Cao, Peter Baile Chen, Zui Chen, Michael Franklin, Tim Kraska, Samuel Madden, Rana Shahout, et al., 2025b. Palimpzest: Optimizing ai-powered analytics with declarative query processing. In Proceedings of the Conference on Innovative Database Research (CIDR). 2."},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_a_00638"},{"key":"e_1_2_1_42_1","volume-title":"Optimizing LLM Queries in Relational Data Analytics Workloads. In Eighth Conference on Machine Learning and Systems.","author":"Liu Shu","year":"2025","unstructured":"Shu Liu, Asim Biswal, Amog Kamsetty, Audrey Cheng, Luis Gaspar Schroeder, Liana Patel, Shiyi Cao, Xiangxi Mo, Ion Stoica, Joseph E Gonzalez, et al., 2025a. Optimizing LLM Queries in Relational Data Analytics Workloads. In Eighth Conference on Machine Learning and Systems."},{"key":"e_1_2_1_43_1","unstructured":"Duo Lu Siming Feng Jonathan Zhou Franco Solleza Malte Schwarzkopf and U\u011fur \u00c7etintemel. 2025. VectraFlow: Integrating Vectors into Stream Processing. CIDR."},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3183751"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.322"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ibmed.2024.100197"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.14778\/3749646.3749685"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3589335.3648298"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611479.3611496"},{"key":"e_1_2_1_50_1","volume-title":"Abacus: A Cost-Based Optimizer for Semantic Operator Systems. arXiv preprint arXiv:2505.14661","author":"Russo Matthew","year":"2025","unstructured":"Matthew Russo, Sivaprasad Sudhir, Gerardo Vitagliano, Chunwei Liu, Tim Kraska, Samuel Madden, and Michael Cafarella. 2025. Abacus: A Cost-Based Optimizer for Semantic Operator Systems. arXiv preprint arXiv:2505.14661 (2025)."},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.14778\/3746405.3746426"},{"key":"e_1_2_1_52_1","unstructured":"Shreya Shankar Sepanta Zeighami and Aditya Parameswaran. 2026. Task Cascades for Efficient Unstructured Data Processing. arXiv:2601.05536 [cs.DB] https:\/\/arxiv.org\/abs\/2601.05536"},{"key":"e_1_2_1_53_1","volume-title":"24rd International Conference on Very Large Data Bases (VLDB","author":"Shivakumar N.","year":"1998","unstructured":"N. Shivakumar, H. Garcia-Molina, and C. Chekuri. 1998. Filtering with approximate predicates. In 24rd International Conference on Very Large Data Bases (VLDB 1998). http:\/\/ilpubs.stanford.edu:8090\/351\/"},{"key":"e_1_2_1_54_1","volume-title":"Accessed","year":"2025","unstructured":"Snowflake. 2025. Introducing Cortex AISQL: Reimagining SQL into AI Query Language for Multimodal Data. https:\/\/www.snowflake.com\/en\/blog\/ai-sql-query-language\/. Accessed: July 15, 2025."},{"key":"e_1_2_1_55_1","volume-title":"Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC 2016) Workshop Emotion and Sentiment Analysis. 55-58","author":"Sobkowicz Antoni","year":"2016","unstructured":"Antoni Sobkowicz and Wojciech Stokowiec. 2016. Steam review dataset-new, large scale sentiment dataset. In Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC 2016) Workshop Emotion and Sentiment Analysis. 55-58."},{"key":"e_1_2_1_56_1","volume-title":"QUITE: A Query Rewrite System Beyond Rules with LLM Agents. arXiv preprint arXiv:2506.07675","author":"Song Yuyang","year":"2025","unstructured":"Yuyang Song, Hanxu Yan, Jiale Lao, Yibo Wang, Yufei Li, Yuanchun Zhou, Jianguo Wang, and Mingjie Tang. 2025. QUITE: A Query Rewrite System Beyond Rules with LLM Agents. arXiv preprint arXiv:2506.07675 (2025)."},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2024.emnlp-main.975"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/N18-1074"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/3626246.3654732"},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.14778\/3704965.3704989"},{"key":"e_1_2_1_61_1","unstructured":"Vals AI Inc. 2024. Vals AI. https:\/\/www.vals.ai\/. Accessed: 2025-06-22."},{"key":"e_1_2_1_62_1","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2001.990517"},{"key":"e_1_2_1_63_1","volume-title":"Aop: Automated and interactive llm pipeline orchestration for answering complex queries. CIDR.","author":"Wang Jiayi","year":"2025","unstructured":"Jiayi Wang and Guoliang Li. 2025. Aop: Automated and interactive llm pipeline orchestration for answering complex queries. CIDR."},{"key":"e_1_2_1_64_1","doi-asserted-by":"publisher","DOI":"10.1093\/jrsssb\/qkad009"},{"key":"e_1_2_1_65_1","unstructured":"Patrick Wendell Eric Peter Nicolas Pelaez Jianwei Xie Vinny Vijeyakumaar Linhong Liu and Shitao Li. 2023. Introducing AI Functions: Integrating Large Language Models with Databricks SQL. https:\/\/www.databricks.com\/blog\/2023\/04\/18\/introducing-ai-functions-integrating-large-language-models-databricks-sql.html. Accessed: 2025-06-22."},{"key":"e_1_2_1_66_1","volume-title":"On the Emergence of Position Bias in Transformers. arXiv preprint arXiv:2502.01951","author":"Wu Xinyi","year":"2025","unstructured":"Xinyi Wu, Yifei Wang, Stefanie Jegelka, and Ali Jadbabaie. 2025. On the Emergence of Position Bias in Transformers. arXiv preprint arXiv:2502.01951 (2025)."},{"key":"e_1_2_1_67_1","volume-title":"The Twelfth International Conference on Learning Representations.","author":"Xu Peng","year":"2023","unstructured":"Peng Xu, Wei Ping, Xianchao Wu, Lawrence McAfee, Chen Zhu, Zihan Liu, Sandeep Subramanian, Evelina Bakhturina, Mohammad Shoeybi, and Bryan Catanzaro. 2023. Retrieval meets long context large language models. In The Twelfth International Conference on Learning Representations."},{"key":"e_1_2_1_68_1","unstructured":"Murong Yue Jie Zhao Min Zhang Liang Du and Ziyu Yao. 2024. Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning. In The Twelfth International Conference on Learning Representations (ICLR). https:\/\/openreview.net\/forum?id=6okaSfANzh"},{"key":"e_1_2_1_69_1","doi-asserted-by":"crossref","unstructured":"Lianmin Zheng Wei-Lin Chiang Ying Sheng Siyuan Zhuang Zhanghao Wu Yonghao Zhuang Zi Lin Zhuohan Li Dacheng Li Eric Xing et al. 2023. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in neural information processing systems Vol. 36 (2023) 46595-46623.","DOI":"10.52202\/075280-2020"},{"key":"e_1_2_1_70_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611540.3611633"}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3786702","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,4,7]],"date-time":"2026-04-07T20:02:47Z","timestamp":1775592167000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3786702"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,2]]},"references-count":70,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2026,4,2]]}},"alternative-id":["10.1145\/3786702"],"URL":"https:\/\/doi.org\/10.1145\/3786702","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,2]]}}}