English

Riemann Sum Optimization for Accurate Integrated Gradients Computation

Machine Learning 2025-01-07 v2 Artificial Intelligence Optimization and Control

Abstract

Integrated Gradients (IG) is a widely used algorithm for attributing the outputs of a deep neural network to its input features. Due to the absence of closed-form integrals for deep learning models, inaccurate Riemann Sum approximations are used to calculate IG. This often introduces undesirable errors in the form of high levels of noise, leading to false insights in the model's decision-making process. We introduce a framework, RiemannOpt, that minimizes these errors by optimizing the sample point selection for the Riemann Sum. Our algorithm is highly versatile and applicable to IG as well as its derivatives like Blur IG and Guided IG. RiemannOpt achieves up to 20% improvement in Insertion Scores. Additionally, it enables its users to curtail computational costs by up to four folds, thereby making it highly functional for constrained environments.

Keywords

Cite

@article{arxiv.2410.04118,
  title  = {Riemann Sum Optimization for Accurate Integrated Gradients Computation},
  author = {Swadesh Swain and Shree Singhi},
  journal= {arXiv preprint arXiv:2410.04118},
  year   = {2025}
}

Comments

Accepted at Interpretable AI: Past, Present and Future Workshop at NeurIPS 2024

R2 v1 2026-06-28T19:09:41.509Z