COE 592Lecture 4.1Glossary
Glossary
Every term in Pruning and sparsity I, defined once and used the same way in every part. Each entry links to the slides where the idea appears.
- Terms
- 53
- Letters
- 19
#
- 2:4 sparsity
Two of every four contiguous weights are zero (50 percent sparsity), stored as nonzero values plus 2-bit indices and accelerated about 2x on NVIDIA Ampere GPUs.
A
- Activation sparsity
Zeros in a layer's activations, mostly produced by ReLU; a MAC is skipped only when the weight or the input activation is zero, and APoZ measures this fraction per channel.
- AMC
AutoML for Model Compression, which finds per-layer pruning ratios and achieves higher ImageNet accuracy than uniform scaling at the same latency.
B
- Batch normalization scaling factor
The gamma in z_o = gamma (z_i - mu_B)/sqrt(sigma_B^2 + epsilon) + beta, reused as the per-channel scaling factor for pruning.
C
- Channel pruning
Removing whole channels so the network has fewer channels; gives direct speedup but a smaller compression ratio.
- Channel selection coefficient
beta, a vector of length c_i where beta_c = 0 prunes input channel c, constrained by ||beta||_0 <= N_c.
- Coarse-grained (structured) pruning
Pruning whole structures such as rows or channels; less flexible, a subset of fine-grained choices, but easy to accelerate because the result is a smaller dense matrix.
- Convolution weight dimensions
A convolution weight tensor has shape [c_o, c_i, k_h, k_w]: output channels (filters), input channels, kernel height and kernel width.
E
F
- Filter pruning
Removing whole output channels (filters, W[o, :, :, :]) of a convolution layer, which also deletes the matching input channel of the next layer; Li et al. score each filter by the sum of its absolute kernel weights.
- Fine-grained (unstructured) pruning
Pruning any individual weight; most flexible pruning indices and usually the largest compression ratio, but irregular and hard to accelerate on GPUs.
- Fine-tuning
Retraining the remaining weights after pruning to recover the accuracy lost by removing connections.
- Frobenius norm
||A||_F, the square root of the sum of the squared entries of a matrix; its square in the reconstruction error is the total squared error over the whole layer output.
H
I
- Index storage
The positions a sparse format (CSR, CSC, COO or the 2:4 index strip) stores next to surviving weights; fine-grained pruning pays one index per weight, coarser units share one index per unit, and channel pruning needs none.
- Iterative pruning
Repeating the prune then retrain loop several times, reaching higher pruning ratios without accuracy loss than one-shot pruning.
K
- Kernel-level pruning
Removing entire k_h by k_w kernels from a convolution weight tensor.
L
- L0 norm
The count of nonzero entries in a weight tensor, written ||W_P||_0; used as the constraint in the pruning formulation.
- L1-norm importance
Importance of a structural set equal to the sum of absolute values of its weights.
- L2-norm importance
Importance of a structural set equal to the square root of the sum of squared weights.
- LASSO relaxation
Replacing the NP-hard L0 constraint on beta with an L1 penalty lambda ||beta||_1, so channel selection becomes a LASSO regression with a sparse solution, alternated with least-squares reconstruction of W.
M
- MACs
Multiply-accumulate operations, a measure of the compute cost of a network, reported alongside parameter reduction.
- Magnitude threshold
The cut-off below which weights are removed in magnitude-based pruning; Han et al. set it per layer as a quality parameter times the standard deviation of that layer's weights.
- Magnitude-based pruning
A heuristic criterion that treats weights with larger absolute values as more important; element-wise importance is |W|.
- Memory access energy
A 32-bit DRAM access costs about 640 pJ in 45 nm, roughly 200 times a 32-bit integer multiply, so data movement dominates energy.
N
- N:M sparsity
A pattern where every group of M contiguous elements has a fixed number of pruned elements; in NVIDIA's convention at most N of each M are nonzero.
- Network slimming
Liu et al. (2017): train with an L1 penalty on batch norm gamma, prune the channels whose gamma falls below a global percentile threshold, then fine-tune.
- Network Trimming
Hu et al. (2016): measure APoZ on validation images, trim the neurons whose APoZ is more than one standard deviation above the layer mean, retrain from the pre-trim weights, and repeat a few layers at a time.
- Neuron pruning
Removing whole neurons with all their incoming and outgoing connections; a coarse-grained form of weight pruning that deletes a row of a linear layer's weight matrix.
O
- Optimal Brain Damage
LeCun et al. (1989) method assuming a nearly quadratic loss, converged training and independent deletion errors, giving importance 1/2 h_ii w_i^2.
P
- Pattern-based pruning
Pruning with fixed shapes of kept weights inside kernels or groups, a semi-regular granularity between fine-grained and vector-level.
- Pruning
Making a neural network smaller by removing synapses (weights) and neurons whose removal least affects performance.
- Pruning criterion
The rule for measuring parameter or neuron importance; removing less important ones yields better pruned performance.
- Pruning formulation
argmin over W_P of L(x; W_P) subject to ||W_P||_0 <= N, where L is the training objective and N the target number of nonzeros.
- Pruning granularity
The structural unit in which weights are removed, ranging from individual weights to whole channels.
- Pruning mask
The set of weight positions zeroed by pruning; it stays fixed during fine-tuning so pruned weights remain zero, and coarse-grained masks are a subset of fine-grained ones.
- Pruning ratio
The percentage of parameters pruned away from a network.
R
- Reconstruction error
||Z - Z_hat||_F^2, the squared Frobenius distance between the original and pruned layer outputs.
- Reduction factor
How many times smaller the pruned model is, k = 1 / (1 - r) for a pruning ratio r: 80 percent pruned is 5x, 90 percent is 10x.
- Regression-based pruning
Channel pruning that minimizes the reconstruction error of a layer's outputs rather than the network loss.
S
- Saliency
OBD's name for the estimated loss increase from deleting one parameter, s_k = 1/2 h_kk w_k^2; parameters with the lowest saliency are deleted first.
- Scaling-based pruning
Filter pruning that attaches a trainable scaling factor to each output channel and prunes channels whose factor magnitude is small.
- Second-order pruning
Choosing weights to prune by approximating the loss change with a Taylor series that uses the Hessian.
- Sparse Tensor Core
The NVIDIA Ampere (A100) unit that reads 2:4 compressed weights with their 2-bit indices and skips the zeros, giving up to 2x matrix-multiply throughput.
- Sparsity
The fraction of weights in a tensor or layer that are zero after pruning.
- Structural set
A group S of parameters, W^(S), such as a row, kernel or channel, scored together for structured pruning.
- Synapse pruning
Removing individual connections (weights) between neurons while the neurons remain.
- Synaptic pruning in the brain
Synapses per neuron grow from about 2500 at birth to 15000 at 2 to 4 years, then are pruned to about 7000 in adults.
T
- Taylor expansion of loss change
delta L = sum g_i delta w_i + 1/2 sum h_ii delta w_i^2 + 1/2 sum_{i != j} h_ij delta w_i delta w_j + O(||delta W||^3).
U
- Uniform shrink
Reducing every layer's channels by the same ratio, which gives worse accuracy than channel pruning with per-layer sparsity.
V
- Vector-level pruning
Removing whole rows or columns of weights within a kernel.