arXiv(opens in a new tab)Computer ScienceJun 2021

Manuscript Offprint

arXiv:2106.07849

Simon Says: Evaluating and Mitigating Bias in Pruned Neural Networks with Knowledge Distillation

Cody Blakeney, Nathaniel Huish, Yan Yan, Ziliang Zong

Abstract

In recent years the ubiquitous deployment of AI has posed great concerns in regards to algorithmic bias, discrimination, and fairness. Compared to traditional forms of bias or discrimination caused by humans, algorithmic bias generated by AI is more abstract and unintuitive therefore more difficult to explain and mitigate. A clear gap exists in the current literature on evaluating and mitigating bias in pruned neural networks. In this work, we strive to tackle the challenging issues of evaluating, mitigating, and explaining induced bias in pruned neural networks. Our paper makes three contributions. First, we propose two simple yet effective metrics, Combined Error Variance (CEV) and Symmetric Distance Error (SDE), to quantitatively evaluate the induced bias prevention quality of pruned models. Second, we demonstrate that knowledge distillation can mitigate induced bias in pruned neural networks, even with unbalanced datasets. Third, we reveal that model similarity has strong correlations with pruning induced bias, which provides a powerful method to explain why bias occurs in pruned neural networks. Our code is available at https://github.com/codestar12/pruning-distilation-bias

1 Introduction

Deep neural networks (DNNs) are widely deployed across many domains but they are incredibly compute- and memory-intensive. To solve this problem, compression techniques such as pruning and quantization have been widely used to reduce the model size, computation demand, and energy consumption of complex DNNs without compromising top-line metrics (e.g. top-1 and top-5 accuracy). Nevertheless, recent literature has exposed the prevalence of undesirable biases in compressed neural networks[10, 11]. For example, Hooker et al. found that pruned networks often sacrifice the accuracy of a subset of the classes to preserve overall accuracy in classification tasks [10]. This exacerbates existing issues of algorithmic bias already observed in DNNs like CV models working better for people with lighter skin [4]. Unfortunately, these algorithmic biases generated by AI are more abstract and unintuitive, which makes it harder to explain, evaluate, and mitigate. Despite the rising concerns in bias and fairness of AI, research on how to evaluate and mitigate bias is still in its infancy.

In this paper, we strive to tackle the challenging issues of evaluating, mitigating, and explaining bias caused by pruning neural networks. Specifically, we make the following three contributions.

  • Bias evaluation: We propose two simple yet effective metrics, Combined Error Variance (CEV) and Symmetric Distance Error (SDE), to quantitatively evaluate the bias prevention quality of pruned neural networks. Compared to existing metric such as Pruning Identified Exemplars (PIEs), CEV and SDE have clear advantages. First, they do not require training large populations of models. Two models can be compared directly. Second, SDE and CEV can evaluate any compression methods (like PIEs or CIEs) but they are more objective than PIEs or CIEs by providing clear measurement of model quality in bias prevention.
  • Bias mitigation: We demonstrate that knowledge distillation can effectively mitigate bias in pruned neural networks, even with unbalanced datasets. We apply state-of-the-art knowledge distillation algorithms on network pruning and use our proposed CEV and SDE metrics to evaluate their model bias. Our results clearly show that knowledge distillation provides a viable solution for mitigating bias in pruned neural networks. We also investigate the impact of unbalanced dataset on model bias. Although unbalanced datasets can amplify bias issues in pruned networks, our experiments confirm that knowledge distillation remain effective in mitigating bias in pruned models with unbalanced datasets.
  • Bias explanation: We reveal that model similarity has strong correlations with compression induced bias, which provides a powerful method to explain why bias occurs in pruned neural networks. We utilize Singular Vector Canonical Correlation Analysis (SVCCA) [19] to compare similarity of layer representations between the original (non-pruned) and pruned models. Our experimental results unanimously show that pruned models that yield high similarity to original models induce less bias.

References (26)