paper-with-me

홈 › Papers

JoinBoost: Grow Trees Over Normalized Data Using Only SQL

2023-07-01 · Zezhou Huang, Rathijit Sen, Jiaxiang Liu, Eugene Wu

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 3x (1.1x) faster for random forests (gradient boosting) compared to LightGBM, and over an order 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).

📄 PDF Abstract BibTeX arXiv:2307.00422

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Library 설명 없음

Similar Papers 제목 키워드 기반

Bounds of the sum of edge lengths in linear arrangements of trees

2020-06-24 · Ramon Ferrer-i-Cancho, Carlos Gómez-Rodríguez, Juan Luis Esteban

A fundamental problem in network science is the normalization of the topological or physical distance between vertices, that requires understanding the range of variation of the unnormalized distances. Here we investigat…

Subgroup detection in linear growth curve models with generalized linear mixed model (GLMM) trees

2023-09-11 · Marjolein Fokkema, Achim Zeileis

Growth curve models are popular tools for studying the development of a response variable within subjects over time. Heterogeneity between subjects is common in such models, and researchers are typically interested in ex…

Time Series

Tree size distribution as the stationary limit of an evolutionary master equation

2023-10-14 · Szabolcs Kelemen, Máté Józsa, Tibor Hartel, György Csóka 외

The diameter distribution of a given species of deciduous trees in mature, temperate zone forests is well approximated by a Gamma distribution. Here we give new experimental evidence for this conjecture by analyzing deci…

Alpha-Trimming: Locally Adaptive Tree Pruning for Random Forests

2024-08-13 · Nikola Surjanovic, Andrew Henrey, Thomas M. Loughin

We demonstrate that adaptively controlling the size of individual regression trees in a random forest can improve predictive performance, contrary to the conventional wisdom that trees should be fully grown. A fast pruni…

Darwinian spreading and quality thinning in even-aged boreal forest stands

2025-03-21 · Petri P. Karenlampi

Darwinian spreading of vigor, in addition to quality distribution, is introduced in a tree growth model. The size of any tree, within an even-aged stand, is taken as a measure of an inherited productive capacity, and the…