TL;DR
This paper introduces Adversarial Discrimination Finder (ADF), a novel, gradient-based method for automatically identifying and generating discriminatory samples in deep learning models, particularly for challenging text data. ADF significantly outperforms existing fairness testing approaches in terms of scalability, effectiveness, and efficiency, leading to substantial improvements in model fairness after retraining.
What Problem Does This Paper Address?
Deep learning models, despite their impressive performance, raise concerns about dependability, especially regarding fairness. Discrimination can be unintentionally embedded in models due to biases in training data. Fairness testing aims to identify these discriminatory samples to retrain models and improve fairness. However, existing fairness testing methods have two major limitations: they perform poorly on deep learning models and are not applicable to complex data formats like text, often being limited to simple tabular data. This paper addresses this gap by proposing ADF, a scalable and effective approach for systematic discriminatory sample generation in deep learning, specifically extending fairness testing to text classification.
Methods
ADF employs a two-phase approach:
- Global Generation: This phase aims to increase the diversity of discriminatory samples. It starts with seed samples from the dataset and uses gradients to guide the search for discriminatory samples by maximizing the difference in model predictions for similar samples.
- Local Generation: This phase takes the identified discriminatory samples as seeds and acquires more by exploring their immediate neighbors. It uses gradients to guide the search for minimally different samples that still maintain the discriminatory property.
A key innovation is the use of gradients, computed efficiently via backpropagation, to guide the search for discriminatory samples. For tabular data, ADF uses a clip function to ensure generated samples remain within valid domains. For text data, it leverages semantically similar words to ensure generated samples are coherent.
Datasets
The paper evaluates ADF on 5 open-source datasets:
- Tabular Datasets:
- Census Income
- German Credit
- Bank Marketing
- Text Datasets:
- Wikipedia Comments
- Jigsaw Comments
These datasets are commonly used in fairness research and cover various domains and protected attributes.
Key Insights and Ideas
- Gradient-guided search is crucial: Unlike random sampling methods, using gradients provides a much more effective and efficient way to pinpoint discriminatory samples, especially near decision boundaries.
- Text data is a significant challenge: Existing fairness testing methods struggle with the inherent structure and embedding of text data, making ADF's extension to this domain a key contribution.
- Two-phase generation is effective: The combination of global generation for diversity and local generation for quantity allows ADF to systematically explore the search space and discover a large number of discriminatory samples.
- Fairness improvement through retraining is substantial: The generated discriminatory samples are not just for identification but are highly effective for retraining models, leading to significant reductions in discrimination.
Key Results
- Effectiveness: ADF generates significantly more discriminatory samples than state-of-the-art methods like AEQUITAS and SG. On average, it explores 9.62 times more search space and generates 24.95 times more discriminatory samples on tabular data, and 2.38 times more search space and 2.68 times more discriminatory samples on text data, within the same time frame.
- Efficiency: ADF is considerably more efficient, taking on average 48.97% and 14.53% of the time required by AEQUITAS and SG respectively for tabular data.
- Fairness Improvement: Retraining models with ADF-generated discriminatory samples reduces discrimination by an average of 57.2% on tabular datasets and 60.2% on text datasets.
- Validity: The generated discriminatory text samples are semantically similar to the original ones, indicating their validity and usefulness.
Limitations and Future Work
- Threats to Validity:
- Limited Datasets: Experiments were conducted on a limited number of datasets, primarily focused on toxic classification for text. Future work could explore adaptation to other text domains.
- Limited Models: Only three deep learning models (fully connected DNNs and RNN variants) were tested. ADF's generic nature suggests applicability to other architectures like CNNs, but this needs further validation.
- White-box Setting: ADF requires full knowledge of the target DL model. Extending it to a black-box setting is a future direction.
- Step-size Parameters: The optimal step-size for perturbation might depend on the dataset and requires further research.
- Complex Context: ADF may not cover all forms of discrimination, especially those involving nuanced semantic meanings or implicit biases in language.
- Future Work:
- Propose additional criteria to measure generated discriminatory samples and cluster them for better understanding of discrimination causes.
- Develop methods to uncover the root cause of discrimination by mapping it to the training data.
- Explore black-box fairness testing approaches.
- Investigate optimal step-size parameters for perturbation.
Summary updated