Papers
Topics
Authors
Recent
Search
2000 character limit reached

N2N-SCIP: Sparse DNN Pruning with Skip Connections

Updated 1 December 2025
  • The paper introduces N2N-SCIP, a framework combining single-shot network pruning with learnable neuron-to-neuron skip connections to preserve gradient flow in extremely sparse models.
  • It enforces a fixed global sparsity budget by partitioning nonzero parameters equally between sequential weights and skip connections, ensuring controlled compression.
  • Empirical results on CIFAR and ImageNet benchmarks demonstrate improved connectivity and top-1 accuracy, significantly outperforming standard pruning methods.

N2N-SCIP denotes a pruning-and-skip connection framework for learning highly sparse deep neural networks by combining single-shot network pruning at initialization with the integration of sparse, learnable neuron-to-neuron skip (N2NSkip) connections, while strictly maintaining a fixed global sparsity budget. Developed in the context of enhancing the connectivity and performance of extremely sparse pruned models, N2N-SCIP offers a rigorous algorithmic scheme for sampling, training, and analyzing such networks, supported by graph-theoretic connectivity metrics and large-scale empirical evaluation on standard benchmarks (Subramaniam et al., 2022).

1. Foundational Formulation and Pruning Regime

N2N-SCIP begins from a standard LL-layer feedforward architecture parameterized by weight tensors WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}} for i=1,2,,Li = 1,2,\dots,L, where nin_i is the neuron (or channel) count at layer ii. A layer-wise density ρi(0,1)\rho_i \in (0,1) specifies the fraction of nonzero weights retained post-pruning. Pruning proceeds at initialization, directly imposing binary masks Mi{0,1}ni×ni1M_i \in \{0,1\}^{n_i \times n_{i-1}} such that

WiMi0=ρiWi0,\|W_i \odot M_i\|_0 = \rho_i \|W_i\|_0,

with \odot denoting the elementwise product. The aggregate number of active (sequential, i.e., backbone) weights is

Sseq=i=1LWiMi0.S_{\text{seq}} = \sum_{i=1}^L \|W_i \odot M_i\|_0.

Pruning criteria may be random or based on connection sensitivity (e.g., SNIP), but N2N-SCIP requires only an initial mask—no iterative prune-retrain cycles are needed (Subramaniam et al., 2022).

2. Neuron-to-Neuron Skip Connection Model

Beyond pruned sequential weights, N2N-SCIP introduces learnable skip weights WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}0, connecting any neuron WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}1 in layer WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}2 to any neuron WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}3 in a deeper layer WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}4. These are collected into a sparse tensor

WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}5

with sparsity enforced using binary skip masks WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}6: WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}7 In forward propagation, the pre-activation at layer WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}8 generalizes to

WiRni×ni1W_i \in \mathbb{R}^{n_i \times n_{i-1}}9

where i=1,2,,Li = 1,2,\dots,L0 for nonlinearity i=1,2,,Li = 1,2,\dots,L1.

This structure augments gradient pathways, addressing limitations of extreme pruning on information and gradient flow, especially at high compression ratios (Subramaniam et al., 2022).

3. Sparsity Budgeting and Skip Sampling

A fixed total parameter budget i=1,2,,Li = 1,2,\dots,L2 is enforced. This is split between sequential and skip connections: i=1,2,,Li = 1,2,\dots,L3 Typically, i=1,2,,Li = 1,2,\dots,L4. Both sequential and skip masks are sampled (randomly or by importance) up-front to respect i=1,2,,Li = 1,2,\dots,L5, blocking all further growth of nonzeros after initialization.

Sampling ensures that skip connections do not inflate parameter count while enabling denser inter-layer connectivity, especially across distant layers, mitigating typical layerwise bottlenecks induced by pruning (Subramaniam et al., 2022).

4. Algorithmic Procedure and Training

N2N-SCIP operates in three phases:

  • Phase I: Initialize, prune backbone weights using the selected criterion, compute i=1,2,,Li = 1,2,\dots,L6.
  • Phase II: Sample i=1,2,,Li = 1,2,\dots,L7 skip edges among all possible i=1,2,,Li = 1,2,\dots,L8 pairs (i=1,2,,Li = 1,2,\dots,L9), set corresponding mask entries, and initialize skip weights nin_i0.
  • Phase III: Jointly train all remaining weights (sequential + skip) via SGD with momentum (default nin_i1), decaying learning rate as standard. Nonzeros in the weight and skip tensors are updated; masked entries remain stationary.

No dynamic rewiring is performed by default; masks remain fixed throughout training. Optionally, rewiring could be integrated as a periodic update scheme, but the vanilla regime keeps the allocation static for reproducibility and simplicity (Subramaniam et al., 2022).

5. Connectivity Analysis via Heat Diffusion

To objectively measure restoration of network connectivity, the pruned and skip-augmented network is modeled as a weighted undirected graph nin_i2, with adjacency matrix nin_i3 indexed such that

nin_i4

The graph Laplacian nin_i5 is formed with nin_i6. The solution to the continuous-time heat equation,

nin_i7

is the heat kernel nin_i8, where nin_i9 diagonalizes ii0.

Using the initial layer as the heat source, the vector ii1 (with ii2 the input indicator vector) yields a heat diffusion signature. Connectivity deviation from the reference dense network is quantified by

ii3

with smaller ii4 indicating closer structural resemblance to the original graph. N2N-SCIP yields heat-diffusion deviations ii5–ii6 orders of magnitude smaller than pruning alone, quantitatively supporting restoration of backbone-like pathways (Subramaniam et al., 2022).

6. Experimental Validation

N2N-SCIP, implemented in PyTorch, is evaluated on CIFAR-10, CIFAR-100, and ImageNet (ILSVRC’12) with VGG-19 and ResNet-50 architectures. Two pruning baselines are used: RP (Random Pruning at initialization) and CSP (SNIP pruning at initialization). All models are trained for ii7 epochs using SGD with learning rate ii8, weight decay ii9, and batch size ρi(0,1)\rho_i \in (0,1)0.

Performance is consistently superior with N2N skip connections:

ρi(0,1)\rho_i \in (0,1)1 Method CIFAR-10 (10%) CIFAR-10 (5%) CIFAR-10 (2%) CIFAR-100 (10%) CIFAR-100 (5%) CIFAR-100 (2%)
RP RP 92.08 89.43 86.52 71.23 69.82 55.43
RP + N2NSkip-RP 92.92 92.65 91.12 72.67 72.13 61.21
CSP CSP 92.79 92.14 90.35 72.83 71.92 59.92
CSP + N2NSkip-CSP 93.02 92.86 92.12 73.72 73.05 65.45

ImageNet (ResNet-50, top-1 accuracy, at 20% density):

Method 50% 30% 20%
CSP 73.42 70.42 68.67
+ N2NSkip-CSP 74.59 72.89 72.09
RP 72.46 68.65 65.32
+ N2NSkip-RP 74.12 71.19 70.03

Heat-diffusion connectivity deviations ρi(0,1)\rho_i \in (0,1)2 are correspondingly reduced, confirming that N2N-SCIP recovers functional and structural capacities lost to pruning (Subramaniam et al., 2022).

7. Practical Recommendations and Limitations

  • Splitting global sparsity equally (ρi(0,1)\rho_i \in (0,1)3) performs robustly across large sparsity regimes (5–50× compression).
  • Skip weights should be initialized as ρi(0,1)\rho_i \in (0,1)4, using identical learning schedules as backbone weights; SGD with momentum ρi(0,1)\rho_i \in (0,1)5 is effective.
  • Inference cost is not increased since the skip matrix is as sparse as backbone weights; however, an up-front cost for sampling masks is incurred. Heat-diffusion analyses require ρi(0,1)\rho_i \in (0,1)6 computation, but are offline-only.
  • No prune-retrain cycles are mandated: N2N-SCIP is a single-shot initialization plus standard training regime.
  • Rewiring skip masks dynamically is not the default but can be incorporated if saliency-guided adaptation is desired.

N2N-SCIP supplies a practical, reproducible method for restoring gradient and information pathways in extremely sparse networks by judicious allocation of neuron-to-neuron skip connections within a fixed sparsity constraint, yielding significant gains in both connectivity and predictive performance over baseline pruning (Subramaniam et al., 2022).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to N2N-SCIP.