Pruning That Preserves Where a Network Looks

When a vision network is pruned, the usual check is whether its ImageNet classification accuracy survives. Classification can often be solved from a small central region of each feature map, but detection and segmentation need each output to draw on a wide surrounding context. That reach is measured by the effective receptive field (ERF): the map of how strongly each input pixel actually influences a given output unit. It is typically much smaller than the region the architecture could in principle see. We propose that standard structural pruning quietly shrinks the ERF, and that this shrinkage explains much of the gap between "pruned backbone looks fine on ImageNet" and "pruned backbone transfers badly to dense tasks." Because the ERF is defined only through input gradients, it is measured the same way in a convolutional network, a large-kernel network, a Vision Transformer, and a visual state space model. That makes it a single, architecture-independent signal for deciding what to remove.

Concretely, we would prune once, using unlabeled images, with an importance score that combines a standard output-preservation term with a term that penalizes changes to the network's ERF profile. The resulting backbone would then be reused for both detection and segmentation without re-pruning. If ERF shrinkage is the hidden failure mode, this backbone should beat norm-based pruning on COCO and ADE20K at equal compute while matching it on ImageNet. It should do so across four architecture families, with no architecture-specific rules.

Core Claim

DepGraph solves the part of cross-architecture pruning that concerns bookkeeping. It builds a dependency graph so that coupled channels in CNNs, ViTs, RNNs and GNNs are removed together, and it ranks the resulting groups by weight norm. The ranking itself ignores whether a group carries local texture or long-range context.

Understanding the Effective Receptive Field gives two reasons to expect this blindness to matter. It shows that the ERF of stacked local convolutions converges to a Gaussian whose width grows only like $\sqrt{n}$ in depth $n$, and that skip connections shrink it further. Wide context is therefore carried by relatively few pathways, and removing them may cost little classification accuracy.

The visual state space model (SSM) literature supplies the strongest evidence that spatially blind reduction can be catastrophic. A visual SSM is a network that mixes information by scanning a sequence of image patches in a fixed order. STORM shows that ViT-style token merging collapses VMamba-B from 83.9% to 35.7% ImageNet accuracy and VMamba-S detection to 2.8 COCO AP. It recovers 82.6% accuracy and 44.2 AP by confining reduction to local row-then-column windows.

STORM operates on tokens only and is specific to scan-based models. Our claim concerns structured parameter pruning, meaning removing whole channels, heads and projection dimensions. We claim that one ERF-matching term, applied uniformly through DepGraph's grouping, gives these spatial-integrity benefits to every architecture family without hand-designed windows.

Research Program

For a model $f$ and a set of output units $y$ at the centre of a deep feature map, define the normalized ERF profile

$$G_f(u) = \frac{\mathbb{E}_{x}\,|\partial y / \partial x_u|}{\sum_{v} \mathbb{E}_{x}\,|\partial y / \partial x_v|},$$

where $x_u$ is input pixel $u$ and the expectation runs over unlabeled images. This is a probability map over input positions.

Pruning keeps a binary mask $m$ over DepGraph groups. We score groups by the first-order sensitivity of

$$\mathcal{L}(m) = \|f_m(x) - f(x)\|^2 + \lambda\, \mathrm{KL}\big(G_f \,\|\, G_{f_m}\big)$$

with respect to each group's mask variable. Here $f_m$ is the masked model and $\lambda$ trades output fidelity against preservation of the ERF profile. Both terms need only unlabeled images. The KL term is computed from one extra backward pass to the input per calibration batch, using a few hundred images. Pruning proceeds iteratively and is followed by the same fine-tuning schedule used for baselines.

The program has three parts.

The first is diagnostic. We prune ResNet-50, RepLKNet-31B, DeiT-Base/Swin-T and VMamba-S with DepGraph's norm criterion and record how the ERF changes, using width and the fraction of ERF mass outside the centre. We then test whether ERF change predicts the loss on COCO and ADE20K better than ImageNet accuracy loss does.

The second is the method above.

The third is analysis by component. For each architecture we ask which components the ERF term protects. In large-kernel CNNs, does it shift pruning toward the pointwise layers that CGS found to hold over 87% of parameters, and away from the spatial kernels? In VMamba, does it protect the scan projections? In ViTs, does it protect the heads that attend over long distances? The ViT case may produce a negative result, since attention already gives a global theoretical receptive field. We treat that as an informative outcome rather than a failure.

Baselines

The naive reference is the unpruned backbone and uniform per-layer channel pruning at the same FLOPs. Both are routed through DepGraph's grouping so that every model executes.

The primary competitor is DepGraph with its group-norm criterion. It is the only method in the file demonstrated on all the CNN and ViT families we use. Its reported results are ResNet-50 at over 2× speedup with a 0.32% ImageNet drop, and ViT-B/16 with MACs reduced from 17.6 to 10.4 at a 1.90% drop (DepGraph).

On transformers, the strongest specialized competitor is SAViT. It uses a second-order Taylor estimate of how pruning components together affects loss, combined with evolutionary search. It reports 82.75% Top-1 on DeiT-Base at about 40% FLOPs reduction, against an 81.84% baseline, and a 0.3% mAP drop for Faster R-CNN with a Swin-T backbone at 70% FLOPs removed. We will rerun SAViT under our fine-tuning budget where feasible, and otherwise compare against these reported figures, labelled as reported.

For large-kernel CNNs, the reference is CGS, which compresses only the pointwise layers. It reports over 81% parameter reduction on RepLKNet-31B for about a 4% Top-1 drop.

For structured parameter pruning of VMamba, and for DepGraph on COCO or ADE20K, we found no reported result on Lacuna. We will run those ourselves.

The key ablation is our method with $\lambda=0$. This is output-matching Taylor pruning with identical calibration data, grouping and fine-tuning, and it isolates the ERF term. A second control replaces $G_f$ with a spatially shuffled target of the same entropy. This tests whether it is the spatial shape of the ERF that helps, rather than generic regularization.

All methods get the same calibration images, the same pruning-iteration count and the same fine-tuning epochs on ImageNet. Dense-task heads are then trained with identical schedules on each frozen-then-fine-tuned backbone. We count it as beating the baselines if, at matched FLOPs and within 0.3 points of the best baseline on ImageNet, our backbone improves COCO box AP and ADE20K mIoU by at least one point on at least three of the four families.

Why not just…?

Why not just compute pruning importance with the detection or segmentation loss? This is the most serious threat. Task-loss Taylor importance on labelled dense data could protect context-carrying channels implicitly. We run it as an extra baseline with the same budget. If it matches us, the remaining contribution is narrower but real: one label-free pruning pass whose backbone serves several dense tasks, against one labelled pass per task. If it clearly beats us, the ERF term is a weak proxy, and we would report that.

Why not just prune for classification and fine-tune longer on the dense task? Fine-tuning might regrow the lost context; the ERF paper itself notes that training expands the ERF outward. We sweep the dense fine-tuning budget at 1×, 2× and 4×, and track ERF width during fine-tuning. If the gap closes at 2×, the problem is one of recovery cost rather than permanent damage, and the method's value is reduced to saving fine-tuning compute.

Why not just exempt spatial mixers from pruning and compress only channel-mixing layers? This is the CGS-style heuristic, and it is cheap. However, it does not transfer to ViTs or SSMs, where there is no separate spatial kernel. CGS also still loses about 4% on RepLKNet-31B. We include "pointwise-only" pruning as a baseline on the CNN families. If it ties us there, the cross-architecture uniformity is what remains to be demonstrated.

Why not just use STORM-style local windows? STORM changes which tokens are processed, not which weights exist. It also needs fixed windows and excludes the last stage. We would test whether parameter pruning composes with it on VMamba-S, rather than substitute for it.

Decisive Experiments

The first check is the diagnostic correlation. Across the pruned models of all four families, ERF change should predict dense-task loss after controlling for ImageNet accuracy loss. If it does not, the premise fails and the method is unmotivated.

The second is the matched-FLOPs comparison on ImageNet, COCO and ADE20K at 40% and 70% FLOPs reduction, against the baselines above, including the $\lambda=0$ and shuffled-target ablations.

The third is the dense-label Taylor baseline and the fine-tuning budget sweep, which settle whether the ERF signal adds anything beyond labels or extra training.

All results report measured GPU latency alongside FLOPs, since pruning can reduce FLOPs without reducing wall-clock time.