Accelerating Aggregation Queries on Unstructured Streams of Data
Matthew Russo, Tatsunori Hashimoto, Daniel Kang, Yi Sun, Matei Zaharia
Abstract
Analysts and scientists are interested in querying streams of video, audio, and text to extract quantitative insights. For example, an urban planner may wish to measure congestion by querying the live feed from a traffic camera. Prior work has used deep neural networks (DNNs) to answer such queries in the batch setting. However, much of this work is not suited for the streaming setting because it requires access to the entire dataset before a query can be submitted or is specific to video. Thus, to the best of our knowledge, no prior work addresses the problem of efficiently answering queries over multiple modalities of streams. In this work we propose InQuest, a system for accelerating aggregation queries on unstructured streams of data with statistical guarantees on query accuracy. InQuest leverages inexpensive approximation models ("proxies") and sampling techniques to limit the execution of an expensive high-precision model (an "oracle") to a subset of the stream. It then uses the oracle predictions to compute an approximate query answer in real-time. We theoretically analyzed InQuest and show that the expected error of its query estimates converges on stationary streams at a rate inversely proportional to the oracle budget. We evaluated our algorithm on six real-world video and text datasets and show that InQuest achieves the same root mean squared error (RMSE) as two streaming baselines with up to 5.0x fewer oracle invocations. We further show that InQuest can achieve up to 1.9x lower RMSE at a fixed number of oracle invocations than a state-of-the-art batch setting algorithm.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- PilotDB: Database-Agnostic Online Approximate Query Processing with A Priori Error Guarantees cites Accelerating Approximate Aggregation Queries with Expensive Predicates
- Accelerating Approximate Aggregation Queries with Expensive Predicates cites BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analytics
- Accelerating Approximate Aggregation Queries with Expensive Predicates cites Approximate Selection with Guarantees using Proxies
- Accelerating Approximate Aggregation Queries with Expensive Predicates cites Jointly Optimizing Preprocessing and Inference for DNN-based Visual Analytics
- Approximate Selection with Guarantees using Proxies cites BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analytics
- Abacus: A Cost-Based Optimizer for Semantic Operator Systems cites BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analytics
- Abacus: A Cost-Based Optimizer for Semantic Operator Systems cites Accelerating Approximate Aggregation Queries with Expensive Predicates
- Jointly Optimizing Preprocessing and Inference for DNN-based Visual Analytics cites BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analytics
- Déjà Vu: Efficient Video-Language Query Engine with Learning-based Inter-Frame Computation Reuse cites MIRIS: Fast Object Track Queries in Video
Cited by top-tier papers3
- Abacus: A Cost-Based Optimizer for Semantic Operator SystemsMatthew Russo, Chunwei Liu, Sivaprasad Sudhir, Gerardo Vitagliano et al.VLDB 2026 · 9 citations
- PilotDB: Database-Agnostic Online Approximate Query Processing with A Priori Error GuaranteesYuxuan Zhu, Tengjun Jin, Stefanos Baziotis, Chengsong Zhang et al.SIGMOD 2025 · 3 citations
- Déjà Vu: Efficient Video-Language Query Engine with Learning-based Inter-Frame Computation ReuseJinwoo Hwang, Daeun Kim, Sangyeop Lee, Yoonsung Kim et al.VLDB 2025 · 2 citations
Builds on10
- BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video AnalyticsDaniel Kang, Peter Bailis, Matei ZahariaVLDB 2020 · 103 citations
- MIRIS: Fast Object Track Queries in VideoFavyen Bastani, Songtao He, Arjun Balasingam, Karthik Gopalakrishnan et al.SIGMOD 2020 · 68 citations
- Jointly Optimizing Preprocessing and Inference for DNN-based Visual AnalyticsDaniel Kang, Ankit Mathur, Teja Veeramacheneni, Peter Bailis et al.VLDB 2021 · 50 citations
- Approximate Selection with Guarantees using ProxiesDaniel Kang, Edward Gan, Peter Bailis, Tatsunori Hashimoto et al.VLDB 2020 · 46 citations
- Accelerating Approximate Aggregation Queries with Expensive PredicatesDaniel Kang, John Guibas, Peter Bailis, Tatsunori Hashimoto et al.VLDB 2021 · 34 citations
Related papers
- HAIDES: Adaptive Approximation of Inference Queries over Unstructured DataChristos C. Papadopoulos, Alkis Simitsis, Torben Bach PedersenICDE 2025
- Video Monitoring QueriesNick Koudas, Raymond Li, Ioannis XarchakosICDE 2020 · 33 citations
- On Efficient Approximate Aggregate Nearest Neighbor Queries over Learned RepresentationsCarrie Wang, Sihem Amer-Yahia, Laks V. S. Lakshmanan, Reynold ChengSIGMOD 2026
- SEIDEN: Revisiting Query Processing in Video Database SystemsJaeho Bang, Gaurav Tarlok Kakkar, Pramod Chunduri, Subrata Mitra et al.VLDB 2023 · 24 citations
- Top-K Deep Video Analytics: A Probabilistic ApproachZiliang Lai, Chenxia Han, Chris Liu, Pengfei Zhang et al.SIGMOD 2021 · 7 citations
