Skip to main content
QUICK REVIEW

[Paper Review] Information-Theoretic Testing and Debugging of Fairness Defects in Deep Neural Networks

Verya Monjezi, Ashutosh Trivedi|arXiv (Cornell University)|Apr 9, 2023
Adversarial Robustness in Machine LearningComputer Science3 citations
TL;DR

DICE is an information-theoretic framework that quantifies fairness defects in deep neural networks by measuring protected information (in bits) used in decisions. It enables severity-aware search and causal debugging to localize biased layers and neurons, improving defect triage and search efficiency over state-of-the-art methods.

ABSTRACT

The deep feedforward neural networks (DNNs) are increasingly deployed in socioeconomic critical decision support software systems. DNNs are exceptionally good at finding minimal, sufficient statistical patterns within their training data. Consequently, DNNs may learn to encode decisions -- amplifying existing biases or introducing new ones -- that may disadvantage protected individuals/groups and may stand to violate legal protections. While the existing search based software testing approaches have been effective in discovering fairness defects, they do not supplement these defects with debugging aids -- such as severity and causal explanations -- crucial to help developers triage and decide on the next course of action. Can we measure the severity of fairness defects in DNNs? Are these defects symptomatic of improper training or they merely reflect biases present in the training data? To answer such questions, we present DICE: an information-theoretic testing and debugging framework to discover and localize fairness defects in DNNs. The key goal of DICE is to assist software developers in triaging fairness defects by ordering them by their severity. Towards this goal, we quantify fairness in terms of protected information (in bits) used in decision making. A quantitative view of fairness defects not only helps in ordering these defects, our empirical evaluation shows that it improves the search efficiency due to resulting smoothness of the search space. Guided by the quantitative fairness, we present a causal debugging framework to localize inadequately trained layers and neurons responsible for fairness defects. Our experiments over ten DNNs, developed for socially critical tasks, show that DICE efficiently characterizes the amounts of discrimination, effectively generates discriminatory instances, and localizes layers/neurons with significant biases.

Motivation & Objective

  • Address the lack of severity assessment and causal explanations in existing fairness testing tools for deep neural networks.
  • Quantify fairness defects by measuring the amount of protected information (in bits) used in model decisions.
  • Improve search efficiency for discriminatory inputs by leveraging smooth, quantitative feedback from information-theoretic metrics.
  • Localize the root causes of fairness defects to specific layers and neurons using causal analysis grounded in do-calculus.
  • Support developers in distinguishing between biases inherited from training data versus those introduced by improper training.

Proposed method

  • Define Quantitative Individual Discrimination (QID) as the Shannon or min-entropy of protected attributes in model outputs, quantifying the severity of fairness violations.
  • Use QID as a continuous, differentiable feedback signal in search-based testing to guide optimization toward high-severity discriminatory inputs.
  • Implement a two-phase search: global phase for diverse discriminatory instances using QID-guided optimization, and local phase for neighborhood refinement.
  • Apply causal inference via do-calculus to simulate interventions on hidden layers and neurons, identifying which components contribute most to fairness defects.
  • Integrate layer and neuron localization with counterfactual parameter analysis to suggest targeted mitigation strategies.
  • Extend the approach to support multiple protected attributes simultaneously and handle regression tasks in socio-critical domains.

Experimental results

Research questions

  • RQ1RQ1: Can Quantitative Individual Discrimination (QID) effectively order fairness defects by severity, enabling better triage for developers?
  • RQ2RQ2: Does QID-based search improve the discovery of diverse and high-severity discriminatory instances compared to binary feedback methods?
  • RQ3RQ3: Can causal debugging localize fairness defects to specific layers and neurons, distinguishing data-inherent biases from training-induced ones?
  • RQ4RQ4: Does the quantitative feedback from QID lead to smoother search landscapes and improved search efficiency?
  • RQ5RQ5: Can the framework identify and suggest mitigation strategies for biased neurons while preserving model accuracy?

Key findings

  • DICE successfully quantifies fairness defects using protected information in bits, enabling severity-based prioritization of discriminatory inputs.
  • The QID-based search achieved higher diversity and severity of discriminatory instances compared to state-of-the-art methods like ADF and EIDIG.
  • The search space guided by QID exhibited greater smoothness, leading to improved convergence and efficiency in identifying fairness defects.
  • Causal localization identified specific layers and neurons responsible for bias, with internal layer defects indicating training-induced rather than data-inherent biases.
  • The framework localized bias to specific neurons and provided counterfactual parameter adjustments that reduced discrimination while maintaining model accuracy.
  • Experiments on ten DNNs for socially critical tasks confirmed DICE’s effectiveness in detecting, quantifying, and debugging fairness defects across diverse models and protected attributes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.