{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,5]],"date-time":"2026-09-05T01:26:57Z","timestamp":1788571617927,"version":"build-2803163510"},"reference-count":42,"publisher":"Association for Computing Machinery (ACM)","issue":"10","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2022,6]]},"abstract":"<jats:p>We consider accelerating machine learning (ML) inference queries on unstructured datasets. Expensive operators such as feature extractors and classifiers are deployed as user-defined functions (UDFs), which are not penetrable with classic query optimization techniques such as predicate push-down. Recent optimization schemes (e.g., Probabilistic Predicates or PP) assume independence among the query predicates, build a proxy model for each predicate offline, and rewrite a new query by injecting these cheap proxy models in the front of the expensive ML UDFs. In such a manner, unlikely inputs that do not satisfy query predicates are filtered early to bypass the ML UDFs. We show that enforcing the independence assumption in this context may result in sub-optimal plans. In this paper, we propose CORE, a query optimizer that better exploits the predicate correlations and accelerates ML inference queries. Our solution builds the proxy models online for a new query and leverages a branch-and-bound search process to reduce the building costs. Results on three real-world text, image and video datasets show that CORE improves the query throughput by up to 63% compared to PP and up to 80% compared to running the queries as it is.<\/jats:p>","DOI":"10.14778\/3547305.3547310","type":"journal-article","created":{"date-parts":[[2022,9,7]],"date-time":"2022-09-07T12:09:53Z","timestamp":1662552593000},"page":"2032-2044","source":"Crossref","is-referenced-by-count":22,"title":["Optimizing machine learning inference queries with correlative proxy models"],"prefix":"10.14778","volume":"15","author":[{"given":"Zhihui","family":"Yang","sequence":"first","affiliation":[{"name":"Zhejiang Lab, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zuozhi","family":"Wang","sequence":"additional","affiliation":[{"name":"UC Irvine"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yicong","family":"Huang","sequence":"additional","affiliation":[{"name":"UC Irvine"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yao","family":"Lu","sequence":"additional","affiliation":[{"name":"Microsoft Research"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Chen","family":"Li","sequence":"additional","affiliation":[{"name":"UC Irvine"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"X. Sean","family":"Wang","sequence":"additional","affiliation":[{"name":"Fudan University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2022,9,7]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Geometric approximation via coresets. Combinatorial and computational geometry 52","author":"Agarwal Pankaj K","year":"2005","unstructured":"Pankaj K Agarwal , Sariel Har-Peled , and Kasturi R Varadarajan . 2005. Geometric approximation via coresets. Combinatorial and computational geometry 52 ( 2005 ), 1--30. Pankaj K Agarwal, Sariel Har-Peled, and Kasturi R Varadarajan. 2005. Geometric approximation via coresets. Combinatorial and computational geometry 52 (2005), 1--30."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/1007568.1007615"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.14778\/3364324.3364325"},{"key":"e_1_2_1_4_1","volume-title":"Learning Complexity-Aware Cascades for Deep Pedestrian Detection. In 2015 IEEE International Conference on Computer Vision, ICCV 2015","author":"Cai Zhaowei","year":"2015","unstructured":"Zhaowei Cai , Mohammad J. Saberian , and Nuno Vasconcelos . 2015 . Learning Complexity-Aware Cascades for Deep Pedestrian Detection. In 2015 IEEE International Conference on Computer Vision, ICCV 2015 , December 7-13, 2015. IEEE Computer Society, Santiago, Chile, 3361--3369. Zhaowei Cai, Mohammad J. Saberian, and Nuno Vasconcelos. 2015. Learning Complexity-Aware Cascades for Deep Pedestrian Detection. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, December 7-13, 2015. IEEE Computer Society, Santiago, Chile, 3361--3369."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/3035918.3056097"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/320248.320249"},{"key":"e_1_2_1_7_1","unstructured":"Xianshun Chen. 2020. Activity Recognition. https:\/\/github.com\/chen0040\/keras-video-classifier. last accessed: 2020-01-22.  Xianshun Chen. 2020. Activity Recognition. https:\/\/github.com\/chen0040\/keras-video-classifier. last accessed: 2020-01-22."},{"key":"e_1_2_1_8_1","volume-title":"Table of integrals, series, and products","author":"Gradshteyn Izrail Solomonovich","unstructured":"Izrail Solomonovich Gradshteyn and Iosif Moiseevich Ryzhik . 2014. Table of integrals, series, and products . Academic press , Cambridge, MA . Izrail Solomonovich Gradshteyn and Iosif Moiseevich Ryzhik. 2014. Table of integrals, series, and products. Academic press, Cambridge, MA."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.14778\/3236187.3236199"},{"key":"e_1_2_1_10_1","volume-title":"Predicate Migration: Optimizing Queries with Expensive Predicates. In Proceedings of the 1993 ACM SIGMOD International Conference on Management of Data","author":"Joseph","year":"1993","unstructured":"Joseph M. Hellerstein and Michael Stonebraker. 1993 . Predicate Migration: Optimizing Queries with Expensive Predicates. In Proceedings of the 1993 ACM SIGMOD International Conference on Management of Data , May 26-28, 1993 . ACM Press, Washington, DC, USA, 267--276. Joseph M. Hellerstein and Michael Stonebraker. 1993. Predicate Migration: Optimizing Queries with Expensive Predicates. In Proceedings of the 1993 ACM SIGMOD International Conference on Management of Data, May 26-28, 1993. ACM Press, Washington, DC, USA, 267--276."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.14778\/3384345.3384349"},{"key":"e_1_2_1_12_1","volume-title":"Focus: Querying Large Video Datasets with Low Latency and Low Cost. In 13th USENIX Symposium on Operating Systems Design and Implementation, OSDI 2018, October 8-10","author":"Hsieh Kevin","year":"2018","unstructured":"Kevin Hsieh , Ganesh Ananthanarayanan , Peter Bod\u00edk , Shivaram Venkataraman , Paramvir Bahl , Matthai Philipose , Phillip B. Gibbons , and Onur Mutlu . 2018 . Focus: Querying Large Video Datasets with Low Latency and Low Cost. In 13th USENIX Symposium on Operating Systems Design and Implementation, OSDI 2018, October 8-10 , 2018. USENIX Association, Carlsbad, CA, USA, 269--286. Kevin Hsieh, Ganesh Ananthanarayanan, Peter Bod\u00edk, Shivaram Venkataraman, Paramvir Bahl, Matthai Philipose, Phillip B. Gibbons, and Onur Mutlu. 2018. Focus: Querying Large Video Datasets with Low Latency and Low Cost. In 13th USENIX Symposium on Operating Systems Design and Implementation, OSDI 2018, October 8-10, 2018. USENIX Association, Carlsbad, CA, USA, 269--286."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICPR.2008.4761041"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/1007568.1007641"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/1150402.1150429"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.14778\/3372716.3372725"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.14778\/3137628.3137664"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407804"},{"key":"e_1_2_1_19_1","volume-title":"Task-agnostic Indexes for Deep Learning-based Queries over Unstructured Data. CoRR abs\/2009.04540","author":"Kang Daniel","year":"2020","unstructured":"Daniel Kang , John Guibas , Peter Bailis , Tatsunori Hashimoto , and Matei Zaharia . 2020. Task-agnostic Indexes for Deep Learning-based Queries over Unstructured Data. CoRR abs\/2009.04540 ( 2020 ). Daniel Kang, John Guibas, Peter Bailis, Tatsunori Hashimoto, and Matei Zaharia. 2020. Task-agnostic Indexes for Deep Learning-based Queries over Unstructured Data. CoRR abs\/2009.04540 (2020)."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/321796.321808"},{"key":"e_1_2_1_21_1","volume-title":"9th Biennial Conference on Innovative Data Systems Research, CIDR 2019, January 13-16, 2019, Online Proceedings. www.cidrdb.org","author":"Krishnan Sanjay","unstructured":"Sanjay Krishnan , Adam Dziedzic , and Aaron J. Elmore . 2019. DeepLens: Towards a Visual Data Management System . In 9th Biennial Conference on Innovative Data Systems Research, CIDR 2019, January 13-16, 2019, Online Proceedings. www.cidrdb.org , Asilomar, CA, USA. Sanjay Krishnan, Adam Dziedzic, and Aaron J. Elmore. 2019. DeepLens: Towards a Visual Data Management System. In 9th Biennial Conference on Innovative Data Systems Research, CIDR 2019, January 13-16, 2019, Online Proceedings. www.cidrdb.org, Asilomar, CA, USA."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342633"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/1247480.1247568"},{"key":"e_1_2_1_24_1","volume-title":"Deep learning. nature 521, 7553","author":"LeCun Yann","year":"2015","unstructured":"Yann LeCun , Yoshua Bengio , and Geoffrey Hinton . 2015. Deep learning. nature 521, 7553 ( 2015 ), 436--444. Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. 2015. Deep learning. nature 521, 7553 (2015), 436--444."},{"key":"e_1_2_1_25_1","volume-title":"Jackel","author":"LeCun Yann","year":"1989","unstructured":"Yann LeCun , Bernhard E. Boser , John S. Denker , Donnie Henderson , Richard E. Howard , Wayne E. Hubbard , and Lawrence D . Jackel . 1989 . Handwritten Digit Recognition with a Back-Propagation Network. In Advances in Neural Information Processing Systems 2, [NIPS Conference, November 27-30, 1989]. Morgan Kaufmann , Denver, Colorado, USA, 396--404. Yann LeCun, Bernhard E. Boser, John S. Denker, Donnie Henderson, Richard E. Howard, Wayne E. Hubbard, and Lawrence D. Jackel. 1989. Handwritten Digit Recognition with a Back-Propagation Network. In Advances in Neural Information Processing Systems 2, [NIPS Conference, November 27-30, 1989]. Morgan Kaufmann, Denver, Colorado, USA, 396--404."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2015.7299170"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2017.684"},{"key":"e_1_2_1_28_1","volume-title":"Proceedings, Part V (Lecture Notes in Computer Science)","volume":"8693","author":"Lin Tsung-Yi","unstructured":"Tsung-Yi Lin , Michael Maire , Serge J. Belongie , James Hays , Pietro Perona , Deva Ramanan , Piotr Doll\u00e1r , and C. Lawrence Zitnick . 2014. Microsoft COCO: Common Objects in Context. In Computer Vision - ECCV 2014 - 13th European Conference, September 6-12, 2014 , Proceedings, Part V (Lecture Notes in Computer Science) , Vol. 8693 . Springer, Zurich, Switzerland, 740--755. Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Doll\u00e1r, and C. Lawrence Zitnick. 2014. Microsoft COCO: Common Objects in Context. In Computer Vision - ECCV 2014 - 13th European Conference, September 6-12, 2014, Proceedings, Part V (Lecture Notes in Computer Science), Vol. 8693. Springer, Zurich, Switzerland, 740--755."},{"key":"e_1_2_1_29_1","volume-title":"An algorithm for the traveling salesman problem. Operations research 11, 6","author":"Little John DC","year":"1963","unstructured":"John DC Little , Katta G Murty , Dura W Sweeney , and Caroline Karel . 1963. An algorithm for the traveling salesman problem. Operations research 11, 6 ( 1963 ), 972--989. John DC Little, Katta G Murty, Dura W Sweeney, and Caroline Karel. 1963. An algorithm for the traveling salesman problem. Operations research 11, 6 (1963), 972--989."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3183751"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.3115\/v1\/P14-5010"},{"key":"e_1_2_1_32_1","volume-title":"Deep Decision Network for Multi-class Image Classification. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016","author":"Murthy Venkatesh N.","year":"2016","unstructured":"Venkatesh N. Murthy , Vivek Singh , Terrence Chen , R. Manmatha , and Dorin Comaniciu . 2016 . Deep Decision Network for Multi-class Image Classification. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016 , June 27-30, 2016. IEEE Computer Society, Las Vegas, NV, USA, 2240--2248. Venkatesh N. Murthy, Vivek Singh, Terrence Chen, R. Manmatha, and Dorin Comaniciu. 2016. Deep Decision Network for Multi-class Image Classification. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, June 27-30, 2016. IEEE Computer Society, Las Vegas, NV, USA, 2240--2248."},{"key":"e_1_2_1_33_1","volume-title":"YOLOv3: An Incremental Improvement. CoRR abs\/1804.02767","author":"Redmon Joseph","year":"2018","unstructured":"Joseph Redmon and Ali Farhadi . 2018. YOLOv3: An Incremental Improvement. CoRR abs\/1804.02767 ( 2018 ). Joseph Redmon and Ali Farhadi. 2018. YOLOv3: An Incremental Improvement. CoRR abs\/1804.02767 (2018)."},{"key":"e_1_2_1_34_1","volume-title":"Optimization of Complex Dataflows with User-Defined Functions. ACM Comput. Surv. 50, 3","author":"Rheinl\u00e4nder Astrid","year":"2017","unstructured":"Astrid Rheinl\u00e4nder , Ulf Leser , and Goetz Graefe . 2017. Optimization of Complex Dataflows with User-Defined Functions. ACM Comput. Surv. 50, 3 ( 2017 ), 38:1--38:39. Astrid Rheinl\u00e4nder, Ulf Leser, and Goetz Graefe. 2017. Optimization of Complex Dataflows with User-Defined Functions. ACM Comput. Surv. 50, 3 (2017), 38:1--38:39."},{"key":"e_1_2_1_35_1","volume-title":"Amir Roshan Zamir, and Mubarak Shah","author":"Soomro Khurram","year":"2012","unstructured":"Khurram Soomro , Amir Roshan Zamir, and Mubarak Shah . 2012 . UCF101: A Dataset of 101 Human Actions Classes From Videos in The Wild. CoRR abs\/1212.0402 (2012). Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. 2012. UCF101: A Dataset of 101 Human Actions Classes From Videos in The Wild. CoRR abs\/1212.0402 (2012)."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2014.214"},{"key":"e_1_2_1_37_1","volume-title":"API 2019","author":"Twitter","year":"2019","unstructured":"Twitter API 2019 . Twitter API. https:\/\/developer.twitter.com\/en\/docs\/twitter-api. last accessed : 2019 -01-01. Twitter API 2019. Twitter API. https:\/\/developer.twitter.com\/en\/docs\/twitter-api. last accessed: 2019-01-01."},{"key":"e_1_2_1_38_1","volume-title":"2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2001","author":"Paul","year":"2001","unstructured":"Paul A. Viola and Michael J. Jones. 2001. Rapid Object Detection using a Boosted Cascade of Simple Features . In 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2001 ), with CD-ROM, 8-14 December 2001 . IEEE Computer Society, Kauai, HI, USA, 511--518. Paul A. Viola and Michael J. Jones. 2001. Rapid Object Detection using a Boosted Cascade of Simple Features. In 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2001), with CD-ROM, 8-14 December 2001. IEEE Computer Society, Kauai, HI, USA, 511--518."},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.14778\/3282495.3282499"},{"key":"e_1_2_1_40_1","volume-title":"Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence, UAI 2018","author":"Wang Xin","year":"2018","unstructured":"Xin Wang , Yujia Luo , Daniel Crankshaw , Alexey Tumanov , Fisher Yu , and Joseph E. Gonzalez . 2018. IDK Cascades: Fast Deep Learning by Learning not to Overthink . In Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence, UAI 2018 , August 6-10, 2018 . AUAI Press, Monterey, California, USA, 580--590. Xin Wang, Yujia Luo, Daniel Crankshaw, Alexey Tumanov, Fisher Yu, and Joseph E. Gonzalez. 2018. IDK Cascades: Fast Deep Learning by Learning not to Overthink. In Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence, UAI 2018, August 6-10, 2018. AUAI Press, Monterey, California, USA, 580--590."},{"key":"e_1_2_1_41_1","unstructured":"Zhihui Yang Zuozhi Wang Yicong Huang Yao Lu Chen Li and X. Sean Wang. 2022. Correlative Proxy Models. https:\/\/github.com\/ZhihuiYangCS\/CorrProxies\/wiki\/Queries-and-Datasets. last accessed: 2022-02-22.  Zhihui Yang Zuozhi Wang Yicong Huang Yao Lu Chen Li and X. Sean Wang. 2022. Correlative Proxy Models. https:\/\/github.com\/ZhihuiYangCS\/CorrProxies\/wiki\/Queries-and-Datasets. last accessed: 2022-02-22."},{"key":"e_1_2_1_42_1","volume-title":"echnical Report)","author":"Yang Zhihui","unstructured":"Zhihui Yang , Zuozhi Wang , Yicong Huang , Yao Lu , Chen Li , and X. Sean Wang . 2022. Optimizing Machine Learning Inference Queries with Correlative Proxy Models ( T echnical Report) . http:\/\/texera.ics.uci.edu\/pdf\/proxymodel\/proxymodel-tech-report.pdf. last accessed: 2022-06-09. Zhihui Yang, Zuozhi Wang, Yicong Huang, Yao Lu, Chen Li, and X. Sean Wang. 2022. Optimizing Machine Learning Inference Queries with Correlative Proxy Models (Technical Report). http:\/\/texera.ics.uci.edu\/pdf\/proxymodel\/proxymodel-tech-report.pdf. last accessed: 2022-06-09."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3547305.3547310","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T06:11:25Z","timestamp":1672207885000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3547305.3547310"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,6]]},"references-count":42,"journal-issue":{"issue":"10","published-print":{"date-parts":[[2022,6]]}},"alternative-id":["10.14778\/3547305.3547310"],"URL":"https:\/\/doi.org\/10.14778\/3547305.3547310","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2022,6]]}}}