News

Researchers report 57% fewer model calls with SemMV

In tests on the Palimpzest engine, SemMV's authors report 40% lower mean query latency than a baseline that reruns each query across the full table.

D
Dec 4, 2026 · 2 min read

Researchers at the National University of Singapore and ETH Zurich report that SemMV used 57% fewer large language model calls in database tests. The system reuses decisions across related queries. Wanting Li and colleagues describe it in arXiv 2612.05260v1, a preprint that has not been peer-reviewed.

In Section 8.2 and Table 4, the authors compared SemMV with Full-table Fresh, which reruns each query across the entire table on the same Palimpzest engine. They report about 199,000 model calls with SemMV versus 466,000 with the baseline, including validation and maintenance calls where applicable. Mean query latency, including queue time, was 40% lower in their tests, at 34.29 versus 56.75 seconds.

The authors replayed ten workload traces over five tables from Amazon Reviews, PubMed and Artificial Intelligence Stack Exchange. The measured phase covered 164 queries and 95 batches of writes, using Llama-3.3-70B-Instruct on four NVIDIA H100 GPUs.

Against the benchmark’s reference labels, SemMV averaged 93.54% recall, the share of matching rows returned, and 59.45% precision, the share of returned rows that matched. Full-table Fresh averaged 93.84% recall and 59.16% precision.

SemMV stores earlier model decisions in materialized views that record which rows match a natural-language filter. It checks how a new filter relates to a stored one before reusing decisions. A narrower filter, for example, can skip rows that a broader filter already rejected.

SemMV ranks undecided rows by how likely they are to match. The large language model probes some rows to estimate a cutoff, then checks outward from it. Unchecked rows above the cutoff count as matches and those below it are excluded.

The upper scan stops when estimated precision reaches the target, and the lower scan stops when estimated recall reaches it. Both estimates use the model’s judgments as their reference across the undecided rows. Either side also stops once every row on it has been checked.

In a separate test in Section 8.4.1, the authors compared the scan’s results with full model judgments on the undecided rows. Sixteen of 366 view-query pairs missed the 95% target, 13 on recall and three on precision. The estimates can run high when unchecked rows contain more errors than the checked rows suggest.

Under its default policy, SemMV refreshes a view in the background when recent reuse and writes suggest that the savings will exceed the refresh cost. A query that selects a stale view refreshes it before reuse. The refresh keeps decisions on unchanged rows, drops deleted rows and calls the model for new rows or rows whose filter inputs changed.

The authors made the SemMV code and benchmark files public.

More news