Maya: Optimizing Deep Learning Training Workloads using GPU Runtime Emulation
Srihas Yarlagadda, Amey Agrawal, Elton Pinto, Hakesh Darapaneni, Mitali Meratwal, Shivam Mittal, Pranavi Bajjuri, Srinivas Sridharan, Alexey Tumanov
TL;DR
Maya tackles the challenge of optimizing deep learning training at scale by removing the semantic gap between workloads and their performance representations. It does so with transparent device emulation that intercepts accelerator APIs from unmodified training code, coupled with a trace-driven end-to-end simulator and pluggable kernel estimators. The approach delivers high-fidelity end-to-end predictions (often <5% error) and enables rapid configuration search that achieves near-optimal training costs (up to 56% savings compared to baselines). Its architecture supports hyperscale workloads and generalizes across frameworks and model types, reducing the barrier to exploring and deploying efficient training recipes. Overall, Maya provides a practical, deployment-free path to scalable, cost-efficient DL training optimization.
Abstract
Training large foundation models costs hundreds of millions of dollars, making deployment optimization critical. Current approaches require machine learning engineers to manually craft training recipes through error-prone trial-and-error on expensive compute clusters. To enable efficient exploration of training configurations, researchers have developed performance modeling systems. However, these systems force users to translate their workloads into custom specification languages, introducing a fundamental semantic gap between the actual workload and its representation. This gap creates an inherent tradeoff: systems must either support a narrow set of workloads to maintain usability, require complex specifications that limit practical adoption, or compromise prediction accuracy with simplified performance models. We present Maya, a performance modeling system that eliminates these tradeoffs through transparent device emulation. By operating at the narrow interface between training frameworks and accelerator devices, Maya can capture complete workload behavior without requiring code modifications or translations. Maya intercepts device API calls from unmodified training code to directly observe low-level operations, enabling accurate performance prediction while maintaining both ease of use and generality. Our evaluation shows Maya achieves less than 5% prediction error across diverse models and optimization strategies, identifying configurations that reduce training costs by up to 56% compared to existing approaches.
