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

RDB2G-Bench:面向关系数据库自动图建模的综合基准

RDB2G-Bench: A Comprehensive Benchmark for Automatic Graph Modeling of Relational Databases

Graduate School of AI, KAIST(人工智能研究生院,韩国科学技术院)

Dongwon Choi, Sunwoo Kim, Juyeon Kim, Kyungho Kim, Geon Lee, Shinhwan Kang, Myunghwan Kim, Kijung Shin

AI总结:

针对关系数据库转图建模方式多样、性能差异大且最优模型难识别的问题,提出首个RDB到图建模基准框架RDB2G-Bench,构建多任务数据集实现高效评估,并揭示影响图模型效果的关键结构模式。

摘要:

近期研究进展已证明基于图的学习在关系数据库(RDB)预测任务中的有效性。这类方法需要将关系数据库转换为图,我们将这一过程称为RDB到图的建模,其中表的行被表示为节点,外键关系被表示为边。然而,将关系数据库有效建模为图仍具挑战性。具体而言,存在多种将关系数据库建模为图的方式,且预测任务的性能会因所选的关系数据库图模型不同而存在显著差异。我们的分析发现,性能最优的图模型相比常用的图建模启发式规则,性能最高可提升10%,而要识别出这样的最优模型并非易事。为推动智能RDB到图建模的研究,我们推出了RDB2G-Bench——首个用于评估此类方法的基准框架。我们构建了涵盖5个真实世界关系数据库和12个预测任务的大规模数据集,生成了约5万个图模型-性能对,以支持高效且可复现的评估。得益于我们预计算的数据集,我们能够在12项任务上对10种自动RDB到图建模方法进行基准测试,速度比需要重复训练GNN的即时评估快约380倍。我们对数据集和基准测试结果的分析揭示了影响图模型有效性的关键结构模式,以及有效图建模的实践启示。我们的数据集和代码可在https://github.com/chlehdwon/RDB2G-Bench获取。

英文摘要:

Recent advances have demonstrated the effectiveness of graph-based learning on relational databases (RDBs) for predictive tasks. Such approaches require transforming RDBs into graphs, a process we refer to as RDB-to-graph modeling, where rows of tables are represented as nodes and foreign-key relationships as edges. Yet, effective modeling of RDBs into graphs remains challenging. Specifically, there exist numerous ways to model RDBs into graphs, and performance on predictive tasks varies significantly depending on the chosen graph model of RDBs. In our analysis, we find that the best-performing graph model can yield up to a 10% higher performance compared to the common heuristic rule for graph modeling, which remains non-trivial to identify. To foster research on intelligent RDB-to-graph modeling, we introduce RDB2G-Bench, the first benchmark framework for evaluating such methods. We construct extensive datasets covering 5 real-world RDBs and 12 predictive tasks, resulting in around 50k graph model-performance pairs for efficient and reproducible evaluations. Thanks to our precomputed datasets, we were able to benchmark 10 automatic RDB-to-graph modeling methods on the 12 tasks about 380x faster than on-the-fly evaluation, which requires repeated GNN training. Our analysis of the datasets and benchmark results reveals key structural patterns affecting graph model effectiveness, along with practical implications for effective graph modeling. Our datasets and code are available at https://github.com/chlehdwon/RDB2G-Bench.

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

↑