CADENZA:将自然语言意图编译为特定任务操作符DAG用于语义查询处理
CADENZA: Compiling Natural-Language Intent into Task-Specific Operator DAGs for Semantic Query Processing
AI总结:
提出CADENZA系统,通过任务扩展关系代数(TxRA)将自然语言意图编译为特定任务DAG计划,并利用贝叶斯优化联合调优路由、后端参数和阈值,在质量、延迟和成本上显著优于现有方法。
摘要:
语义查询处理引擎(SQPE)通过关系查询处理扩展了语义操作符,这些操作符通过对非结构化数据的模型推理来执行。优化此类查询本质上是多目标的:模型推理主导延迟和货币成本,且输出是随机的且依赖于后端,因此必须同时优化质量和效率。现有的SQPE优化器未将每个语义操作符实例的中间任务输出暴露为关系优化对象,导致优化无法过滤、重排序、路由、阈值化或联合调优它们。我们提出CADENZA,它将每个语义操作符实例(一个绑定到自然语言意图的模板)编译为一个意图特定的类型化任务DAG计划空间,并在用户指定的质量-延迟-成本权衡下选择可执行计划。CADENZA引入了任务扩展关系代数(TxRA),这是关系代数的一个保守扩展,增加了任务特定操作符。逻辑规划器合成种子TxRA计划,应用结构重写(其安全条件通过操作符依赖检查),并从替代生成模板中枚举语义引导的替代方案。物理规划器将每个任务特定操作符编译为异构后端的路由器,并使用贝叶斯优化联合调优路由切点、后端参数和关系阈值。在SemBench上,相对于最先进方法,CADENZA将场景级别的平均质量、延迟和成本分别提高了最多+0.49、165.7倍和310.3倍。
英文摘要:
Semantic query processing engines (SQPEs) extend relational query processing with semantic operators that are executed via model inference over unstructured data. Optimizing such queries is inherently multi-objective: model inference dominates latency and monetary cost, and outputs are stochastic and backend-dependent, so quality must be optimized alongside efficiency. Existing SQPE optimizers do not expose each semantic operator instance's intermediate task outputs as a relational optimization object, leaving optimization unable to filter, reorder, route, threshold, or jointly tune them. We present CADENZA, which compiles each semantic operator instance--a template bound to a natural-language intent--into an intent-specific plan space of typed task DAGs and selects an executable plan under user-specified quality-latency-cost trade-offs. CADENZA introduces task-extended relational algebra (TxRA), a conservative extension of relational algebra with task-specific operators. The logical planner synthesizes seed TxRA plans, applies structural rewrites whose safety conditions are checked from operator dependencies, and enumerates semantics-guided alternatives from alternative-generation templates. The physical planner compiles each task-specific operator into a router over heterogeneous backends and jointly tunes routing cutpoints, backend parameters, and relational thresholds with Bayesian optimization. On SemBench, CADENZA improves the scenario-level averages of quality, latency, and cost by up to +0.49, 165.7x, and 310.3x, respectively, relative to state-of-the-art.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。