arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.19811cs.DB
收藏

通过基于LLM的查询规范化实现OLAP的语义缓存

Semantic Caching for OLAP via LLM-Based Query Canonicalization (Extended Version)

Max Planck Institute for Software Systems(马克斯·普朗克软件研究所)

Laurent Bindschaedler

AI总结:

本文提出基于LLM的查询规范化方法,通过统一的OLAP意图签名提升OLAP缓存命中率,实现82%的高命中率,显著优于传统方法。

摘要:

分析型工作负载表现出显著的语义重复,但大多数生产缓存通过SQL表面形式(文本或AST)来存储键条目,导致在BI工具、笔记本和自然语言接口之间重复利用的碎片化。我们引入了一种以安全优先为原则的中间件缓存,用于星型模式下的仪表板式OLAP,将SQL和自然语言转换为统一的键空间——OLAP意图签名,捕捉度量、分组层级、过滤器和时间窗口。重复利用需要在严格模式验证下进行精确意图匹配,并且通过置信度门控的自然语言接受;两种保持正确性的推导(汇总、过滤下推)扩展了覆盖范围,而无需近似匹配。在TPC-DS、SSB和NYC TLC(1,395个查询)上,我们实现了82%的命中率,相比文本的28%和AST的56%,无误命中;推导在分层查询上将命中率翻倍。

英文摘要:

Analytical workloads exhibit substantial semantic repetition, yet most production caches key entries by SQL surface form (text or AST), fragmenting reuse across BI tools, notebooks, and NL interfaces. We introduce a safety-first middleware cache for dashboard-style OLAP over star schemas that canonicalizes both SQL and NL into a unified key space -- the OLAP Intent Signature -- capturing measures, grouping levels, filters, and time windows. Reuse requires exact intent matches under strict schema validation and confidence-gated NL acceptance; two correctness-preserving derivations (roll-up, filter-down) extend coverage without approximate matching. Across TPC-DS, SSB, and NYC TLC (1,395 queries), we achieve 82% hit rate versus 28% (text) and 56% (AST) with zero false hits; derivations double hit rate on hierarchical queries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑