NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Beyond Masked Sparsity: SNACK Enables Truly Sparse Neural Networks on GPU

Jafar Badour, Elena Mocanu, Maurice Keulen

NeurIPS page · Open on the map

Category: Efficient LLM Inference & Training › Efficient Neural Network Inference · Type: new method · Keywords: sparse neural networks, GPU acceleration, custom CUDA kernel, memory efficiency, training speedups, graph inference

Areas: Memory › Model Memory Optimization › Activation Memory Reduction; Model Architectures & Sequence Modeling › Neural and brain architectures › Sparse and efficient neural architectures

Summary

SNACK introduces a truly sparse GPU layer that stores and computes only non-zero connections, achieving up to 7× speedup over masked dense baselines and reducing memory usage by up to 40% in large models.

Explained to a 5-year-old

Big computer programs called neural networks are getting really big and need a lot of power. Some scientists tried to make them smaller by only keeping some connections, but they still stored everything. This paper creates a new way to only keep and use the important connections, like drawing only the lines you need. It helps the computer run faster and use less memory. This means you can have bigger models without needing super-big computers.

Explained to a 5-year-old, longer

Neural networks are computer programs that learn to do many tasks, like understanding language or recognizing pictures. As these programs get bigger, they need more computer power and memory to work. Scientists have tried to make them lighter by only keeping some of the connections between parts of the network. But many of those attempts still store all the data, even the parts that are not used. This paper introduces a new technique that truly stores only the connections that are needed. It works by using a special way to organize the data so that empty spots are not kept at all. The new method also has a custom piece of software that speeds up the calculations on modern GPUs. Because it uses less memory, the computer can run larger models without needing extra hardware. It also saves energy, which is good for the environment and reduces electricity bills. The improvements are noticeable both when training new models and when using them to make predictions. This allows researchers and companies to build bigger, more capable AI systems while keeping costs down.

For a technical reader

SNACK replaces binary masks with a native sparse representation that stores only non-zero weights, eliminating the overhead of dense tensors. It provides a PyTorch API for dynamic connection restructuring and uses a custom COO-format SpMM kernel tuned for small batches and high sparsity. Benchmarks show up to 7× speedups over masked dense baselines and competitive performance with existing sparse libraries, while cutting memory and energy usage significantly.

Problem

Deep neural networks are growing in size, leading to high training and inference costs on GPUs. Existing sparse neural networks often rely on binary masks over dense tensors, which recover little of the theoretical compute, memory, or energy savings.

Method

The approach stores and computes only non-zero connections using a custom COO-format sparse matrix multiplication kernel, exposes a PyTorch API for restructuring connections, and backpropagates gradients entirely in the sparse paradigm. It maps batches to streaming multiprocessors optimized for small-batch, high-sparsity regimes. This enables true sparsity without binary masks.

Results

The approach achieves up to 7× speedup over masked dense baselines and competitive performance with existing sparse libraries at 95% sparsity. At 90% sparsity, it accelerates training by 8× and inference by 4× compared to dense layers, reduces memory usage by 25%, and cuts GPT-2 peak training memory by up to 40% while lowering graph inference latency by 4.8× at 99% sparsity.

Contributions

It introduces a GPU layer that stores and computes only non-zero connections, provides a PyTorch API for sparse restructuring, and implements a custom COO-format SpMM kernel optimized for high sparsity. The work demonstrates substantial speedups, memory savings, and energy reductions across training and inference workloads.

Practical relevance

By drastically cutting memory and energy usage, SNACK makes it feasible to train and deploy larger neural networks on existing GPU hardware, lowering the barrier for scaling models.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction