Prune First, Decide Fast: Scalable Semantic Query Processing with JEVDB

📅 2026-10-01
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Existing semantic databases rely on autoregressive large language models (LLMs), incurring high latency, substantial costs, and inefficiencies in discrete relational decision-making. This work proposes JEVDB, a hybrid architecture that employs fast, typed discriminative models for routine semantic operations while escalating only uncertain queries to generative LLMs. By integrating Yannakakis semijoin reduction with Semantic Bloom Filters (SBF) to pre-screen candidate pairs, the framework substantially reduces inference overhead. Experimental evaluations demonstrate that JEVDB achieves the lowest latency on the SemBench benchmark. Furthermore, within the Shelob system, SBF eliminates 87.4% of candidate pairs and reduces the LLM escalation rate by 55.2%, effectively balancing computational efficiency with query accuracy.
📝 Abstract
Semantic database systems extend SQL with foundation-model inference over unstructured data, but current engines rely heavily on autoregressive LLMs for discrete relational decisions, creating high latency and monetary cost. We present JEVDB, a scalable semantic database system that uses fast, typed decision models for semantic filters, joins, classification, and ranking, while selectively escalating uncertain cases to generative LLMs. To reduce semantic-join work, JEVDB combines exact Yannakakis-style semijoin reduction over relational structure with Semantic Bloom Filters (SBFs), which use registered necessary conditions to screen candidates across latent semantic edges. We evaluate JEVDB on SemBench and Shelob, a TPC-DS-derived semantic-join workload. On SemBench, JEVDB-Flash achieves the lowest latency on all 21 evaluated queries and the lowest cost on 19, while maintaining competitive answer quality. On Shelob, where joins scale to 540K candidate pairs, JEVDB completes all queries with 95.7%-97.5% mean F1. SBF screening removes 87.4% of candidate pairs before semantic evaluation, and reusable condition-index scoring further reduces reasoning-model escalations by 55.2%. An interactive query simulator, source code, and benchmarks are available at https://jevdb.org.
Problem

Research questions and friction points this paper is trying to address.

semantic database
large language models
query latency
inference cost
semantic query processing
Innovation

Methods, ideas, or system contributions that make the work stand out.

Semantic Database
Typed Decision Models
Semantic Bloom Filters
Semijoin Reduction
LLM Escalation