arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.04176cs.DB
收藏

大规模上下文图的可扩展连接推断

Scalable Join Inference for Large Context Graphs

Tursio

Shivani Tripathi, Ravi Shetye, Shi Qiao, Alekh Jindal

AI总结:

本文提出一种结合统计剪枝与LLM推理的可扩展连接推断方法,用于提升大规模上下文图构建的精度与效率。

摘要:

上下文图对于现代AI应用至关重要,包括问答、模式发现和数据分析。从结构化数据库中构建准确的上下文图需要推断实体之间的连接关系。无效连接引入歧义和重复记录,影响图的质量。我们提出了一种可扩展的连接推断方法,结合统计剪枝与大型语言模型(LLM)推理。不同于纯统计方法,我们的混合方法模仿人类语义理解,同时通过数据驱动推断缓解LLM幻觉。我们首先确定主键候选者,并利用LLM进行裁决,然后使用相同的两阶段过程检测包含依赖性。这种统计-LLM组合能够扩展到大规模模式,同时保持准确性并最小化假阳性。我们进一步利用数据库查询历史来随时间推移细化连接推断,随着查询工作负载的变化而调整。我们在TPC-DS、TPC-H、BIRD-Dev和生产工作负载上的评估表明,该方法在结构良好的模式上实现了高精度(78-100%),同时突显了在非规范化设置中连接发现的固有难度。

英文摘要:

Context graphs are essential for modern AI applications including question answering, pattern discovery, and data analysis. Building accurate context graphs from structured databases requires inferring join relationships between entities. Invalid joins introduce ambiguity and duplicate records, compromising graph quality. We present a scalable join inference approach combining statistical pruning with Large Language Model (LLM) reasoning. Unlike purely statistics-based methods, our hybrid approach mimics human semantic understanding while mitigating LLM hallucination through data-driven inference. We first identify primary key candidates and use LLMs for adjudication, then detect inclusion dependencies with the same two-stage process. This statistics-LLM combination scales to large schemas while maintaining accuracy and minimizing false positives. We further leverage the database query history to refine the join inferences over time as the query workloads evolve. Our evaluation on TPC-DS, TPC-H, BIRD-Dev, and production workloads demonstrates that the approach achieves high precision (78-100%) on well-structured schemas, while highlighting the inherent difficulty of join discovery in poorly normalized settings.

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

↑