Plumber: Diagnosing and Removing Performance Bottlenecks in Machine Learning Data Pipelines

Michael Kuchnik, Ana Klimovic, Jiri Simsa, Virginia Smith, George Amvrosiadis
11/7/2021
50 citations
cs.LGcs.PF

Official code: mkuchnik/PlumberApp (10 stars, Python, last commit 2022-03-31). 1 more implementation below.

Abstract

Input pipelines, which ingest and transform input data, are an essential part of training Machine Learning (ML) models. However, it is challenging to implement efficient input pipelines, as it requires reasoning about parallelism, asynchrony, and variability in fine-grained profiling information.

Show full abstract

Our analysis of over two million ML jobs in Google datacenters reveals that a significant fraction of model training jobs could benefit from faster input data pipelines. At the same time, our analysis indicates that most jobs do not saturate host hardware, pointing in the direction of software-based bottlenecks. Motivated by these findings, we propose Plumber, a tool for finding bottlenecks in ML input pipelines. Plumber uses an extensible and interpretable operational analysis analytical model to automatically tune parallelism, prefetching, and caching under host resource constraints. Across five representative ML pipelines, Plumber obtains speedups of up to 47x for misconfigured pipelines. By automating caching, Plumber obtains end-to-end speedups of over 50% compared to state-of-the-art tuners.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
mkuchnik/PlumberAppOfficial10Python–2022-03-31
mkuchnik/PlumberTensorflowOfficial7C++Apache-2.02022-03-08

Repository to go along with the paper "Plumber: Diagnosing and Removing Performance Bottlenecks in Machine Learning Data Pipelines"

100Python, Jupyter NotebookFeb 14, 20224 years ago
Apache-2.0

Tensorflow Fork to go along with the paper "Plumber: Diagnosing and Removing Performance Bottlenecks in Machine Learning Data Pipelines". See https://github.com/mkuchnik/PlumberApp for directions.

72C++, PythonFeb 14, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{kuchnik2021plumber,
  title  = {Plumber: Diagnosing and Removing Performance Bottlenecks in Machine Learning Data Pipelines},
  author = {Michael Kuchnik and Ana Klimovic and Jiri Simsa and Virginia Smith and George Amvrosiadis},
  year   = {2021},
  eprint = {2111.04131},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.04131}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.04131.svg)](https://codeofpaper.com/paper/2111.04131)

Discussion