Papers › Latent Concept-based Explanation of NLP Models

Latent Concept-based Explanation of NLP Models

18 Apr 2024arXiv:2404.12545archive 2025-07-28

Xuemin Yu, Fahim Dalvi, Nadir Durrani, Marzia Nouri, Hassan Sajjad

Interpreting and understanding the predictions made by deep learning models poses a formidable challenge due to their inherently opaque nature. Many previous efforts aimed at explaining these predictions rely on input features, specifically, the words within NLP models. However, such explanations are often less informative due to the discrete nature of these words and their lack of contextual verbosity. To address this limitation, we introduce the Latent Concept Attribution method (LACOAT), which generates explanations for predictions based on latent concepts. Our foundational intuition is that a word can exhibit multiple facets, contingent upon the context in which it is used. Therefore, given a word in context, the latent space derived from our training process reflects a specific facet of that word. LACOAT functions by mapping the representations of salient input words into the training latent space, allowing it to provide latent context-based explanations of the prediction.

PaperPDFCodeCode 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="2404.12545")

Code

Syntology Ran 14 of 15 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 14 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xuemin-yu/eraser_movie_latentconcept officialmentioned in paper 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

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

14ran
1unverified

Licence: 15 of the 15 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 xuemin-yu/eraser_movie_latentconcept. “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.

casing_preprocess xuemin-yu/eraser_movie_latentconcept/src/clustering/align_with_auto_tags.py official repository ran fingerprinted no licence file found · pointer only · 25b8350702132a9d · report
decision_fn_max_score xuemin-yu/eraser_movie_latentconcept/src/clustering/align_with_auto_tags.py official repository ran no licence file found · pointer only · 6339ec10df36c250 · report
decision_fn_ngram xuemin-yu/eraser_movie_latentconcept/src/clustering/align_with_auto_tags.py official repository ran no licence file found · pointer only · b9034e0f8f83d734 · report
format_predictions xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/logistic_regression.py official repository ran no licence file found · pointer only · fa5d52299d5d9650 · report
gen_table xuemin-yu/eraser_movie_latentconcept/src/clustering/align_with_single_auto_tag.py official repository ran no licence file found · pointer only · cd915738179945fd · report
load_clusters xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/generate_csv_file.py official repository ran no licence file found · pointer only · a2fa23c0d48719d9 · report
load_dataset xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/generate_csv_file.py official repository ran no licence file found · pointer only · c25289c69d75070e · report
mapping_tokens_with_cluster_idx xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/generate_csv_file.py official repository ran no licence file found · pointer only · b83fa5669f72c171 · report
read_csv xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/get_prediction_stats.py official repository ran no licence file found · pointer only · f233a7d5a84d22fb · report
read_csv xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/split_dataset.py official repository ran no licence file found · pointer only · 0d5b1e57d0e3c988 · report
read_data xuemin-yu/eraser_movie_latentconcept/src/clustering/format_to_tsv.py official repository ran no licence file found · pointer only · 1d95d4546246c8f0 · report
read_ids xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/split_dataset.py official repository ran no licence file found · pointer only · b3b80ada235a5597 · report
split_dataset xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/split_dataset.py official repository ran no licence file found · pointer only · eb96f8c05768ff87 · report
train_classifier xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/logistic_regression.py official repository ran no licence file found · pointer only · 65765821d1790f91 · report
validate_classifier xuemin-yu/eraser_movie_latentconcept/src/classifier_mapping/logistic_regression.py official repository unverified no licence file found · pointer only · 0d0b2efe4922d323 · 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