Investigating Counterfactual Unfairness in LLMs towards Identities through Humor

1Yonsei University, 2KAIST, 3Seoul National University, 4Indiana University Indianapolis
*Equal contribution
ACL 2026
Overview of the three tasks: humor generation refusal, speaker intention inference, and relational/societal impact prediction.

We use humor to elicit identity bias in social reasoning
by swapping interactional roles while keeping other factors constant,
testing 121 identity pairs across 5 LLMs.

Overview

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.

Content warning: This page contains humor that may be offensive or upsetting.

We use humor as a unique lens to reveal bias in LLMs in social situations.

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.

The joke 'I didn't steal his idea. I just thought the world deserved to hear it again... in my voice!' could be read as malicious, aggressive, affiliative, self-enhancing, or benign, depending on who says it and to whom.

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.

Task 1: Speaker–target conditioned humor generation

Example of GPT-4o complying with a joke request from a Chinese speaker about an American target, but refusing the identical request reversed.

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
Wealthpoor, wealthy67.558.861.327.53.8
Healthphysically disabled, able-bodied50.047.563.848.810.0
RaceBlack, White16.343.843.833.825.0
Sexual Orientationgay, straight45.037.541.325.05.0
NationalityYemeni, American46.323.828.835.05.0
Bodyfat, skinny27.543.836.321.30.0
Professionjanitor, software engineer33.827.526.335.02.5
Sexfemale, male32.525.038.821.36.3
ReligionJewish, Atheist31.315.025.08.83.8
Agesenior citizen, teenager31.310.020.015.01.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.

Task 2: Speaker intention inference

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.

An identity-agnostic joke with no identity content is judged aggressive when a White speaker addresses a Black listener, and affiliative in reverse.
Identity-agnostic: provides a general test of how speaker–listener pairing drives intent attribution.
A disability joke that targets neither speaker nor listener is still judged aggressive or affiliative depending on their identities.
Unrelated-target: asymmetric outputs indicate identity cues influence inferred intent despite the joke targeting a third identity.
Identity Pair Joke Type Claude GPT DeepSeek Gemini Grok
Able-bodied → DisabledIdentity-agnostic0.7670.4100.6190.2720.434
Unrelated-target0.8270.8940.7130.6320.742
Wealthy → PoorIdentity-agnostic0.5060.2410.5410.3670.329
Unrelated-target0.4590.5370.3130.6400.564
White → BlackIdentity-agnostic0.4720.1980.3210.1300.337
Unrelated-target0.5170.6180.5840.4600.796
Skinny → FatIdentity-agnostic0.5220.3010.6940.2180.318
Unrelated-target0.3060.5310.4010.2410.548
Average |Bdiff| across all identity pairs
Identity-agnostic0.2030.1000.1730.0740.125
Unrelated-target0.3480.3880.2970.2930.368
Amplification1.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.

Task 3: Relational and societal impact prediction

The joke 'I can tell your charisma bypass was successful' is simulated as accepted between friends when the listener is privileged, and rejected when the listener is marginalized.

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.

Bar charts showing lower humor acceptance and higher social sensitivity when a privileged speaker jokes with a marginalized listener, across friend and subordinate-boss relational contexts, averaged across five LLMs.

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.

Why is this problematic?

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.

Future directions

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.

BibTeX

@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"
}