Weight Block Sparsity: Training, Compilation, and AI Engine Accelerators

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: D'Alberto, Paolo, Jeong, Taehee, Jain, Akshai, Manjunath, Shreyas, Sarmah, Mrinal, Hsu, Samuel, Raparti, Yaswanth, Pipralia, Nitesh
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916324246028288
author D'Alberto, Paolo
Jeong, Taehee
Jain, Akshai
Manjunath, Shreyas
Sarmah, Mrinal
Hsu, Samuel
Raparti, Yaswanth
Pipralia, Nitesh
author_facet D'Alberto, Paolo
Jeong, Taehee
Jain, Akshai
Manjunath, Shreyas
Sarmah, Mrinal
Hsu, Samuel
Raparti, Yaswanth
Pipralia, Nitesh
contents Nowadays, increasingly larger Deep Neural Networks (DNNs) are being developed, trained, and utilized. These networks require significant computational resources, putting a strain on both advanced and limited devices. Our solution is to implement {\em weight block sparsity}, which is a structured sparsity that is friendly to hardware. By zeroing certain sections of the convolution and fully connected layers parameters of pre-trained DNN models, we can efficiently speed up the DNN's inference process. This results in a smaller memory footprint, faster communication, and fewer operations. Our work presents a vertical system that allows for the training of convolution and matrix multiplication weights to exploit 8x8 block sparsity on a single GPU within a reasonable amount of time. Compilers recognize this sparsity and use it for both data compaction and computation splitting into threads. Blocks like these take full advantage of both spatial and temporal locality, paving the way for fast vector operations and memory reuse. By using this system on a Resnet50 model, we were able to reduce the weight by half with minimal accuracy loss, resulting in a two-times faster inference speed. We will present performance estimates using accurate and complete code generation for AIE2 configuration sets (AMD Versal FPGAs) with Resnet50, Inception V3, and VGG16 to demonstrate the necessary synergy between hardware overlay designs and software stacks for compiling and executing machine learning applications.
format Preprint
id arxiv_https___arxiv_org_abs_2407_09453
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Weight Block Sparsity: Training, Compilation, and AI Engine Accelerators
D'Alberto, Paolo
Jeong, Taehee
Jain, Akshai
Manjunath, Shreyas
Sarmah, Mrinal
Hsu, Samuel
Raparti, Yaswanth
Pipralia, Nitesh
Machine Learning
Hardware Architecture
Computation and Language
C.5; D.3.4
Nowadays, increasingly larger Deep Neural Networks (DNNs) are being developed, trained, and utilized. These networks require significant computational resources, putting a strain on both advanced and limited devices. Our solution is to implement {\em weight block sparsity}, which is a structured sparsity that is friendly to hardware. By zeroing certain sections of the convolution and fully connected layers parameters of pre-trained DNN models, we can efficiently speed up the DNN's inference process. This results in a smaller memory footprint, faster communication, and fewer operations. Our work presents a vertical system that allows for the training of convolution and matrix multiplication weights to exploit 8x8 block sparsity on a single GPU within a reasonable amount of time. Compilers recognize this sparsity and use it for both data compaction and computation splitting into threads. Blocks like these take full advantage of both spatial and temporal locality, paving the way for fast vector operations and memory reuse. By using this system on a Resnet50 model, we were able to reduce the weight by half with minimal accuracy loss, resulting in a two-times faster inference speed. We will present performance estimates using accurate and complete code generation for AIE2 configuration sets (AMD Versal FPGAs) with Resnet50, Inception V3, and VGG16 to demonstrate the necessary synergy between hardware overlay designs and software stacks for compiling and executing machine learning applications.
title Weight Block Sparsity: Training, Compilation, and AI Engine Accelerators
topic Machine Learning
Hardware Architecture
Computation and Language
C.5; D.3.4
url https://arxiv.org/abs/2407.09453