arXiv Science⌕ Search

arXiv · 2611.24518

Towards Online Adaptive LLM-based Semantic Filtering

Abstract

Large language models (LLMs) enable semantic filtering over unstructured documents using natural language predicates, but invoking an oracle LLM on every document incurs prohibitive monetary cost and online latency. Existing model-cascade approaches reduce this cost by using a lightweight proxy model to score each document and forwarding only uncertain documents to the oracle. However, their proxy models have limited generalization capability, and they typically adopt fixed sampling budgets for proxy training and threshold calibration, which insufficiently adapts to diverse online queries. To address this, we present OASIS, an online adaptive framework for LLM-based semantic filtering. OASIS combines a query-agnostic document similarity prior with query-adaptive online learning and sampling. In the offline phase, OASIS utilizes query-agnostic document similarity as a prior and constructs a document navigating spread-out graph (NSG) over document embeddings. For each online query, OASIS trains a query-conditioned graph attention network over the document NSG to obtain proxy scores through semi-supervised node classification. To allocate labels effectively, OASIS adopts density-aware active learning to explore uncertain score regions, selectively annotate informative documents, retrain the proxy, and stop early when additional labels are unlikely to improve the cascade. During threshold calibration, OASIS progressively samples an adaptively sized calibration set, adapting calibration cost to the query's score distribution. Extensive experiments demonstrate that OASIS achieves a 1.75x-5.42x reduction in online latency and reduces the number of LLM-processed documents by 35%-75% relative to the state-of-the-art methods at an achieved accuracy of 0.9.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ziqi Zou, Zhenyan Nie, Kangfei Zhao, Zhiwei Zhang, Aoqian Zhang, Peng Wu, Xuefeng Zhao. 2026-11-18. Towards Online Adaptive LLM-based Semantic Filtering. https://arxiv.science/abs/2611.24518

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

ShapleyPipe: A Game-Theoretic Approach to Data Preparation Pipeline Construction

Data preparation is a critical yet highly time-consuming component of machine learning (ML) workflows and has a substantial impact on downstream model performance. Automated data preparation pipeline construction requires selecting appropriate operators, such as missing-value imputation, feature scaling, and feature transformation, and placing them at suitable pipeline positions. However, existing methods lack a principled and interpretable mechanism for understanding the marginal contribution of each operator at a specific position. To address this limitation, we study data preparation pipeline construction from a cooperative game-theoretic perspective. We formulate the task as a pipeline construction game, in which operators act as players that cooperatively improve downstream model utility. Based on this formulation, we propose the Pipeline Shapley value (PipeShapley), a contribution-attribution method that explicitly captures position-dependent contributions and distinguishes repeated occurrences of the same operator type. Building on PipeShapley, we introduce ShapleyPipe, an interpretable pipeline construction framework that selects and orders operators according to their position-aware contributions. To make PipeShapley practical, we develop Hierarchical ShapleyPipe (H-SP) based on a Category Coherence Assumption to exploit coherent contribution patterns, combining MAB-based representative selection with adaptive early termination. Experiments on 27 classification datasets show that H-SP achieves the highest average accuracy of 0.847 and the best average rank among the evaluated practical methods, while lying on the empirical accuracy--runtime Pareto frontier. On three datasets with up to 581K records, 10K-subsample search and 16-worker parallel execution reduce the average wall-clock time to 891 seconds while retaining the highest average accuracy of 0.705.

cs.DB↗

Continuous Prompts: LLM-Augmented Pipeline Processing over Unstructured Streams

Monitoring unstructured streams increasingly requires persistent, semantics-aware computation, yet today's LLM frameworks remain stateless and one-shot, limiting their usefulness for long-running analytics. We introduce Continuous Prompts (CPs), the first framework that brings LLM reasoning into continuous stream processing. CPs extend RAG to streaming settings, define continuous semantic operators, and provide multiple implementations, primarily focusing on LLM-based approaches but also reporting one embedding-based variants. Furthermore, we study two LLM-centric optimizations, tuple batching and operator fusion, to significantly improve efficiency while managing accuracy loss. Because these optimizations inherently trade accuracy for speed, we present a dynamic optimization framework that uses lightweight shadow executions and cost-aware multi-objective Bayesian optimization (MOBO) to learn throughput-accuracy frontiers and adapt plans under probing budgets. We implement CPs in the VectraFlow stream processing system. Using operator-level microbenchmarks and streaming pipelines on real datasets, we show that VectraFlow can adapt to workload dynamics, navigate accuracy-efficiency trade-offs, and sustain persistent semantic queries over evolving unstructured streams.

cs.DB↗

Standardized Tolerance for Adaptive Reuse and Repair: A Method for HNSW Migration Under Embedding Model Change Scenarios

When an embedding model changes, the same collection is re-encoded, and its vector index must be adapted to the new embedding space. Because the source and target vectors represent the same objects, suitable connections in the source index can be reused. We propose STARR (Standardized Tolerance for Adaptive Reuse and Repair) to migrate HNSW indexes after an embedding model change. STARR compares standardized edge lengths over the same source neighbor lists in both embedding spaces and uses the correlation between their distance profiles to set the allowable increase in standardized edge length. It reconnects affected vertices by searching the partially migrated graph and shares the resulting candidates with their neighbors. We bound edge rejection under local distance distortion, characterize migration work, and prove that a final repair pass makes every vertex reachable from the entry point at the base layer while respecting degree limits. Single-threaded experiments on MS MARCO, Wikipedia, and CC3M, each with one million objects, show that STARR achieves 5.25--44.54$\times$ construction speedups over Fresh and migrates faster than both DGM variants on all 15 selected transitions. Recall@10 remains within one percentage point of Fresh in 10 cases, and query throughput exceeds DGM-Local in 14 cases. Parameter sweeps on three transitions further demonstrate favorable migration-time--recall tradeoffs beyond the default settings. Across all 240 directed transitions among 16 MS MARCO models, STARR achieves a median construction speedup of 16.71$\times$ with a median recall loss of 1.0 percentage point.

cs.DB↗