NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

C-SWAP: Explainability-Aware Structured Pruning for Efficient Neural Networks Compression

Baptiste Bauvin, Loïc Baret, Ola AhmadarXiv 2025 · DOI

Introduction

Deep Neural Networks (DNNs) have revolutionized computer vision and natural language processing but at the cost of extreme over-parameterization. This complexity hinders deployment on resource-constrained "edge" devices like smartphones or embedded sensors. Pruning—the systematic removal of redundant weights or neurons—is the primary strategy for model compression.

Traditional pruning methods generally fall into two categories: computationally expensive iterative cycles of pruning and retraining, or "one-shot" methods that rely on simplistic heuristics like weight magnitude. These heuristics often fail to capture the true functional importance of neurons, leading to significant performance degradation. C-SWAP (Explainability-Aware Structured Pruning) addresses this by treating pruning as a causal inference problem, enabling efficient "one-shot" compression without the need for expensive fine-tuning.

Methodology: Causal Progressive Pruning

C-SWAP introduces a novel framework that leverages Explainable AI (XAI) to identify and remove redundant components based on their causal impact on model predictions.

Overview of C-SWAP vs. Conventional Structured Pruning. C-SWAP utilizes a causal explainer for progressive, one-shot pruning.

The process involves three core stages:

  1. Causal Categorization: Instead of evaluating weights in isolation, C-SWAP perturbs a neuron's weights and measures the "Global Causal Effect" on the model's output. Neurons are classified into three categories: Critical (essential for accuracy), Neutral (no significant impact), and Detrimental (negatively affecting performance).
  2. Progressive One-Shot Pruning: Unlike global ranking methods that can suffer from "ranking collapse" after initial cuts, C-SWAP operates bottom-up. It analyzes and prunes a layer, then moves to the next, ensuring that the pruning of subsequent layers accounts for the structural changes already made.
  3. Zero-Shot Deployment: By surgically identifying and preserving causally vital neurons, the resulting pruned models often maintain high accuracy immediately, eliminating the need for the retraining cycles typical of conventional methods.

Experimental Evaluation

The framework was evaluated across diverse architectures and benchmarks, including ResNet-18 on CIFAR10, ResNet-50 and MobileNetV2 on ImageNet, and DDRNet on Cityscapes for semantic segmentation. To quantify the efficiency of the pruning-accuracy trade-off, the authors introduced the SAUCE (Sparsity AUC Estimator) metric. A higher SAUCE score indicates a model's ability to maintain accuracy at higher levels of sparsity.

Validation accuracy vs. pruning percentage across various architectures. C-SWAP consistently outperforms baselines, maintaining higher accuracy at extreme sparsity levels.

Key Results

  • Superior Performance: On ResNet-50 (ImageNet), C-SWAP achieved a SAUCE score of 80.3, significantly outperforming standard One-shot Magnitude Pruning (OMP), which scored 24.0.
  • Massive Compression: For ResNet-18 on CIFAR10, the method successfully removed 50% of parameters with virtually no loss in validation accuracy.
  • Architecture Agnostic: C-SWAP demonstrated robust performance on both traditional Convolutional Neural Networks (CNNs) and modern Vision Transformers (ViTs), highlighting its versatility.
  • Segmentation Success: In semantic segmentation tasks using DDRNet on Cityscapes, C-SWAP maintained performance up to a 40% pruning ratio, while competing baselines degraded almost immediately.

Discussion and Future Directions

The success of C-SWAP underscores that a neuron's importance is better reflected by its causal contribution than its weight magnitude. The discovery of a "Neutral Goldmine"—a high percentage of neurons with negligible impact in large models—allows for aggressive compression.

However, the method currently faces a computational bottleneck when analyzing extremely wide layers (e.g., 2048+ neurons), where per-unit causal analysis can be time-consuming. Future work will explore "group-wise" or "block-wise" analysis to improve scalability. Additionally, the authors plan to extend C-SWAP's scoring functions to more complex tasks such as object detection.

Summary updated

BibTeX
@misc{bauvin2025c,
  author = {Baptiste Bauvin and Loïc Baret and Ola Ahmad},
  title = {{C-SWAP: Explainability-Aware Structured Pruning for Efficient Neural Networks Compression}},
  year = {2025},
  eprint = {2510.18636},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.18636},
}
Figure