In the early days of neural network compression, pruning was simple: find the smallest weights and set them to zero. But as architectures evolved from simple stacks of layers to complex graphs with residual (skip) connections, this "blind" pruning began to break the very networks it was meant to slim down.
The fundamental problem is a mathematical mismatch. In a ResNet or a Transformer, the output of one layer is often added to the output of a previous one. If you independently prune channel #5 in the first layer but keep it in the second, the element-wise addition becomes impossible. The network's topology—its "wiring diagram"—imposes strict constraints on which parts can be removed.
The Dependency Problem
When layers are linked by skip connections, they become "topologically coupled." This means their dimensions must remain identical throughout the pruning process. As Weiwei Zhang and colleagues note in Layer Pruning for Accelerating Very Deep Neural Networks, independent pruning disrupts the dimensionality alignment required for these connections, leading to a total collapse of the model's functional connectivity.
To solve this, researchers have moved away from pruning individual weights toward structural alignment, where the pruning decisions for multiple layers are synchronized to preserve the network's integrity.
Grouping and Synchronization
The most direct solution is to treat coupled layers as a single unit. Instead of asking "Should I prune this channel?", the question becomes "Should we prune this group of channels across all linked layers?"
In Knapsack Pruning with Inner Distillation, Asaf Noy and his team treat channel removal as a resource allocation problem where channels are organized into groups. These groups must be pruned or retained together, ensuring that the dimensions of feature maps remain compatible across residual blocks. Similarly, Archtree uses a tree-structured search to explore pruning candidates while maintaining these group-based constraints.
For Vision Transformers, Kyunghwan Shim introduced SNP, which synchronizes pruning indices across the entire computational graph. By ensuring the same physical channels are removed in every interconnected module, the mathematical dimensions of tensors remain compatible for the residual additions that define the Transformer architecture.
Forcing Redundancy via Centripetal SGD
Rather than just deleting filters, some researchers choose to "mold" them into a prunable shape during training. Xiaohan Ding and Guiguang Ding proposed Centripetal SGD (C-SGD), a method that uses a specialized gradient to push multiple filters toward becoming identical.
Because convolution is a linear operation, two identical filters can be merged into one with zero loss in performance. To handle ResNets, C-SGD enforces the same clustering configurations across linked layers. This synchronization ensures that when filters are merged, the "slimming" happens uniformly across the skip connections, preventing any dimension mismatches in the final, compacted model.
Optimization with Alignment Penalties
Another approach is to allow the optimization process itself to discover the best aligned structure. In Aligned Structured Sparsity Learning (ASSL), Yulun Zhang and colleagues introduced a "sparsity structure alignment" penalty.
Instead of a hard constraint, they use a differentiable penalty that maximizes the overlap of pruning patterns between layers. This "nudges" the network to prune the same indices across residual blocks. This soft-constraint approach allows for more flexibility during training while still resulting in a structurally consistent model that can be easily deployed on hardware.
The "Safe" Alternative: Internal Pruning
When synchronization is too complex, some methods opt for a more conservative strategy: only pruning what is "safe." Chao Li describes this in PFGDF, where pruning is strictly confined to the internal layers of residual blocks.
By leaving the "bridge" layers (those directly involved in the skip connection) untouched, these methods avoid the alignment problem entirely. While this limits the maximum possible compression ratio—as the shortcut connections remain "bloated"—it guarantees that the network's identity mappings and gradient flow remain intact without requiring complex synchronization logic.