← Latest papers
💻 computer science

VeriLLMed: Interactive Visual Debugging of Medical Large Language Models with Knowledge Graphs

VeriLLMed is a visual analytics system that integrates biomedical knowledge graphs to help developers audit and debug medical large language models by transforming model outputs into comparable reasoning paths and identifying recurring classes of diagnostic errors.

Original authors: Yurui Xiang, Xingyi Mao, Rui Sheng, Zixin Chen, Zelin Zang, Yuyang Wu, Haipeng Zeng, Huamin Qu, Yushi Sun, Yanna Lin

Published 2026-04-28
📖 3 min read☕ Coffee break read

Original authors: Yurui Xiang, Xingyi Mao, Rui Sheng, Zixin Chen, Zelin Zang, Yuyang Wu, Haipeng Zeng, Huamin Qu, Yushi Sun, Yanna Lin

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 teacher grading a massive stack of medical exams written by a very smart, but sometimes "hallucinating," robot doctor (an AI).

The problem is that this robot doesn't just give a wrong answer like "The patient has a cold" when they actually have "the flu." Instead, it writes out a long, complicated explanation of why it thinks that. Sometimes the robot's logic is like a detective who finds the right clue but follows a completely wrong trail, or a detective who completely ignores the most important piece of evidence on the table.

As a teacher, you can't read every single line of every single exam—it would take years. And even if you did, you might not be a world-class doctor yourself, so you might not realize exactly where the robot's logic tripped up.

VeriLLMed is like a "Super-Powered Grading Assistant" for these robot doctors. Here is how it works using three simple analogies:

1. The "GPS vs. The Driver" (The Core Concept)

Think of the robot doctor as a driver trying to get to a destination (the correct diagnosis).

  • The Driver (The AI): This is the robot's actual reasoning path. It's driving through streets, making turns, and following its own logic.
  • The GPS (The Knowledge Graph): This is a massive, perfect map of the medical world (the "Bio-KG"). It knows exactly which roads connect to which cities and which roads are dead ends.

VeriLLMed takes the robot's "driving route" and overlays it onto the "perfect GPS map." By comparing the two, the system can instantly see exactly where the robot took a wrong turn.

2. The "Three Types of Wrong Turns" (The Error Detection)

Instead of just saying "the robot is wrong," VeriLLMed categorizes the mistakes into three specific types of "bad driving":

  • The "Impossible Shortcut" (Relation Error): The robot tries to drive from a house to a mountain by going straight through a lake. It claims two medical things are connected when, according to medical science, they are not.
  • The "Wrong Exit" (Branch Error): The robot is on the right highway, but it takes an exit that leads to a completely different state. It starts with the right symptoms but ends up in a "neighborhood" of diseases that doesn't make sense.
  • The "Missing Signpost" (Missing Error): The robot drives right past the most important landmark (like a key symptom) without even noticing it was there.

3. The "Heat Map" (The Visual Analytics)

If you have thousands of exams, you don't want to look at them one by one. VeriLLMed creates a "Medical Heat Map."
Imagine a map of a city where certain neighborhoods are glowing bright red. If the "Dermatology" neighborhood is glowing red, the developer knows: "Aha! My robot is consistently getting confused about skin diseases!"

Instead of fixing one single mistake, the developer can now say, "I need to teach my robot more about how skin rashes relate to internal organs," and fix the entire "neighborhood" of errors at once.

Summary: Why does this matter?

In the real world, we can't let a robot doctor treat patients if we don't understand how it thinks. VeriLLMed turns a messy pile of "robot logic" into a clear, visual map. It helps the people building these AIs move from saying "The robot is wrong" to saying "The robot is consistently making this specific logical mistake, and here is exactly how to fix it."

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 →