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 모델 실행에 대한 포괄적이고 계층적인 관점을 제공하는 스택 전체 프로파일링 설계인 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.