ARMOR: High-Performance Semi-Structured Pruning via Adaptive Matrix Factorization

Lawrence Liu, Alexander Liu, Mengdi Wang, Tuo Zhao, Lin F. Yang

The quest to make Large Language Models (LLMs) smaller and faster usually involves a painful trade-off: you can have hardware-accelerated speed through structured pruning, or you can maintain your model’s intelligence with unstructured pruning—but rarely both. A new paper introduces ARMOR (Adaptive Representation with Matrix factORization), a clever middle ground that achieves hardware-friendly "2:4 sparsity" while retaining significantly more accuracy than previous state-of-the-art methods.

Executive Summary

ARMOR is a one-shot, post-training pruning algorithm that factorizes weight matrices into a 2:4 sparse core "sandwiched" between two lightweight, block-diagonal corrector matrices. This approach reduces the accuracy gap between pruned and dense models by up to 50% while maintaining the practical inference speedups provided by modern GPU hardware.

The Rigidity of Standard Pruning

The industry standard for "useful" sparsity is N:M sparsity, specifically 2:4 sparsity (where 2 out of every 4 consecutive weights are zero). This pattern is natively supported by NVIDIA’s Ampere and Hopper architectures, theoretically doubling math throughput.

However, existing 2:4 pruning methods—like SparseGPT or Wanda—often cause a massive spike in perplexity and a drop in task accuracy. The problem is "rigidity": forcing a fixed 2:4 mask onto a pre-trained weight matrix is a blunt instrument. ARMOR bridges this gap by combining the efficiency of 2:4 sparsity with the flexibility of unstructured pruning.

Methods: The ARMOR Factorization

The core innovation of ARMOR is to stop trying to prune the original weight matrix $W$ directly. Instead, the compressed weight $\hat{W}$ is represented as a factorization:

$$\hat{W} = A \cdot (W' \odot M) \cdot B$$

ARMOR Factorization Overview
  • $W' \odot M$: The "Sparse Core," a matrix adhering strictly to the 2:4 sparsity constraint.
  • $A$ and $B$: The "Wrapper" matrices. Crucially, these are block-diagonal, meaning they are highly sparse and computationally cheap to apply during inference.

The Optimization Loop

ARMOR uses a Block Coordinate Descent (BCD) algorithm to minimize a layer-wise proxy loss. The process alternates between two steps:

  1. Continuous Update: Using optimizers like Adam or SGD to fine-tune the continuous values in $A, B,$ and the dense weights $W'$.
  2. Sparse Core Update: A greedy least-squares approach that tests different 2:4 mask patterns ($M$) to find the one that minimizes error for a given block.

Because the wrappers $A$ and $B$ act as linear transformations, they effectively "rotate" the weight space into a basis where the 2:4 pruning constraint is far less damaging to the model's internal representations.

Key Insights and Theoretical Guarantees

  • The "Corrector" Effect: The block-diagonal wrappers act as pre- and post-transformation error correctors. They allow the model to "shift" important information into the two non-zero slots allowed by the 2:4 hardware constraint.
  • Theoretical Superiority: The authors mathematically prove that ARMOR is guaranteed to converge to a solution that is at least as good as, or better than, current state-of-the-art pruning methods.
  • Sublinear Overhead: Because $A$ and $B$ are block-diagonal, their parameter count grows with $O(N \cdot d_{block})$ rather than $O(N^2)$. This keeps the memory and FLOP overhead extremely low (around 3-5%).

Key Results

The researchers evaluated ARMOR across a massive range of models (including Qwen and Llama families) and benchmarks, using 128 calibration samples from the SlimPajama dataset.

Task Accuracy Results
  • Task Accuracy: ARMOR consistently outperformed Wanda, SparseGPT, and NoWag-P across every model size and task tested. In some cases, ARMOR-pruned models were shockingly close to their dense counterparts. For example, on the GPQA benchmark with Qwen 2.5-32B, ARMOR achieved a score of 39.51, actually outperforming the dense model's 38.84.
  • Perplexity Gains: On Llama-2-13B, ARMOR reduced the "perplexity gap" (the difference between the dense model and the pruned model) by nearly 50% compared to the next best baseline.
  • Inference Speed: Even with a non-optimized PyTorch proof-of-concept, ARMOR achieved ~84% of the theoretical maximum speedup for 2:4 sparsity. For a Qwen 2.5-14B layer, it delivered a 1.57x speedup (vs. 1.86x for "naive" 2:4 pruning).

Limitations and Future Work

  • Implementation: The current benchmarks use a PyTorch-only implementation. To reach the full theoretical 2.0x speedup, custom CUDA kernels that fuse the block-diagonal multiplications with the sparse matrix-vector product are needed.
  • Block Size Trade-off: There is a tug-of-war between accuracy and speed. Larger block sizes for $A$ and $B$ improve accuracy but increase the computational overhead.
  • Quantization Integration: While pruning can be compounded with quantization (like GPTQ), this paper focuses purely on pruning. Future work could explore how ARMOR interacts with 4-bit or 8-bit weights.

ARMOR represents a significant step forward for on-device AI, proving that we don't have to sacrifice the "brains" of an LLM just to fit it into the "body" of specialized hardware.

Summary updated

BibTeX
@inproceedings{liu2026armor,
  author = {Lawrence Liu and Alexander Liu and Mengdi Wang and Tuo Zhao and Lin F. Yang},
  title = {{ARMOR: High-Performance Semi-Structured Pruning via Adaptive Matrix Factorization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=8NE554wv0m},
}
Figure