metalSPARSE: A 2:4 Semi-Structured Sparse GEMV Kernel for Apple Silicon GPUs
Not on the map. Why?
Abstract (arXiv)
Autoregressive Large Language Models (LLMs) generate text one token at a time, and each token reads every weight from memory, so on edge devices, decoding is limited by memory bandwidth. 2:4 semi-structured sparsity keeps two of every four weights, but Apple-silicon GPUs have no sparse matrix hardware, so pruning helps only if a kernel actually reads fewer bytes. We present metalSPARSE, to our knowledge the first 2:4 sparse kernels for Apple GPUs, together with a fused decoder written in Metal. The kernels stream weights in compressed form and expand them in registers. On Qwen2.5-1.5B with 2:4 sparsity on every decoder linear layer, decoding runs 3.6x faster than HuggingFace Transformers on PyTorch-MPS on an 8 GB M2 MacBook Air and 1.52x faster than MLX on a 16 GB M4. The same engine on dense weights matches MLX, so the gain comes from the compressed weights, and sparsity delivers 97% of the speedup its byte reduction allows. Prompt processing, which is compute-bound, does not speed up. To preserve quality, we combine a Wanda mask with block-wise reconstruction and low-rank adapters trained jointly with the surviving weights and quantized to 4 bits. On WikiText-2 this brings perplexity from 3.01x dense after one-shot pruning (Wanda with a closed-form refit) to 1.34x, and the whole pipeline runs on the same laptop/hardware.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 36 of its 43 references that are in the map. Submitted 27 Oct 2026.
Builds on
36 of 43 references.
References · 36
- 2024Qwen2.5 Technical Reportcited by 5,527
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,183
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 878
- 2022Efficiently Scaling Transformer Inferencecited by 581
- 2021Accelerating Sparse Deep Neural Networkscited by 235
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memorycited by 189
- 2023Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsitycited by 178
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 163
- 2023LoSparse: Structured Compression of Large Language Models based on Low-Rank and Sparse Approximationcited by 107
- 2024AI and Memory Wallcited by 102
- 2023LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuningcited by 97
- 2023Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMscited by 67
24 more
- 2024Compressing Large Language Models using Low Rank and Low Precision Decompositioncited by 65
- 2024MaskLLM: Learnable Semi-Structured Sparsity for Large Language Modelscited by 54
- 2024RoSA: Accurate Parameter-Efficient Fine-Tuning via Robust Adaptationcited by 53
- 2024LQER: Low-Rank Quantization Error Reconstruction for LLMscited by 48
- 2024QERA: an Analytical Framework for Quantization Error Reconstructioncited by 27
- 2025Wanda++: Pruning Large Language Models via Regional Gradientscited by 27
- 2024ALPS: Improved Optimization for Highly Sparse One-Shot Pruning for Large Language Modelscited by 24
- 2024Pruning Large Language Models with Semi-Structural Adaptive Sparse Trainingcited by 24
- 2024Effective Interplay between Sparsity and Quantization: From Theory to Practicecited by 22
- 2024SLiM: One-shot Quantization and Sparsity with Low-rank Approximation for LLM Weight Compressioncited by 16
- 2025ProxSparse: Regularized Learning of Semi-Structured Sparsity Masks for Pretrained LLMscited by 13
- 2025A Proximal Operator for Inducing 2:4-Sparsitycited by 6
- 2026Native LLM and MLLM Inference at Scale on Apple Siliconcited by 6
- 2025PATCH: Learnable Tile-level Hybrid Sparsity for LLMscited by 5
- 2024P2 Law: Scaling Law for Post-Training After Model Pruningcited by 4
- 2026BaseRT: Best-in-Class LLM Inference on Apple Silicon via Native Metalcited by 4
- 2025A Free Lunch in LLM Compression: Revisiting Retraining after Pruningcited by 3
- 2026Open-TQ-Metal: Fused Compressed-Domain Attention for Long-Context LLM Inference on Apple Siliconcited by 3
- 2026SpenseGPT: Practical One-shot Pruning Enabling Sparse and Dense GEMMs for LLM Inferencecited by 2
- 2026BaseRT: Advancing Best-in-Class LLM Inference with Apple M5 Neural Acceleratorscited by 2
- 2025Accelerating Sparse Ternary GEMM for Quantized ML on Apple Siliconcited by 1
- 2026SlideSparse: Fast and Flexible (2N-2):2N Structured Sparsitycited by 1
- 2026SparseForge: Efficient Semi-Structured LLM Sparsification via Annealing of Hessian-Guided Soft-Maskcited by 1
- 2026Rigel: Reverse-Engineering the Metal 4.1 Tensor Compute Path on the Apple M4 Max GPUcited by 1
Built on by
Not cited yet.