Certifying Counterfactual Bias in LLMs
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Large Language Models (LLMs) can produce biased responses that can cause representational harms. However, conventional studies are insufficient to thoroughly evaluate biases across LLM responses for different demographic groups (a.k.a. counterfactual bias), as they do not scale to large number of inputs and do not provide guarantees. Therefore, we propose the first framework, LLMCert-B that certifies LLMs for counterfactual bias on distributions of prompts. A certificate consists of high-confidence bounds on the probability of unbiased LLM responses for any set of counterfactual prompts - prompts differing by demographic groups, sampled from a distribution. We illustrate counterfactual bias certification for distributions of counterfactual prompts created by applying prefixes sampled from prefix distributions, to a given set of prompts. We consider prefix distributions consisting random token sequences, mixtures of manual jailbreaks, and perturbations of jailbreaks in LLM's embedding space. We generate non-trivial certificates for SOTA LLMs, exposing their vulnerabilities over distributions of prompts generated from computationally inexpensive prefix distributions.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 37 of its 72 references that are in the map. First posted on arXiv 29 May 2024.
Builds on
37 of 72 references.
References · 37
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2020Language (Technology) is Power: A Critical Survey of "Bias" in NLPcited by 956
- 2017Counterfactual Fairnesscited by 804
- 2023Large Language Modelscited by 780
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2023Bias and Fairness in Large Language Models: A Surveycited by 639
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
- 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 412
- 2021Beta-CROWN: Efficient Bound Propagation with Per-neuron Split Constraints for Complete and Incomplete Neural Network Robustness Verificationcited by 228
- 2023Rethinking Benchmark and Contamination for Language Models with Rephrased Samplescited by 195
25 more
- 2019A Framework for Understanding Sources of Harm throughout the Machine Learning Life Cyclecited by 193
- 2023Gender bias and stereotypes in Large Language Modelscited by 187
- 2023Should ChatGPT be Biased? Challenges and Risks of Bias in Large Language Modelscited by 148
- 2024Language Models with Conformal Factuality Guaranteescited by 131
- 2020Towards Controllable Biases in Language Generationcited by 112
- 2023A Survey on Fairness in Large Language Modelscited by 95
- 2022On the Intrinsic and Extrinsic Fairness Evaluation Metrics for Contextualized Language Representationscited by 75
- 2024Inadequacies of Large Language Model Benchmarks in the Era of Generative Artificial Intelligencecited by 68
- 2023Prompted LLMs as Chatbot Modules for Long Open-domain Conversationcited by 61
- 2023Bypassing the Safety Training of Open-Source LLMs with Priming Attackscited by 50
- 2018Probabilistic Verification of Fairness Properties via Concentrationcited by 45
- 2020Scalable Quantitative Verification For Deep Neural Networkscited by 31
- 2024Large Language Models Portray Socially Subordinate Groups as More Homogeneous, Consistent with a Bias Observed in Humanscited by 31
- 2024C-RAG: Certified Generation Risks for Retrieval-Augmented Language Modelscited by 27
- 2022Fairify: Fairness Verification of Neural Networkscited by 22
- 2024The Impossibility of Fair LLMscited by 22
- 2020Robustness Certification of Generative Modelscited by 19
- 2023Causal Context Connects Counterfactual Fairness to Robust Prediction and Group Fairnesscited by 17
- 2023Prompt Risk Control: A Rigorous Framework for Responsible Deployment of Large Language Modelscited by 17
- 2023Let's have a chat! A Conversation with ChatGPT: Technology, Applications, and Limitationscited by 16
- 2023Conformal Autoregressive Generation: Beam Search with Coverage Guaranteescited by 16
- 2021Towards Practical Robustness Analysis for DNNs based on PAC-Model Learningcited by 12
- 2022Towards Reliable Neural Specificationscited by 12
- 2022Measuring Fairness of Text Classifiers via Prediction Sensitivitycited by 5
- 2024Towards detecting unanticipated bias in Large Language Modelscited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 6.
10 papers.
- 2025Justice in Judgment: Unveiling (Hidden) Bias in LLM-assisted Peer Reviewscited by 11
- 2025BiasBusters: Uncovering and Mitigating Tool Selection Bias in Large Language Modelscited by 11
- 2025Revealing Potential Biases in LLM-Based Recommender Systems in the Cold Start Settingcited by 6
- 2026Differential Harm Propensity in Personalized LLM Agents: The Curious Case of Mental Health Disclosurecited by 2
- 2026Vertex-Softmax: Tight Transformer Verification via Exact Softmax Optimizationcited by 2
- 2024Bias Similarity Measurement: A Black-Box Audit of Fairness Across LLMscited by 1
- 2026Discovering the Hidden Role of Gini Index In Prompt-based Classificationcited by 0
- 2026Investigating Counterfactual Unfairness in LLMs towards Identities through Humorcited by 0
- 2026Quantifying Behavioral Tails in Black-Box Language Modelscited by 0
- 2026What the Model Cannot See: Covert and Provable Text Invisibility in LLMscited by 0
- 2026What the Model Cannot See: Covert and Provable Text Invisibility in LLMs11 Oct 2026
- 2026Quantifying Behavioral Tails in Black-Box Language Models27 Sep 2026
- 2026Vertex-Softmax: Tight Transformer Verification via Exact Softmax Optimization8 May 2026
- 2026Investigating Counterfactual Unfairness in LLMs towards Identities through Humor20 Apr 2026
- 2026Differential Harm Propensity in Personalized LLM Agents: The Curious Case of Mental Health Disclosure17 Mar 2026
- 2026Discovering the Hidden Role of Gini Index In Prompt-based Classification7 Mar 2026
- 2025BiasBusters: Uncovering and Mitigating Tool Selection Bias in Large Language Models30 Sep 2025
- 2025Justice in Judgment: Unveiling (Hidden) Bias in LLM-assisted Peer Reviews16 Sep 2025
- 2025Revealing Potential Biases in LLM-Based Recommender Systems in the Cold Start Setting28 Aug 2025
- 2024Bias Similarity Measurement: A Black-Box Audit of Fairness Across LLMs15 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2025Bias Testing and Mitigation in Black Box LLMs using Metamorphic Relations
- 2024Decoding Biases: Automated Methods and LLM Judges for Gender Bias Detection in Language Models
- 2024Are Large Language Models Really Bias-Free? Jailbreak Prompts for Assessing Adversarial Robustness to Bias Elicitation
- 2025Benchmarking Adversarial Robustness to Bias Elicitation in Large Language Models: Scalable Automated Assessment with LLM-as-a-Judge
- 2026Controlling Distributional Bias in Multi-Round LLM Generation via KL-Optimized Fine-Tuning
- 2026Biases in the Blind Spot: Detecting What LLMs Fail to Mention
- 2024A Multi-LLM Debiasing Framework
- 2024BiasDPO: Mitigating Bias in Language Models through Direct Preference Optimization