Manuscript Offprint

arXiv:2608.26899

Counterfactual Bias Testing for Application Tracking System

Sai Yashwant, Shruti Bansal, Anurag Dubey, Samaroha Chatterjee, Satyam Kumar, Shreyash Gupta, Gantala Thulsiram

Sai Yashwant

AI Product & Platform Head

ManpowerGroup Services India Pvt. Ltd.

sai.yashwant@manpowergroup.com

Anurag Dubey

Data Scientist

ManpowerGroup Services India Pvt. Ltd.

anurag.dubey@manpowergroup.com

Satyam Kumar

Data Scientist

ManpowerGroup Services India Pvt. Ltd.

satyam.kumar@manpowergroup.com

Shruti Bansal

Senior Data Scientist

ManpowerGroup Services India Pvt. Ltd.

shruti.bansal@manpowergroup.com

Samaroha Chatterjee

Data Scientist

ManpowerGroup Services India Pvt. Ltd.

samaroha.chatterjee@manpowergroup.com

Shreyash Gupta

Data Scientist

ManpowerGroup Services India Pvt. Ltd.

shreyash.gupta@manpowergroup.com

Gantala Thulsiram

Assistant Professor

Indian Institute of Technology, Hyderabad

thulsiramg@mae.iith.ac.in

August 28, 2026

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 resume pairs and manual submission, which does not scale to the rate at which enterprise matching pipelines are retrained and redeployed. This paper presents a general, reusable methodology that (1) uses a chain of task-specialized large-language-model (LLM) agents to synthesize identity-neutral base resumes and inject controlled demographic treatments across five protected-characteristic axes (sex/gender, age, place of residence, language, disability signal), producing a correspondence-audit-style K×(1+N)K \times (1 + N) matrix of base candidates and bias variants; (2) qualitatively flags inferred protected characteristics and bias per an EU AI Act-aligned prompt; (3) ranks every candidate against a job description using a fine-tuned sentence-embedding model and cosine similarity, representative of the semantic ranking core used by modern candidate–job matching systems; and (4) computes a nine-metric quantitative fairness suite – spanning counterfactual (score delta, mean absolute rank change, flip rate), group-fairness (top-K retention, four-fifths rule or impact ratio), and merit-aware (Recall@K, nDCG@K, equal opportunity, equalized odds) families – each with bootstrap confidence intervals, exact/asymptotic significance tests (Wilcoxon signed-rank, McNemar, Fisher exact, Wilson score), and Benjamini–Hochberg false-discovery-rate correction, culminating in an automatically generated PASS/INVESTIGATE/FAIL audit report with a composite risk score. We illustrate the methodology on an example correspondence-audit corpus spanning 5 job orders, 100 base candidates, and 10 demographic-bias treatments (90 metric×variant evaluations), illustrating that while variant-level score shifts, top-K retention, and merit-aware true-positive-rate/false-positive-rate gaps remain within tolerance for every treatment, a rank-stability metric (mean absolute rank change) and a ranking-quality metric (nDCG@K) each surface borderline findings – including one on the neutral baseline configuration itself – that a score- or retention-only view would have missed. The results argue for multi-metric, multi-family auditing over any single aggregate fairness score, and for treating LLM-agent-generated correspondence audits as a practical, low-cost complement to human-curated audit studies for any candidate–job matching pipeline.

Keywords Algorithmic Hiring Bias, Correspondence Audit, Counterfactual Fairness, Synthetic Data Generation, LLM Agents, Fairness Metrics, EU AI Act

1 Introduction

Automated candidate–job matching, encompassing resume parsing, semantic ranking, and shortlist generation, has moved from an experimental augmentation of recruiter workflow to a load-bearing component of high-volume staffing pipelines, with contextual-transformer encoders [Devlin et al., 2019] and their fine-tuned derivatives [Zhang et al., 2020, Qin et al., 2018] now forming the semantic core of many such systems. Under the European Union’s Artificial Intelligence Act, AI systems used “to evaluate candidates... in the recruitment or selection of natural persons” are explicitly enumerated as high-risk [European Parliament and Council of the European Union, 2024], and under longstanding United States employment law, a selection procedure that produces a substantially different selection rate across protected groups is presumptively suspect under the four-fifths rule codified in the Uniform Guidelines on Employee Selection Procedures [Equal Employment Opportunity Commission and Civil Service Commission and Department of Labor and Department of Justice, 1978]. These are not abstract concerns: field experiments going back to Bertrand and Mullainathan [2004] demonstrated that resumes with distinctively White-sounding names received substantially more callbacks than otherwise-identical resumes with distinctively Black-sounding names, and more recent audits of commercial hiring and screening tools have repeatedly found measurable disparate treatment along gender, race, age, and disability lines [Dastin, 2018, Bogen and Rieke, 2018, Raghavan et al., 2020, Ajunwa, 2020, Sánchez-Monedero et al., 2020, Wilson and Caliskan, 2024]. As matching systems increasingly delegate their semantic core to large language models (LLMs) and LLM-derived embeddings, the risk surface changes shape but does not shrink: LLMs inherit and can amplify societal biases present in their training corpora [Gallegos et al., 2024, Bommasani et al., 2021, Nadeem et al., 2021, Buolamwini and Gebru, 2018], and a matching pipeline built on such components requires the same scrutiny as any other automated hiring tool.

The traditional instrument for measuring hiring discrimination is the correspondence audit: construct pairs (or larger matrices) of resumes that are equivalent in every job-relevant respect but differ in one or more protected-characteristic signals, submit them through the real or simulated selection process, and measure differential treatment [Bertrand and Mullainathan, 2004, Kim, 2017]. Correspondence audits are the gold standard for causal claims about discrimination because the counterfactual comparison is built into the design, but they are also expensive: constructing dozens of matched resume variants per job family, and repeating the exercise every time a matching model is retrained, does not fit the release cadence of a modern MLOps pipeline. At the same time, the machine-learning fairness literature has produced a rich vocabulary of quantitative metrics – demographic/statistical parity, equalized odds and equal opportunity [Hardt et al., 2016], disparate impact and its remover [Feldman et al., 2015], counterfactual fairness [Kusner et al., 2017], and ranking-specific notions of exposure and top-K fairness [Singh and Joachims, 2018, Yang and Stoyanovich, 2017, Zehlike et al., 2017] – together with general-purpose toolkits such as AI Fairness 360 [Bellamy et al., 2018], Fairlearn [Bird et al., 2020], and Aequitas [Saleiro et al., 2018]. These toolkits, however, assume a labeled classification or regression task and a real deployed population; they do not natively support the paired, counterfactual, per-treatment structure that a correspondence audit produces, nor do they generate the audit data itself.

The methodology presented in this paper is designed to close this gap by treating correspondence-audit generation and quantitative fairness evaluation as two halves of the same pipeline. On the generation side, a chain of task-specialized LLM agents (i) elicits a list of protected-characteristic bias descriptors, (ii) synthesizes a set of identity-neutral base candidate resumes together with a matrix of bias-variant resumes that inject exactly one demographic treatment axis at a time while holding qualifications fixed, and (iii) produces an EU AI Act-aligned qualitative bias flag for every resume. On the evaluation side, every accumulated candidate identity is ranked against a job description using a structuring-plus-embedding-plus-cosine-similarity pipeline representative of the semantic ranking core used in modern candidate–job matching systems, and the resulting paired baseline/variant rankings are passed through a nine-metric fairness suite spanning counterfactual, group-fairness, and merit-aware families, each accompanied by a confidence interval, a significance test appropriate to its estimator, and a Benjamini–Hochberg multiple-testing correction [Benjamini and Hochberg, 1995]. The output is a single, self-contained HTML report, styled as an executive audit dashboard, with a composite PASS/INVESTIGATE/FAIL classification per metric-and-variant and an aggregate weighted risk score.

We organize the methodology around three research questions that any correspondence-audit-style bias test of a matching system must answer. RQ1: Does injecting only identity or protected-characteristic text into a candidate profile, holding all qualifications fixed, shift the candidate's relevance score or rank against a job? RQ2: Does such injection shift candidates across an operational shortlisting cutoff (top-K), changing who is actually advanced? RQ3: Where shifts occur, does their direction disproportionately disadvantage specific protected groups, as opposed to merely affecting them? The distinction embedded in RQ3 is maintained throughout this paper: bias is defined relative to the group that is deprioritized or disadvantaged, not the group that is favored (Section 3.4.2). Score-level metrics answer RQ1, rank-and-shortlist-level metrics answer RQ2, and the group-fairness and merit-aware metric families jointly answer RQ3 by testing whether an observed shift's direction disproportionately burdens a specific protected group rather than merely perturbing every candidate symmetrically.

This paper documents that methodology end to end and illustrates it on an example correspondence-audit corpus spanning 5 job orders, 100 base candidates, and 10 demographic-bias treatments (1 neutral baseline plus 9 variants), used to demonstrate the fairness-metric suite and report generator at a sample size where confidence intervals and significance tests are meaningful. Our contributions are fourfold: (1) a concrete, reproducible architecture for LLM-agent-driven correspondence-audit generation that explicitly separates an identity-neutral base-candidate phase from a bias-injection phase, and that deliberately includes both job-matching and non-matching base candidates as controls, so that qualification signal and demographic signal never covary by construction and the audit simultaneously tests false-negative risk (a qualified candidate wrongly demoted) and false-positive risk (an unqualified candidate wrongly promoted) – a design that closes a loophole a demotion-only audit would leave open; (2) a nine-metric, three-family fairness evaluation suite for ranking systems (rather than classifiers), each metric paired with a statistically appropriate significance test, bootstrap confidence interval, and false-discovery-rate correction, together with a transparent PASS/INVESTIGATE/FAIL threshold scheme calibrated against the legal four-fifths rule; (3) a dual-threshold, audience-aware reporting design that presents every metric under both a stringent research threshold and an explicitly labeled, relaxed operational threshold for executive and legal audiences, without misrepresenting the underlying statistics (Section 3.7); and (4) an empirical demonstration, on the example corpus, that different metric families can disagree – a bias variant that looks acceptable under score-delta, top-K-retention, and merit-aware rate-gap metrics can still register a borderline finding on a rank-stability or ranking-quality metric that those other families cannot see – which argues against reducing a fairness audit to any single number. The remainder of the paper is organized as follows. Section 2 surveys correspondence-audit methodology, quantitative fairness metrics, fairness-in-ranking literature, and LLM-based synthetic data generation. Section 3 describes the proposed methodology in full, including the multi-agent generation pipeline, the ranking pipeline, the fairness metric suite with exact formulas, the statistical validation layer, and the report generator. Section 4 illustrates the methodology on the example corpus. Section 5 concludes and outlines future work.

References (37)

  • BERT: Pre-training of deep bidirectional transformers for language understanding
  • IEEE Access, 8:92813–92822, 2020
  • An ability-aware neural network approach
  • Regulation (eu) 2024/1689 of the european parliament and of the council laying down harmonised rules on artificial intelligence (artificial intelligence act)
  • Uniform guidelines on employee selection procedures
  • Are Emily and Greg more employable than Lakisha and Jamal? a field experiment on labor market discrimination
  • Help wanted: An examination of hiring algorithms, equity, and bias
  • Mitigating bias in algorithmic hiring: Evaluating claims and practices
  • What does it mean to ‘solve’ the problem of discrimination in hiring? social, technical and legal perspectives from the UK on automated hiring systems
  • Gender, race, and intersectional bias in resume screening via language model retrieval
  • Bias and fairness in large language models: A survey
  • On the Opportunities and Risks of Foundation Models
  • StereoSet: Measuring stereotypical bias in pretrained language models
  • Gender shades: Intersectional accuracy disparities in commercial gender classification
  • Equality of opportunity in supervised learning
  • Certifying and removing disparate impact
  • Counterfactual fairness
  • Fairness of exposure in rankings
  • Measuring fairness in ranked outputs
  • FA*IR: A fair top-k ranking algorithm
  • Fairlearn: A toolkit for assessing and improving fairness in AI. Technical Report MSR-TR-2020-32, Microsoft, 2020
  • Aequitas: A bias and fairness audit toolkit (opens arXiv in a new tab)
  • Controlling the false discovery rate: A practical and powerful approach to multiple testing
  • Big data’s disparate impact
  • Systemic discrimination among large U.S. employers
  • Actionable auditing: Investigating the impact of publicly naming biased performance results of commercial AI products
  • Do large language models discriminate in hiring decisions on the basis of race, ethnicity, and gender? In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Short Papers), pages 386–397, 2024
  • Fairness and bias in algorithmic hiring: A multidisciplinary survey
  • Fairness and machine learning: Limitations and opportunities
  • Model cards for model reporting
  • Datasheets for datasets
  • Fairness in ranking, part I: Score-based ranking
  • Cumulated gain-based evaluation of IR techniques
  • Introduction to information retrieval
  • BBQ: A hand-built bias benchmark for question answering
  • Sentence-BERT: Sentence embeddings using siamese BERT-networks
  • Efficient natural language response suggestion for smart reply