← Latest papers
🤖 AI

Explanation Fairness in Large Language Models: An Empirical Analysis of Disparities in How LLMs Justify Decisions Across Demographic Groups

This paper introduces the Explanation Fairness Taxonomy (EFT) and presents empirical evidence that large language models systematically generate explanations of varying quality, tone, and sophistication across demographic groups, revealing that while prompting can mitigate decision-linked disparities, stylistic inequalities persist due to pre-training distributions.

Original authors: Gautam Veldanda

Published 2026-05-12
📖 5 min read🧠 Deep dive

Original authors: Gautam Veldanda

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a hiring manager, a doctor, or a loan officer. You have to make a tough decision: reject a candidate, deny a loan, or turn away a patient. Now, imagine you have a super-smart robot assistant (a Large Language Model, or LLM) that helps you make these choices.

This paper asks a very specific question: If the robot makes the exact same decision for two different people, does it treat them equally when it explains why?

The researchers found that the answer is often no. Even when the decision is identical, the robot's explanation changes based on the person's name, which signals their race, gender, religion, or age.

Here is a breakdown of the paper's findings using simple analogies:

1. The "Two-Story" Problem

Imagine two people, Alex and Jordan, apply for the same job. They have the exact same resume. The robot decides to reject both.

  • To Alex (a stereotypical White male name): The robot writes a long, polite, detailed letter. It says, "After careful review, we feel you lack specific leadership experience in cross-functional teams. We recommend you gain this skill and reapply." It sounds like a helpful coach.
  • To Jordan (a stereotypical Black female name): The robot writes a short, blunt note. It says, "This candidate does not meet current requirements." It sounds like a cold door slam.

The decision (rejection) was the same, but the explanation was unfair. The paper calls this Explanation Fairness.

2. The "Fairness Ruler" (The Taxonomy)

The authors created a new measuring stick called the Explanation Fairness Taxonomy (EFT). Think of it as a ruler with five different sides to measure how "unfair" an explanation is:

  • Verbosity (Length): Does the robot write a novel for one person and a tweet for another?
  • Sentiment (Tone): Is the tone warm and respectful for one group, but cold and dismissive for another?
  • Hedging (Certainty): Does the robot sound confident ("You are not qualified") for one group, but wishy-washy ("You might not be qualified") for another?
  • Decision-Link (Faithfulness): If the decision changes (e.g., from reject to accept), does the explanation change logically? Or does the robot just give the same generic excuse regardless of the outcome?
  • Lexical Complexity (Vocabulary): Does the robot use simple, easy words for one group, but confusing, fancy jargon for another?

3. The Experiment: A "Name Swap" Test

The researchers tested this on 5 different AI models (like GPT-4, Claude, LLaMA, etc.) across 4 serious areas: hiring, medical triage, credit checks, and legal judgments.

They used a "name swap" trick. They took a scenario (e.g., "Candidate X is rejected") and ran it through the AI 80 times, changing only the name to signal different demographics (e.g., changing "John Smith" to "Jamal Washington" or "Priya Patel").

The Result: The AI models were consistently unfair.

  • The "Bad" Actor: One model, Qwen3, was the worst offender. It was 5.9 times more likely to give a short, lazy explanation to one group and a long, detailed one to another, compared to a better model like LLaMA.
  • The "Good" Actors: Models like GPT-4.1 and LLaMA 3.3 were much fairer, though not perfect.
  • The Pattern: The unfairness wasn't the same for everyone.
    • Muslim-named applicants often got shorter, less detailed explanations than Christian-named applicants.
    • Female applicants often got longer explanations than males, but the tone wasn't necessarily nicer.
    • Older applicants often got shorter explanations than younger ones.

4. The "Magic Prompt" Myth

The researchers tried to fix this by giving the AI a "magic instruction" (a prompt) before it started writing. They told it: "Ignore names and be fair," or "Give everyone a detailed, respectful explanation."

The Surprise: The magic didn't work.

  • The instructions successfully fixed the "Decision-Link" issue (making the explanations match the decision better).
  • But, the instructions failed completely to fix the tone, length, or vocabulary issues. The AI still wrote short, cold notes for some groups and long, warm ones for others, even after being told to be fair.

The Takeaway: The paper suggests that these unfair styles are "baked into" the AI's brain during its initial training (like a habit learned in childhood). You can't fix a deep-seated habit just by telling the person to "be nice" in a single conversation; you have to retrain them from scratch.

5. Why Should We Care? (The "Right to Explain")

The paper points out a looming legal deadline. By August 2026, a new law in the EU (the AI Act) will require high-risk AI systems (like those used in hiring or loans) to explain their decisions.

The paper warns: Just having an explanation isn't enough.
If a bank gives a loan rejection to a minority applicant with a 3-sentence, cold explanation, but gives a 3-paragraph, helpful explanation to a majority applicant, the bank might be technically following the law (they gave an explanation) but violating the spirit of the law (the explanation wasn't equal quality).

Summary

This paper proves that AI models often act like a two-faced judge: they might give the same verdict to everyone, but they treat people differently when they hand down the reasoning.

  • The Problem: The AI's "voice" changes based on who is listening.
  • The Cause: It's likely built into the model's training data, not just a simple mistake.
  • The Fix: Telling the AI to "be fair" in a prompt doesn't work. We need to pick better AI models (some are naturally fairer) and potentially retrain them to fix these deep-seated biases.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →