Conceptio › Archive › arXiv CS
arXiv CS open access

From Interpretation to Compilation: A Compilation-Based Execution Engine for Semantic Operator Systems

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
data-managementdatabasessqlstorage
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

From Interpretation to Compilation: A Compilation-Based Execution Engine for Semantic Operator Systems Wenkai Dong

Yifan Wang✉

dongw@hawaii.edu University of Hawaii at Manoa Honolulu, Hawaii, USA

yifanw@hawaii.edu University of Hawaii at Manoa Honolulu, Hawaii, USA

arXiv:2608.06677v1 [cs.DB] 7 Aug 2026

Abstract Semantic operators extend data processing with natural-language predicates. Existing semantic operator systems commonly execute these operators through interpretation-based execution: for every data item, an LLM interprets the operator predicate and directly produces the corresponding result. Although expressive, this design places expensive model invocations inside the data-processing loop, causing latency and monetary cost to scale with input cardinality. We present SemBaker, a compilation-based execution engine for semantic operator systems. It is not to replace the native execution of a semantic operator system, but to act as an external plugin that allow a bypass of semantic operators to be processed outside the system, which will be faster and cheaper than execution in the system. Specifically, we propose “compilation-based execution” that uses a lightweight non-LLM program to replace the LLM in runtime interpretation. SemBaker lifts this operator-level technique into a complete plan-level engine. Given a semantic operator pipeline, SemBaker uses a cost-model based optimizer to route each operator to either native or compiled execution, and executes mixed plans containing both implementations – native operators are still executed by the backend system, while compiled ones (programs) are executed locally. This significantly reduces the execution latency and cost, as the non-LLM program is faster and cheaper than LLM call. SemBaker currently supports Palimpzest, LOTUS, Nirvana, and DocETL through thin adapters and their existing extension entry-points. Our evaluation shows that SemBaker achieves 4.8– 6.3× average speedups and 5.4–10.7× average cost reductions with competitive quality. ACM Reference Format: Wenkai Dong and Yifan Wang. 2018. From Interpretation to Compilation: A Compilation-Based Execution Engine for Semantic Operator Systems. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym ’XX). ACM, New York, NY, USA, 6 pages. https://doi.org/XXXXXXX.XXXXXXX

1

Introduction

Large language models (LLMs) have enabled a new class of dataprocessing systems in which users express operations through natural language. For example, a user may filter reviews using the predicate “the review is clearly positive,” map each document to its main topic, or join two records when they describe semantically related entities. Such operations are commonly exposed as semantic operators, including semantic filter, semantic map, semantic join, and so on. Semantic operator systems [6, 8, 9, 13] make these operators first-class components of declarative data-processing pipelines. By allowing users to specify semantic intent directly, these systems

simplify analytics over text-rich, semi-structured, and otherwise difficult-to-process data. The flexibility of semantic operators, however, comes with substantial execution cost, as they commonly use what we call interpretationbased execution: the LLM is invoked at runtime to interpret the semantic operator for each data item (cell or pair of cells). For example, a semantic filter such as sem_filter("beginner-friendly machine learning courses") will be executed by repeatedly sending the predicate together with one row to the LLM and asking whether that row satisfies the predicate, until all rows are checked. Similarly, a semantic map will send each row to the LLM to obtain a transformed value, while a semantic join may send each candidate pair of records to the LLM to determine whether the pair satisfies the semantic relationship indicated by the predicate. This execution model is expressive, but also costly. Each LLM invocation incurs latency, monetary cost, and possible rate-limit overhead. For filters and maps, the number of LLM calls grows linearly with the number of rows. For joins, the number of calls grows with the number of candidate pairs, which could be much larger. As a result, interpretation-based semantic execution can become prohibitively slow and expensive on large datasets. Inspired by the idea of compiling SQL into code to speed up query execution in traditional database systems [7], this paper explores a new execution paradigm for semantic data systems: compilationbased execution. Instead of using an LLM as a runtime interpreter for every data item, compilation-based execution uses an LLM as a compiler. Given a semantic operator, its natural-language predicate, schema information, and optional representative samples, the compiler invokes LLM once to generate deterministic executable code that reproduces the intended behavior of the original semantic operator. The generated program is then executed locally over each data item without additional LLM calls. Figure 1 compares interpretation-based and compilation-based execution. The former invokes the LLM for each input item, whereas the latter generates one function and applies it locally to all inputs. This removes repeated LLM calls and significantly reduces execution time and cost on large datasets. Although compilation trades some of the interpreter’s flexible reasoning ability for substantially cheaper and more predictable execution, our initial operator-level experiments show that the improvement on efficiency and cost saving is significant while the quality loss is tiny. This result motivates a broader systems question: how can compilation-based execution be integrated into existing semantic operator systems without replacing their native execution engines? We present SemBaker1 , a portable compilation-based execution engine for semantic operator systems. SemBaker is not a new 1 https://github.com/iDB-Research-Group/SemBaker

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Wenkai Dong and Yifan Wang

Title

Interpretation-based Execution

LLM("Does this row satisfy the condition? Return True/False")

Machine Learning

LLM("Does this row satisfy the condition? Return True/False")

Deep Learning

LLM("Does this row satisfy the condition? Return True/False")

AI Agents ...

sem_filter("beginnerfriendly courses about machine learning")

LLM("Compile Compilation-based Execution

the condition and operator into a Python function...")

def compiled_filter(row): text = (row["title"] + " " + row["subject"]) is_ml = any(t in text for t in [ "Machine Learning", "ML", "Deep Learning", "DL", "Artificial Intelligence", "AI" ]) is_beginner = row["difficulty"] == "beginner" return is_ml and is_beginner

Title Machine Learning Deep Learning AI Agents ...

Subject

Difficulty

Computer Science Computer Assets Science Computer Science

advanced

...

...

beginner

advanced

Subject

Difficulty

Computer Science Computer Assets Science Computer Science

advanced

...

...

beginner

advanced

Figure 1: Compilation-based execution: move the LLM from per-row runtime interpretation to a one-time, compile-time synthesis of executable operator code. The interpreter (top) issues one LLM call per row; the compiler (bottom) issues a single LLM call to synthesize a deterministic function (compiled_filter in the example), which then runs locally over every row with no per-row LLM call. semantic operator system and does not replace the native execution path of an existing backend. Instead, it acts as an external plugin that selectively bypasses the backend for operators that can be executed more efficiently as compiled programs. Operators that are not selected for compilation continue to execute through the backend’s original implementation. It introduces compilation as an additional physical execution option and chooses between native and compiled execution on an operator-by-operator basis using the optimizer. Figure 2 summarizes the workflow. Given an operator pipeline, SemBaker routes each operator to native or compiled execution and overlaps code generation with pipeline execution. Operators that are difficult to compile or too small to amortize compilation remain on the native path. Section 2 presents the design. Thin adapters integrate SemBaker with Palimpzest, LOTUS, Nirvana, and DocETL [6, 8, 9, 13] without modifying their source code. SemBaker currently focuses on three common semantic operators: semantic filter, semantic map, and semantic join. These three operators are the major operators in many cases, mirroring selection, projection and join (SPJ) in traditional databases. In the future we will integrate more operators. This paper makes the following contributions: • We introduce a new compilation-based execution paradigm for semantic operators, moving the LLM from per-item runtime interpretation to one-time code synthesis, significantly saving time and cost. • We present SemBaker, an external plugin that enables compilationbased hybrid execution for existing semantic operator systems, effectively enhancing their performance on specific operators. • We design a cost-model-based optimizer that routes each operator to native or compiled execution, and a parallel compilationexecution engine that minimizes the overhead.

• We conduct an extensive evaluation, demonstrating 4.8–6.3× average speedups and 5.4–10.7× average cost reductions with competitive quality.

2

SemBaker

SemBaker is an external compilation-based execution engine for semantic operator systems. It does not replace the backend system; instead, it adds compiled execution as an alternative physical implementation for selected semantic operators. Operators that remain native are executed by the original backend, while compiled operators are executed locally by SemBaker without per-item LLM calls. Figure 2 shows the architecture and workflow of SemBaker. The system contains three main components: a cost-based optimizer, an LLM-based compiler, and a parallel executor. Thin backend adapters connect these components to existing semantic operator systems via their native extension entry points without modifying their source code. SemBaker also provides helper modules for caching, predicate refinement, and compiled code validation. First, the optimizer scans a semantic operator plan (Input in Figure 2) and assigns every operator to either native or compiled execution based on cost estimation, resulting in the Compilation Decision in the figure where orange nodes are native and green nodes are to be compiled. This decision is made independently for each operator, so the input query plan will usually becomes hybrid. Then, the compiler translates each selected semantic operator into a deterministic executable program, solidifying the decision to the final hybrid pipeline in Figure 2. The compiler feeds the natural-language predicate, operator type, input schema, and optional representative records into an LLM, to generate a function that “mimics” the operator’s behavior/judgment. The generated function is not allowed to invoke an LLM internally and is reused

From Interpretation to Compilation: A Compilation-Based Execution Engine for Semantic Operator Systems

Optimization (compilation decision) sem_filter

Parallel Compilation + Execution

compiled_filter(row)

To be compiled

SemBaker Compiler

SemBaker Optimizer

Input

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Compilation Decision

Semantic Operator Sys

Semantic Operator Sys

Final hybrid pipeline

SemBaker Executor

Figure 2: Workflow of SemBaker: The input pipeline consists of all native (LLM-based) operators (orange nodes). It first goes through SemBaker optimizer to decide which operators should be compiled (green nodes), resulting the decision. The decision is then compiled by SemBaker compiler as well as executed by both SemBaker executor and the backend semantic system. The execution starts as soon as the decision is made for all operators, and it only waits if next operator to be executed is not ready. across all rows or candidate pairs processed by the operator. SemBaker currently compiles three common operators: sem_filter → compiled_filter(row) → bool, sem_map → compiled_map(row) → value, sem_join → compiled_join(left,right) → bool. Parallelly with the compilation, the executor runs the hybrid pipeline. Native operators are sent to the original backend system. Compiled operators bypass the backend’s LLM-based path and run locally using the generated program. Compilation and execution are overlapped(parallel), rather than organized as two strictly sequential phases. The only case where execution waits for compilation is the next operator to be executed is still being compiled. Although the compilation and execution are parallel, the execution itself is still in order. For example, in Figure 2, the first native operator (leftmost orange node) can start being executed by the backend semantic system right after decision, at the same time of compilation; while the first compiled operator (bottom green node) has to wait until its code is generated, and the rightmost native operator has to wait until all operators before it are executed. SemBaker keeps the optimizer, compiler, executor, and helper modules backend-independent, while uses thin adapters to connect the backends, via their native extension entry points. So SemBaker does not modify any backend’s source code, making it portable and extensible.

2.1

Compiler

For each operator selected for compilation, SemBaker invokes the LLM once to generate a deterministic Python function, where each operator has their own compilation prompt. The prompts are backend- and dataset-independent: they supply only the operator intent, input schema, and executable contract. For example, the default filter prompt is: You are an advanced database query optimizer. Translate the following semantic predicate into a highly optimized, deterministic Python function. Predicate Intent: "{PREDICATE}" Rules:

1. The function MUST be named `compiled_filter`. 2. It takes one argument `row`, a dictionary with the following keys: {INPUT_SCHEMA}. 3. It returns a boolean (True/False). 4. Output ONLY valid Python code, without Markdown formatting or explanations.

Map and join use the same template with operator-specific contracts. A map returns one value through compiled_map, whereas a join returns a Boolean over a record pair through compiled_join. The join prompt additionally includes representative unlabeled rows from both inputs so that the compiler can identify comparable fields. Prompt v1: We also design advanced compilation prompts, Prompt v1. Each retains the complete Default prompt and appends a lightweight natural language processing (NLP) tool calling policy. These advanced prompts permit the generated code to use advanced Python NLP and ML packages, like NLTK, NumPy, and scikit-learn. They do not change the compiled function interface, and they prohibit heavy NLP/ML tool calling like LLM calls, using neural embeddings, network access, model downloads, and building heavyweight neural models. Prompt V1 is designed for highly semantic queries, allowing more flexibility to the generated code. But it also introduces more compilation and runtime overhead.

2.2

Cost-Based Optimizer

SemBaker makes one routing decision for every supported operators based on its cost model. To estimate the pipeline running cost, the backend adapter first extracts the operator type, naturallanguage instruction, visible fields, and an estimate 𝑛 b of the amount of work. For filters and maps, 𝑛 b is the estimated number of input rows; for joins, it is the estimated number of candidate pairs. When a materialized input is available, the adapter obtains its exact cardinality. Otherwise, the cost model uses such a cardinality estimate: during the plan walk, a sem_map preserves cardinality of the input, a sem_filter propagates an estimated output selectivity, and a sem_join multiplies the propagated estimates of its two input branches. In the current version, we set the selectivity of both sem_filter and sem_join to 0.5. Therefore, a filter with 𝑛 input rows is estimated to produce 0.5𝑛 rows, and a join with estimated

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

input cardinalities 𝑛𝑙 and 𝑛𝑟 is estimated to produce 0.5𝑛𝑙 𝑛𝑟 rows. Note that the amount of work used to make the join routing decision is still 𝑛𝑙 𝑛𝑟 , since all candidate pairs need to be evaluated. In future work, we will introduce dynamic selectivity estimation based on the operator predicate and input data. Our default optimizer uses a frozen empirical threshold model shared by all backend adapters. For operator type 𝑜 and cost metric 𝐽 , let 𝐴𝑜,𝐽 denote the one-time compilation overhead and 𝑟𝑜,𝐽 the native cost per unit of work (i.e., one row or pair). Then we have the decision threshold based on amortizing compilation overhead over all work units:   𝐴𝑜,𝐽 ∗ 𝑛𝑜,𝐽 = + 1. 𝑟𝑜,𝐽 ∗ , it worth This means when the work unit scale is larger than 𝑛𝑜,𝐽 compilation. The default cost metric is processing time. We profile the latency for different operators in our development: the measured profiles use a 25-second compilation overhead and 2.5 seconds per native input row for filters and maps, giving 𝑛 ∗ = 11. Joins use a 28second compilation overhead and 0.15 seconds per native candidate pair, giving 𝑛 ∗ = 187. The implementation also supports a monetarycost metric, whose threshold values are 17, 14, and 17 for filters, maps, and joins, respectively. These Simple-model profiles are fixed across backends; backend-specific batching is modeled only by the optional Advanced cost estimate policy described below. A threshold alone is insufficient because some predicates cannot be faithfully implemented by an offline deterministic function. The default routing rule is therefore

route(𝑜) = CX

⇐⇒

∗ supported(𝑜) ∧ 𝑛 b ≥ 𝑛𝑜,𝐽 ∧ codifiable(𝑜).

The default codifiability test is a conservative lexical screen for semantic requirements such as sarcasm, nuanced or subjective judgment, and multi-hop reasoning – for highly semantic predicates that are hard to translate to explicit programming logic, they cannot be compiled. And unsupported operators are left native.

2.3

Parallel Compilation and Execution

SemBaker separates compilation from the backend execution thread and provides a shared scheduler for all adapters. The scheduler accepts a list of compilation tasks and executes them using a bounded thread pool, parallelly with the execution. When a pipeline arrives, the optimizer derives compilation tasks, which are submitted to a persistent background thread pool in plan-execution order. And execution of the pipeline starts without waiting for full compilation to finish. Native operators invoke the backend’s normal implementation. Compiled operators execute the generated function once the code becomes available. If execution reaches an operator whose compilation has not finished, it waits only for that operator; there is no whole-query compilation barrier. The execution path handles three cases: (1) If the completed artifact is ready, it is executed immediately. (2) If it is being compiled, the executor waits until compilation is done, and executes the code. (3) Otherwise, if the operator compilation has not yet started, the executor will spawn a compiler thread to compile the operator, store the artifact, and execute it. Furthermore, the compiled artifacts will be stored in cache,

Wenkai Dong and Yifan Wang

such that they can be reused for duplicate operators to avoid repeated compilation. SemBaker also has retry mechanism to handle compilation failures.

2.4

Refine and Validate

Refinement and validation are optional compile-time helpers. Refinement uses the predicate, schema, and representative unlabeled records to produce a column-grounded compilation specification. For example, a join asking for reviews with opposite sentiment can be rewritten as a deterministic comparison when both inputs contain a sentiment-label column. The refiner sees no gold labels. Validation first checks that a generated program is executable and satisfies its operator contract. It then compares at most three candidates against LLM-generated pseudo-labels on up to 12 rows for filters and maps or 20 pairs for joins. SemBaker retains the highest-scoring executable candidate and stops early when validation accuracy reaches 0.8. Both helpers are disabled by default because their additional LLM calls do not consistently improve end-to-end quality.

3 Experiments 3.1 Experimental Setup We evaluate SemBaker on all four supported semantic query engines: Palimpzest (PZ), LOTUS, and Nirvana. All experiments use gpt-5-mini-2025-08-07 for both SemBaker and the backends. Prompt V1, and refinement and validation are enabled only in their dedicated ablation. They are not integrated in the end-to-end evaluation. Datasets. Our main evaluation uses ManyModalQA [4], HybridQA [2], MultiModalQA (MMQA) [10], and SemBench [5]. The first three are multimodal question-answering datasets. From SemBench, we use all ten queries in the movie scenario because they can be implemented consistently across the three backends and exercise the semantic operators supported by SemBaker. Running the complete QA development sets for every backend and method would be prohibitively expensive. We therefore construct deterministic, stratified 200-query evaluation sets: 100 text and 100 table questions from ManyModalQA, 200 hybrid questions from HybridQA, and 50 questions from each of the four supported non-visual MMQA types. For perspective, the HybridQA development split alone contains 3,466 questions. Extrapolating from the observed LOTUS mean latencies of 58.35 seconds for Native and 45.24 seconds for Ours, a complete Native–Ours pass over this split would require approximately 100 hours, or 4.2 days, excluding judge overhead. We exclude image-dependent questions because the current compiler targets record-oriented operators over text and tables and does not consume raw image inputs; such questions would therefore exercise only the backends’ native vision paths. To evaluate compilation when per-record execution becomes significant, we append 100 deterministic distractor rows to each table-bearing input in ManyModalQA and MMQA. The distractors are constructed not to match the reference answers, and questions whose answers depend on the unconditional table cardinality are excluded.

From Interpretation to Compilation: A Compilation-Based Execution Engine for Semantic Operator Systems

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Table 1: Standalone single-operator evaluation. Each operator is evaluated over 100 predicates. Agreement is measured against the native implementation.

All-CX method forces compiling every supported semantic operator; and Ref.+Val. enables refine and validate modules. Table 3 reports the results. Compiler guidance needs joint design: Prompt v1 helps when the operator semantics align closely with its lightweight NLP Agreement Time per query primitives. This is visible on ManyModalQA + PZ and Nirvana, as Operator #Q Acc. P R F1 Base (s) Comp (s) Exec (ms) well as SemBench + Nirvana, where Prompt v1 achieves quality Filter 100 0.914 0.975 0.887 0.890 130.0 28.3 1.34 gains than default prompt. However, it is unstable for operators Map 100 0.912 0.911 0.919 0.911 138.7 15.5 2.43 that require contextual judgment or precise schema reasoning, like Join 100 0.994 0.970 0.980 0.961 703.4 22.6 4.23 on PZ + SemBench, F1 decreases from 1.00 to 0.50. Its efficiency effect is also conditional. V1 accelerates SMS by 26.6%, but increases LOTUS latency on ManyModalQA. This evaluation shows that adWe additionally evaluate the DocETL adapter on balanced 1,494ditional primitives change the types of semantics that the compiler record subsets of the UCSD Steam Reviews dataset [11] for recomcan represent well, indicating that further improving SemBaker mendation mapping and the UCI SMS Spam Collection [1] for spam needs a systematic design jointly considering all the three major filtering, using 747 records per class. components. Finally, we report the standalone filter, map, and join measureSelective routing is necessary: All-CX performs well when a ments from our preliminary study [3]. workload is dominated by semantic operations that can be captured Metrics: For result quality, Exact Match (EM) and F1 score comfaithfully by deterministic code. HybridQA illustrates this where pare the predicted and reference answers directly, computed over the queries are relatively less semantic than other datasets: forcing successful queries only. LLM-based semantic equivalence (denoted compilation improves F1 on PZ and Nirvana while also reducing by LLM in the evaluation tables) uses an LLM to judge whether an their latency. In contrast, forced compilation substantially harms answer is semantically equivalent to the gold answer [12]. workloads with more complex semantics: On PZ, All-CX reduces F1 by 14.9% on MMQA and also produces a clear quality and latency 3.2 Single-Operator Evaluation regression on ManyModalQA. These results prove the necessity of We first evaluate the performance of compilation-based execution SemBaker optimizer and selective routing that let the execution on standalone single-operator. Table 1 shows one of the results. benefit from both compilation time/cost-saving and LLM’s flexible The native implementation serves as the reference, and agreement reasoning. between compiled and native measures how closely the compiled Refinement and validation are a trade-off: Ref.+Val. significantly function reproduces the native operator’s outputs. Since a single improve the quality like on SemBench + Nirvana, but they may also operator is not enough to fully answer the queries in the datasets, decrease the quality in some cases, meaning that they are unstable we did not compare against the groundtruth. Base is the end-to-end in different cases. This result highlights a limitation of adding LLMnative execution time, while Comp and Exec denote one-time combased quality-control stages indiscriminately: refinement may alter pilation and local execution, respectively. This evaluation shows the original intent, while validation based on a small sample may that compilation preserves most of the native operators’ processing not reliably predict full-workload behavior. This further strengths quality and saves time significantly. For example, the compiled functhat the further improvement of SemBaker needs a joint design. tions achieve 0.89–0.96 F1 agreement. Especially, sem_join attains Overall conclusion: Overall, the current architecture of Sem0.994 accuracy with up to 31.1× speedup. More results are in our Baker provides the best trade-off among the evaluated configurainitial work [3]. tions under the current scenarios. Further improvement requires a joint design of the whole system rather than an upgrade to a single 3.3 End-to-end Results component. Table 2 compares the native engine with SemBaker on the endto-end performance. Native and Ours are shown in separate subcolumns for every metric. The central result is that our method achieves significant acceleration and token cost saving with a competitive end-to-end processing quality against the native execution. For instance, on ManyModalQA and HybridQA, it reduces average latency by 79.3% and 84.1%, and cost by 85.1% and 91.6%, respectively, while keeping quality close to or even above the native baseline.

3.4

Ablation Studies

We ablate three design choices in SemBaker: compiler guidance, selective routing, and refinement with validation. All variants share the same baseline, which uses the default compiler profile, costbased routing, and turned off refinement and validation. Prompt v1 method replaces the default compiler prompt with the v1 prompt;

4

Conclusion

We presented SemBaker, an external compilation-based engine that adds deterministic local execution to existing semantic operator systems. Through operator routing and parallel compilation and execution, SemBaker achieves significant acceleration and cost saving without replacing or modifying the backend systems. In evaluation, SemBaker achieves 4.8–6.3× average speedups and 5.4–10.7× average cost reductions, with competitive quality to the backend systems.

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Wenkai Dong and Yifan Wang

Table 2: End-to-end results. QA workloads contain 200 queries, SemBench contains all 10 movie queries, and each DocETL task contains 1,494 records. Time and cost are per query for QA and SemBench and per job for DocETL. Judge overhead is excluded; refinement and validation are disabled. EM/Acc.

F1

LLM

Time (s)

Cost ($)

Dataset

Engine

Native

Ours

Native

Ours

Native

Ours

Native

Ours

Native

Ours

ManyModalQA

PZ LOTUS Nirvana

0.633 0.337 0.608

0.568 0.403 0.610

0.773 0.465 0.729

0.698 0.534 0.749

0.920 0.942 0.901

0.844 0.942 0.900

159.05 16.88 57.56

13.72 15.63 19.04

0.0184 0.0286 0.0274

0.0031 0.0044 0.0036

HybridQA

PZ LOTUS Nirvana

0.455 0.391 0.399

0.467 0.435 0.430

0.544 0.525 0.483

0.576 0.584 0.532

0.600 0.706 0.561

0.658 0.745 0.615

173.28 58.35 661.48

46.33 45.24 50.68

0.1875 0.1657 0.2789

0.0147 0.0202 0.0180

MMQA

PZ LOTUS Nirvana

0.490 0.200 0.405

0.415 0.155 0.430

0.555 0.263 0.456

0.467 0.214 0.490

0.630 0.640 0.500

0.520 0.580 0.540

420.01 23.97 84.57

38.20 36.12 31.33

0.0319 0.0820 0.0610

0.0029 0.0120 0.0102

SemBench

PZ LOTUS Nirvana

0.896 0.928 0.882

0.975 1.000 0.800

0.917 0.934 0.793

1.000 1.000 0.586

– – –

– – –

68.13 8.20 43.59

18.37 20.42 11.78

0.0184 0.0233 0.0326

0.0023 0.0042 0.0029

Steam SMS

DocETL DocETL

0.870 0.977

0.686 0.950

0.873 0.977

0.679 0.948

– –

– –

67.98 117.53

56.40 78.23

1.0529 2.1733

0.0083 0.0119

Table 3: Ablations using a shared baseline: Default prompt, cost-based routing, and disabled refinement and validation. Each quality cell reports EM/Accuracy, F1, and semantic-judge score; each efficiency cell reports time and cost. Shared Baseline

Dataset

Engine

Quality EM/F1/J

ManyModalQA

PZ LOTUS Nirvana PZ LOTUS Nirvana PZ LOTUS Nirvana PZ LOTUS Nirvana DocETL DocETL

0.568/0.698/0.844 0.403/0.534/0.942 0.610/0.749/0.900 0.467/0.576/0.658 0.435/0.584/0.745 0.430/0.532/0.615 0.425/0.475/0.530 0.177/0.242/0.591 0.415/0.466/0.525 0.975/1.000/– 1.000/1.000/– 0.800/0.586/– 0.711/0.698/– 0.950/0.948/–

HybridQA MMQA SemBench Steam SMS

Prompt v1

All-CX

Ref.+Val.

Efficiency Time/Cost

Quality EM/F1/J

Efficiency Time/Cost

Quality EM/F1/J

Efficiency Time/Cost

Quality EM/F1/J

Efficiency Time/Cost

13.72/0.0031 15.63/0.0044 19.04/0.0036 46.33/0.0147 45.24/0.0202 50.68/0.0180 50.33/0.0030 48.76/0.0123 47.46/0.0101 18.37/0.0023 20.42/0.0042 11.78/0.0029 43.96/0.0078 78.23/0.0119

0.600/0.712/0.855 0.398/0.524/0.923 0.615/0.758/0.920 0.460/0.586/0.662 0.397/0.555/0.734 0.385/0.485/0.545 – – – 0.563/0.500/– 0.990/0.990/– 0.825/0.586/– – 0.927/0.928/–

14.42/0.0031 21.05/0.0053 16.93/0.0049 46.06/0.0161 49.95/0.0201 47.70/0.0195 – – – 18.24/0.0016 25.75/0.0043 16.38/0.0030 – 57.41/0.0106

0.520/0.635/0.760 0.370/0.486/0.920 0.620/0.749/0.880 0.490/0.620/0.660 0.420/0.568/0.730 0.480/0.591/0.670 0.290/0.326/0.355 0.151/0.202/0.508 0.415/0.444/0.485 – – – – –

26.40/0.0057 29.40/0.0063 25.50/0.0052 36.00/0.0146 43.20/0.0145 35.30/0.0097 34.26/0.0089 63.62/0.0117 48.08/0.0094 – – – – –

0.568/0.692/0.824 0.349/0.481/0.954 0.615/0.753/0.890 0.390/0.474/0.530 0.383/0.515/0.694 0.390/0.486/0.575 0.446/0.500/0.549 0.132/0.186/0.574 0.425/0.476/0.530 0.738/0.500/– 1.000/1.000/– 1.000/0.836/– 0.641/0.646/– 0.901/0.897/–

17.07/0.0078 18.93/0.0087 22.86/0.0100 89.19/0.0596 73.86/0.0591 77.16/0.0449 58.94/0.0170 70.48/0.0260 59.59/0.0227 32.11/0.0105 37.07/0.0153 19.55/0.0147 84.54/0.0125 46.49/0.0183

References [1] Tiago A. Almeida, José María Gómez Hidalgo, and Akebo Yamakami. 2011. Contributions to the Study of SMS Spam Filtering: New Collection and Results. In Proceedings of the 11th ACM Symposium on Document Engineering. Association for Computing Machinery, 259–262. doi:10.1145/2034691.2034742 [2] Wenhu Chen, Hanwen Zha, Zhiyu Chen, Wenhan Xiong, Hong Wang, and William Yang Wang. 2020. HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Data. In Findings of the Association for Computational Linguistics: EMNLP 2020. Association for Computational Linguistics, 1026–1036. doi:10.18653/v1/2020.findings-emnlp.91 [3] Wenkai Dong and Yifan Wang. 2026. From Interpretation to Compilation: Compilation-Based Execution of Semantic Operators [Vision]. arXiv:2607.13407 [cs.DB] https://arxiv.org/abs/2607.13407 [4] Darryl Hannan, Akshay Jain, and Mohit Bansal. 2020. ManyModalQA: Modality Disambiguation and QA over Diverse Inputs. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 34. 7879–7886. doi:10.1609/aaai.v34i05.6294 [5] 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, and Immanuel Trummer. 2025. SemBench: A Benchmark for Semantic Query Processing Engines. arXiv preprint arXiv:2511.01716 (2025). [6] Chunwei Liu, Matthew Russo, Michael Cafarella, Lei Cao, Peter Baile Chen, Zui Chen, Michael Franklin, Tim Kraska, Samuel Madden, Rana Shahout, and Gerardo Vitagliano. 2025. Palimpzest: Optimizing AI-Powered Analytics with Declarative Query Processing. In Proc. CIDR.

[7] Thomas Neumann. 2011. Efficiently Compiling Efficient Query Plans for Modern Hardware. Proc. VLDB Endow. 4, 9 (June 2011), 539–550. doi:10.14778/2002938. 2002940 [8] Liana Patel, Siddharth Jha, Melissa Pan, Harshit Gupta, Parth Asawa, Carlos Guestrin, and Matei Zaharia. 2025. Semantic Operators and Their Optimization: Enabling LLM-Based Data Processing with Accuracy Guarantees in LOTUS. Proc. VLDB Endow. 18, 11 (2025), 4171–4184. [9] Shreya Shankar, Tristan Chambers, Tarak Shah, Aditya G. Parameswaran, and Eugene Wu. 2025. DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processing. Proc. VLDB Endow. 18, 9 (2025). [10] Alon Talmor, Ori Yoran, Amnon Catav, Dan Lahav, Yizhong Wang, Akari Asai, Gabriel Ilharco, Hannaneh Hajishirzi, and Jonathan Berant. 2021. MultiModalQA: Complex Question Answering over Text, Tables, and Images. In International Conference on Learning Representations. https://openreview.net/forum?id= ee6W5UgQLa [11] Mengting Wan and Julian McAuley. 2018. Item Recommendation on Monotonic Behavior Chains. In Proceedings of the 12th ACM Conference on Recommender Systems. Association for Computing Machinery, 86–94. doi:10.1145/3240323. 3240369 [12] Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging LLM-as-a-Judge with MTBench and Chatbot Arena. In NeurIPS Datasets and Benchmarks Track. [13] Junhao Zhu, Lu Chen, Xiangyu Ke, Ziquan Fang, Tianyi Li, Yunjun Gao, and Christian S. Jensen. 2025. Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimization. arXiv preprint arXiv:2511.19830 (2025).

Related documents

Record · ID 440455 · SHA-256 a21861d449dac0e6
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive