Skip to main content
QUICK REVIEW

[Paper Review] Across-Stack Profiling and Characterization of Machine Learning Models on GPUs.

Cheng Li, Abdul Dakkak|arXiv (Cornell University)|Aug 19, 2019
Parallel Computing and Optimization TechniquesComputer Science15 references6 citations
TL;DR

This paper proposes XSP, an across-stack profiling framework that provides a holistic, hierarchical view of machine learning model performance across the entire hardware/software stack by leveraging distributed tracing and iterative measurement to minimize profiling overhead. It enables accurate latency characterization across 65 state-of-the-art models, revealing insights otherwise difficult to discern due to stack-level interdependencies.

ABSTRACT

There has been a rapid proliferation of machine learning/deep learning (ML) models and wide adoption of them in many application domains. This has made profiling and characterization of ML model performance an increasingly pressing task for both hardware designers and system providers, as they would like to offer the best possible system to serve ML models with the target latency, throughput, cost, and energy requirements while maximizing resource utilization. Such an endeavor is challenging as the characteristics of an ML model depend on the interplay between the model, framework, system libraries, and the hardware (or the HW/SW stack). Existing profiling tools are disjoint, however, and only focus on profiling within a particular level of the stack, which limits the thoroughness and usefulness of the profiling results. This paper proposes XSP - an across-stack profiling design that gives a holistic and hierarchical view of ML model execution. XSP leverages distributed tracing to aggregate and correlates profile data from different sources. XSP introduces a leveled and iterative measurement approach that accurately captures the latencies at all levels of the HW/SW stack in spite of the profiling overhead. We couple the profiling design with an automated analysis pipeline to systematically analyze 65 state-of-the-art ML models. We demonstrate that XSP provides insights which would be difficult to discern otherwise.

Motivation & Objective

  • To address the challenge of incomplete and disjoint performance profiling across the ML hardware/software stack, which limits optimization for latency, throughput, cost, and energy efficiency.
  • To provide a unified, hierarchical view of ML model execution by correlating profiling data from multiple stack layers (model, framework, libraries, hardware).
  • To reduce profiling overhead while maintaining high accuracy in measuring latencies across all stack levels through an iterative measurement approach.
  • To enable systematic analysis of diverse ML models by coupling profiling with an automated analysis pipeline.
  • To uncover performance bottlenecks and interdependencies across the stack that are difficult to detect with traditional, isolated profiling tools.

Proposed method

  • XSP uses distributed tracing to aggregate and correlate performance data from different layers of the ML stack, including models, deep learning frameworks, system libraries, and GPU hardware.
  • It implements a leveled and iterative measurement strategy that minimizes profiling overhead while accurately capturing latencies at each stack level.
  • The framework integrates with existing profiling tools at each stack layer and synchronizes data using trace identifiers to enable cross-layer correlation.
  • An automated analysis pipeline processes the aggregated data to extract performance characteristics across 65 state-of-the-art ML models.
  • The design supports dynamic profiling with minimal runtime interference, ensuring accurate representation of real-world execution behavior.
  • XSP enables hierarchical analysis by decomposing execution into stack-level components and measuring their contributions to end-to-end latency.

Experimental results

Research questions

  • RQ1How can performance profiling across the entire ML stack be unified to provide a holistic view of model execution?
  • RQ2What is the impact of profiling overhead on accuracy, and how can it be minimized without sacrificing measurement fidelity?
  • RQ3What performance bottlenecks and interdependencies emerge when analyzing ML models across hardware and software layers?
  • RQ4How do different ML models vary in their latency distribution across the stack, and what patterns can be identified?
  • RQ5What insights into system optimization are revealed by cross-stack profiling that isolated profiling cannot capture?

Key findings

  • XSP successfully captures accurate latency measurements across all levels of the hardware/software stack with minimal profiling overhead.
  • The framework reveals previously hidden performance bottlenecks that span multiple stack layers, such as kernel launch overheads and memory transfer inefficiencies.
  • Cross-stack correlations expose interdependencies between framework-level operations and GPU kernel execution that are not visible in isolated profiling.
  • The automated analysis pipeline identifies consistent performance patterns across 65 state-of-the-art models, including variations in compute-to-memory ratios and operator-level latency distributions.
  • XSP enables the discovery of optimization opportunities—such as kernel fusion and memory access tuning—that are difficult to detect using conventional profiling tools.
  • The iterative measurement approach ensures high accuracy even under real-world workloads, validating the framework’s reliability for system design and tuning.

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.