Skip to main content
QUICK REVIEW

[Paper Review] Automated Test Generation to Detect Individual Discrimination in AI Models

Aniya Agarwal, Pranay Lohia|arXiv (Cornell University)|Sep 10, 2018
Adversarial Robustness in Machine LearningComputer Science17 references24 citations
TL;DR

This paper proposes a black-box, symbolic execution-based test generation technique that leverages local explainability (e.g., LIME) to systematically uncover individual discrimination in AI models—where two individuals differing only in protected attributes receive different decisions. By using linear approximations from local explainers as path constraints, the method generates targeted test cases that uncover 3.72× more discriminatory instances than state-of-the-art random testing across benchmarks.

ABSTRACT

Dependability on AI models is of utmost importance to ensure full acceptance of the AI systems. One of the key aspects of the dependable AI system is to ensure that all its decisions are fair and not biased towards any individual. In this paper, we address the problem of detecting whether a model has an individual discrimination. Such a discrimination exists when two individuals who differ only in the values of their protected attributes (such as, gender/race) while the values of their non-protected ones are exactly the same, get different decisions. Measuring individual discrimination requires an exhaustive testing, which is infeasible for a non-trivial system. In this paper, we present an automated technique to generate test inputs, which is geared towards finding individual discrimination. Our technique combines the well-known technique called symbolic execution along with the local explainability for generation of effective test cases. Our experimental results clearly demonstrate that our technique produces 3.72 times more successful test cases than the existing state-of-the-art across all our chosen benchmarks.

Motivation & Objective

  • To address the critical challenge of detecting individual discrimination in AI models, where identical individuals differ only in protected attributes (e.g., gender, race) yet receive different decisions.
  • To overcome the limitations of random test generation in existing approaches like THEMIS, which fail to systematically explore discriminative input combinations.
  • To develop a scalable, black-box method applicable to complex, uninterpretable models such as deep neural networks.
  • To improve test case effectiveness by integrating symbolic execution with local explainability for targeted, path-constrained input generation.
  • To demonstrate that directed search after initial fault detection significantly increases discovery of discriminatory cases compared to undirected search alone.

Proposed method

  • Use a local explainer (e.g., LIME) to generate a linear approximation of the model’s decision for a given input, treating this as a surrogate path in symbolic execution.
  • Treat the linear model’s coefficients as constraints to guide symbolic execution, enabling systematic exploration of input variations that toggle decisions.
  • Apply symbolic execution with constraint solving to generate new test inputs by iteratively negating or modifying constraints derived from the local explanation.
  • Prioritize undirected symbolic search using training data as seeds for initial exploration, followed by directed search once a discriminatory case is found.
  • Optimize the search by selecting only high-confidence, decision-relevant constraints from the local explainer, reducing unnecessary toggling and improving efficiency.
  • Integrate both directed and undirected search strategies: undirected for initial fault detection and directed for deeper exploration of discriminatory input patterns.

Experimental results

Research questions

  • RQ1Can symbolic execution guided by local explainability effectively detect individual discrimination in black-box AI models?
  • RQ2How does the combination of symbolic execution and local explanation outperform random test generation in uncovering discriminatory behavior?
  • RQ3To what extent does directed search after initial fault detection improve the discovery of discriminatory input combinations compared to undirected search?
  • RQ4How effective is the use of training data as a seed for symbolic execution in the initial phase of discrimination detection?
  • RQ5Can the proposed method scale to real-world, non-trivial models such as deep neural networks without requiring white-box access?

Key findings

  • The proposed method generated 3.72 times more successful test cases for detecting individual discrimination than the state-of-the-art (THEMIS) across all benchmarks.
  • Directed search after initial fault detection uncovered significantly more discriminatory instances than undirected search alone, especially in complex models like German-age and Car.
  • Undirected search using only symbolic execution with training data seeds generated only 4–7 test cases in some benchmarks (e.g., German-age, Census), indicating low confidence in predicate toggling without initial fault detection.
  • In the Car benchmark, undirected search alone generated 179 successful test cases out of 228 total, showing that initial seed quality and confidence in constraints heavily influence performance.
  • The integration of local explainers enabled effective black-box testing of uninterpretable models like deep neural networks, avoiding the need for specialized solvers or model translation.
  • The method’s reliance on high-confidence, decision-relevant constraints from local explainers reduced unnecessary constraint toggling and improved test case relevance and efficiency.

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.