Optimizing Memory Mapping Using Deep Reinforcement Learning
AI-generated Key Points
- Resource scheduling and allocation is crucial for high-impact systems such as congestion control and cloud computing.
- Optimal solutions can lead to significant resource and time savings, reduce device wear-and-tear, and improve carbon emissions.
- The paper focuses on the memory mapping problem during compilation of machine learning programs.
- The authors introduce an approach using Reinforcement Learning (RL) called mallocGame to optimize execution time by mapping tensors to different memory layers.
- The RL agent called mallocMuZero discovers new and improved memory mapping solutions that lead to faster execution times on real ML workloads on ML accelerators.
- Performance of mallocMuZero is compared with the default solver used by the Accelerated Linear Algebra (XLA) compiler on a benchmark of realistic ML workloads.
- It is shown that mallocMuZero can improve the execution time of recently published AlphaTensor matrix multiplication model.
- Monte Carlo Tree Search (MCTS) combined with deep neural networks is proposed for value function approximation in order to achieve better performance than traditional MCTS methods.
- Experiments demonstrate how their method outperforms existing state-of-the-art approaches and analyze how different factors such as buffer size affect performance.
Authors: Pengming Wang, Mikita Sazanovich, Berkin Ilbeyi, Phitchaya Mangpo Phothilimthana, Manish Purohit, Han Yang Tay, Ngân Vũ, Miaosen Wang, Cosmin Paduraru, Edouard Leurent, Anton Zhernov, Julian Schrittwieser, Thomas Hubert, Robert Tung, Paula Kurylowicz, Kieran Milan, Oriol Vinyals, Daniel J. Mankowitz
Abstract: Resource scheduling and allocation is a critical component of many high impact systems ranging from congestion control to cloud computing. Finding more optimal solutions to these problems often has significant impact on resource and time savings, reducing device wear-and-tear, and even potentially improving carbon emissions. In this paper, we focus on a specific instance of a scheduling problem, namely the memory mapping problem that occurs during compilation of machine learning programs: That is, mapping tensors to different memory layers to optimize execution time. We introduce an approach for solving the memory mapping problem using Reinforcement Learning. RL is a solution paradigm well-suited for sequential decision making problems that are amenable to planning, and combinatorial search spaces with high-dimensional data inputs. We formulate the problem as a single-player game, which we call the mallocGame, such that high-reward trajectories of the game correspond to efficient memory mappings on the target hardware. We also introduce a Reinforcement Learning agent, mallocMuZero, and show that it is capable of playing this game to discover new and improved memory mapping solutions that lead to faster execution times on real ML workloads on ML accelerators. We compare the performance of mallocMuZero to the default solver used by the Accelerated Linear Algebra (XLA) compiler on a benchmark of realistic ML workloads. In addition, we show that mallocMuZero is capable of improving the execution time of the recently published AlphaTensor matrix multiplication model.
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
Assess the quality of the AI-generated content by voting
Score: 0
Why do we need votes?
Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.