paper-with-me

Papers

Optimizing Memory Mapping Using Deep Reinforcement Learning

2023-05-11 · 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, Po-Sen Huang, Julian Schrittwieser, Thomas Hubert, Robert Tung, Paula Kurylowicz, Kieran Milan, Oriol Vinyals, Daniel J. Mankowitz

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.

📄 PDF Abstract BibTeX arXiv:2305.07440

Code (0)

등록된 구현이 없습니다.

Tasks

Cloud ComputingDecision MakingDeep Reinforcement Learningreinforcement-learningReinforcement LearningReinforcement Learning (RL)SchedulingSequential Decision Making

Similar Papers 제목 키워드 기반

Optimizing Memory Placement using Evolutionary Graph Reinforcement Learning

2020-07-14 · ICLR 2021 1 · Shauharda Khadka, Estelle Aflalo, Mattias Marder, Avrech Ben-David 외

For deep neural network accelerators, memory movement is both energetically expensive and can bound computation. Therefore, optimal mapping of tensors to memory hierarchies is critical to performance. The growing complex…

Network Pruningreinforcement-learningReinforcement LearningReinforcement Learning (RL)

Optimizing Binary and Ternary Neural Network Inference on RRAM Crossbars using CIM-Explorer

2025-05-20 · Rebecca Pelke, José Cubero-Cascante, Nils Bosbach, Niklas Degener 외

Using Resistive Random Access Memory (RRAM) crossbars in Computing-in-Memory (CIM) architectures offers a promising solution to overcome the von Neumann bottleneck. Due to non-idealities like cell variability, RRAM cross…

Quantization

Continual Learning Approach for Improving the Data and Computation Mapping in Near-Memory Processing System

2021-04-28 · Pritam Majumder, Jiayi Huang, Sungkeun Kim, Abdullah Muzahid 외

The resurgence of near-memory processing (NMP) with the advent of big data has shifted the computation paradigm from processor-centric to memory-centric computing. To meet the bandwidth and capacity demands of memory-cen…

Continual Learning

Multi-Agent Reinforcement Learning for Sample-Efficient Deep Neural Network Mapping

2025-07-22 · Srivatsan Krishnan, Jason Jabbour, Dan Zhang, Natasha Jaques 외 arxiv

Mapping deep neural networks (DNNs) to hardware is critical for optimizing latency, energy consumption, and resource utilization, making it a cornerstone of high-performance accelerator design. Due to the vast and comple…

Multi-agent Reinforcement Learning

Understanding GNN Computational Graph: A Coordinated Computation, IO, and Memory Perspective

2021-10-18 · Hengrui Zhang, Zhongming Yu, Guohao Dai, Guyue Huang 외

Graph Neural Networks (GNNs) have been widely used in various domains, and GNNs with sophisticated computational graph lead to higher latency and larger memory consumption. Optimizing the GNN computational graph suffers …