Explaining Neural Matrix Factorization with Gradient Rollback

Carolin Lawrence, Timo Sztyler, Mathias Niepert
10/12/2020
cs.LGcs.AIstat.ML

Official code: carolinlawrence/gradient-rollback (21 stars, Python, last commit 2021-03-16).

Abstract

Explaining the predictions of neural black-box models is an important problem, especially when such models are used in applications where user trust is crucial. Estimating the influence of training examples on a learned neural model's behavior allows us to identify training examples most responsible for a given prediction and, therefore, to faithfully explain the output of a black-box model.

Show full abstract

The most generally applicable existing method is based on influence functions, which scale poorly for larger sample sizes and models. We propose gradient rollback, a general approach for influence estimation, applicable to neural models where each parameter update step during gradient descent touches a smaller number of parameters, even if the overall number of parameters is large. Neural matrix factorization models trained with gradient descent are part of this model class. These models are popular and have found a wide range of applications in industry. Especially knowledge graph embedding methods, which belong to this class, are used extensively. We show that gradient rollback is highly efficient at both training and test time. Moreover, we show theoretically that the difference between gradient rollback's influence approximation and the true influence on a model's behavior is smaller than known bounds on the stability of stochastic gradient descent. This establishes that gradient rollback is robustly estimating example influence. We also conduct experiments which show that gradient rollback provides faithful explanations for knowledge base completion and recommender datasets.

View on arXivView PDF

Code Implementations(1)

Code for gradient rollback, which explains predictions of neural matrix factorization models, as for example used for knowledge base completion.

212Python, ShellOct 19, 20205 years agoNOASSERTION

Similar Papers

Cite this paper

@article{lawrence2020explaining,
  title  = {Explaining Neural Matrix Factorization with Gradient Rollback},
  author = {Carolin Lawrence and Timo Sztyler and Mathias Niepert},
  year   = {2020},
  eprint = {2010.05516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.05516}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.05516.svg)](https://codeofpaper.com/paper/2010.05516)

Discussion