JoinBoost: Grow Trees over Normalized Data Using Only SQL

Author:

Huang Zezhou1,Sen Rathijit2,Liu Jiaxiang1,Wu Eugene3

Affiliation:

1. Columbia University

2. Microsoft

3. DSI, Columbia University

Abstract

Although dominant for tabular data, ML libraries that train tree models over normalized databases (e.g., LightGBM, XGBoost) require the data to be denormalized as a single table, materialized, and exported. This process is not scalable, slow, and poses security risks. In-DB ML aims to train models within DBMSes to avoid data movement and provide data governance. Rather than modify a DBMS to support In-DB ML, is it possible to offer competitive tree training performance to specialized ML libraries...with only SQL? We present JoinBoost, a Python library that rewrites tree training algorithms over normalized databases into pure SQL. It is portable to any DBMS, offers performance competitive with specialized ML libraries, and scales with the underlying DBMS capabilities. JoinBoost extends prior work from both algorithmic and systems perspectives. Algorithmically, we support factorized gradient boosting, by updating the Y variable to the residual in the non-materialized join result. Although this view update problem is generally ambiguous, we identify addition-to-multiplication preserving , the key property of variance semi-ring to support rmse the most widely used criterion. System-wise, we identify residual updates as a performance bottleneck. Such overhead can be natively minimized on columnar DBMSes by creating a new column of residual values and adding it as a projection. We validate this with two implementations on DuckDB, with no or minimal modifications to its internals for portability. Our experiment shows that JoinBoost is 3× (1.1×) faster for random forests (gradient boosting) compared to LightGBM, and over an order of magnitude faster than state-of-the-art In-DB ML systems. Further, JoinBoost scales well beyond LightGBM in terms of the # features, DB size (TPC-DS SF=1000), and join graph complexity (galaxy schemas).

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference70 articles.

1. 2006. Updates through views: A new hope . In 22nd International Conference on Data Engineering (ICDE'06) . IEEE, 2--2. 2006. Updates through views: A new hope. In 22nd International Conference on Data Engineering (ICDE'06). IEEE, 2--2.

2. 2013. IMDB. https://www.imdb.com/interfaces/. 2013. IMDB. https://www.imdb.com/interfaces/.

3. 2017. Corporación Favorita Grocery Sales Forecasting. https://www.kaggle.com/c/favorita-grocery-sales-forecasting. 2017. Corporación Favorita Grocery Sales Forecasting. https://www.kaggle.com/c/favorita-grocery-sales-forecasting.

4. 2017. Lightgbm memory explodes in start train. https://github.com/microsoft/LightGBM/issues/1032. 2017. Lightgbm memory explodes in start train. https://github.com/microsoft/LightGBM/issues/1032.

5. 2020. Looker data modeling. https://www.looker.com/platform/data-modeling/. 2020. Looker data modeling. https://www.looker.com/platform/data-modeling/.

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. In-Database Data Imputation;Proceedings of the ACM on Management of Data;2024-03-12

2. Random Forests over normalized data in CPU-GPU DBMSes;Proceedings of the 19th International Workshop on Data Management on New Hardware;2023-06-18

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3