cs.DBcs.AI

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

📅 👥 6 authors arXiv:2612.02918v1

Authors

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.

Paper Information

arXiv ID:
2612.02918v1
Published:

Related Categories

cs.DBcs.AI