鸭脑:现代数据库引擎中神经网络的训练与推理
The Duck's Brain: Training and Inference of Neural Networks in Modern Database Engines
AI总结:
本文提出在SQL中通过关系表示训练神经网络,克服关系模型障碍,并比较数组类型与关系表示的性能,证明现代数据库适用于矩阵运算。
摘要:
尽管数据库系统在数据访问和操作方面表现出色,但其关系模型阻碍了数据科学家用SQL表述机器学习算法。然而,我们认为,现代数据库系统对于用关系代数表达的机器学习算法表现良好。为克服关系模型的障碍,本文展示了如何将数据转换为关系表示,以便在SQL中训练神经网络:我们首先描述了在SQL-92中用于数据转换、模型训练和推理的构建块,以及使用扩展数组数据类型的对应实现。然后,我们比较了使用数组数据类型的模型训练和推理实现与仅使用SQL-92中关系表示的实现。在运行时和内存消耗方面的评估证明了现代数据库系统适用于矩阵代数,尽管专门的数组数据类型在性能上优于关系表示中的矩阵。
英文摘要:
Although database systems perform well in data access and manipulation, their relational model hinders data scientists from formulating machine learning algorithms in SQL. Nevertheless, we argue that modern database systems perform well for machine learning algorithms expressed in relational algebra. To overcome the barrier of the relational model, this paper shows how to transform data into a relational representation for training neural networks in SQL: We first describe building blocks for data transformation, model training and inference in SQL-92 and their counterparts using an extended array data type. Then, we compare the implementation for model training and inference using array data types to the one using a relational representation in SQL-92 only. The evaluation in terms of runtime and memory consumption proves the suitability of modern database systems for matrix algebra, although specialised array data types perform better than matrices in relational representation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。