인머신러닝 데이터베이스: 구식 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 머신러닝은 이미 매우 인기가 많고, 거의 관용어 (cliche) 가 된 상태이다. 그러나 반대로 접근할 수 있는가? 본 논문에서는 SQL 을 딥러닝에 적용함으로써, 즉 SQL 로 딥러닝 알고리즘을 구현하는 방식으로 "가능하다"고 답한다. 대부분의 딥러닝 프레임워크 및 일반적인 머신러닝 프레임워크는 자동 미분과 같은 고급 인프라 구조 아래에서 다차원 배열 연산의 사실상 표준 (de facto standard) 을 공유한다. SQL 테이블을 (다차원) 배열의 일반화라고 볼 수 있으므로, 우리는 SQL 로 일반적인 딥러닝 연산을 표현하는 방법을 찾았다. 이는 사고방식을 다르게 유도하며, 결과적으로 새로운 모델을 가능하게 한다. 특히, 최근 딥러닝의 주요 트렌드 중 하나는 그래프 컨볼루션 네트워크 (GNN) 를 위한 이름으로 희소성 (sparsity) 의 도입이었으나, 우리는 데이터베이스 세계에서 희소성을 거의 전제 (almost for granted) 한다. 데이터베이스와 머신러닝 모두 데이터셋의 변환을 포함하므로, 본 논문은 데이터베이스 분야의 기존 지혜, 알고리즘 및 기술의 광범위한 체계를 활용하여 머신러닝의 최첨단 수준을 발전시키는 추가 연구를 영감을 주기를 바란다. 이는 단순히 머신러닝을 데이터베이스에 통합하는 것을 넘어선다.
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.