Abstract
Feature attribution methods are essential for interpreting deep learning models, yet many existing techniques rely on arbitrary global baselines that can lead to misleading results. We present Local Path Integration (LPI), a novel attribution method that integrates gradients over paths defined by local data distributions. By utilizing local reference points instead of a single "zero" baseline, LPI satisfies the weak dependence property and avoids common pitfalls such as the "black pixel trap." Our evaluations on ImageNet demonstrate that LPI produces more reliable and cleaner saliency maps compared to state-of-the-art methods.
Introduction
Deep learning models are often criticized as "black boxes," particularly in high-stakes domains like medical imaging. Saliency maps, generated by feature attribution methods, aim to provide transparency by highlighting input features that most influence a model's prediction. However, popular path-based methods like Integrated Gradients (IG) often produce counter-intuitive results. These issues frequently stem from the choice of a "baseline" or "reference" image intended to represent the absence of features. Typically, a solid black image is used, which mathematically prevents the assignment of importance to black pixels in the input and forces the integration path through model regions far from the actual data distribution.
Methodology: Local Path Integration (LPI)
LPI addresses these limitations by shifting from global baselines to local neighborhoods. The method ensures that attribution reflects the model's behavior in the vicinity of the input, adhering to the theoretical property of weak dependence.
The LPI pipeline consists of three main stages:
- Logit Space Mapping: The training set is passed through the model to collect logit scores, which serve as a proxy for the model's perception of the data distribution.
- Neighborhood Clustering: K-means clustering is applied to these logit vectors to identify "functional neighborhoods" where the model exhibits similar behavior.
- Stochastic Integration: For a given input, LPI identifies its corresponding cluster and samples multiple reference images from this local neighborhood. Gradients are then integrated along the paths between the input and these local references.
Experimental Evaluation
The researchers evaluated LPI using the ImageNet 2012 validation set across VGG-16 and ResNet-34 architectures. They introduced DiffID (Difference between Insertion and Deletion games), a metric designed to mitigate the effects of distribution shift during pixel removal.
Quantitative Results
On ResNet-34, LPI achieved an Area Under the Curve (AUC) of 0.547 for the Insertion Game, outperforming IG (0.489) and Expected Gradients (EG, 0.526). Furthermore, LPI demonstrated superior sample efficiency, achieving higher AUC with only 5 gradient computations than EG achieved with 20.
Qualitative Analysis
Visual comparisons reveal that LPI produces significantly cleaner saliency maps. While IG often fails to attribute importance to dark object regions and EG tends to over-attribute background noise, LPI focuses precisely on the foreground object. As shown in the comparative figure, LPI's attribution map for the alligator image is more localized and representative of the object's features compared to the noisier maps of IG and EG.
Conclusion
Local Path Integration provides a more theoretically sound and practically effective approach to model interpretability. By grounding the attribution process in the local data distribution, LPI avoids the biases inherent in global baseline methods and offers a clearer window into the decision-making processes of deep visual models.
Summary updated