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…
- arXiv
- 2612.02918
- Authors
- Zhengle Wang, Hanxu Yan, Weizheng Wang, Kyoungmin Kim, Fuheng Zhao and 1 more
- Categories
- cs.DB · cs.AI