Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
arXiv Machine Learning · 2026/7/30 14:46:43

Fully Inductive Cardinality Estimation

AI 中文解读
FICE来了,它给数据库查询装上了“即插即用”的智能引擎,不需重新训练就能精准预测新数据库的查询结果量,这是以往AI估计算法无法做到的。 通俗点说,当你搜索信息时,数据库需要提前估算有多少条结果,才能安排最高效的搜索路径。过去的AI估算器就像个“认死理”的学生,考过的题会做,换个新题库就抓瞎,必须重新补课。FICE则不同,它像一个“学会解题思路”的学霸,无论遇到多陌生的数据图表,都能凭经验快速给出准确估算。它靠的是对数据库结构进行“看图说话”式的学习,而且速度极快,眨眼功夫就能完成估算。 这项技术的实际意义在于,日常使用搜索引擎、地图导航、甚至查电商商品时,背后都有类似的数据库查询过程。FICE让这些服务面对海量新数据时反应更快、成本更低,不会因为数据更新而卡顿或宕机。未来你查到的结果会更流畅,平台处理复杂查询的能耗也会下降,受益的是每一个依赖在线数据服务的普通人。
Query optimization of Basic Graph Patterns (BGP) SPARQL queries over Knowledge Graphs (KG) requires accurate cardinality estimation. Recently published learned estimators outperform statistics- and sampling-based approaches, but share a limitation preventing their adoption in real-world triplestores: they are transductive and require retraining when the underlying graph changes or when applied to new graphs. We present FICE (Fully Inductive Cardinality Estimation), the first learned cardinality estimator for BGP queries over KGs that generalizes to entirely unseen graphs (including unseen relations), without any retraining. FICE is a graph neural network (GNN) with two coupled components. First, an encoder GNN over a factor-graph view of the KG produces entity and relation embeddings. We prove that BGP cardinality is a local function of the 2-hop neighborhood around bound terms in this view, motivating the local message-passing encoder. A decoder GNN then composes these embeddings along the join topology of the query to predict log-cardinality. The encoder and decoder are trained jointly, making the embeddings specialized for cardinality estimation. FICE is trained using neighborhood sampling to scale to KGs with millions of triples, and decouples embedding generation from cardinality decoding to enable estimation latency below a millisecond. Compared to learned and non-learned baselines over 10 KGs, FICE reduces the overall median q-error from 13.54 (for the best competitor) to 5.34 and dominates all approaches in tail behavior.
分享
阅读原文