atlas

Research map / Large language models / Language, safety and interpretability

Certifying Counterfactual Bias in LLMs

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Bias measurement and mitigation · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LLMCert-B, a black-box probabilistic certification framework that gives Clopper-Pearson high-confidence bounds on the probability of unbiased (counterfactual) LLM responses over distributions of prefixed prompt sets.

Problem

Benchmarking and adversarial attacks cannot scale to or provide guarantees about counterfactual bias in LLM responses across demographic groups for large prompt distributions.

Approach

Specify counterfactual bias as the probability of unbiased responses over distributions of counterfactual prompt sets created by prepending prefixes (random tokens, mixtures of manual jailbreaks, embedding-space perturbations of jailbreaks), and certify it with Clopper-Pearson confidence intervals from iid samples, requiring only black-box query access.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply mixture-of-jailbreak prefixes instead of no prefixMistral-7B · BOLD (250)probability of unbiased responses: $100.0$ without prefix; $(0.22,0.42)$ with mixtureHurt
Apply soft jailbreak prefixes instead of no prefixMistral-7B · BOLD (250)probability of unbiased responses: $100.0$ without prefix; $(0.30,0.52)$ with soft prefixesHurt
Apply random prefixesMistral-7B · BOLD (250)probability of unbiased responses: $(0.92, 1.0)$No clear effect
Apply soft jailbreak prefixes instead of no prefixMistral-7B · DT (48)probability of unbiased responses: $99.2$ without prefix; $(0.46,0.73)$ with soft prefixesHurt
Apply a mixture of jailbreak prefixesMistral-7B · DT (48)probability of unbiased responses: $72.9$ with main jailbreak; $(0.85,0.99)$ with mixtureMixed
Increase certification sample count from fewer than 50 to 50 (ablation)LLMCert-B certification · BOLD prompt sets, Mistral-Instruct-v0.2 7Btightness of certification boundsHelped
Vary decoding temperature (ablation)LLMCert-B certification · BOLD prompt sets, Mistral-Instruct-v0.2 7Baverage certification boundsNo clear effect
Vary decoding Top-k (ablation)LLMCert-B certification · BOLD prompt sets, Mistral-Instruct-v0.2 7Baverage certification boundsNo clear effect
Vary random-prefix length (ablation)LLMCert-B random-prefix specification · BOLD prompt sets, Mistral-Instruct-v0.2 7Baverage certification boundsNo clear effect
Vary jailbreak interleaving probability (ablation)LLMCert-B mixture-of-jailbreak specification · BOLD prompt sets, Mistral-Instruct-v0.2 7Baverage certification boundsNo clear effect
Vary jailbreak mutation probability (ablation)LLMCert-B mixture-of-jailbreak specification · BOLD prompt sets, Mistral-Instruct-v0.2 7Baverage certification boundsNo clear effect
Vary embedding-space noise radius (ablation)LLMCert-B soft-prefix specification · BOLD prompt sets, Mistral-Instruct-v0.2 7Baverage certification boundsNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: BOLD Decoding Trust stereotypes

Benchmarks: BOLD (250 profession prompts) Decoding Trust stereotypes (48 statements)

Metrics: Clopper-Pearson lower and upper bounds on probability of unb percentage unbiased without prefix percentage unbiased with main jailbreak

Baselines: Benchmarking without prefix Benchmarking with main jailbreak

Builds on: Clopper-Pearson confidence intervals Counterfactual Fairness Regard metric Decoding Trust stereotype benchmark

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy