English

Locally Aggregated Feature Attribution on Natural Language Model Understanding

Computation and Language 2022-04-27 v2 Artificial Intelligence

Abstract

With the growing popularity of deep-learning models, model understanding becomes more important. Much effort has been devoted to demystify deep neural networks for better interpretability. Some feature attribution methods have shown promising results in computer vision, especially the gradient-based methods where effectively smoothing the gradients with reference data is key to a robust and faithful result. However, direct application of these gradient-based methods to NLP tasks is not trivial due to the fact that the input consists of discrete tokens and the "reference" tokens are not explicitly defined. In this work, we propose Locally Aggregated Feature Attribution (LAFA), a novel gradient-based feature attribution method for NLP models. Instead of relying on obscure reference tokens, it smooths gradients by aggregating similar reference texts derived from language model embeddings. For evaluation purpose, we also design experiments on different NLP tasks including Entity Recognition and Sentiment Analysis on public datasets as well as key feature detection on a constructed Amazon catalogue dataset. The superior performance of the proposed method is demonstrated through experiments.

Keywords

Cite

@article{arxiv.2204.10893,
  title  = {Locally Aggregated Feature Attribution on Natural Language Model Understanding},
  author = {Sheng Zhang and Jin Wang and Haitao Jiang and Rui Song},
  journal= {arXiv preprint arXiv:2204.10893},
  year   = {2022}
}

Comments

NAACL 2022

R2 v1 2026-06-24T10:56:19.498Z