Skip to main content
QUICK REVIEW

[Paper Review] Plumber: Diagnosing and Removing Performance Bottlenecks in Machine Learning Data Pipelines

Michael Kuchnik, Ana Klimovic|arXiv (Cornell University)|Nov 7, 2021
Parallel Computing and Optimization TechniquesComputer Science32 references9 citations
TL;DR

Plumber is a tool that diagnoses and eliminates performance bottlenecks in machine learning data pipelines by tracing resource usage and applying automated optimization via linear programming. It achieves up to 47× speedups over misconfigured pipelines and 50% better end-to-end performance than state-of-the-art tuners by intelligently tuning parallelism, prefetching, and caching.

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. 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.

Motivation & Objective

  • To identify and resolve performance bottlenecks in ML training data pipelines that waste hardware resources and slow down training.
  • To automate the tuning of key performance knobs—parallelism, prefetching, and caching—without requiring expert knowledge of low-level system behavior.
  • To provide a principled, interpretable, and extensible method for diagnosing pipeline inefficiencies using runtime resource accounting.
  • To outperform existing automated tuners by integrating caching and predictive performance modeling via linear programming.
  • To reduce the burden on ML practitioners by enabling one-line integration and automatic optimization of data pipelines.

Proposed method

  • Plumber uses a tracer to instrument and measure resource utilization (CPU, memory, disk) and data processing rates for each operator in the pipeline.
  • It introduces resource-accounted rates—a novel metric that quantifies per-operator resource consumption and throughput, enabling precise bottleneck localization.
  • The tool formulates performance prediction as a linear programming (LP) problem, using traced rates to bound system behavior within 4× of actual resource usage.
  • The graph-rewriter component automatically applies optimizations such as parallelism, prefetching, and caching based on LP predictions, without user intervention.
  • The system is designed as a transparent front-end, requiring only one line of code to integrate with any tf.data-based pipeline.
  • It supports extensibility for future optimizations, including distributed and accelerator-infeed level profiling.

Experimental results

Research questions

  • RQ1What fraction of real-world ML training jobs suffer from input pipeline bottlenecks due to software misconfiguration rather than hardware saturation?
  • RQ2How can performance bottlenecks in ML data pipelines be diagnosed with minimal manual effort and high interpretability?
  • RQ3Can a unified analytical model predict the performance impact of tuning knobs like parallelism, prefetching, and caching with bounded error?
  • RQ4To what extent can automated optimization of caching, prefetching, and parallelism improve end-to-end training speed compared to existing state-of-the-art tuners?
  • RQ5Can a system be built that requires minimal user configuration while achieving near-peak hardware utilization in data-intensive ML training?

Key findings

  • Analysis of over two million ML jobs revealed that 62% of training jobs experience input pipeline stalls of at least 1ms per step, indicating widespread performance degradation.
  • The majority of bottlenecks (over 60%) are software-based, caused by suboptimal configuration rather than hardware saturation, highlighting the need for automated tuning.
  • Plumber achieved up to 47× speedup on misconfigured pipelines by automatically tuning parallelism, prefetching, and caching.
  • By incorporating caching into the optimization loop, Plumber achieved over 50% end-to-end performance improvement compared to state-of-the-art tuners.
  • The LP-based performance model bounded prediction error within 4× of actual resource usage, providing reliable and interpretable performance estimates.
  • Plumber requires only a single line of code to integrate with existing tf.data pipelines, enabling broad usability without architectural changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.