100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models
Not on the map. Why?
Abstract (arXiv)
Several data warehouse and database providers have recently introduced extensions to SQL called AI Queries, enabling users to specify functions and conditions in SQL that are evaluated by LLMs, thereby broadening significantly the kinds of queries one can express over the combination of structured and unstructured data. LLMs offer remarkable semantic reasoning capabilities, making them an essential tool for complex and nuanced queries that blend structured and unstructured data. While extremely powerful, these AI queries can become prohibitively costly when invoked thousands of times. This paper provides an extensive evaluation of a recent AI query approximation approach that enables low cost analytics and database applications to benefit from AI queries. The approach delivers >100x cost and latency reduction for the semantic filter operator and also important gains for semantic ranking. The cost and performance gains come from utilizing cheap and accurate proxy models over embedding vectors. We show that despite the massive gains in latency and cost, these proxy models preserve accuracy and occasionally improve accuracy across various benchmark datasets, including the extended Amazon reviews benchmark that has 10M rows. We present an OLAP-friendly architecture within Google BigQuery for this approach for purely online (ad hoc) queries, and a low-latency HTAP database-friendly architecture in AlloyDB that could further improve the latency by moving the proxy model training offline. We present techniques that accelerate the proxy model training.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 17 of its 52 references that are in the map. First posted on arXiv 16 Mar 2026.
Builds on
17 of 52 references.
References · 17
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2020SPECTER: Document-level Representation Learning using Citation-informed Transformerscited by 426
- 2023FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarioscited by 247
- 2025Gemini Embedding: Generalizable Embeddings from Geminicited by 93
- 2018Automated Data Slicing for Model Validation:A Big data - AI Integration Approachcited by 70
- 2024DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processingcited by 49
- 2025Overview of the TREC 2022 deep learning trackcited by 22
- 2021Searching for Scientific Evidence in a Pandemic: An Overview of TREC-COVIDcited by 19
5 more
- 2024UQE: A Query Engine for Unstructured Databasescited by 18
- 2025RankLLM: A Python Package for Reranking with LLMscited by 15
- 2025Beyond Quacking: Deep Integration of Language Models and RAG into DuckDBcited by 12
- 2025Abacus: A Cost-Based Optimizer for Semantic Operator Systemscited by 11
- 2025A Comprehensive Survey on Imbalanced Data Learningcited by 10
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Streaming Model Cascades for Semantic SQLcited by 2
- 2026MLSkip: Data Skipping for ML Filters via Lightweight Metadatacited by 0
- 2026Compositional Online Learning for Semantic Data Processing Systemscited by 0
- 2026Compositional Online Learning for Semantic Data Processing Systems27 Aug 2026
- 2026MLSkip: Data Skipping for ML Filters via Lightweight Metadata2 Jun 2026
- 2026Streaming Model Cascades for Semantic SQL1 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2024The Unreasonable Effectiveness of LLMs for Query Optimization
- 2025SemBench: A Benchmark for Semantic Query Processing Engines
- 2025Cost Trade-offs of Reasoning and Non-Reasoning Large Language Models in Text-to-SQL
- 2026Are LLM-Based Retrievers Worth Their Cost? An Empirical Study of Efficiency, Robustness, and Reasoning Overhead
- 2026Kalypso: Relational LLM Serving
- 2025Cortex AISQL: A Production SQL Engine for Unstructured Data
- 2026SemJoin: Semantic Join Optimization
- 2024Optimizing LLM Queries in Relational Data Analytics Workloads