arXiv:2608.27244cs.DBcs.AI2026-08

让大模型查询中的学习组件在请求往返间完成更新,提升语义数据系统效率。

Compositional Online Learning for Semantic Data Processing Systems

  • 在大模型调用边界设计可组合的在线学习框架,每步更新藏于请求往返中。
  • 实际应用中将查询成本降低至原来的1/8左右,理论上限达11.4倍优化。
  • 适合需实时优化的大模型语义查询系统,如AI驱动的数据库引擎。

在语义数据处理系统中,大语言模型(LLM)调用的成本极高,占查询总成本的80%-90%,单次调用代价是传统关系谓词的10⁵至10⁷倍。传统在线学习因需轻量以避免干扰优化目标,而受限于低延迟。但当前大模型的延迟使每次调用内可容纳梯度更新与批量阈值调整。本文提出在LLM调用边界实现组合式在线学习:多个学习组件在执行时动态决策并在线更新。该框架涵盖决策粒度与更新频率两个维度,所有组件共享同一学习模式,将训练步骤隐藏于下一请求往返中。在Cortex AISQL生产案例中,整合了缓存层、按请求在线排序过滤器的学习器、按批次在线路由的级联学习器。条件成本分解将各组件对应到每行查询的独立成本因子;在独立假设下,两学习组件组合带来11.4倍的理论上限优化,结合级联边界自选择、样本预算缩减及选择性估计漂移,实际性能降至约8倍优化。

原文摘要 · Abstract (English)

An LLM call in a semantic data processing system is expensive enough to dominate query cost, yet slow enough to hide a CPU-side learner's update behind its round-trip. In production, LLM compute accounts for $80-90\%$ of query cost, and each call costs $10^5-10^7\times$ a relational predicate. The latency window inverts a design constraint of classical adaptive query processing, where online learners had to stay lightweight to avoid dominating the predicates they optimize. At LLM latency, per-call gradient steps and per-batch threshold solves fit inside the round-trip. We develop compositional online learning at the LLM call boundary: a framework for combining online-learning components in semantic data processing systems. Each component makes execution-time decisions and refines its learned artifacts online. The design space spans two axes, decision granularity and learner update cadence, and the components share a single learning pattern that hides each trainer step inside the next LLM round-trip. A production case study in Cortex AISQL composes three components: a memoization layer, an online per-call filter-ordering learner, and an online per-batch cascade-routing learner. A conditional cost decomposition assigns each learning component to a distinct factor of per-row LLM cost. Under independence, the two learning components compose multiplicatively to an $11.4\times$ upper bound on a representative conjunction-filter workload. Self-selection at the cascade boundary, sample-budget shrinkage, and selectivity-estimation drift reduce it to a realistic figure near $8\times$.

在线学习大模型数据库语义处理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。