CascadeFilter: Cost-Efficient Semantic Filtering with Joint Threshold Selection
Yanji He, Tao Zhong, Hongyang Chen, Xiaobo Zhang, Mingyu Yang, Wei Wang
Abstract
Semantic filtering selects records that satisfy a natural-language predicate and is an important operation in data analytics based on large language models (LLMs). Executing an expensive model on every document incurs substantial inference cost. Existing approaches reduce this cost by accepting predictions from cheaper models and forwarding uncertain records to an oracle. Task Cascades further varies document portions and operations, and provides an accuracy-guaranteed extension. However, its threshold calibration follows a prescribed adjustment sequence after cascade assembly, rather than minimizing cost over alternative combinations of stage thresholds. Motivated by this, we propose CascadeFilter, a three-stage semantic filtering method that jointly searches the thresholds for a small language model operating on extracted evidence and full documents, with unresolved records forwarded to the oracle. For a fixed cascade, we formulate threshold selection as minimizing token-aware cost subject to an oracle-relative error constraint, and select the least-cost certified configuration in a pre-specified grid. A finite-population calibration procedure bounds oracle-relative error after selection, using fixed-sequence tests on threshold tracks to allocate the multiple-testing budget. We further combine lexical and dense retrieval, reranking, and neighborhood-supported confidence to improve evidence extraction and routing. These components enhance the cascade while leaving its certification interface unchanged. Across six datasets and 13 evaluation settings, the reported results have the highest benchmark accuracy and macro-averaged F1 score in 12 settings each. These comparisons describe the reported operating points; the accuracy guarantee concerns agreement with the oracle.
Create a lesson
Related papers
FuseRAG: Fusing Structure and Evidence into Inference for Cost-Efficient Graph-based RAG
Shared title terminology · Tingqi Wang, Yingshu Li, Zhipeng Cai
Towards Online Adaptive LLM-based Semantic Filtering
Shared title terminology · Ziqi Zou, Zhenyan Nie, Kangfei Zhao et al.
Cascadeability and the Realization Gap: An Empirical Study of LLM-Powered Semantic Filtering
Shared title terminology · Nan Hou, Kangfei Zhao, Jiadong Xie et al.
CapCover Filter: Semantic Approximate Membership Queries over Embeddings
Shared title terminology · Dvir David Biton, Shay Hahiashvili, Nadav Keren et al.
PROBE: Learned Proxy-Based Execution for Highly Selective Multimodal Semantic Queries
Shared title terminology · Haikai Zhao, Haisheng Fu, Zhengjie Miao et al.
When Plans Change Answers: Formalizing Cost-Accuracy Optimization for Semantic Queries
Shared title terminology · Kyoungmin Kim