English

Interpreting Neural Networks With Nearest Neighbors

Computation and Language 2018-11-08 v2

Abstract

Local model interpretation methods explain individual predictions by assigning an importance value to each input feature. This value is often determined by measuring the change in confidence when a feature is removed. However, the confidence of neural networks is not a robust measure of model uncertainty. This issue makes reliably judging the importance of the input features difficult. We address this by changing the test-time behavior of neural networks using Deep k-Nearest Neighbors. Without harming text classification accuracy, this algorithm provides a more robust uncertainty metric which we use to generate feature importance values. The resulting interpretations better align with human perception than baseline methods. Finally, we use our interpretation method to analyze model predictions on dataset annotation artifacts.

Keywords

Cite

@article{arxiv.1809.02847,
  title  = {Interpreting Neural Networks With Nearest Neighbors},
  author = {Eric Wallace and Shi Feng and Jordan Boyd-Graber},
  journal= {arXiv preprint arXiv:1809.02847},
  year   = {2018}
}

Comments

EMNLP 2018 BlackboxNLP

R2 v1 2026-06-23T03:58:59.089Z