Memory Planning for Deep Neural Networks

02/23/2022
by   Maksim Levental, et al.
0

We study memory allocation patterns in DNNs during inference, in the context of large-scale systems. We observe that such memory allocation patterns, in the context of multi-threading, are subject to high latencies, due to contention in the system memory allocator. Latencies incurred due to such contention produce undesirable bottlenecks in user-facing services. Thus, we propose a "memorization" based technique, , for optimizing overall latency, with only moderate increases in peak memory usage. Specifically, our technique consists of a runtime component, which captures all allocations and uniquely associates them with their high-level source operation, and a static analysis component, which constructs an efficient allocation "plan". We present an implementation of in the PyTorch deep learning framework and evaluate memory consumption and execution performance on a wide range of DNN architectures. We find that outperforms state-of-the-art general purpose memory allocators, with respect to DNN inference latency, by as much as 40%.

READ FULL TEXT

page 19

page 23

research
10/12/2019

EDEN: Enabling Energy-Efficient, High-Performance Deep Neural Network Inference Using Approximate DRAM

The effectiveness of deep neural networks (DNN) in vision, speech, and l...
research
09/07/2021

Memory at Your Service: Fast Memory Allocation for Latency-critical Services

Co-location and memory sharing between latency-critical services, such a...
research
05/10/2023

MoCA: Memory-Centric, Adaptive Execution for Multi-Tenant Deep Neural Networks

Driven by the wide adoption of deep neural networks (DNNs) across differ...
research
06/09/2020

Automated Design Space Exploration for optimised Deployment of DNN on Arm Cortex-A CPUs

The spread of deep learning on embedded devices has prompted the develop...
research
07/09/2019

Click-Through Rate Prediction with the User Memory Network

Click-through rate (CTR) prediction is a critical task in online adverti...
research
09/11/2019

Sentinel: Runtime Data Management on Heterogeneous Main MemorySystems for Deep Learning

Software-managed heterogeneous memory (HM) provides a promising solution...
research
04/30/2021

Memory-Efficient Deep Learning Inference in Trusted Execution Environments

This study identifies and proposes techniques to alleviate two key bottl...

Please sign up or login with your details

Forgot password? Click here to reset