mlsanityData to 14 Oct 2026

Streaming Model Cascades for Semantic SQL

arXiv 2604.00660 ↗First posted 1 Apr 2026cs.DB cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Modern data warehouses extend SQL with semantic operators that invoke large language models on each qualifying row, making per-row inference orders of magnitude more expensive than traditional SQL. Model cascades reduce this cost by routing most rows through a fast proxy model and delegating uncertain cases to an expensive oracle. Prior SUPG-style cascades, however, require a global proxy-score pass that is itself an LLM-inference workload and blocks output in pipelined query engines. They also target either precision or recall and cannot serve workloads that need both. We formalize the cascade routing problem for streaming semantic SQL with independent parallel workers and present two complementary algorithms within this model. SUPG-IT extends SUPG from single-pass, single-metric estimation to streaming execution by iteratively refining two thresholds as oracle labels accumulate across batches, and is the first streaming cascade with joint probabilistic guarantees on user-specified precision and recall at a chosen failure probability δ. GAMCAL replaces user-specified targets with a single tradeoff parameter α between classification error and oracle cost, and learns a monotone Generalized Additive Model that calibrates proxy scores to true-positive probabilities and supplies pointwise uncertainty for stochastic routing. On six classification, filtering, and join benchmarks evaluated in a production semantic SQL engine, both algorithms reach F1 ≥ 0.95 at their best operating points. GAMCAL also leads all six datasets at a 20% delegation budget and reaches F1 ≥ 0.95 with up to 58% fewer oracle calls than LOTUS's SUPG cascade. SUPG-IT attains the highest best-case F1, with a mean of 0.989 across the six datasets.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 16 of its 40 references that are in the map. First posted on arXiv 1 Apr 2026.

Builds on

16 of 40 references.

References · 16

  1. 2017On Calibration of Modern Neural Networkscited by 4,960
  2. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  3. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
  4. 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
  5. 2017A Tutorial on Thompson Samplingcited by 433
  6. 2023When Does Confidence-Based Cascade Deferral Suffice?cited by 60
  7. 2024A Declarative System for Optimizing AI Workloadscited by 37
  8. 2024UQE: A Query Engine for Unstructured Databasescited by 21
  9. 2024Online Cascade Learning for Efficient Inference over Streamscited by 20
  10. 2020Approximate Selection with Guarantees using Proxiescited by 15
  11. 2024Cascade-Aware Training of Language Modelscited by 15
  12. 2025Cortex AISQL: A Production SQL Engine for Unstructured Datacited by 11
4 more
  1. 2025Cut Costs, Not Accuracy: LLM-Powered Data Processing with Guaranteescited by 9
  2. 2018Spline-Based Probability Calibrationcited by 7
  3. 2024Efficiently Deploying LLMs with Controlled Riskcited by 5
  4. 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Modelscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.