インマシンの学習データベース:古き SQL を用いて深層学習を再構築する
In-Machine-Learning Database: Reimagining Deep Learning with Old-School SQL
In-Machine-Learning Database: Reimagining Deep Learning with Old-School SQL
@misc{du2020inmachinelearning,
title = {In-Machine-Learning Database: Reimagining Deep Learning with Old-School SQL},
author = {Len Du},
year = {2020},
eprint = {2004.05366},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2004.05366}
}
Du, L. (2020). In-Machine-Learning Database: Reimagining Deep Learning with Old-School SQL [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2004.05366
DU L. In-Machine-Learning Database: Reimagining Deep Learning with Old-School SQL[EB/OL]. (2020-04-11)[2026-11-30]. https://arxiv.org/abs/2004.05366.
要旨
In-database machine learning は非常に人気があり、ある意味では陳腐化しつつある。しかし、逆の方向で実現することは可能か?本稿では、SQL に深層学習を適用することで「可能である」と断言する。具体的には、SQL を用いて深層学習アルゴリズムを実装するアプローチをとる。現在、多くの深層学習フレームワークおよび汎用的な機械学習ライブラリは、自動微分などの高度なインフラの下に、多次元配列演算の事実上の標準を共有している。SQL テーブルは(多次元)配列の一般化と見なせるため、一般的な深層学習演算子を SQL で表現する方法を見出し、異なる思考様式を促し、潜在的に新しいモデルの創出を可能にする。特に、深層学習の最近のトレンドの一つは、グラフ畳み込みネットワークの名の下にスパarsity の導入であるが、我々はデータベースの世界においてスパarsity をほぼ当然の前提としている。データベースと機械学習はともにデータセットの変換を扱うため、本稿は既存のデータベース分野の知見、アルゴリズム、技術の大量を基盤として機械学習の最先端を推進するさらなる研究を刺激することを希望する。単に機械学習をデータベースに統合するのではなく、その点に重点を置いている。
In-database machine learning has been very popular, almost being a cliche. However, can we do it the other way around? In this work, we say "yes" by applying plain old SQL to deep learning, in a sense implementing deep learning algorithms with SQL. Most deep learning frameworks, as well as generic machine learning ones, share a de facto standard of multidimensional array operations, underneath fancier infrastructure such as automatic differentiation. As SQL tables can be regarded as generalisations of (multi-dimensional) arrays, we have found a way to express common deep learning operations in SQL, encouraging a different way of thinking and thus potentially novel models. In particular, one of the latest trend in deep learning was the introduction of sparsity in the name of graph convolutional networks, whereas we take sparsity almost for granted in the database world. As both databases and machine learning involve transformation of datasets, we hope this work can inspire further works utilizing the large body of existing wisdom, algorithms and technologies in the database field to advance the state of the art in machine learning, rather than merely integerating machine learning into databases.