Decoding Layer Saliency in Language Transformers

Elizabeth M. Hou, Greg Castañón
8/1/2023
transformer-attention

No confident code implementation found for this paper.

Abstract

In this paper, we introduce a strategy for identifying textual saliency in large-scale language models applied to classification tasks. In visual networks where saliency is more well-studied, saliency is naturally localized through the convolutional layers of the network; however, the same is not true in modern transformer-stack networks used to process natural language.

Show full abstract

We adapt gradient-based saliency methods for these networks, propose a method for evaluating the degree of semantic coherence of each layer, and demonstrate consistent improvement over numerous other methods for textual saliency on multiple benchmark classification datasets. Our approach requires no additional training or access to labelled data, and is comparatively very computationally efficient.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hou2023decoding,
  title  = {Decoding Layer Saliency in Language Transformers},
  author = {Elizabeth M. Hou and Greg Castañón},
  year   = {2023},
  eprint = {2308.05219},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.05219},
  journal = {ICML 2023 2023}
}

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/2308.05219.svg)](https://codeofpaper.com/paper/2308.05219)

Discussion