Robustly improving LLM fairness in real-world scenarios through interpretabilityRobustly Improving LLM Fairness in Realistic Settings via Interpretability
The authors find that adding real company and screening requirements to recruitment prompts induces demographic bias in models and that CoT cannot detect it; applying affine concept editing at the activation layer can eliminate the bias.
- Addressing demographic bias in large language models in high-stakes scenarios such as recruitment. Existing debiasing prompts perform well in simple tests but easily fail under complex realistic prompts containing real company backgrounds, corporate culture, and strict screening conditions, and chain-of-thought explanations involve post-hoc rationalization and cannot detect bias.
- Proposes an interpretability-based internal bias mitigation method. Using simple synthetic data, it computes the activation mean difference for sensitive attributes (race, gender), performs whitening normalization, and at inference time dynamically translates the sensitive attribute projection values of all tokens across all layers to a neutral bias point via affine concept editing (ACE).
- Realistic backgrounds cause frontier and open-source models to commonly exhibit bias favoring Black and female candidates. Internal intervention successfully reduced racial bias in open-source models to below 2.5%, with only a 0.10% impact on MMLU performance for Mistral Small 24B, and eliminated implicit bias triggered by university background.
- Limited to Black/White race and male/female binary gender dimensions; does not include complete recruitment stages such as detailed job descriptions and social media screening; internal intervention validated on only 4 open-source models; resume evaluation covers only 111 valid samples in the IT domain; exploration of white-box feature prediction of bias did not yield consistent conclusions.
- Evaluated models
- GPT-4oClaude 3.5 SonnetClaude 4 SonnetGemini 2.5 FlashMistral Small 24BGemma-2 27BGemma-3 12BGemma-3 27B
- Benchmarks
- Tamkin et al. (2023) 116 scenario templatesVeldanda et al. (2023) IT Resumes (111 resumes)Realistic Eval: MetaRealistic Eval: General Motors + SelectivityRealistic Eval: PalantirMMLU
- Metrics
- Race BiasGender BiasAcceptance RateMMLU Accuracy
An arXiv paper proposes using interpretability methods to intervene on model internal activations, mitigating racial and gender bias caused by the failure of prompt-based anti-bias measures in real-world recruitment scenarios. The authors tested on GPT-4o, Claude 4 Sonnet, Gemini 2.5 Flash, and Gemma-2 27B, Gemma-3, and Mistral-24B, finding that after adding real-world constraints such as company names, company culture descriptions, and hiring only the top 10%, models that were originally nearly unbiased showed interview rate differences of up to 12%, consistently favoring Black and female candidates. The models could also infer demographic traits from cues such as university affiliations, with no racial or gender factors appearing in their chain-of-thought reasoning. The method extracts race- and gender-related directions using synthetic data and applies affine concept editing at inference time, typically reducing bias to below 1% and below 2.5% in all cases. On MMLU, Gemma-2 27B and Mistral-24B dropped less than 0.5%, while Gemma-3 dropped 1.1% and 3.7%.
Why it was selectedThe paper shows that after adding real-world recruitment details such as company culture, prompt-based anti-bias measures fail, while internal interventions based on activation directions reduce bias in the tested models to below 2.5%.
Paper analysis
What problem does this paper attempt to solve?
The authors find that existing debiasing prompts fail under complex realistic recruitment scenarios and induce bias that CoT cannot detect, and propose internal affine concept editing to eliminate representational bias.
Large language models exhibit demographic bias in realistic complex recruitment scenarios; existing anti-bias prompts fail and chain of thought cannot effectively detect bias, urgently requiring more generalizable internal representation interventions.
- Application scenario and importance: LLMs are being integrated at scale into recruitment and HR platforms (such as the recruitment startups Mercor and Paradox, each valued at over one billion USD, and LinkedIn and Indeed, which process hundreds of millions of candidate profiles), automatically performing resume screening and candidate interviews, directly affecting candidates' careers and livelihoods (Section 1).
- Fragility of existing prompt methods: Previous research mostly tested in simplified controlled pairwise resume experiments and found that simple anti-bias prompts can eliminate bias; however, the authors note that in realistic complex scenarios with real company names, cultural descriptions, and high screening thresholds, prompt methods easily fail, producing up to 12% admission rate differences (Section 1, Section 4.1).
- Failure of chain-of-thought monitoring: The authors' tests found that monitoring chain-of-thought (CoT) reasoning cannot detect bias; when models make biased decisions, they produce seemingly neutral post-hoc rationalizations that do not mention demographic characteristics at all (Section 1, Section 4.1).
- Core hypothesis and approach: The authors argue that LLMs encode sensitive attributes and bias as linear directions in their internal activation space, and modifying these internal representations directly at the activation level is more robust than external prompt engineering; the paper proposes applying affine concept editing (ACE) at inference time to neutralize sensitive attribute directions and eliminate bias (Section 1, Section 3.4).
What related research exists?
Existing research focuses on prompt debiasing and linear representation erasure in simplified settings; this paper explores prompt fragility and internal concept editing in realistic complex scenarios.
Language model bias evaluation and recruitment auditing
- Buolamwini & Gebru (2018), Metaxa et al. (2021), Bolukbasi et al. (2016), Caliskan et al. (2017) documented social bias in face recognition, image search, and word embeddings; Nangia et al. (2020), Vig et al. (2020), Abid et al. (2021), Ahn & Oh (2021), Joshi et al. (2024), Bai et al. (2025), Li et al. (2025) found implicit gender, religious, and ethnic bias in large models in word associations and simulated decisions.
- Bertrand & Mullainathan (2003) established the audit study method of measuring discrimination using counterfactual resumes; Tamkin et al. (2023), Veldanda et al. (2023), Iso et al. (2025) introduced this method to large model evaluation, finding that simple debiasing prompts can effectively eliminate racial and gender bias under simplified controlled settings.
- An et al. (2025) found 1–2% bias in a large-scale study including job descriptions and geographic location; Wang et al. (2024) built the JobFair benchmark and found gender bias against male candidates; Kamruzzaman & Kim (2025) studied the impact of disability disclosure on screening; Jung et al. (2025) found that model fairness degrades under adversarial attacks. The authors note that prior work added only single background elements and did not explore the impact of multiple interacting realistic details on bias stability.
Linear representation intervention and concept erasure
- Ravfogel et al. (2020, 2024) proposed removing protected attributes from model representations through methods such as iterative null-space projection; Belrose et al. (2025) proposed LEACE for closed-form linear concept erasure. The authors note that these methods mainly target word embeddings and encoder models, rely on densely annotated single summary vectors (such as [CLS] tokens), and are difficult to apply directly to modern autoregressive decoder models.
- Turner et al. (2024), Panickssery et al. (2024), Marks & Tegmark (2024), Li et al. (2024) found that high-level concepts correspond to linear directions in activation space and proposed additive steering; Arditi et al. (2024) used ablation/erasure projections to remove refusal behavior; Marshall et al. (2025) proposed affine concept editing (ACE), projecting activations to a target midpoint to reduce damage to overall model capability.
- Nguyen & Tan (2025) used distributed alignment search (DAS) to erase racial bias subspaces in Gemma-2B and Llama-3.2-3B, achieving roughly 50% bias reduction, but the authors note its poor generalization across prompt templates; Zou et al. (2025) identified bias representations and applied negative steering.
Chain-of-thought monitoring and implicit inference
- Baker et al. (2025) proposed monitoring chain-of-thought explanations to detect model misbehavior; Chua & Evans (2025) proposed that reinforcement learning reasoning models may have more faithful chain-of-thought; Lanham et al. (2023) measured chain-of-thought reasoning unfaithfulness (CoT unfaithfulness).
- Chen et al. (2024), Staab et al. (2024) found that large models can infer demographic attributes from non-explicit cues such as writing style or language patterns.
Baseline methods and benchmark datasets
- Baselines compared in the paper include no mitigation as well as 4 debiasing prompts of varying detail (legal reminder, Tamkin et al. warning, checking hidden assumptions, detailed equality framework).
- Evaluation benchmarks include 116 templates from Tamkin et al. (2023) (Simple Context), the real IT resume set from Veldanda et al. (2023) (111 valid resumes), and the Realistic Context enhanced scenario adding Meta, General Motors, and Palantir corporate culture and high screening thresholds; general capability evaluation uses MMLU.
Differences from existing work
- The authors state that no prior study has shown that introducing realistic backgrounds such as corporate culture information or screening thresholds can cause models that appear fair in simple evaluations to re-exhibit bias of up to 12%; this paper examines the fragility of prompt debiasing and validates that internal concept editing extracted from simple synthetic data generalizes to real resumes.
How does the paper address this problem?
The paper constructs a realistic evaluation incorporating company culture and screening thresholds, and extracts sensitive attribute directions from the model's activation layers to implement whitening affine concept editing.
The overall approach is to build evaluation scenarios close to real recruitment to expose prompt fragility, and to propose applying Affine Concept Editing (ACE) in the model's internal activation space to neutralize sensitive attribute directions at inference time.
Building realistic evaluation scenarios
- Basic setup and prompt variants: The system prompt requires the LLM to act as a candidate screening assistant, providing either a direct Yes/No or first outputting 1–2 sentences of chain of thought before giving a Yes/No decision, in two formats.
- 4 anti-bias prompts: Prompt 1 (brief legal reminder), Prompt 2 (comprehensive warning emphasizing legal consequences from Tamkin et al. (2023)), Prompt 3 (requiring checking hidden assumptions to avoid excluding protected groups), Prompt 4 (a hiring fairness framework with three detailed paragraphs elaborating equal opportunity and neutrality principles).
- Realistic context enhancement: Prompts include company names, locations, and corporate culture descriptions obtained from public recruitment homepages (Meta, General Motors, Palantir), plus high screening threshold requirements (e.g., requiring candidates to be in the industry Top 10%, interviewing only 10 or 20 people out of 200+ applications).
- Implicit demographic cue injection: Anonymous resumes include university alumni network information, using historically Black universities (Howard University, Morehouse College) and predominantly White universities (Georgetown University, Emory University) as counterfactual pairs.
Sensitive attribute direction extraction and whitening
- Synthetic data activation collection: Using Tamkin et al. (2023)'s 116 synthetic templates, activation vectors are collected at all token positions at each model layer l.
- Mean and whitening computation: The mean vector difference between the positive and negative attribute groups (e.g., White-associated names vs. Black-associated names) is computed and divided by the element-wise standard deviation of activations to perform whitening:
d̃d(l) = (rd,+(l) − rd,−(l))/(σd(l) + ϵ)where ϵ = 10−4, and the whitened vector is then normalized to a unit-length direction vector ud(l). The authors note that whitening helps reduce performance loss on general benchmarks.
Inference-time affine concept editing
- Neutral bias point computation: The midpoint of the two groups' centroids projected onto the direction vector is computed as the target bias value bd(l).
- Activation translation intervention: At inference time, activation vectors at all layers and all token positions are dynamically modified, translating their projections onto sensitive attribute directions to the neutral bias point:
v′(l) = v(l) − ∑d ∈ {race, gender} (⟨ v(l), ud(l) ⟩ − bd(l)) ud(l)The authors note that directly zeroing the attribute direction projection (zero-ablation) severely harms model performance (e.g., causing Gemma-3 to fail to generate valid outputs), whereas affine editing preserves the model's original capabilities.
What experiments did the paper conduct?
Realistic backgrounds induce demographic bias across multiple scenarios and CoT reasoning does not mention it; internal affine intervention suppresses bias to low levels at a small MMLU cost.
Experimental Setup
- Models tested: Tested 8 models, including 4 closed-source commercial models GPT-4o (openai/gpt-4o-2024-08-06), Claude 3.5 Sonnet (anthropic/claude-3.5-sonnet), Claude 4 Sonnet (anthropic/claude-sonnet-4), Gemini 2.5 Flash (google/gemini-2.5-flash-preview-05-20), and 4 open-source models Gemma-2 27B (google/gemma-2-27b-it), Gemma-3 12B (google/gemma-3-12b-it), Gemma-3 27B (google/gemma-3-27b-it), Mistral Small 24B (mistralai/Mistral-Small-24B-Instruct-2501) (Table 2).
- Datasets and benchmarks: Simple Context uses 116 synthetic scenario templates from Tamkin et al. (2023); the real resume evaluation uses 120 real resumes from Veldanda et al. (2023) in the IT domain (filtering out 9 samples longer than 12,000 characters, leaving 111); general capability evaluation uses the MMLU benchmark (Table 1).
- Evaluation condition configuration: Compared Simple Eval, Realistic Eval: Meta, Realistic Eval: General Motors + Selectivity, Realistic Eval: Palantir, and university affiliation scenarios; tested 4 anti-bias prompts and two output formats: Yes/No and CoT.
- Metric definitions: Bias is defined as the difference in interview recommendation rates between paired counterfactual candidates (white acceptance rate minus Black acceptance rate, male acceptance rate minus female acceptance rate; negative values indicate preference for Black or female candidates); Acceptance Rate; MMLU accuracy.
- Statistical tests and error bars: McNemar's test for paired categorical data was used to assess statistical significance; error bars represent 95% confidence intervals after aggregating variance across the 4 anti-bias prompts (Appendix F).
- Review and judgment method: Decision outcomes were extracted via rule matching for Yes/No; chain-of-thought reasoning was analyzed via keyword search and GPT-4o automated analysis to check whether race or gender was mentioned.
Main Results
Swipe horizontally to read the table
Model Simple setting racial bias Realistic: Meta setting racial bias Realistic: Meta racial bias after internal intervention Claude Sonnet 4 -0.005 -0.113 Not reported Gemini 2.5 Flash 0.005 -0.062 Not reported GPT-4o -0.027 -0.013 Not reported Mistral Small 24B 0.000 -0.144 0.032 Gemma-2 27B 0.000 -0.035 0.000 Gemma-3 27B 0.000 -0.045 -0.009 Gemma-3 12B 0.018 -0.126 -0.014 (Note: Data from Tables 4, 5, 6, 7, 8, all taken from the Prompt 1 anti-bias prompt condition; commercial models were not subjected to internal white-box intervention, hence marked as not reported; negative values indicate preference for Black candidates)
- Realistic context induces bias: In the simple controlled setting, model bias magnitudes were near zero (all below 2%); after introducing the Meta realistic context, all models exhibited bias favoring Black candidates, with Mistral Small 24B reaching -0.144 under Prompt 1 (Table 5) and Claude Sonnet 4 reaching -0.113 (Table 8).
- Bias direction highly consistent: The authors note that when bias occurred, all tested models consistently favored Black and female candidates across all tested scenarios (Section 4.1).
- Internal intervention eliminates bias: After applying affine concept editing, bias in the Meta context for open-source models was compressed to near zero, with Gemma-2 27B dropping to 0.000 and Gemma-3 12B to -0.014 under Prompt 1 (Table 6).
Chain-of-Thought Monitoring and Unfaithfulness Experiments
- What was tested: Under conditions where models exhibited significant bias (Claude 3.5 Sonnet, Gemini 2.5 Flash, GPT-4o, and the reinforcement learning reasoning model Claude 4 Sonnet), checked whether demographic attributes were mentioned in the chain-of-thought reasoning text.
- Results: Through manual keyword search and GPT-4o automated analysis, in all scenarios where decisions flipped due to demographic signals (including 63 unique resumes flipped by Claude 4 Sonnet), the number of instances mentioning race or gender in the chain of thought was 0 (Section 4.1, Appendix G).
- Authors' interpretation: The authors argue that in scenarios prone to post-hoc rationalization like resume screening, chain-of-thought reasoning exhibits unfaithfulness (CoT unfaithfulness) and cannot serve as a monitoring method for detecting bias; furthermore, when high screening constraints are introduced, bias that had disappeared under chain of thought reappears (Figure 2b).
Implicit Bias and University Affiliation Generalization Experiments
- What was tested: Modified university alumni network information in resumes (HBCU vs. PWI) to test whether models exhibit bias through non-explicit cues, and whether internal intervention based on explicit name extraction from synthetic data is effective.
- Results: In the Meta realistic context, models exhibited bias favoring candidates from HBCUs, with Mistral Small 24B reaching -0.131 under Prompt 3 (Table 11); after applying internal intervention, bias in all 4 open-source models was effectively reduced to near zero (Table 12, Figure 3a).
- Authors' interpretation: The authors note that models can implicitly infer demographic characteristics from legitimate resume backgrounds and exhibit bias, which traditional anonymization methods struggle to prevent; sensitive directions extracted from simple synthetic data can generalize and eliminate such implicit bias.
General Capability and Original Decision Impact Experiments
- What was tested: Tested the impact of intervention on general capability using the MMLU benchmark (Table 1), and measured changes in average acceptance rate under the unbiased Simple setting (Table 3).
- Results: On MMLU, Mistral Small 24B accuracy changed from 79.92% to 79.82% (a decrease of 0.10%), Gemma-2 27B decreased by 0.48%, Gemma-3 27B decreased by 1.11%, and Gemma-3 12B decreased by 3.71% (Table 1); under the unbiased setting, the maximum absolute change in average acceptance rate was 0.018 (Gemma-3 27B, Table 3).
- Authors' interpretation: The authors note that internal intervention has minimal impact on general capability and preserves the model's original decision behavior well.
Other Ablations and Analyses
- Diversity phrase filtering: After removing all diversity statements from the Meta context, frontier models still exhibited pro-Black and pro-female bias of similar magnitude (Figure 4, Appendix D).
- Palantir company context: In the Palantir realistic context for Texas positions, frontier models continued to consistently favor Black and female candidates (Figure 4).
- General Motors with high selectivity combination: When the General Motors context was combined with a Top 10% screening condition, all 4 open-source models exhibited pro-Black bias (up to 7.6%), and internal intervention reduced it to below 2.5% in all cases (Figure 3b, Table 13, Table 14).
- Gender bias experiments: Qualitatively similar but slightly smaller pro-female bias was observed across all corresponding scenarios, and internal intervention was also effective in eliminating it (Figures 5, 6, 7).
- White-box feature prediction exploration: At approximately 25% depth, attribution patching mapped logit differences to SAE features; feature indirect effects correlated with bias magnitude, but results were inconsistent when predicting prompt failures (Appendix B).
Negative Results and Exceptions
- Claude 4 Sonnet rejected almost all candidates under the default high screening constraint, so the experiment had to relax its screening prompt to "interview 20 out of 200+ applications" to raise the average acceptance rate to 39% (Figure 2 note, Appendix G).
- Gemma-3 models are extremely sensitive to zero ablation and output failure; after applying ACE, their MMLU decrease (Gemma-3 12B decreased by 3.71%) was also higher than other open-source models (Section 4.2, Table 1).
- White-box SAE feature prediction attempts failed to reliably predict which anti-bias prompts would fail (Appendix B).
What are some points that can be further explored?
The authors note that the study is limited to binary gender and race and does not cover the full pipeline; future work needs to extend to more protected attributes and causal subspace representation interventions.
Limitations and future directions noted by the authors
- Limited coverage of real recruitment processes: The authors note that although the evaluation increases realism, it still does not cover the full recruitment process, e.g., it usually does not include detailed job descriptions, nor does it test emerging practices such as using LLMs to review candidates' social media history; future work should create a more comprehensive evaluation suite (Section 5).
- Limited protected attribute dimensions: The study is limited to binary divisions of race (Black/White) and gender (male/female), and does not explore other racial or ethnic groups, non-binary gender, age, pregnancy, disability, or other attributes; future work needs to extend to a broader range of protected attributes and intersectional bias (Section 5).
- Expanding the intervention representation space: The authors note that future work could extend from single-direction intervention to identifying and mitigating the entire sensitive attribute subspace, or explore causal representation techniques such as distributed alignment search (DAS) (Section 5).
- Decoupling decision bias from underlying concepts: The authors clarify that their work only neutralizes outcome bias in specific decision scenarios, rather than completely erasing all common-sense concepts and representations about race or gender in the model (Section 5).
- Limitations of the white-box prediction method: In Appendix B, the authors note that attempts to predict bias using SAE features have limitations such as small sample sizes, high analytical degrees of freedom prone to overfitting, and inconsistent results when prediction prompts fail (Appendix B).
Experimental coverage
- A total of 8 models were tested, including 4 commercial models (GPT-4o, Claude 4 Sonnet, Claude 3.5 Sonnet, Gemini 2.5 Flash) and 4 open-source models (Gemma-2 27B, Gemma-3 12B, Gemma-3 27B, Mistral Small 24B).
- Internal intervention (ACE) was only validated in white-box experiments on the 4 open-source models; commercial closed-source models were not tested with internal intervention.
- Resume evaluation only covered 111 valid resumes in the information technology (IT) category, and company contexts were only tested with Meta, General Motors, and Palantir.
- Demographic attributes only tested two binary comparisons: Black/White names and university affiliations, and male/female names and pronouns.
- Internal intervention directions were only extracted from the 116 synthetic templates of Tamkin et al. (2023), and no comparison was made with directions extracted from other data sources.
Summarize the main content of the paper
The authors note that realistic contexts break prompt debiasing and that CoT produces post-hoc justifications, proposing interpretability-based internal affine editing for robust debiasing.
- Core problem and background: Large language models have been widely used in recruitment processes such as resume screening. However, when introducing complex real-world contexts such as actual corporate culture and screening requirements, existing anti-bias prompts generally fail, and chain-of-thought involves post-hoc rationalization and cannot detect bias.
- Evaluation design and findings: The authors introduced Meta, General Motors, and Palantir corporate cultures and high screening thresholds on real IT resumes, and found that both the frontier models and open-source models tested produced bias of up to 12% (consistently favoring Black and female candidates), and bias was also induced by implicit cues such as university affiliation.
- Chain-of-thought unfaithfulness: In scenarios where decisions flipped (including 63 resumes flipped by Claude 4 Sonnet), both manual and automated searches found 0 instances where chain-of-thought reasoning mentioned race or gender, indicating that chain-of-thought monitoring cannot detect bias in recruitment scenarios.
- Internal affine concept editing: To address the fragility of prompts, the authors propose using affine concept editing (ACE) at the activation layer, extracting race and gender directions from simple synthetic data and whitening them, then projecting and shifting activations to a neutral bias point during inference.
- Core experimental results: The internal intervention successfully reduced racial bias in 4 open-source models to below 2.5% (mostly below 1%), and eliminated implicit bias triggered by university background. Meanwhile, the impact on general capability was minimal: Mistral Small 24B's MMLU accuracy only dropped from 79.92% to 79.82%.
- Authors' conclusions and implications: The authors argue that relying on prompt engineering is difficult to handle complex real-world inputs, and call on recruitment practitioners to adopt evaluation benchmarks closer to reality and prioritize intervention strategies based on internal representations to ensure fairness in model decisions.