# Navigating Runtime Dynamism in Semantic Query Serving

DevFeed: [Navigating Runtime Dynamism in Semantic Query Serving](<https://devfeed.tech/articles/navigating-runtime-dynamism-in-semantic-query-serving-115959.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.04248>)

Author: Hengrui Zhang, Xupeng Miao

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [batch](<https://devfeed.tech/tags/batch.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [framework](<https://devfeed.tech/tags/framework.md>), [inference](<https://devfeed.tech/tags/inference.md>), [latency](<https://devfeed.tech/tags/latency.md>), [llm](<https://devfeed.tech/tags/llm.md>), [operator](<https://devfeed.tech/tags/operator.md>), [operators](<https://devfeed.tech/tags/operators.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [plan](<https://devfeed.tech/tags/plan.md>), [processing](<https://devfeed.tech/tags/processing.md>), [queries](<https://devfeed.tech/tags/queries.md>), [query](<https://devfeed.tech/tags/query.md>), [query-optimization](<https://devfeed.tech/tags/query-optimization.md>), [query-processing](<https://devfeed.tech/tags/query-processing.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [schedules](<https://devfeed.tech/tags/schedules.md>), [scheduling](<https://devfeed.tech/tags/scheduling.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [serving](<https://devfeed.tech/tags/serving.md>)

## AI overview

SeqoFlow addresses a feedback problem in serving concurrent LLM-powered semantic queries: scheduling needs estimates of remaining LLM work, while that work changes with runtime query plans. It decomposes queries into fine-grained units, enumerates equivalent plans subject to operator dependencies, and uses lightweight speculative cost estimates to guide both plan adaptation and scheduling. Batch-boundary preemption enables safe adaptation during execution. The abstract reports lower end-to-end latency than existing semantic query systems, adaptive query processing techniques, and conventional scheduling policies across varied query structures, data distributions, and arrival rates; it does not provide specific measurements.

## Source excerpt

arXiv:2611.04248v1 Announce Type: new Abstract: LLM-powered semantic queries increasingly combine relational processing with multiple LLM-based operators over unstructured data. Efficiently serving such queries is challenging due to runtime dynamism at two coupled levels. Across queries, dynamic arrivals and heterogeneous resource demands continuously change scheduling priorities. Within a query, heterogeneous characteristics across fine-grained input batches cause operator costs and selectivities to vary throughout execution, making a statically optimized plan unreliable. These two forms of dynamism create a circular dependency: inter-query scheduling requires estimates of remaining LLM work, while the remaining work depends on runtime plan choices whose costs become observable only during execution. We present SeqoFlow, a runtime framework that jointly adapts query plans and schedules concurrent semantic queries. SeqoFlow enumerates equivalence-preserving plan alternatives under operator dependencies and decomposes queries into fine-grained units, enabling safe plan adaptation and query preemption at batch boundaries. To support both decisions without exhaustively profiling candidate plans on the target LLM, SeqoFlow uses lightweight speculative estimation to capture runtime costs. These estimates jointly guide plan adaptation and inter-query scheduling, closing the loop between query optimization and LLM inference. Experiments across diverse query structures, data distributions, and arrival rates show that SeqoFlow substantially reduces end-to-end latency compared to existing semantic query systems, adaptive query processing techniques, and conventional scheduling policies.