Manuscript Offprint

arXiv:2609.07803

Understanding the Impact of Model Pruning on Long-Tail Forgetting and Explanation Reliability in Medical Imaging

Nazish Khalid, Tausifa Jan Saleem, Amal Saqib, Donald C. Wunsch, Mohammad Yaqub

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nazish Khalid, Tausifa Jan Saleem, Amal Saqib, Donald C. Wunsch II and Mohammad Yaqub

Abstract—Model pruning is widely used to compress deep neural networks, reducing memory and computational requirements with minimal impact on aggregate performance. However, its effect on model behavior remains poorly understood, particularly for long-tailed medical datasets where rare but clinically important conditions are underrepresented. Furthermore, it remains unclear whether pruned models preserve reliable explanations of their predictions. To address this gap, we present a systematic study of long-tail forgetting and explanation reliability under model pruning. Across two long-tailed medical imaging datasets, two CNN architectures, four pruning methods, and sparsity levels up to 95%, we evaluate predictive performance, explanation stability, and explanation faithfulness. Our results show that predictive performance exhibits a strong frequency-dependent trend, with lower-frequency classes generally experiencing earlier and larger degradation than higher-frequency classes. In contrast, explanation stability and faithfulness are influenced primarily by the pruning strategy, with gradient-informed methods preserving explanation reliability more effectively under aggressive compression. Qualitative and mechanistic analyses further indicate that explanation degradation is primarily associated with the collapse of class-discriminative gradients rather than the disappearance of feature activations. These findings suggest that model compression should be evaluated beyond aggregate performance. Incorporating class-aware and explanation-aware evaluation reveals failure modes that would otherwise remain hidden, while moderate sparsity levels provide a practical balance between compression, predictive performance, and explanation reliability.

Index Terms—Medical imaging, deep learning, model compression, model pruning, explainability

I. INTRODUCTION

MODEL pruning [1]–[4] has emerged as a principal strategy for reducing the memory footprint and computational cost of deep neural networks. By removing redundant weights, pruning can substantially reduce inference cost with minimal impact on aggregate performance. While such

compression is attractive for deploying deep learning models in resource-constrained environments, aggregate performance metrics can mask important changes in model behavior. This issue is especially relevant in medical AI, where failures on clinically important cases may have significant consequences.

Medical imaging datasets are often long-tailed, with common conditions such as pleural effusion and infiltration represented by thousands of training examples, whereas rare but clinically significant conditions such as hernia, pneumomediastinum, and melanoma occur much less frequently [5]. Under such a class imbalance, pruning may disproportionately degrade performance on rare classes. Holste et al. [6] referred to this phenomenon as long-tail forgetting, showing that rare classes are particularly vulnerable to pruning. However, their analysis considered only a single pruning strategy and focused solely on predictive performance.

A second concern is explanation reliability. Explainability methods [7], [8] are increasingly embedded in clinical workflows to audit model decisions, identify failure modes, and support clinician trust in automated outputs. If pruning destabilizes these explanations, causing a compressed model to attend to different image regions than its dense counterpart, then a model may retain acceptable aggregate accuracy while producing clinically misleading localizations. This constitutes a silent safety hazard: a compressed model that passes standard performance benchmarks yet cannot be trusted to explain its predictions. This concern is particularly important for rare diseases, where model behavior is already difficult to assess due to limited data. The regulatory guidance for AI-based medical systems [9] further emphasizes the importance of explainable decision-making.

Hence, despite the growing interest in model pruning in medical AI [10], most studies evaluate pruning using aggregate metrics such as AUC or macro-F1, without class-frequency stratification or assessment of explanation reliability. Consequently, four key questions remain unanswered:

Q1. Is long-tail forgetting inherent to pruning or specific to particular pruning methods?

Q2. How do different pruning strategies affect rare and common classes under comparable sparsity levels?

Q3. How does pruning impact explanation stability and faithfulness?

Q4. How are predictive performance and explanation reliability related under pruning?

Nazish Khalid and Tausifa Jan Saleem contributed equally to this work. Nazish Khalid and Donald C. Wunsch are with the Department of Electrical and Computer Engineering, Missouri University of Science and Technology, Rolla, MO 65409 USA (e-mail: nazishkhalid@mst.edu, dwunsch@mst.edu).

Tausifa Jan Saleem, Amal Saqib and Mohammad Yaqub are with Computing and Mathematical Sciences Division, Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, United Arab Emirates (email: tausifa.saleem@mbzual.ac.ae, amal.saqib@mbzual.ac.ae, mohammad.yaqub@mbzual.ac.ae).

To answer these questions, we conduct a systematic study across two long-tailed medical imaging datasets, NIH-CXR-LT [6] and ISIC-2019 [11], two architectures (ResNet-50 and DenseNet-121), four pruning strategies (L1-based magnitude pruning [12], SNIP [13], GraSP [14], and random pruning), and sparsity levels ranging from 0% to 95%.

The main contributions of this work are:

  1. Systematic investigation of long-tail forgetting across pruning strategies (Q1). We examine whether long-tail forgetting generalizes across different pruning criteria rather than being specific to a particular pruning method.

  2. Class-frequency-aware comparison of pruning strategies (Q2). We characterize how different pruning strategies affect classes across the frequency spectrum under comparable sparsity levels.

  3. Evaluation of explanation reliability under pruning (Q3). We assess the impact of pruning on explanation reliability along two complementary dimensions: attribution stability and faithfulness.

  4. Joint analysis of predictive performance and explanation reliability (Q4). We investigate how predictive performance and explanation reliability evolve and relate to each other under pruning.

To the best of our knowledge, this is the first study to jointly investigate long-tail forgetting and explanation reliability under model pruning in medical imaging.

References (29)