Magnitude pruning can be applied either globally, ranking every weight in the entire network against every other weight and pruning the smallest regardless of which layer they belong to, or layer-wise, setting a separate pruning threshold for each layer independently. Global pruning tends to allocate sparsity unevenly across layers, pruning more aggressively wherever a layer happens to have more low-magnitude weights, while layer-wise pruning enforces a more uniform sparsity ratio across every layer, a choice that can matter significantly since some layers are more sensitive to capacity loss than others.