ACTIS: Adaptive Cascade Tuning for Semantic Filters with Statistical Guarantees
Neil Marchant, Renata Borovica-Gajic, Benjamin Rubinstein, Olga Ohrimenko
Abstract
Emerging semantic database systems use Large Language Models (LLMs) to evaluate natural language predicates during query processing. However, invoking an expensive frontier model for every tuple is prohibitively costly and induces high latency. Model cascades mitigate these limitations by using a cheap proxy to score all tuples, escalating only uncertain predictions to an expensive LLM oracle. To be deployed reliably, cascades are tuned on a sample of oracle-labeled tuples to satisfy precision and recall targets with high probability. Our comprehensive audit reveals that several existing tuning methods frequently violate these guarantees: state-of-the-art techniques are certified unsound on up to 90.5% of benchmarks and can miss accuracy targets by more than 70 percentage points. To improve efficiency and ensure soundness guarantees for semantic databases, we design ACTIS, an adaptive cascade tuning framework. ACTIS acquires oracle labels incrementally using anytime-valid tests with finite-sample safeguards, avoiding the over- or under-sampling pitfalls of a fixed pilot sample. A decoupled fixed-sequence search explores fine-grained threshold grids without conservative multiple-testing corrections, while a variance-minimizing importance sampling distribution reduces labels spent on uninformative negatives for selective queries. A value-of-information stopping rule halts tuning when additional oracle labeling costs exceed expected savings across the remaining workload. Across 42 benchmarks with cloud and local proxies, ACTIS matches or outperforms the only sound baseline on 39 of 42 settings, reducing oracle calls by up to 5.1.
Create a lesson
Metadata
- Categories
- cs.DB, cs.AI, cs.LG
- Comments
- 22 pages, 6 figures
Related papers
Falcon: Fast, Lightweight, and Robust Cascade for Oracle-Efficient Semantic Filtering
Shared title terminologycs.DBZepeng Liu, Hai Lan, Yiming Shi et al.
Towards Online Adaptive LLM-based Semantic Filtering
Shared title terminologycs.DBZiqi Zou, Zhenyan Nie, Kangfei Zhao et al.
Cascadeability and the Realization Gap: An Empirical Study of LLM-Powered Semantic Filtering
Shared title terminologycs.DBNan Hou, Kangfei Zhao, Jiadong Xie et al.
CapCover Filter: Semantic Approximate Membership Queries over Embeddings
Shared title terminologycs.DBDvir David Biton, Shay Hahiashvili, Nadav Keren et al.
CascadeFilter: Cost-Efficient Semantic Filtering with Joint Threshold Selection
Shared title terminologycs.DBYanji He, Tao Zhong, Hongyang Chen et al.
Diagnose Before You Tune: Agentic Bottleneck Diagnosis for Database Tuning
Shared title terminologycs.DBXinyue Yang, Chaozheng Wang, Chen Zheng et al.