TL;DR
This paper tackles the overlooked challenge of explainability in Monocular Depth Estimation (MDE) models, which are critical for safety-sensitive applications like autonomous driving. The authors evaluate classic feature attribution methods on both deep and lightweight MDE networks and introduce Attribution Fidelity (AF), a novel evaluation metric designed specifically to measure how accurately these explanations reflect a model's true decision-making process.
What Problem Does This Paper Address?
Deep learning models for Monocular Depth Estimation (MDE)—predicting a 3D depth map from a single 2D image—are increasingly deployed in robotics and self-driving cars. Despite their widespread use, these models remain "black boxes."
While Explainable AI (XAI) has advanced significantly for tasks like image classification, explaining dense, pixel-wise prediction tasks like MDE is much harder. In classification, feature importance is often concentrated around a single "class token." In MDE, every input pixel potentially influences the depth prediction of every other pixel, making feature information highly sparse and interdependent. Furthermore, existing XAI evaluation metrics (like the Faithfulness Estimate) fail to reliably assess MDE explanations because they don't properly account for how dense pixel perturbations impact the final continuous depth map.
Methods
The authors investigate three well-established input feature attribution methods to see how well they translate to MDE:
- Saliency Maps: A gradient-based method computing the gradient of the model’s output with respect to the input.
- Integrated Gradients: A method that integrates gradients along a path from a baseline (e.g., a black image) to the input image.
- Attention Rollout: A transformer-specific method that aggregates attention weights across multiple layers.
They test these methods across two structurally distinct MDE models: PixelFormer (a deep, full-transformer architecture) and METER (a lightweight, hybrid Vision Transformer designed for edge devices).
To evaluate the quality of the generated visual explanations, the authors use a perturbation framework:
They mask or corrupt (using black masks, Gaussian noise, or FGSM adversarial attacks) the most relevant vs. least relevant pixels. If an XAI method is accurate, perturbing "highly relevant" pixels should drastically degrade the depth map prediction, while perturbing "irrelevant" pixels should have minimal impact.
Crucially, they introduce a new metric called Attribution Fidelity (AF): $$AF = \frac{|d(f(x_{rel}), f(x))| - |d(f(x_{irr}), f(x))|}{|d(f(x_{rel}), f(x))| + |d(f(x_{irr}), f(x))|}$$ Normalized between -1 and 1, a score close to 1 means the identified relevant pixels are vastly more impactful than the irrelevant ones, validating the explanation.
Datasets
The models were evaluated using the large-scale NYU Depth V2 dataset, specifically utilizing its standard test set consisting of 654 indoor images with corresponding ground-truth depth maps.
Key Insights and Ideas
- No One-Size-Fits-All XAI: Different network architectures pair better with different explainability methods. Simple gradient-based Saliency Maps provided the most reliable explanations for the lightweight METER model, whereas the more complex Integrated Gradients method performed best on the deep PixelFormer model.
- The Flaw in Traditional Metrics: Traditional metrics like the Faithfulness Estimate (FE) calculate correlation across all pixels, including intermediate ones. The authors demonstrate that this can yield deceptively high scores even when an XAI method fails to cleanly separate the most critical features from the least critical ones.
- AF Captures the Nuance: Attribution Fidelity successfully identifies when an explainability method is truly working by focusing strictly on the extremes (most vs. least relevant) and accounting for the actual magnitude of the resulting depth errors.
Key Results
- METER Performance: Saliency Maps combined with a 1% Gaussian noise perturbation achieved the highest Attribution Success Rate (ASR of 0.97) and an AF of 0.49.
- PixelFormer Performance: Integrated Gradients paired with a 1% black mask perturbation achieved a perfect ASR of 1.00 and the highest AF of 0.56.
- Metric Comparison: As seen in the paper's qualitative analysis, traditional metrics can conflict. For instance, an explanation on PixelFormer yielded a very high Faithfulness Estimate (FE = 0.93), but the new AF metric correctly flagged it as a weak explanation (AF = 0.06) because the actual difference in impact between the "relevant" and "irrelevant" pixels was negligible.
Limitations and Future Work
While the paper successfully introduces a more rigorous way to evaluate MDE explainability, it is currently limited to indoor scenes via the NYU Depth V2 dataset. The authors note that future work will include expanding this evaluation framework to outdoor datasets (crucial for autonomous driving) and testing a wider variety of image perturbation attacks to further validate the robustness of the Attribution Fidelity metric.
Summary updated