Logo image
Accelerating AI Applications with Sparse Matrix Compression in Halide
期刊文章   同儕審查

Accelerating AI Applications with Sparse Matrix Compression in Halide

Chao-Lin Lee, Chen-Ting Chao, Wei-Hsu Chu, Ming-Yu HungJenq-Kuen Lee
Journal of Signal Processing Systems
2022

摘要

客座助研究員 Lossless compression Scheduler SPMM Control and Systems Engineering Theoretical Computer Science Signal Processing Information Systems Modeling and Simulation Hardware and Architecture
Machine learning profoundly impacts every aspect of our lives. As machine learning evolves, many techniques, such as deep learning, are improving its accuracy and performance. Nonetheless, large data computations with large memory footprints will always be a bottleneck for deep learning applications. One of the most computationally demanding DNN operations is matrix multiplication, such as the convolution layer and fully connected layer, which preserve the image arrangement and obtain a partial image as an input feature. Our goal is to find an effective method for programmers to improve the performance of such matrix multiplication layers. Halide is an image processing programming language that separates the algorithm from its schedule. With the use of Halide, one can easily enhance the performance of their code with built-in scheduling primitives. In this paper, we propose sparse matrix compression schedule primitives with different compression schemes in Halide and find a method to improve convolution with the im2col method. With this design, we can compress the matrix to enhance the performance of convolution. We can also optimize natural language processing (NLP) with proposed compression scheduling. The word embedding training model can convert words into multidimensional vectors and transform words that do not have meaning into vectors with meaning. We focus on the word representation application in FastText, in which general matrix-vector multiplication (GEMV) is one of the most computationally intensive operations. We refine the software architecture of FastText and preprocess the pretrained model ahead of time. Our experiments show that the convolution and GEMV performance can be enhanced by the proposed design.

相關連結

指標

1 檢視次數

詳細資料

Logo image