CSWAP: A Self-Tuning Compression Framework for Accelerating Tensor Swapping in GPUs
Authors:
- 1 September 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 271-282
Abstract
Graphic Processing Units (GPUs) have limited memory capacity. Training popular deep neural networks (DNNs) often requires a larger amount of memory than that a GPU may have. Consequently, training data needs to be swapped between CPUs and GPUs. Data swapping may become a bottleneck when its latency is longer than the latency of DNN computations. Tensor compression in GPUs can reduce the data swapping time. However, existing works on compressing tensors in the virtual memory of GPUs have two major issues: sub-optimal compression performance for varying tensor sparsity and sizes and lack of portability because its implementation requires additional (de)compression units in memory controllers. We propose a self-tuning tensor compression framework, named CSWAP, for improving the virtual memory management of GPUs. It has high portability and is minimally dependent on GPU architecture features. Furthermore, its runtime only applies compression on tensors that are deemed to be cost-effective considering their sparsity and size and the characteristics of compression algorithms. Finally, our framework is fully automated and can customize the compression policy for different neural network architectures and GPU architectures. Our experimental results using six representative memory-intensive DNN models show that CSWAP reduces tensor swapping latency by up to 50.9% and reduces the DNN training time by 20.7% on average with NVIDIA V100 GPUs compared to vDNN.Keywords
Funding Information
- National Science Foundation
- Ministry of Education
- National Science Foundation
This publication has 35 references indexed in Scilit:
- ImageNet classification with deep convolutional neural networksCommunications of the ACM, 2017
- vDNN: Virtualized deep neural networks for scalable, memory-efficient neural network design2016
- Deep Residual Learning for Image Recognition2016
- An Exploration of Parameter Redundancy in Deep Networks with Circulant Projections2015
- Going deeper with convolutions2015
- Fixed point optimization of deep convolutional neural networks for object recognition2015
- Statistical parametric speech synthesis using deep neural networks2013
- What is a support vector machine?Nature Biotechnology, 2006
- Bayesian Model Averaging for Linear Regression ModelsJournal of the American Statistical Association, 1997
- A survey of decision tree classifier methodologyIEEE Transactions on Systems, Man, and Cybernetics, 1991