S: Structured Sparsity Specification
Organizations: Department of Computer Science, Colorado University, Boulder
Abstract
We introduce the Structured Sparsity Specification (S), an algebraic framework for defining, composing, and implementing structured sparse patterns. S specifies sparsity through three components: a View that reshapes the tensor via layout composition, a Block specification that defines the atomic pruning unit, and the sparsity decision Scope. Both Block and Scope support Coupling across tensors for coordinated sparsification. S enables precise specification of diverse sparsity structures, from fine-grained N:M patterns to coarse channel pruning, and integrates seamlessly with Optimal Brain Damage (OBD) and Surgeon (OBS). We formalize the framework mathematically, demonstrate its expressiveness on canonical patterns, and validate it experimentally via structured OBS and OBD implementations built entirely on S, which surpasses well-established second order heuristics on output reconstruction across common configurations.
Figures & tables
| Model | Method | PPL ( ) | PPL Increase | Time |
|---|---|---|---|---|
| Qwen3-0.6B | Dense | 26.13 | — | — |
| S-OBD | 369.78 | 1315.1% | 79s | |
| SparseGPT | 126.23 | 383.0% | 165s | |
| S-OBS | 154.16 | 489.9% | 223s | |
| Qwen3-1.7B | Dense | 21.05 | — | — |
| S-OBD | 125.75 | 497.4% | 167s |
| Config | S-OBS | SparseGPT | Impr. | Time |
|---|---|---|---|---|
| 2:4 | 11.87% | 14.12% | 16.0% | 53s |
| Coupled 2:4 | 15.75% | 19.01% | 17.1% | 217s |
| 4:8 | 15.92% | 19.00% | 16.2% | 279s |
| 16-col block | 26.91% | 33.46% | 19.6% | 108s |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Description |
|---|---|
| A dense tensor | |
| Shape tuple (extents) | |
| Stride tuple | |
| Layout specification | |
| Size of a layout | |
| Cosize (memory footprint) |
| Pattern | View | Block | Scope | Keep |
|---|---|---|---|---|
| Unstructured | ||||
| N:M (2:4) | ||||
| Block | ||||
| Channel | ||||
| Head |
| Method | Dense PPL | PPL ( ) | PPL Increase | Time |
|---|---|---|---|---|
| S-OBD | 26.13 | 369.78 | 1315.1% | 79s |
| SparseGPT | 26.13 | 126.23 | 383.0% | 165s |
| S-OBS | 26.13 | 154.16 | 489.9% | 223s |
Structured Sparsity
Structured sparsity organizes zeros into meaningful groups, blocks, channels, or patterns to simplify models and computation.
See all 59 papers