Papers › The elephant in the interpretability room: Why use attention as explanation when we...

The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?

12 Oct 2020EMNLP (BlackboxNLP) 2020 11arXiv:2010.05607archive 2025-07-28

Jasmijn Bastings, Katja Filippova

There is a recent surge of interest in using attention as explanation of model predictions, with mixed evidence on whether attention can be used as such. While attention conveniently gives us one weight per input token and is easily extracted, it is often unclear toward what goal it is used as explanation. We find that often that goal, whether explicitly stated or not, is to find out what input tokens are the most relevant to a prediction, and that the implied user for the explanation is a model developer. For this goal and user, we argue that input saliency methods are better suited, and that there are no compelling reasons to use attention, despite the coincidence that it provides a weight for each input. With this position paper, we hope to shift some of the recent focus on attention to saliency methods, and for authors to clearly state the goal and user for their explanations.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2010.05607")

Code

Syntology Ran 7 of 16 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · honoured contract; 6 ran · our draft was wrong.

By repository: community (archive-listed): 16 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jessevig/bertviz mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 7 ran; 1 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
6ran · our draft was wrong
9unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jessevig/bertviz. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

swish jessevig/bertviz/bertviz/transformers_neuron_view/modeling_bert.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 0f786c407fb1ee4c · report
build_tf_to_pytorch_map jessevig/bertviz/bertviz/transformers_neuron_view/modeling_transfo_xl.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 35ef111fc00c21b4 · report
format_special_chars jessevig/bertviz/bertviz/neuron_view.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 11442089a6433797 · report
gelu jessevig/bertviz/bertviz/transformers_neuron_view/modeling_bert.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · fdc64f4c72036ae4 · report
load_tf_weights_in_bert jessevig/bertviz/bertviz/transformers_neuron_view/modeling_bert.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 0c145728a35789fa · report
prune_linear_layer jessevig/bertviz/bertviz/transformers_neuron_view/modeling_utils.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · d30d6c3098df2c42 · report
sample_logits jessevig/bertviz/bertviz/transformers_neuron_view/modeling_transfo_xl_utilities.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 93228a3eb5c4d179 · report
build_tf_xlnet_to_pytorch_map jessevig/bertviz/bertviz/transformers_neuron_view/modeling_xlnet.py community (archive-listed) unverified Apache-2.0 (permissive) · c92ba449e48ecffe · report
get_attention jessevig/bertviz/bertviz/neuron_view.py community (archive-listed) unverified Apache-2.0 (permissive) · d4eae117e16a3f41 · report
get_masks jessevig/bertviz/bertviz/transformers_neuron_view/modeling_xlm.py community (archive-listed) unverified Apache-2.0 (permissive) · f5d8d44f65a08b76 · report
load_tf_weights_in_gpt2 jessevig/bertviz/bertviz/transformers_neuron_view/modeling_gpt2.py community (archive-listed) unverified Apache-2.0 (permissive) · 654e91efc679fe84 · report
load_tf_weights_in_openai_gpt jessevig/bertviz/bertviz/transformers_neuron_view/modeling_openai.py community (archive-listed) unverified Apache-2.0 (permissive) · 42ee168c3ae12e60 · report
load_tf_weights_in_transfo_xl jessevig/bertviz/bertviz/transformers_neuron_view/modeling_transfo_xl.py community (archive-listed) unverified Apache-2.0 (permissive) · 23d246e59ef9447b · report
load_tf_weights_in_xlnet jessevig/bertviz/bertviz/transformers_neuron_view/modeling_xlnet.py community (archive-listed) unverified Apache-2.0 (permissive) · 4a94662ff3b5c5cf · report
prune_conv1d_layer jessevig/bertviz/bertviz/transformers_neuron_view/modeling_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 7183a17dd79327a8 · report
prune_layer jessevig/bertviz/bertviz/transformers_neuron_view/modeling_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · e31093ffc8275cff · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections