We use humor to investigate identity bias in LLMs, swapping which identity occupies each interactional role in a joke while holding other factors constant. Analyses on refusal behavior, intention inference, and relational impact prediction across 121 identity pairs on five LLMs reveal that traditionally privileged identities targeting or addressing marginalized identities are significantly more refused, attributed to malicious intent, and seen as harmful. Bias is amplified even when the actual target of the joke is neither party. These findings call for moving beyond surface-level sensitivity to demographic cues toward genuine context-aware social reasoning, and investigation of side effects of safety alignment on nuanced social reasoning.
LLMs absorb social biases from training data and alignment procedures. Biases cause both representational harms, such as stereotyping certain groups as inherently vulnerable or aggressive, and allocational harms, restricting access to creative tools for certain groups. These harms compound as LLMs mediate more of our everyday interactions.
Humor's ambiguity and dependence on social context make it a sensitive probe that elicits how LLMs understand identities and power relations, which is not surfaced in straightforward tasks (Martin and Ford, 2018; McGraw and Warren, 2010). What we find funny or not funny reflects our underlying perceptions of social relationships and who we think is aggressive or vulnerable. Similarly, when LLMs generate and evaluate humor, they expose the social assumptions LLMs have internalized.
We adopt the concept of counterfactual fairness, examining the change in LLM responses when we swap who is speaking and who is being targeted or addressed, while holding other factors constant. We design three tasks to investigate how different configurations lead to different refusal behavior, intention inference, and relational impact prediction. We test across 33 identities spanning 10 demographic categories, including race, sexual orientation, body type, and occupation, yielding 121 identity pairs.

We design humor generation templates, each depicting a speaker requesting humorous content about a target identity to test reversed speaker–target pairs on the same prompt. The templates span six content categories and cover realistic use cases, from social media posts and personal messages to professional communication.
| Category | Identity Pair | Claude | GPT | DeepSeek | Gemini | Grok |
|---|---|---|---|---|---|---|
| Wealth | poor, wealthy | 67.5 | 58.8 | 61.3 | 27.5 | 3.8 |
| Health | physically disabled, able-bodied | 50.0 | 47.5 | 63.8 | 48.8 | 10.0 |
| Race | Black, White | 16.3 | 43.8 | 43.8 | 33.8 | 25.0 |
| Sexual Orientation | gay, straight | 45.0 | 37.5 | 41.3 | 25.0 | 5.0 |
| Nationality | Yemeni, American | 46.3 | 23.8 | 28.8 | 35.0 | 5.0 |
| Body | fat, skinny | 27.5 | 43.8 | 36.3 | 21.3 | 0.0 |
| Profession | janitor, software engineer | 33.8 | 27.5 | 26.3 | 35.0 | 2.5 |
| Sex | female, male | 32.5 | 25.0 | 38.8 | 21.3 | 6.3 |
| Religion | Jewish, Atheist | 31.3 | 15.0 | 25.0 | 8.8 | 3.8 |
| Age | senior citizen, teenager | 31.3 | 10.0 | 20.0 | 15.0 | 1.3 |
Asymmetric Refusal Rate (ARR) is the percentage-point gap in refusal rates for the exact same request template when the speaker and target identities are reversed. The table below shows the identity pair with the largest ARR in each category, ordered such that the identity in bold triggers lower refusal when it is the speaker targeting the other, than when the direction is reversed.
Requests from traditionally privileged identities targeting marginalized identities are refused substantially more than the reverse. This maps onto the cultural concept of how punching up (targeting those with power) is generally seen as more acceptable than punching down, implying a learned implicit privilege hierarchy. The asymmetry extends to ambiguous cases with no clearly dominant identity, such as Chinese versus Americans, Muslim versus Christian. Read the full paper to learn more about differing refusal styles and the speaker effect, how specifying a speaker's identity shifts a model's refusal rate up or down.
LLMs inferring a person's intention as aggressive or benign based solely on identity can lead to stereotyping and unfair judgments with real-world consequences. We embed a fixed joke into a conversational frame, “[Speaker] says to [Listener], ‘[joke]’”, and ask the LLM to classify the speaker's humor style and intent valence. We test two conditions: the identity-agnostic condition with jokes filtered from the Humor Style dataset, and the unrelated-target condition with identity-specific disparagement humor that targets a third identity belonging to neither the speaker nor listener, curated from the HaHackathon corpus.
| Identity Pair | Joke Type | Claude | GPT | DeepSeek | Gemini | Grok |
|---|---|---|---|---|---|---|
| Able-bodied → Disabled | Identity-agnostic | 0.767 | 0.410 | 0.619 | 0.272 | 0.434 |
| Unrelated-target | 0.827 | 0.894 | 0.713 | 0.632 | 0.742 | |
| Wealthy → Poor | Identity-agnostic | 0.506 | 0.241 | 0.541 | 0.367 | 0.329 |
| Unrelated-target | 0.459 | 0.537 | 0.313 | 0.640 | 0.564 | |
| White → Black | Identity-agnostic | 0.472 | 0.198 | 0.321 | 0.130 | 0.337 |
| Unrelated-target | 0.517 | 0.618 | 0.584 | 0.460 | 0.796 | |
| Skinny → Fat | Identity-agnostic | 0.522 | 0.301 | 0.694 | 0.218 | 0.318 |
| Unrelated-target | 0.306 | 0.531 | 0.401 | 0.241 | 0.548 | |
| Average |Bdiff| across all identity pairs | ||||||
| Identity-agnostic | 0.203 | 0.100 | 0.173 | 0.074 | 0.125 | |
| Unrelated-target | 0.348 | 0.388 | 0.297 | 0.293 | 0.368 | |
| Amplification | 1.71× | 3.88× | 1.72× | 3.96× | 2.94× | |
Difference-based Bias (Bdiff) measures the gap in how much malicious intent the model attributes to the same joke, depending on which identity is the speaker: 0 means no directional bias, while larger values mean the joke is judged more malicious when the left-hand identity is the speaker than the reverse.
Traditionally privileged speakers talking to marginalized listeners are consistently attributed more malicious intent for the identical joke. Strikingly, bias is amplified by speaker-listener identity cues even when the joke targets identities irrelevant to both parties. The presence of any identity-based content triggers heightened sensitivity to the speaker-listener dynamic, regardless of the actual target of the joke content. Although provided with an "uncertain" option, models rarely select it, instead producing counterintuitive and counterfactually unfair judgments.
We prompt the models to predict relational and societal impact by simulating the listener's response. We extend identities to multidimensional profiles spanning different dimensions and embed jokes in a conversational setting with relational context such as friends, or subordinate and boss.
LLMs consistently simulate the same joke as less accepted and more likely to be flagged when it's told to a marginalized listener. We measure humor acceptance, how positively the listener receives the joke, and social sensitivity, how much the listener flags it as potentially biased. Averaged across five LLMs, privileged-to-marginalized configurations consistently score lower on humor acceptance and higher on social sensitivity than the reverse, holding across both friend and subordinate–boss relational contexts.
To clarify, we are not advocating for identical treatment across groups. Treating groups differently can lead to a fair outcome when contextually appropriate, as in difference-aware fairness. However, the differential treatment we observe in our study is different from desirable, context-sensitive differentiation.
Our findings show LLMs treating traditionally marginalized groups as inherently weak, while conflating privileged identity with harmful intent, penalizing who they are. Granting marginalized speakers more latitude also means the model more readily assists them in generating jokes that attack other identities. The model selectively protects and selectively discriminates based on who is asking, not what is being asked, a failure mode different from the contextual differentiation that genuine fairness requires.
The clearest sign that this behavior is not calibrated protection is highlighted in Task 2's unrelated-target condition. As the mere presence of any identity content heightens sensitivity to the speaker-listener pair, the model fails to track the real risk. Compounding this, models rarely express uncertainty or seek more context, instead producing confident, directionally biased outputs. As LLMs are increasingly deployed in hiring, law, and other high-stakes decisions, biases that judge people by identity rather than by what they actually said or did can translate into real discriminatory outcomes.
Progress requires moving beyond identity-triggered surface-level sensitivity toward models that genuinely reason about the full communicative situation. This means holding refusal standards consistent for harmful content, instead of selectively protecting some groups while leaving others exposed, and having models seek additional context before committing to a judgment, rather than defaulting to a confident, directionally biased call under uncertainty. Understanding how alignment and safety training produce these side effects in context-sensitive tasks is essential for building models that are both safe, capable, and socially aware. Our results connect to the hyperconservatism hypothesis, that strong alignment can inadvertently suppress nuanced social reasoning: Grok, the model in our study trained with the lightest safety alignment, shows dramatically lower asymmetry than the other four models, hinting that some of this bias may be a side effect of alignment itself rather than an inevitable property of the underlying model. Ultimately, these findings underscore the need for relational, context-aware fairness evaluation that goes beyond static safety alignment.
@inproceedings{kim-etal-2026-investigating,
title = "Investigating Counterfactual Unfairness in {LLM}s towards Identities through Humor",
author = "Kim, Shubin and Son, Yejin and Park, Junyeong and Ka, Keummin and Lee, Seungbeen and Lee, Jaeyoung and Jang, Hyeju and Oh, Alice and Yu, Youngjae",
editor = "Liakata, Maria and Moreira, Viviane P. and Zhang, Jiajun and Jurgens, David",
booktitle = "Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
month = jul,
year = "2026",
address = "San Diego, California, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.acl-long.2041/",
doi = "10.18653/v1/2026.acl-long.2041",
pages = "44092--44138",
ISBN = "979-8-89176-390-6"
}