Inpainting Improves Visual XAI by Generating Photorealistic Perturbations

Josef Lindl, Mariana Chaves, Damien Garreau· July 20, 2026 View original

Summary

Researchers propose adjusting LIME, a perturbation-based XAI method, by using generative inpainting to create photorealistic perturbed image samples. This approach addresses the issue of traditional methods generating unrealistic, out-of-distribution samples, thereby enhancing the quality and reliability of explanations for complex machine learning models.

A new research paper explores how to improve eXplainable Artificial Intelligence (XAI) for image-based machine learning models by refining perturbation-based explanation methods. Traditional perturbation techniques, such as replacing pixels with uniform colors, often create unrealistic, out-of-distribution samples that can mislead the model and compromise the quality of the resulting explanations. These artifacts make it difficult to accurately understand why a model makes a particular prediction. The researchers propose an enhancement to LIME, a widely used perturbation-based XAI method, by integrating generative inpainting. This technique allows for the creation of photorealistic perturbed samples that maintain a closer resemblance to the original data distribution. By generating more natural-looking alterations, the method aims to provide more accurate and reliable insights into the model's decision-making process, ultimately elevating the quality of visual XAI explanations.

Why it matters

For professionals developing or deploying AI in visual domains, accurate and trustworthy explanations are crucial for debugging, auditing, and building user confidence. Improving XAI methods directly enhances the utility and reliability of these systems.

How to implement this in your domain

  1. 1Review current XAI practices for image-based AI models within your organization.
  2. 2Investigate the integration of generative inpainting techniques into existing perturbation-based XAI tools like LIME.
  3. 3Pilot the enhanced XAI method on a specific image classification or object detection task.
  4. 4Compare the explanation quality and interpretability against traditional perturbation methods.
  5. 5Train AI development teams on best practices for generating high-quality, photorealistic perturbations for XAI.

Who benefits

Computer VisionAutonomous VehiclesHealthcare (Medical Imaging)RetailSecurity

Key takeaways

  • Traditional XAI perturbation methods can generate unrealistic, misleading samples.
  • Generative inpainting can create photorealistic perturbations for XAI.
  • This improves explanation quality for complex image-based AI models.
  • Enhanced XAI leads to more trustworthy and reliable AI systems.

Original post by Josef Lindl, Mariana Chaves, Damien Garreau

"arXiv:2607.15482v1 Announce Type: new Abstract: The increasing complexity of state-of-the-art machine learning models has made their behavior progressively harder to interpret, spurring rapid advancements in the field of eXplainable Artificial Intelligence (XAI). Among many metho…"

View on X

Originally posted by Josef Lindl, Mariana Chaves, Damien Garreau on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses