Counterfactual Bias Testing for Application Tracking System
Organizations: ManpowerGroup Services India Pvt. Ltd. · Indian Institute of Technology, Hyderabad
Abstract
Automated candidate-job matching systems are increasingly classified as high-risk AI under emerging regulation, yet auditing them for demographic bias is expensive: classical correspondence-audit studies require hand-crafted resumes and manual submission, which does not scale to fast pipeline retraining cycles. This paper presents a general, reusable methodology that (1) uses task-specialized LLM agents to synthesize identity-neutral base resumes and inject controlled demographic treatments across five protected-characteristic axes (sex/gender, age, residence, language, disability), producing a K x (1+N) correspondence-audit matrix; (2) qualitatively flags inferred protected characteristics per an EU AI Act-aligned prompt; (3) ranks candidates against a job description via a fine-tuned sentence-embedding model and cosine similarity; and (4) computes a nine-metric fairness suite spanning counterfactual (score delta, mean absolute rank change, flip rate), group-fairness (top-K retention, four-fifths/impact ratio), and merit-aware (Recall@K, nDCG@K, equal opportunity, equalized odds) families, each with bootstrap confidence intervals, significance tests, and Benjamini-Hochberg correction, culminating in an automated PASS/INVESTIGATE/FAIL report with a composite risk score. On an example corpus of 5 job orders, 100 base candidates, and 10 demographic treatments (90 metric x variant evaluations): score shifts, top-K retention, and merit-aware rate gaps stay within tolerance for every treatment, but a rank-stability metric (MARC) and nDCG@K each surface borderline findings - including one on the neutral baseline itself - that a score- or retention-only view would miss. The results argue for multi-metric, multi-family auditing over any single aggregate score, and for LLM-agent-generated audits as a practical, low-cost complement to human-curated audits for any candidate-job matching pipeline.
Figures & tables
| Axis | Allowed values | Signal used for classification |
|---|---|---|
| sex_gender | Male-FR, Male-NA, Female-FR, Female-NA | Gender cue plus North-African/Arabic/immigrant-origin naming cue ( -NA ) vs. default ( -FR ) |
| age_signal | Young, Older | Explicit age, years of experience, or “older” framing |
| place_of_residence | Close, Far, Very far | Commute distance / peripheral-location framing |
| language_signal | FR only, FR+EN, FR+AR | Mentioned language fluencies |
| disability_signal | Yes, No | Disability / RQTH / health-limitation mention |
| Variant | sex_gender | age_signal | place_of_residence | language_signal | disability_signal |
|---|---|---|---|---|---|
| V01 | Female-FR | Older | Far | FR+EN | No |
| V02 | Female-FR | Young | Very far | FR+AR | Yes |
| V03 | Male-FR | Older | Close | FR+AR | Yes |
| V04 | Female-NA | Young | Far | FR+AR | Yes |
| V05 | Male-NA | Older | Very far | FR+EN | No |
| V06 | Female-FR | Older | Close | FR only | Yes |
| Metric | Direction | PASS | INVESTIGATE | Statistical Basis |
|---|---|---|---|---|
| Score Delta ( ) | lower-is-better | Pre-registered tolerance on the cosine-similarity scale; Wilcoxon test + bootstrap CI (Sec. 3.4.1 ) | ||
| MARC / | lower-is-better | Pre-registered rank-churn tolerance, scale-invariant to ; paired bootstrap CI | ||
| Flip Rate | lower-is-better | Pre-registered boundary-crossing tolerance; Wilson CI + McNemar’s test ( Wilson, 1927 ; McNemar, 1947 ) | ||
| Retention Rate | higher-is-better | Legal four-fifths rule ( Equal Employment Opportunity Commission and Civil Service Commission and Department of Labor and Department of Justice, 1978 ) applied to shortlist retention | ||
| Impact Ratio (four-fifths rule) | higher-is-better | Direct transposition of the four-fifths rule ( Equal Employment Opportunity Commission and Civil Service Commission and Department of Labor and Department of Justice, 1978 ; Feldman et al., 2015 ) ; Fisher’s exact test ( Fisher, 1922 ) | ||
| Recall@ | higher-is-better | Four-fifths bound extended by analogy to ranking-quality preservation |
| Metric(s) | Test | Motivation |
|---|---|---|
| Score Delta, MARC | Wilcoxon signed-rank ( Wilcoxon, 1945 ) | Paired, non-normal continuous/ordinal statistic (scores, ranks) |
| Flip Rate | McNemar ( McNemar, 1947 ) | Paired binary in/out-of-top- indicator, table |
| Impact Ratio | Fisher exact ( Fisher, 1922 ) | Small-cell-count retained/not-retained comparison |
| Retention Rate, Flip Rate CIs | Wilson score interval ( Wilson, 1927 ) | Proportion CI robust at small / extreme proportions |
| All effect sizes | Nonparametric bootstrap ( ) | Distribution-free CI without a normality assumption |
| All -values | Benjamini–Hochberg FDR ( Benjamini and Hochberg, 1995 ) | Controls false-discovery rate across up to simultaneous tests |
| Corpus | Jobs | Base identities | Variants | Description |
|---|---|---|---|---|
| Example corpus | 5 | 100 | BASE, V01–V09 | Illustrative correspondence-audit matrix |
Algorithmic Fairness
Algorithmic fairness studies how automated decisions distribute errors, opportunities, and harms across groups, and how to measure and reduce disparities.
See all 413 papers