SemBench: A Benchmark for Semantic Query Processing Engines

Jiale Lao, Andreas Zimmerer, Olga Ovcharenko, Tianji Cong, Matthew Russo, Gerardo Vitagliano, Michael Cochez, Fatma Özcan, Gautam Gupta, Thibaud Hottelier, H. V. Jagadish, Kris Kissel, Sebastian Schelter, Andreas Kipf, Immanuel Trummer · DOI

Abstract

As Large Language Models (LLMs) become increasingly integrated into data management, a new class of systems known as Semantic Query Processing Engines (SQPEs) has emerged. These engines extend traditional SQL capabilities to unstructured data, such as images, audio, and natural language text. However, evaluating these systems presents unique challenges due to the high cost, latency, and non-deterministic nature of LLM calls. This paper introduces SemBench, the first comprehensive benchmark designed to evaluate SQPEs across diverse modalities and complex semantic operations. By testing both academic prototypes and industrial systems, SemBench reveals critical trade-offs between monetary cost, execution latency, and result accuracy.

Introduction

Traditional relational database systems are highly optimized for structured data—numbers and strings—but remain "blind" to the semantic content of unstructured media. To bridge this gap, SQPEs allow users to query unstructured data using natural language conditions (e.g., WHERE AI.IF(image, 'contains a rare bird')). Unlike traditional databases where disk I/O or CPU cycles are the primary bottlenecks, the performance of SQPEs is dominated by the cost and throughput of the underlying LLM. SemBench provides a standardized framework to measure how effectively these engines optimize these "semantic" costs.

Semantic Operators

At the core of SemBench is a formalization of five fundamental semantic operators. These operators represent the building blocks of semantic queries, ranging from simple filtering to complex multi-modal joins.

Core semantic operators defined in SemBench.

As shown in the table above, these operators allow for a wide range of applications, such as extracting brand names from text (Map), ranking reviews by sentiment (Rank), or classifying medical images (Classify). The benchmark evaluates how systems handle these operators individually and in combination.

Benchmark Design and Datasets

SemBench evaluates systems across five distinct scenarios, primarily sourced from Kaggle and Wikipedia. These scenarios were chosen to test the limits of SQPEs in terms of modality diversity and domain-specific complexity.

Summary of SemBench scenarios and dataset characteristics.

The benchmark includes 55 queries and over 1.4 million rows of data. Key scenarios include:

  • Movie: Focuses on text-based sentiment analysis and ranking.
  • Wildlife: Utilizes camera-trap images and animal sound recordings.
  • E-Commerce: Involves complex semantic joins between product descriptions and images.
  • Medical: The most challenging scenario, integrating text symptoms, X-rays, lung audio, and skin mole images.
  • MMQA (Multi-modal QA): Based on Wikipedia tables, text, and images.

System Evaluation and Insights

The researchers evaluated four prominent systems: academic prototypes LOTUS, Palimpzest, and ThalamusDB, alongside Google BigQuery. To ensure a fair comparison of engine-level optimizations, all systems utilized gemini-1.5-flash as the underlying model.

Key Findings

  1. The Power of Early Termination: The SQL LIMIT clause proved to be a critical optimization. Engines capable of "early termination"—stopping LLM calls once enough results are found—were significantly cheaper and faster than those that processed entire datasets.
  2. The Complexity of Semantic Joins: Joins represent the most significant challenge for SQPEs. In the MMQA scenario, a single complex join required 40,000 LLM calls, highlighting the massive computational and monetary overhead of matching unstructured data across tables.
  3. Modality and Domain Challenges: While text processing is relatively mature, systems struggled with specialized modalities. In the Medical scenario, LLMs occasionally refused to answer queries regarding skin moles unless prompts were carefully adjusted to specify research use, and accuracy in identifying diseases from audio remained low.
  4. Optimization Strategies: Different engines prioritized different goals. BigQuery offered the most robust support for various operators. ThalamusDB focused on cost-efficiency through batching and approximations, while LOTUS utilized embedding similarity to pre-filter data before calling the expensive LLM.

Conclusion

SemBench highlights that while SQPEs are a powerful tool for unlocking the value of unstructured data, they face a steep "accuracy vs. cost" curve. Future development in this field will likely focus on automated prompt engineering and operator fusion—combining multiple semantic steps into a single LLM call—to further reduce latency and costs. The benchmark remains an open resource, with a live leaderboard at sembench.org to track the evolution of these next-generation database systems.

Summary updated

BibTeX
@article{lao2026sembench,
  author = {Jiale Lao and Andreas Zimmerer and Olga Ovcharenko and Tianji Cong and Matthew Russo and Gerardo Vitagliano and Michael Cochez and Fatma Özcan and Gautam Gupta and Thibaud Hottelier and H. V. Jagadish and Kris Kissel and Sebastian Schelter and Andreas Kipf and Immanuel Trummer},
  title = {{SemBench: A Benchmark for Semantic Query Processing Engines}},
  journal = {Proc. VLDB Endow.},
  year = {2026},
}
Figure