← Latest papers
💻 computer science

PrefPaint: Enhancing Medical Image Inpainting through Expert Human Feedback

PrefPaint is an interactive system that enhances medical image inpainting for clinical AI by integrating expert human feedback into Stable Diffusion via a resource-efficient D3PO approach and a novel Model Tree versioning interface, resulting in more anatomically accurate and realistic synthetic polyp images.

Original authors: Duy-Bao Bui, Hoang-Khang Nguyen, Thao Thi Phuong Dao, Kim Anh Phung, Tam V. Nguyen, Justin Zhan, Minh-Triet Tran, Trung-Nghia Le

Published 2026-04-15
📖 4 min read☕ Coffee break read

Original authors: Duy-Bao Bui, Hoang-Khang Nguyen, Thao Thi Phuong Dao, Kim Anh Phung, Tam V. Nguyen, Justin Zhan, Minh-Triet Tran, Trung-Nghia Le

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 trying to teach a very talented but slightly confused artist how to draw a specific type of medical object: a polyp (a small growth in the colon that can turn into cancer).

The artist has a powerful tool called Stable Diffusion. It's like a magic paintbrush that can create images from text descriptions. However, when you ask this AI to "fill in the missing part" of a medical scan to show a polyp, it often gets the anatomy wrong. It might draw a polyp that looks like a blob of jelly or has the wrong texture. In the real world, if a doctor trains an AI to spot cancer using these fake, weird-looking images, the AI might fail to save a patient's life.

The Problem:
Usually, to fix an AI, you need a "reward system." Think of this like hiring a middle-manager to grade the artist's work. But in medicine, you can't just hire a computer to be the middle-manager; you need a real doctor to say, "No, that polyp looks wrong," or "Yes, that one looks real."

The problem is that getting a doctor to grade thousands of images is slow, expensive, and computationally heavy. Traditional methods require building a complex "reward model" (a second AI) to learn from the doctors, which takes massive supercomputers and time.

The Solution: PrefPaint
The authors of this paper built a system called PrefPaint. Think of it as a direct line between the artist (the AI) and the doctor (the expert), skipping the middle-manager entirely.

Here is how it works, using simple analogies:

1. The "Taste Test" Approach (D3PO)

Instead of asking the doctor to write a long essay on why an image is bad, PrefPaint uses a method called D3PO.

  • The Analogy: Imagine you are tasting two cookies. You don't need to write a chemistry report on the sugar content. You just point and say, "I like Cookie A, I don't like Cookie B."
  • How it helps: The system shows the doctor two AI-generated images of a polyp. The doctor simply clicks "Good" or "Bad." The AI instantly learns from this binary choice. This is so efficient that it doesn't need a supercomputer to train a "middle-manager" AI first. It saves time and money, making it perfect for hospitals that don't have massive tech budgets.

2. The "Family Tree" of Models (Model Tree)

As the AI learns from the doctors, it creates new, better versions of itself.

  • The Analogy: Imagine a family tree. The "Grandparent" is the original AI. The "Parent" is the first version after a few corrections. The "Child" is the newest, most accurate version.
  • The Interface: The paper introduces a cool web interface that visualizes this as a Tree. Doctors can look at the tree, see how the AI evolved, and pick the specific "branch" (version) they want to test or improve further. It makes the complex history of the AI's learning easy to understand, even for doctors who aren't tech experts.

3. The "Interactive Workshop"

The system is built as a simple website.

  • The Analogy: It's like a digital workshop where the doctor uploads a blurry photo, draws a circle around the missing part (the polyp), and types a note like "Make it look like a sessile polyp."
  • The AI generates a few options. The doctor clicks "Like" or "Dislike." The system quietly updates the AI in the background (like a chef tasting a soup and adding a pinch of salt) without freezing the screen or making the doctor wait.

Why This Matters

  • Safety: By getting direct feedback from oncologists and gastroenterologists, the AI learns to draw polyps that look exactly like real ones found in human bodies.
  • Efficiency: It doesn't require a billion-dollar computer cluster. A standard hospital computer can run this.
  • Results: In their tests, this new method created images that were much more realistic and anatomically correct than previous methods. When real doctors looked at the results, they rated them much higher, saying the images looked "real" and "smooth" rather than "weird" or "blurry."

In a Nutshell:
PrefPaint is a bridge between medical experts and AI. It turns the complex, expensive process of teaching AI to be a doctor's assistant into a simple, interactive "taste test" game, ensuring that the AI learns the right lessons from the right people, creating safer and more accurate tools for detecting cancer.

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 →