Lune

VLDB2021Top-tier venue

Towards an Optimized GROUP BY Abstraction for Large-Scale Machine Learning

Side Li, Arun Kumar

Abstract

Many applications that use large-scale machine learning (ML) increasingly prefer different models for subgroups (e.g., countries) to improve accuracy, fairness, or other desiderata. We call this emerging popular practice learning over groups , analogizing to GROUP BY in SQL, albeit for ML training instead of SQL aggregates. From the systems standpoint, this practice compounds the already data-intensive workload of ML model selection (e.g., hyperparameter tuning). Often, thousands of models may need to be trained, necessitating high-throughput parallel execution. Alas, most ML systems today focus on training one model at a time or at best, parallelizing hyperparameter tuning. This status quo leads to resource wastage, low throughput, and high runtimes. In this work, we take the first step towards enabling and optimizing learning over groups from the data systems standpoint for three popular classes of ML: linear models, neural networks, and gradient-boosted decision trees. Analytically and empirically, we compare standard approaches to execute this workload today: task-parallelism and data-parallelism. We find neither is universally dominant. We put forth a novel hybrid approach we call grouped learning that avoids redundancy in communications and I/O using a novel form of parallel gradient descent we call Gradient Accumulation Parallelism (GAP). We prototype our ideas into a system we call Kingpin built on top of existing ML tools and the flexible massively-parallel runtime Ray. An extensive empirical evaluation on large ML benchmark datasets shows that Kingpin matches or is 4x to 14x faster than state-of-the-art ML systems, including Ray's native execution and PyTorch DDP.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SHiFT: An Efficient, Flexible Search Engine for Transfer Learning cites Cerebro: A Data System for Optimized Deep Learning Model Selection
  • Nautilus: An Optimized System for Deep Transfer Learning over Evolving Training Datasets cites Cerebro: A Data System for Optimized Deep Learning Model Selection
  • Lotan: Bridging the Gap between GNNs and Scalable Graph Analytics Engines cites Cerebro: A Data System for Optimized Deep Learning Model Selection
  • Lotan: Bridging the Gap between GNNs and Scalable Graph Analytics Engines cites Nautilus: An Optimized System for Deep Transfer Learning over Evolving Training Datasets
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Lotan: Bridging the Gap between GNNs and Scalable Graph Analytics EnginesYuhao Zhang, Arun KumarVLDB 2023 · 11 citations
  2. SHiFT: An Efficient, Flexible Search Engine for Transfer LearningCédric Renggli, Xiaozhe Yao, Luka Kolar, Luka Rimanic et al.VLDB 2023 · 8 citations
  3. Nautilus: An Optimized System for Deep Transfer Learning over Evolving Training DatasetsSupun Nakandala, Arun KumarSIGMOD 2022 · 6 citations

Builds on2

  1. Cerebro: A Data System for Optimized Deep Learning Model SelectionSupun Nakandala, Yuhao Zhang, Arun KumarVLDB 2020 · 61 citations
  2. Towards Factorized SVM with Gaussian Kernels over Normalized DataKeyu Yang, Yunjun Gao, Lei Liang, Bin Yao et al.ICDE 2020 · 13 citations

Related papers

  1. Fair and Accurate Decision Making through Group-Aware LearningRamtin Hosseini, Li Zhang, Bhanu Garg, Pengtao XieICML 2023 · 6 citations
  2. RubberBand: cloud-based hyperparameter tuningUjval Misra, Richard Liaw, Lisa Dunlap, Romil Bhardwaj et al.EuroSys 2021 · 21 citations
  3. Fela: Incorporating Flexible Parallelism and Elastic Tuning to Accelerate Large-Scale DMLJinkun Geng, Dan Li, Shuai WangICDE 2020 · 5 citations
  4. Scaling Distributed Machine Learning with In-Network AggregationAmedeo Sapio, Marco Canini, Chen-Yu Ho, Jacob Nelson et al.NSDI 2021
  5. Hyper-Tune: Towards Efficient Hyper-parameter Tuning at ScaleYang Li, Yu Shen, Huaijun Jiang, Wentao Zhang et al.VLDB 2022 · 32 citations
Dusk over the sea between two cliffs drawn in fine vertical lines