[Paper Review] Fairness Testing of Deep Image Classification with Adequacy Metrics
This paper proposes DeepFAIT, a systematic fairness testing framework for deep image classification that identifies fairness-related neurons via significance testing, evaluates fairness adequacy using five multi-granularity metrics, and selects optimal test cases for efficient fairness improvement. Evaluated on VGGFace and FairFace, DeepFAIT outperforms prior methods in detecting fairness-sensitive neurons and enhancing model fairness with minimal cost.
As deep image classification applications, e.g., face recognition, become increasingly prevalent in our daily lives, their fairness issues raise more and more concern. It is thus crucial to comprehensively test the fairness of these applications before deployment. Existing fairness testing methods suffer from the following limitations: 1) applicability, i.e., they are only applicable for structured data or text without handling the high-dimensional and abstract domain sampling in the semantic level for image classification applications; 2) functionality, i.e., they generate unfair samples without providing testing criterion to characterize the model's fairness adequacy. To fill the gap, we propose DeepFAIT, a systematic fairness testing framework specifically designed for deep image classification applications. DeepFAIT consists of several important components enabling effective fairness testing of deep image classification applications: 1) a neuron selection strategy to identify the fairness-related neurons; 2) a set of multi-granularity adequacy metrics to evaluate the model's fairness; 3) a test selection algorithm for fixing the fairness issues efficiently. We have conducted experiments on widely adopted large-scale face recognition applications, i.e., VGGFace and FairFace. The experimental results confirm that our approach can effectively identify the fairness-related neurons, characterize the model's fairness, and select the most valuable test cases to mitigate the model's fairness issues.
Motivation & Objective
- Address the lack of systematic fairness testing for deep image classification models, especially in high-dimensional, semantic-level image domains.
- Overcome the limitations of existing fairness testing methods that focus only on structured or text data and lack criteria to measure testing adequacy.
- Develop a framework that enables effective identification of fairness-related neurons in deep neural networks for image applications.
- Introduce multi-granularity adequacy metrics to quantitatively evaluate the fairness testing process beyond mere sample generation.
- Design an efficient test selection algorithm to prioritize the most valuable test cases for repairing fairness issues with minimal resource cost.
Proposed method
- Employ Generative Adversarial Networks (GANs) to perform domain transfer between sensitive attributes (e.g., race, gender) while preserving identity and illumination features.
- Apply significance testing on neuron activation differences across transformed image pairs to identify fairness-related neurons in the network.
- Design five multi-granularity adequacy metrics—two at the layer level and three at the neuron level—based on the identified fairness-related neurons to assess testing effectiveness.
- Implement three test case generation strategies: Random Generation (RG), Gradient-based Generation (GG), and Gaussian-noise Injection (GI), to produce diverse unfair samples.
- Develop a test selection algorithm that ranks test cases based on their contribution to fairness improvement, enabling efficient model repair with minimal retraining cost.
Experimental results
Research questions
- RQ1How can fairness-related neurons in deep image classification models be effectively identified in high-dimensional, semantic image spaces?
- RQ2What multi-granularity adequacy metrics can be used to quantitatively evaluate the completeness and effectiveness of fairness testing in deep learning models?
- RQ3How can test case generation be enhanced to produce diverse and representative unfair samples for fairness testing in image classification?
- RQ4To what extent can a test selection strategy reduce the cost of fairness repair while maintaining or improving model fairness?
Key findings
- DeepFAIT successfully identifies fairness-related neurons in deep image classification models using significance testing on neuron activation differences across GAN-generated image pairs.
- The proposed five adequacy metrics (layer- and neuron-level) effectively characterize the fairness testing adequacy, providing a quantitative basis for evaluating fairness testing completeness.
- Compared to DeepImportance, DeepFAIT demonstrates superior capability in detecting fairness-sensitive neurons in VGGFace and FairFace models.
- The test selection algorithm significantly reduces the number of required test cases for fairness repair while maintaining or improving fairness outcomes.
- Empirical evaluation on VGGFace and FairFace datasets confirms that DeepFAIT effectively detects unfair samples and enables efficient mitigation of model bias.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.