mlsanityData to 14 Oct 2026

Certifying Counterfactual Bias in LLMs

arXiv 2405.18780 ↗First posted 29 May 2024cs.AI cs.LGcited by 10

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

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  2. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  3. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
  4. 2020Language (Technology) is Power: A Critical Survey of "Bias" in NLPcited by 956
  5. 2017Counterfactual Fairnesscited by 804
  6. 2023Large Language Modelscited by 780
  7. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  8. 2023Bias and Fairness in Large Language Models: A Surveycited by 639
  9. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
  10. 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 412
  11. 2021Beta-CROWN: Efficient Bound Propagation with Per-neuron Split Constraints for Complete and Incomplete Neural Network Robustness Verificationcited by 228
  12. 2023Rethinking Benchmark and Contamination for Language Models with Rephrased Samplescited by 195
25 more
  1. 2019A Framework for Understanding Sources of Harm throughout the Machine Learning Life Cyclecited by 193
  2. 2023Gender bias and stereotypes in Large Language Modelscited by 187
  3. 2023Should ChatGPT be Biased? Challenges and Risks of Bias in Large Language Modelscited by 148
  4. 2024Language Models with Conformal Factuality Guaranteescited by 131
  5. 2020Towards Controllable Biases in Language Generationcited by 112
  6. 2023A Survey on Fairness in Large Language Modelscited by 95
  7. 2022On the Intrinsic and Extrinsic Fairness Evaluation Metrics for Contextualized Language Representationscited by 75
  8. 2024Inadequacies of Large Language Model Benchmarks in the Era of Generative Artificial Intelligencecited by 68
  9. 2023Prompted LLMs as Chatbot Modules for Long Open-domain Conversationcited by 61
  10. 2023Bypassing the Safety Training of Open-Source LLMs with Priming Attackscited by 50
  11. 2018Probabilistic Verification of Fairness Properties via Concentrationcited by 45
  12. 2020Scalable Quantitative Verification For Deep Neural Networkscited by 31
  13. 2024Large Language Models Portray Socially Subordinate Groups as More Homogeneous, Consistent with a Bias Observed in Humanscited by 31
  14. 2024C-RAG: Certified Generation Risks for Retrieval-Augmented Language Modelscited by 27
  15. 2022Fairify: Fairness Verification of Neural Networkscited by 22
  16. 2024The Impossibility of Fair LLMscited by 22
  17. 2020Robustness Certification of Generative Modelscited by 19
  18. 2023Causal Context Connects Counterfactual Fairness to Robust Prediction and Group Fairnesscited by 17
  19. 2023Prompt Risk Control: A Rigorous Framework for Responsible Deployment of Large Language Modelscited by 17
  20. 2023Let's have a chat! A Conversation with ChatGPT: Technology, Applications, and Limitationscited by 16
  21. 2023Conformal Autoregressive Generation: Beam Search with Coverage Guaranteescited by 16
  22. 2021Towards Practical Robustness Analysis for DNNs based on PAC-Model Learningcited by 12
  23. 2022Towards Reliable Neural Specificationscited by 12
  24. 2022Measuring Fairness of Text Classifiers via Prediction Sensitivitycited by 5
  25. 2024Towards detecting unanticipated bias in Large Language Modelscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 6.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Bias Testing and Mitigation in Black Box LLMs using Metamorphic Relations
  2. 2024Decoding Biases: Automated Methods and LLM Judges for Gender Bias Detection in Language Models
  3. 2024Are Large Language Models Really Bias-Free? Jailbreak Prompts for Assessing Adversarial Robustness to Bias Elicitation
  4. 2025Benchmarking Adversarial Robustness to Bias Elicitation in Large Language Models: Scalable Automated Assessment with LLM-as-a-Judge
  5. 2026Controlling Distributional Bias in Multi-Round LLM Generation via KL-Optimized Fine-Tuning
  6. 2026Biases in the Blind Spot: Detecting What LLMs Fail to Mention
  7. 2024A Multi-LLM Debiasing Framework
  8. 2024BiasDPO: Mitigating Bias in Language Models through Direct Preference Optimization