Papers › Evaluation of Similarity-based Explanations

Evaluation of Similarity-based Explanations

8 Jun 2020ICLR 2021 1arXiv:2006.04528archive 2025-07-28

Kazuaki Hanawa, Sho Yokoi, Satoshi Hara, Kentaro Inui

Explaining the predictions made by complex machine learning models helps users to understand and accept the predicted outputs with confidence. One promising way is to use similarity-based explanation that provides similar instances as evidence to support model predictions. Several relevance metrics are used for this purpose. In this study, we investigated relevance metrics that can provide reasonable explanations to users. Specifically, we adopted three tests to evaluate whether the relevance metrics satisfy the minimal requirements for similarity-based explanation. Our experiments revealed that the cosine similarity of the gradients of the loss performs best, which would be a recommended choice in practice. In addition, we showed that some metrics perform poorly in our tests and analyzed the reasons of their failure. We expect our insights to help practitioners in selecting appropriate relevance metrics and also aid further researches for designing better relevance metrics for 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="2006.04528")

Code

Syntology Ran 0 of 16 code samples harvested from 2 repositories linked to this paper; 16 have no recorded run.

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

k-hanawa/criteria_for_instance_based_explanation officialmentioned in papermentioned on GitHubpytorchMIT report
rbitr/pytkml mentioned on GitHubpytorchMIT 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; 0 ran; 0 honoured the contract we drafted; 16 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.

16unverified

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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

cossim k-hanawa/criteria_for_instance_based_explanation/src/metrics.py official repository unverified MIT (permissive) · fe4a8d068a98b3cb · report
flatten k-hanawa/criteria_for_instance_based_explanation/src/torch/mobilenetv2.py official repository unverified MIT (permissive) · e19548528043a985 · report
get_cifar10_data k-hanawa/criteria_for_instance_based_explanation/src/get_dataset.py official repository unverified MIT (permissive) · d79d6438697e1ed3 · report
get_mnist_data k-hanawa/criteria_for_instance_based_explanation/src/get_dataset.py official repository unverified MIT (permissive) · 806006ec6b9a7c95 · report
get_trec_data k-hanawa/criteria_for_instance_based_explanation/src/get_dataset.py official repository unverified MIT (permissive) · fbab2ae0bfd9ace7 · report
influence_dot k-hanawa/criteria_for_instance_based_explanation/src/metrics.py official repository unverified MIT (permissive) · 1918e0892fcf567b · report
l2sim k-hanawa/criteria_for_instance_based_explanation/src/metrics.py official repository unverified MIT (permissive) · 5559c3b944f881f0 · report
make_dataloaders k-hanawa/criteria_for_instance_based_explanation/src/torch/mobilenetv2.py official repository unverified MIT (permissive) · 9967ce3a4eaa3100 · report
mobilenet_v2 k-hanawa/criteria_for_instance_based_explanation/src/torch/mobilenetv2.py official repository unverified MIT (permissive) · d1bf41dee7f45a7f · report
RandomSubsetLoader rbitr/pytkml/pytkml/core/dataloaders.py community (archive-listed) unverified MIT (permissive) · b4fab1a9ec540acb · report
argmax_reducer rbitr/pytkml/pytkml/core/processors.py community (archive-listed) unverified MIT (permissive) · 95ddf503955b614b · report
arrayToBase64IM rbitr/pytkml/pytkml/misc/logging.py community (archive-listed) unverified MIT (permissive) · e5f4ff718f6859ca · report
first_element_reducer rbitr/pytkml/pytkml/core/processors.py community (archive-listed) unverified MIT (permissive) · a1a1dfb1820e0b9f · report
first_element_reducerInt rbitr/pytkml/pytkml/core/processors.py community (archive-listed) unverified MIT (permissive) · 1e772e343910909d · report
get_entries rbitr/pytkml/pytkml/misc/logging.py community (archive-listed) unverified MIT (permissive) · 6b8474e9877e3a4b · report
renderLogAsHTML rbitr/pytkml/pytkml/misc/logging.py community (archive-listed) unverified MIT (permissive) · f6502b235ea0f868 · 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