Automating Data Science Pipelines with Tensor Completion

Shaan Pakala, Bryce Graw, Dawon Ahn, Tam Dinh, Mehnaz Tabassum Mahin, Vassilis J. Tsotras, Jia Chen, Evangelos E. Papalexakis · DOI

Introduction

The construction of modern data science pipelines is often hindered by "combinatorial explosions." Whether selecting hyperparameters for a Random Forest, designing layers for a deep neural network (Neural Architecture Search, or NAS), or estimating the output size of complex SQL queries (Query Cardinality Estimation), engineers must navigate massive search spaces. Traditional methods like grid search, random search, or Bayesian optimization can be prohibitively slow or complex because evaluating even a single configuration is computationally expensive.

This paper proposes a novel framework that treats the entire search space as a multi-dimensional array, or tensor. By performing tensor completion, the performance of millions of potential pipeline configurations can be accurately predicted after executing only a tiny fraction of actual experiments.

Overview of the proposed framework for automating data science tasks via tensor completion.

Methodology

The authors model search variables as "modes" (dimensions) of a tensor. For hyperparameter optimization, axes might represent learning rate, batch size, or tree depth.

Smooth CP Decomposition (CPD-S)

Standard tensor decomposition (CPD) often ignores the inherent ordering of hyperparameters. The authors observed that performance typically changes smoothly as variables are tweaked. To leverage this, they introduced CPD-S, which incorporates Gaussian kernel smoothing regularization. This forces the model to learn that "neighboring" configurations in the search space should yield similar performance metrics.

TenSemble

To improve robustness, the authors developed TenSemble, an ensemble framework that aggregates predictions from multiple tensor completion methods (e.g., CPD, CoSTCo, and TuckER). Aggregation is performed using simple functions like mean or median, as well as learned aggregators like Multi-Layer Perceptrons (MLPs), which can capture complex interactions between different model predictions.

Experimental Results

The approach was evaluated on a suite of benchmark datasets, including Non-Deep Learning (NDL) models, Neural Architecture Search (NAS) performance data, and Query Cardinality (QC) estimates.

Performance and Efficiency

The proposed CPD-S and TenSemble methods consistently achieved the lowest Mean Absolute Error (MAE) across benchmarks. Notably, CPD-S is significantly more lightweight than deep-learning-based alternatives like CoSTCo, achieving up to 78x faster inference while maintaining superior accuracy.

Robustness to Sparsity

A key strength of the framework is its performance under extreme sparsity. The models remain robust even when only 0.5% to 1% of the search space is observed. This makes the approach viable for expensive pipelines where only a handful of trials are feasible.

Mean Absolute Error (MAE) across different tensor completion methods and sparsity levels, demonstrating the superior performance of TenSemble and CPD-S.

Conclusion

Reframing data science pipeline optimization as a tensor completion problem offers a highly efficient alternative to traditional search methods. By incorporating smoothness priors and ensemble techniques, the proposed framework can recover entire search spaces from minimal observations, significantly accelerating the development of optimized machine learning models and database systems.

Summary updated

BibTeX
@inproceedings{pakala2024automating,
  author = {Shaan Pakala and Bryce Graw and Dawon Ahn and Tam Dinh and Mehnaz Tabassum Mahin and Vassilis J. Tsotras and Jia Chen and Evangelos E. Papalexakis},
  title = {{Automating Data Science Pipelines with Tensor Completion}},
  booktitle = {IEEE Big Data},
  year = {2024},
  doi = {10.1109/bigdata62323.2024.10825934},
}
Figure