XSP: GPU 上で機械学習モデルのスタック横断プロファイリングと解析
XSP: Across-Stack Profiling and Analysis of Machine Learning Models on GPUs
XSP: Across-Stack Profiling and Analysis of Machine Learning Models on GPUs
@misc{li2019xsp,
title = {XSP: Across-Stack Profiling and Analysis of Machine Learning Models on GPUs},
author = {Cheng Li and Abdul Dakkak and Jinjun Xiong and Wei Wei and Lingjie Xu and Wen-mei Hwu},
year = {2019},
eprint = {1908.06869},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/1908.06869}
}
Li, C., Dakkak, A., Xiong, J., Wei, W., Xu, L., & Hwu, W.-M. (2019). XSP: Across-Stack Profiling and Analysis of Machine Learning Models on GPUs [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1908.06869
LI C, DAKKAK A, XIONG J, et al. XSP: Across-Stack Profiling and Analysis of Machine Learning Models on GPUs[EB/OL]. (2019-08-19)[2026-11-29]. https://arxiv.org/abs/1908.06869.
要旨
機械学習/深層学習(ML)モデルの急激な増殖と、それらの多様な応用分野への広範な採用により、ハードウェア設計者およびシステムプロバイダーにとって、ML モデルのパフォーマンスをプロファイリングし、特性を分析することはますます重要な課題となっている。彼らは、目標の遅延、スループット、コスト、およびエネルギー要件を満たしつつ、リソース利用率を最大化する最適なシステムを提供するために、ML モデルをサービスする必要がある。この取り組みは、ML モデルの特性がモデル、フレームワーク、システムライブラリ、およびハードウェア(または HW/SW スタック)の相互作用に依存する点から困難である。既存のプロファイリングツールは断片的であり、スタックの特定のレベル内でのみプロファイリングに焦点を当てているため、プロファイリング結果の包括性と有用性が制限されている。本稿では、ML モデル実行の包括的かつ階層的な視点を提供する across-stack プロファイリング設計である XSP を提案する。XSP は分散追跡(distributed tracing)を活用し、異なるソースからのプロファイリングデータを集約・相関付ける。XSP はプロファイリングオーバーヘッドにもかかわらず、HW/SW スタックのすべてのレベルにおける遅延を正確に捉えるための階層的かつ反復的な測定アプローチを導入する。さらに、プロファイリング設計を自動化された分析パイプラインと組み合わせ、65 つの最先端 ML モデルを系統的に分析した。我々は、XSP が他では容易に識別できない洞察を提供することを示した。
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.