GPU Kernels for Block-Sparse Weights
Scott Gray, Alec Radford and Diederik P. Kingma
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/openai/blocksparseIn papertf★ 0
Abstract
We’re releasing highly optimized GPU kernels for an underexplored class of neural network architectures: networks with block-sparse weights. The kernels allow for efficient evaluation and differentiation of linear layers, including convolutional layers, with flexibly configurable block-sparsity patterns in the weight matrix. We find that depending on the sparsity, these kernels can run orders of magnitude faster than the best available alternatives such as cuBLAS. Using the kernels we improve upon the state-of-the-art in text sentiment analysis and generative modeling of text and images. By releasing our kernels in the open we aim to spur further advancement in model and algorithm design.