Papers › UNMASK: Discovering and Causally Verifying Spurious Shortcuts in Text Classifiers

UNMASK: Discovering and Causally Verifying Spurious Shortcuts in Text Classifiers

10 Aug 2026arXiv:2608.09209added by Syntology

Chidaksh Ravuru, Shashank Srivastava

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Neural language models trained on large crowdsourced corpora frequently exploit spurious surface patterns tied to target labels without true linguistic or causal relevance, boosting benchmark performance while failing on adversarial or out-of-distribution inputs. Existing approaches either require manual specification of the feature vocabulary or automate discovery only partially, leaving the gap between dataset-level correlation and model-level exploitation unaddressed. We present U N M ASK, a fully automated pipeline that discovers, causally verifies, and mitigates spurious correlations in text classifiers without additional human annotation. Given unlabeled training examples, U N M ASK generates candidate surface patterns as executable boolean expressions, filters them through a statistical validation protocol with independent replication, and establishes causal model dependence via verified counterfactual interventions. Causally confirmed features then serve as annotation-free group definitions for Deep Feature Reweighting, eliminating the group labels that standard DFR requires. Applied to BERT and RoBERTa trained on MNLI, our pipeline independently rediscovers established lexical-overlap and negation biases, verifying 9 of 10 features on BERT and 6 on RoBERTa, and improving HANS accuracy by up to 12.58 pp. On CivilComments-WILDS, programmatic groups match the 70.1% worst- group accuracy of hand-labeled DFR (Kirichenko et al., 2023) without demographic annotation. We further demonstrate that the discovery and validation stages generalize to reward model preference data, surfacing interpretable spurious correlations in RewardBench2.

PaperPDFCode 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="2608.09209")

Code

Syntology Ran 19 of 21 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 19 ran with no contract checked.

By repository: found in paper text by Syntology: 21 samples from 1 repository, 19 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

chidaksh/spurious_mitigator found in paper text by Syntology report

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

21 samples harvested; 19 ran; 0 honoured the contract we drafted; 2 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.

19ran
2unverified

Licence: 21 of the 21 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 chidaksh/spurious_mitigator. “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.

apply_projection chidaksh/spurious_mitigator/src/civil_comments/leace_debiasing.py found in paper text by Syntology ran no licence file found · pointer only · c10ca20cf0e6c092 · report
collate_fn chidaksh/spurious_mitigator/src/civil_comments/causal_verify_api.py found in paper text by Syntology ran no licence file found · pointer only · cf80248c006d1518 · report
evaluate_wga chidaksh/spurious_mitigator/src/civil_comments/wga_eval.py found in paper text by Syntology ran no licence file found · pointer only · c9a41ddedc1aa384 · report
evaluate_wga_from_logits chidaksh/spurious_mitigator/src/civil_comments/wga_eval.py found in paper text by Syntology ran no licence file found · pointer only · b5fe54310590a814 · report
extract_json_from_response chidaksh/spurious_mitigator/src/civil_comments/spurfinder.py found in paper text by Syntology ran no licence file found · pointer only · 1c5f92e05358422f · report
format_attempt_history chidaksh/spurious_mitigator/src/civil_comments/counterfactual_generation_api.py found in paper text by Syntology ran no licence file found · pointer only · ef6260c92837803a · report
format_examples chidaksh/spurious_mitigator/src/civil_comments/spurfinder.py found in paper text by Syntology ran no licence file found · pointer only · a6b58c277a2168ed · report
format_features_block chidaksh/spurious_mitigator/src/civil_comments/counterfactual_generation_api.py found in paper text by Syntology ran no licence file found · pointer only · 043dea87f7631f40 · report
get_all_by_label chidaksh/spurious_mitigator/src/civil_comments/sampler.py found in paper text by Syntology ran no licence file found · pointer only · ea51126547b78b34 · report
load_config chidaksh/spurious_mitigator/src/civil_comments/causal_verify_api.py found in paper text by Syntology ran no licence file found · pointer only · 8ef925c2438b8efa · report
load_config chidaksh/spurious_mitigator/src/civil_comments/dfr_programmatic.py found in paper text by Syntology ran no licence file found · pointer only · 3ea6e34770a4252b · report
load_dataset chidaksh/spurious_mitigator/src/civil_comments/causal_verify_api.py found in paper text by Syntology ran no licence file found · pointer only · d1ff26d0c48b7d7c · report
load_exploited_features chidaksh/spurious_mitigator/src/civil_comments/dfr_programmatic.py found in paper text by Syntology ran no licence file found · pointer only · c561113177535bf8 · report
load_feature_defs chidaksh/spurious_mitigator/src/civil_comments/dfr_programmatic.py found in paper text by Syntology ran no licence file found · pointer only · d8c94dbbc03bf573 · report
model_id_to_base chidaksh/spurious_mitigator/src/civil_comments/dfr_mining.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 6821806dfb442fd7 · report
normalize_label chidaksh/spurious_mitigator/src/civil_comments/dfr_mining.py found in paper text by Syntology ran no licence file found · pointer only · 5173cf23b452f023 · report
parse_json_response chidaksh/spurious_mitigator/src/civil_comments/counterfactual_generation_api.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 2144f4386daf0e96 · report
prepare_prompt chidaksh/spurious_mitigator/src/civil_comments/spurfinder.py found in paper text by Syntology ran no licence file found · pointer only · 995d99f342d7b16d · report
sample_random chidaksh/spurious_mitigator/src/civil_comments/sampler.py found in paper text by Syntology ran no licence file found · pointer only · dcff32706e95efb8 · report
compute_post_hoc_probe_accuracy chidaksh/spurious_mitigator/src/civil_comments/leace_debiasing.py found in paper text by Syntology unverified no licence file found · pointer only · cde2df1dc269279d · report
fit_composed_leace_projection chidaksh/spurious_mitigator/src/civil_comments/leace_debiasing.py found in paper text by Syntology unverified no licence file found · pointer only · a608b8513a849d45 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2608.09209, was issued in August 2026, after that date, so the archive has no leaderboard rows for it.

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