Local Label-Informed Feature Transfer for Generating Ground-Truth Medical Images: A Comparison of GAN- and Diffusion-Based Approaches

Rick Wilming, Irem Ozseker, Luca Matteo Cornils, Ahcène Boubekki, Benedict Clark, Danny Panknin, Stefan HaufearXiv 2026

TL;DR

The authors introduce Local Label-Informed Feature Transfer (LLIFT), a generative framework that inserts realistic, user-controlled lesions into healthy brain MRIs without requiring pixel-level annotations during training. By comparing GAN- and diffusion-based approaches, this work provides a reliable method for creating semi-synthetic datasets with precise, known ground truths to rigorously validate Explainable AI (XAI) methods.

What Problem Does This Paper Address?

To safely deploy Machine Learning models in clinical settings, we need Explainable AI (XAI)—specifically feature attribution methods—to show us why a model made a decision (e.g., highlighting a tumor). However, validating whether these XAI methods are actually pointing to the right features is notoriously difficult because we lack perfect "ground-truth" datasets.

Currently, researchers rely on two flawed options:

  1. Expert annotations: Human labels are prone to inter-rater variability, omissions, and noise.
  2. Hand-crafted artificial shapes: Superimposing simple geometric shapes (like squares or circles) onto healthy scans lacks clinical realism, meaning XAI methods aren't tested on realistic pathology.

LLIFT bridges this gap by generating semi-synthetic medical images where the exact location of the disease feature is known by design, yet the visual appearance of the pathology is realistically learned from data.

Methods

The LLIFT framework takes a healthy 2D MRI slice and a user-defined spatial mask, then fills only the masked region with pathological features. The authors implement and compare two distinct generative paradigms to achieve this under weak supervision:

  1. LLIFT-GAN: This custom Generative Adversarial Network extends the DCGAN architecture. It learns solely from binary class labels (healthy vs. pathological). It features a unique dual-view discriminator that looks at both the full image and a version with the bounding box masked out. This forces the generator to produce global-scale realistic lesions inside the mask to overcome the discriminator's context prior. Crucially, the generator's output is architecturally restricted to the mask area, eliminating the need for post-hoc blending.
  2. LLIFT-DM: This approach leverages a large-scale pretrained latent diffusion model (Stable Diffusion) fine-tuned with a ControlNet inpainting module. To prevent the model from simply memorizing lesion locations, the ground-truth masks are shuffled across different images during training, decoupling the location of the lesion from the content. An explicit post-hoc blending step ensures that every pixel outside the user-specified mask remains completely identical to the original healthy input.

Datasets

The models were trained and evaluated on a derivative of the Human Connectome Project (HCP) dataset, which contains axial T1-weighted MRI slices of healthy young adults. To provide a target pathological distribution, the authors utilized a modified version of this dataset from prior work where smoothed-noise lesions had been algorithmically added.

Note: While ground-truth lesion masks exist in this dataset, they were strictly used for evaluation and defining inference masks; neither generative model received true pixel-level lesion locations during training.

Key Insights and Ideas

  • Weak Supervision is Sufficient: You do not need pixel-level segmentation masks during training to generate localized, realistic pathology. By cleverly structuring the training—either via mask-shuffling (Diffusion) or a dual-view discriminator (GAN)—models can learn what a lesion looks like independently of where it is.
  • The Evaluation Paradox: Evaluating localized image edits with global metrics like the Fréchet Inception Distance (FID) is tricky. Because the background remains completely unchanged, global FID scores are heavily dominated by the healthy anatomy, making patch-level or mask-restricted evaluation metrics a necessity for future benchmarks.

Key Results

Both methods successfully generated visually plausible pathology confined strictly to the user-defined masks.

Fig. 1. Examples of generated pathological images using LLIFT-GAN. From left to right column: Depicted are the original healthy images from the Human Connectome Project, in the middle column, healthy images with a specified mask signaling where lesions should be generated, and on the right, the resulting generated pathological images, where all pixels outside the mask area are identical to the healthy images.
  • LLIFT-GAN: Achieved an image-level FID of 41.69, closely matching the dataset's natural inter-class reference of 41.75 (the distance between real healthy and real pathological batches). Qualitative review showed organic, bright, irregularly shaped regions blending smoothly into the brain tissue.
  • LLIFT-DM: For the blended images, it achieved an FID of 7.61 (compared to an inter-class reference of 5.84). The diffusion model excelled at generating highly realistic textures that integrated seamlessly with the surrounding brain structure.
Examples of generated pathological images using LLIFT-DM.

Limitations and Future Work

  • GAN Instability: LLIFT-GAN training remains relatively unstable and highly sensitive to random seeds. Occasional alignment artifacts can occur if the random training mask overlaps too heavily with an actual lesion in the dataset.
  • Diffusion Artifacts: While LLIFT-DM creates excellent textures, it occasionally generates non-lesion-like structures or an "absence of matter" rather than a true clinical lesion.
  • Next Steps: The authors note that the natural next step is replacing the synthetic noise-based training lesions with real clinical pathology. Additionally, developing patch-level or mask-restricted variants of FID will help better quantify the generation quality of small, localized image modifications.

Summary updated

BibTeX
@misc{wilming2026local,
  author = {Rick Wilming and Irem Ozseker and Luca Matteo Cornils and Ahcène Boubekki and Benedict Clark and Danny Panknin and Stefan Haufe},
  title = {{Local Label-Informed Feature Transfer for Generating Ground-Truth Medical Images: A Comparison of GAN- and Diffusion-Based Approaches}},
  year = {2026},
  eprint = {2607.18882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.18882},
}
Figure