Prune First, Optimize Globally: Scalable Semantic Query Processing with UniBays

Semantic database systems extend SQL with foundation-model inference over unstructured data, but scaling mixed relational-semantic queries remains bottlenecked by a massive time-scale gap: relational operators run in nanoseconds to microseconds, whereas frontier LLMs take seconds per call at high monetary cost. Existing engines apply over-parameterized generative models to discrete relational predicates (Booleans, Enums, and Scores) and optimize semantic operators in isolation without global quality control. We present UniBays, a scalable semantic database system that couples high-throughput, non-generative decision models with principled pruning and global optimization. Because decision models still lag relational operators and output uncalibrated raw scores, UniBays executes queries in three stages: (1) Yannakakis-inspired relational reduction over the query skeleton to eliminate unqualified tuples before semantic evaluation; (2) a reusable, proposition-based semantic index that derives record-level necessary conditions to screen candidates across queries and data snapshots; and (3) a quality-aware global optimizer over Boolean query lineage that uses online score-bin calibration, batched inference, and selective frontier-LLM escalation to jointly minimize cost and latency under query-level precision and recall targets. Evaluated on SemBench and two new workloads (Shelob-Maintenance and Shelob-Ops built on TPC-DS) against Palimpzest, LOTUS, and SEMA, UniBays achieves the lowest latency on all 21 SemBench queries (56.8x-82.4x faster, 3.2x-7.9x cheaper, and highest mean quality at 0.858). On Shelob--whose multi-join candidate spaces reach over a billion combinations and where baselines hit the 2,000 s timeout on most queries--UniBays completes all 27 query instances in 5.8-209.4 s with F1 scores of 0.77-1.00.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-02
Primary Topic
Advanced Database Systems and Queries
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Prune First, Optimize Globally: Scalable Semantic Query Processing with UniBays

Fuheng Zhao, Zhengle Wang, Hanxu Yan, Kyoungmin Kim et al.
arXiv
Advanced Database Systems and Queries
preprint

Prune First, Optimize Globally: Scalable Semantic Query Processing with UniBays

Fuheng Zhao, Zhengle Wang, Hanxu Yan, Kyoungmin Kim, Chunwei Liu, Weizheng Wang
preprint en

Abstract

Semantic database systems extend SQL with foundation-model inference over unstructured data, but scaling mixed relational-semantic queries remains bottlenecked by a massive time-scale gap: relational operators run in nanoseconds to microseconds, whereas frontier LLMs take seconds per call at high monetary cost. Existing engines apply over-parameterized generative models to discrete relational predicates (Booleans, Enums, and Scores) and optimize semantic operators in isolation without global quality control. We present UniBays, a scalable semantic database system that couples high-throughput, non-generative decision models with principled pruning and global optimization. Because decision models still lag relational operators and output uncalibrated raw scores, UniBays executes queries in three stages: (1) Yannakakis-inspired relational reduction over the query skeleton to eliminate unqualified tuples before semantic evaluation; (2) a reusable, proposition-based semantic index that derives record-level necessary conditions to screen candidates across queries and data snapshots; and (3) a quality-aware global optimizer over Boolean query lineage that uses online score-bin calibration, batched inference, and selective frontier-LLM escalation to jointly minimize cost and latency under query-level precision and recall targets. Evaluated on SemBench and two new workloads (Shelob-Maintenance and Shelob-Ops built on TPC-DS) against Palimpzest, LOTUS, and SEMA, UniBays achieves the lowest latency on all 21 SemBench queries (56.8x-82.4x faster, 3.2x-7.9x cheaper, and highest mean quality at 0.858). On Shelob--whose multi-join candidate spaces reach over a billion combinations and where baselines hit the 2,000 s timeout on most queries--UniBays completes all 27 query instances in 5.8-209.4 s with F1 scores of 0.77-1.00.

arXiv
Korea Advanced Institute of Science and Technology (KR), Purdue University West Lafayette (US), University of Utah (US)
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon