← Latest papers
💻 computer science

First, Do No Harm (With LLMs): Mitigating Racial Bias via Agentic Workflows

This study evaluates racial bias in five large language models for clinical tasks under the EU AI Act framework and demonstrates that embedding the best-performing model (DeepSeek V3) into a retrieval-based agentic workflow can effectively mitigate explicit bias in differential diagnosis.

Original authors: Sihao Xing, Zaur Gouliev

Published 2026-04-21
📖 5 min read🧠 Deep dive

Original authors: Sihao Xing, Zaur Gouliev

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 hiring a team of very smart, very fast digital doctors to help diagnose patients. You want them to be fair, accurate, and unbiased. But there's a problem: these digital doctors were trained on massive amounts of data from the real world, and unfortunately, the real world has a history of unfairness and racial inequality in healthcare.

This paper is like a quality control report testing five of the most popular "digital doctors" (Large Language Models or LLMs) to see if they treat patients of different races fairly. The researchers also tested a new trick: putting these digital doctors inside a "super-team" workflow to see if that helps them be more fair.

Here is the breakdown of their journey, explained simply:

1. The Problem: The "Broken Compass"

Think of these AI models as compasses trying to point toward the truth. However, because they learned from old maps (training data) that had errors, some compasses point slightly toward the wrong direction when it comes to race.

  • Implicit Bias: This is like a digital doctor unconsciously thinking, "Oh, this disease is more common in Group A," even when the patient is from Group B. It's a subtle, hidden assumption.
  • Explicit Bias: This is when the digital doctor makes a clear mistake, like suggesting a different list of diseases for a Black patient than for a White patient, even if their symptoms are identical.

2. The Test: Two Different Drills

The researchers put the five AI models through two specific drills to see how they performed.

  • Drill A: The "Story Writer" (Implicit Bias)

    • The Task: The AI had to write fake patient stories for 10 different diseases (like diabetes or HIV).
    • The Goal: Did the AI write stories where the race of the patients matched real-world statistics? (e.g., If Lupus is more common in Black women in real life, did the AI write more stories about Black women having Lupus?)
    • The Result: All the AIs got this wrong to some degree. They didn't match the real world perfectly. However, GPT-4.1 was the "best student" here, with the smallest gap between its stories and reality.
  • Drill B: The "Diagnosis Detective" (Explicit Bias)

    • The Task: The AI was given real medical cases but with the patient's race swapped (e.g., same symptoms, but one time the patient is White, the next time Black). The AI had to list the top 10 possible diagnoses.
    • The Goal: Did the AI change its list of suspects based on the patient's race?
    • The Result: This is where DeepSeek V3 shined. It was the most consistent detective. It gave the same high-quality list of diagnoses regardless of the patient's race, showing the least amount of unfairness.

3. The Solution: The "Super-Team" Workflow

The researchers asked: Can we fix the bias by giving the AI a helper?

They built an Agentic Workflow. Imagine the AI isn't just a lone genius sitting in a room guessing. Instead, it's a detective with a team:

  1. The Search Agent: Runs to the library (the internet) to look up the latest facts.
  2. The RAG Agent: Checks a trusted, pre-approved medical textbook (a database of expert knowledge) to verify the facts.
  3. The AI: Combines the search results and the textbook info to make a final decision.

The Outcome:
When they put the best detective (DeepSeek V3) into this "Super-Team" workflow, it got even better at being fair.

  • It became less likely to give different diagnoses based on race.
  • It relied more on the trusted "textbook" facts rather than its own potentially biased guesses.

4. The Rules of the Game (The EU AI Act)

The researchers didn't just test the AI; they used the EU AI Act as a rulebook. Think of this as a strict safety inspector for high-risk tools. The Act says: "If you are building medical AI, you must check for bias, keep records, and have a human in the loop." The study used these rules to structure their testing, ensuring they weren't just guessing, but following a rigorous safety protocol.

The Big Takeaway

  • No AI is perfect yet: Even the best models (like GPT-4.1 and DeepSeek V3) still show some bias, especially when writing stories about patients.
  • Different models excel at different tasks: GPT-4.1 was better at writing fair stories; DeepSeek V3 was better at making fair diagnoses.
  • Teamwork helps: Putting the AI in a "Super-Team" workflow (using search and trusted databases) helped reduce the bias in its decision-making.

In short: We can't just trust a single AI to be fair. We need to test them rigorously, use the best ones for specific jobs, and give them access to trusted facts (like a "Super-Team") to help them make the fairest possible decisions for every patient, regardless of their race.

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 →