[Paper Review] Daydream: Accurately Estimating the Efficacy of Optimizations for {DNN} Training
Daydream is a profiling tool that predicts the performance impact of DNN optimizations by modeling execution via a fine-grained dependency graph derived from low-level CUPTI traces. It uses domain-specific graph transformations to simulate various optimizations and accurately forecasts performance gains across diverse hardware and software configurations.
Modern deep neural network (DNN) training jobs use complex and heterogeneous software/hardware stacks. The efficacy of software-level optimizations can vary significantly when used in different deployment configurations. It is onerous and error-prone for ML practitioners and system developers to implement each optimization separately, and determine which ones will improve performance in their own configurations. Unfortunately, existing profiling tools do not aim to answer predictive questions such as How will optimization X affect the performance of my model?. We address this critical limitation, and proposes a new profiling tool, Daydream, to help programmers efficiently explore the efficacy of DNN optimizations. Daydream models DNN execution with a fine-grained dependency graph based on low-level traces collected by CUPTI, and predicts runtime by simulating execution based on the dependency graph. Daydream maps the low-level traces using DNN domain-specific knowledge, and introduces a set of graph-transformation primitives that can easily model a wide variety of optimizations. We show that Daydream is able to model most mainstream DNN optimization techniques, and accurately predict the efficacy of optimizations that will result in significant performance improvements.
Motivation & Objective
- Address the lack of predictive profiling tools that answer 'How will optimization X affect my model's performance?' in DNN training.
- Reduce the manual effort and error-proneness of testing each optimization in isolation across different deployment configurations.
- Enable system developers and ML practitioners to efficiently explore optimization efficacy without deploying every variant.
- Provide accurate, predictive insights into performance improvements before actual deployment of optimizations.
Proposed method
- Constructs a fine-grained dependency graph from low-level hardware performance traces collected via CUPTI.
- Maps low-level CUPTI traces to DNN-specific operations using domain-specific knowledge to enable semantic modeling.
- Introduces a set of graph-transformation primitives to model diverse optimization techniques such as kernel fusion and memory layout changes.
- Simulates DNN execution on the transformed dependency graph to predict runtime and performance improvements.
- Leverages the dependency graph to propagate performance changes through the computation graph, enabling accurate prediction of optimization impact.
- Supports cross-configuration prediction by encoding hardware and software stack characteristics into the simulation model.
Experimental results
Research questions
- RQ1Can a profiling tool predict the performance impact of DNN optimizations without requiring actual deployment in the target configuration?
- RQ2How accurately can a simulation-based approach using low-level traces and dependency graphs predict real-world performance improvements?
- RQ3To what extent can a unified graph transformation framework model a wide range of DNN optimization techniques?
- RQ4How does the prediction accuracy of Daydream compare across diverse hardware and software configurations?
Key findings
- Daydream accurately predicts performance improvements from optimizations across diverse DNN models and hardware configurations.
- The tool achieves high prediction accuracy by modeling DNN execution with a fine-grained dependency graph derived from CUPTI traces.
- Graph transformation primitives enable modeling of most mainstream DNN optimization techniques, including kernel fusion and memory access optimizations.
- Daydream reduces the need for trial-and-error deployment of optimizations by providing reliable predictive insights before actual execution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.