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

基于稀疏张量和函数逼近的关系数据学习模型

Learning Models over Relational Data using Sparse Tensors and Functional Dependencies

Mahmoud Abo Khamis, Hung Q. Ngo, XuanLong Nguyen, Dan Olteanu, Maximilian Schleich

摘要:

基于关系数据库的分析的集成解决方案具有非常重要的实际意义,因为它们避免了数据科学家必须每天处理的昂贵的重复循环:使用涉及连接、投影和聚合的特征提取查询从驻留在关系数据库中的数据中选择特征;导出由这些查询定义的训练数据集;将该数据集转换为外部学习工具的格式;并使用该工具训练所需的模型。这些集成的解决方案也是关系和统计数据模型交叉点的理论基础和挑战性问题的肥沃土壤。本文介绍了一个统一的框架,用于训练和评估一类基于关系数据库的统计学习模型。这门课包括岭线性回归、多项式回归、因子分解机和主成分分析。我们表明,通过协同关键工具,从数据库理论,如模式信息,查询结构,功能依赖,查询评估算法的最新进展,并从线性代数,如张量和矩阵运算,可以制定关系分析问题和设计高效的(查询和数据)结构感知算法来解决它们。这一理论发展为结构感知学习的AC/DC系统的设计和实现提供了信息。我们针对R、MADlib、libFM和TensorFlow对AC/DC的性能进行了基准测试。对于典型的零售预测和广告规划应用程序,AC/DC可以学习多项式回归模型和因子分解机,其精度至少与竞争对手相同,并且在没有耗尽内存、超过24小时超时或遇到内部设计限制的情况下,比竞争对手快三个数量级。

英文摘要:

Integrated solutions for analytics over relational databases are of great practical importance as they avoid the costly repeated loop data scientists have to deal with on a daily basis: select features from data residing in relational databases using feature extraction queries involving joins, projections, and aggregations; export the training dataset defined by such queries; convert this dataset into the format of an external learning tool; and train the desired model using this tool. These integrated solutions are also a fertile ground of theoretically fundamental and challenging problems at the intersection of relational and statistical data models. This article introduces a unified framework for training and evaluating a class of statistical learning models over relational databases. This class includes ridge linear regression, polynomial regression, factorization machines, and principal component analysis. We show that, by synergizing key tools from database theory such as schema information, query structure, functional dependencies, recent advances in query evaluation algorithms, and from linear algebra such as tensor and matrix operations, one can formulate relational analytics problems and design efficient (query and data) structure-aware algorithms to solve them. This theoretical development informed the design and implementation of the AC/DC system for structure-aware learning. We benchmark the performance of AC/DC against R, MADlib, libFM, and TensorFlow. For typical retail forecasting and advertisement planning applications, AC/DC can learn polynomial regression models and factorization machines with at least the same accuracy as its competitors and up to three orders of magnitude faster than its competitors whenever they do not run out of memory, exceed 24-hour timeout, or encounter internal design limitations.

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

↑