Abstract
The field of explainable artificial intelligence (XAI) aims to uncover the inner workings of complex deep neural models. While being crucial for safety-critical domains, XAI inherently lacks ground-truth explanations, making its automatic evaluation an unsolved problem. We address this challenge by proposing a novel synthetic vision dataset, named FunnyBirds, and accompanying automatic evaluation protocols. Our dataset allows performing semantically meaningful image interventions, e.g., removing individual object parts, which has three important implications. First, it enables analyzing explanations on a part level, which is closer to human comprehension than existing methods that evaluate on a pixel level. Second, by comparing the model output for inputs with removed parts, we can estimate ground-truth part importances that should be reflected in the explanations. Third, by mapping individual explanations into a common space of part importances, we can analyze a variety of different explanation types in a single common framework. Using our tools, we report results for 24 different combinations of neural models and XAI methods, demonstrating the strengths and weaknesses of the assessed methods in a fully automatic and systematic manner.
Introduction
Evaluating Explainable AI (XAI) is notoriously difficult because we rarely have a "ground truth" for what a model should be looking at. Deep learning models are often "black boxes," and while XAI methods try to open them by highlighting influential image regions, verifying these explanations is a circular problem. Current evaluation techniques usually rely on "pixel-level interventions"—deleting random pixels to see if the model's confidence drops. However, this approach suffers from two major flaws: domain shift, where deleting pixels creates unnatural images outside the training distribution, and the semantic gap, as humans think in terms of concepts (e.g., "beak") rather than individual pixels.
The FunnyBirds Framework
To bridge this gap, we propose a framework that shifts the focus from pixels to semantically meaningful parts. The core of this approach is the use of interface functions that map various XAI explanation types—such as heatmaps, prototypes, or counterfactuals—into a common space of Part Importance (PI). For instance, a heatmap's importance for a specific part is calculated as the sum of all attribution values within that part's mask.
We define five core dimensions for evaluating explainability, visualized in radar charts:
- Accuracy (Acc.): Standard model classification performance.
- Background Independence (B.I.): The extent to which the model ignores background information.
- Completeness (Com.): Whether the explanation highlights all parts necessary for the prediction.
- Correctness (Cor.): Whether the explanation correctly ranks which parts are most important, verified by comparing XAI output to the actual model performance drop when a part is removed.
- Contrastivity (Con.): The ability of the explanation to distinguish between the target class and a similar distractor class.
The FunnyBirds Dataset
The FunnyBirds dataset is a synthetic vision dataset consisting of 50,000 training and 500 test images across 50 bird species. Inspired by the CUB-200-2011 dataset, it is built using a 3D engine, allowing for pixel-perfect control over five functional parts: beak, wings, feet, eyes, and tail. Because the dataset is synthetic, we can perform "clean" interventions by rendering birds without specific parts, avoiding the artifacts associated with pixel-masking.
Results and Analysis
We evaluated 24 combinations of neural models (ResNet-50, VGG16, ViT-B/16) and XAI methods (including Grad-CAM, Integrated Gradients, RISE, and LIME).
Key findings include:
- Architectural Influence: BagNet, which classifies based on local patches, achieved the highest explainability scores due to its naturally transparent internal structure. VGG16 generally proved more "explainable" than ResNet-50, suggesting simpler architectures may be easier for current XAI tools to parse.
- The Correctness Crisis: Most XAI methods struggled with "Correctness." While they identify relevant areas, they are often poor at accurately ranking the relative importance of those parts.
- Method Robustness: Integrated Gradients (IG) emerged as the most robust model-agnostic method. Conversely, LIME was particularly weak in communicating meaningful importance scores.
- Interpretable-by-Design Failures: Analysis of ProtoPNet revealed that its "prototypes" often do not correspond to single bird parts, frequently focusing on background noise instead. Similarly, counterfactual explanations often suggested semantically nonsensical swaps.
Conclusion
While the synthetic nature of FunnyBirds means the results may not perfectly translate to high-texture natural images, it provides a vital "laboratory" for the systematic vetting of XAI methods. Future work will aim to expand this framework to include dimensions like compactness and continuity, further refining our ability to evaluate how well AI models communicate their reasoning to humans.
Summary updated