SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.09209 · 2026

UNMASK: Discovering and Causally Verifying Spurious Shortcuts in Text Classifiers

Chidaksh Ravuru, Shashank Srivastava

arXiv · PDF · Open in the Atlas

Code that ran

19 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 17 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.09209.json · badge: /api/ran/2608.09209.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
chidaksh/spurious_mitigator canonical (classifier label)
classifier basis: census
19 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_projection Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/leace_debiasing.py
pointer only (licence: NONE) · get_code("c10ca20cf0e6c092")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collate_fn Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/causal_verify_api.py
pointer only (licence: NONE) · get_code("cf80248c006d1518")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_wga Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/wga_eval.py
pointer only (licence: NONE) · get_code("c9a41ddedc1aa384")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_wga_from_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chidaksh/spurious_mitigator/src/civil_comments/wga_eval.py
pointer only (licence: NONE) · get_code("b5fe54310590a814")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_json_from_response Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/spurfinder.py
pointer only (licence: NONE) · get_code("1c5f92e05358422f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_attempt_history Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/counterfactual_generation_api.py
pointer only (licence: NONE) · get_code("ef6260c92837803a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_examples Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/spurfinder.py
pointer only (licence: NONE) · get_code("a6b58c277a2168ed")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_features_block Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/counterfactual_generation_api.py
pointer only (licence: NONE) · get_code("043dea87f7631f40")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_all_by_label Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/sampler.py
pointer only (licence: NONE) · get_code("ea51126547b78b34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_config Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/causal_verify_api.py
pointer only (licence: NONE) · get_code("8ef925c2438b8efa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_config Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/dfr_programmatic.py
pointer only (licence: NONE) · get_code("3ea6e34770a4252b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_dataset Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/causal_verify_api.py
pointer only (licence: NONE) · get_code("d1ff26d0c48b7d7c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_exploited_features Ran
ran, honoured the contract we drafted
chidaksh/spurious_mitigator/src/civil_comments/dfr_programmatic.py
pointer only (licence: NONE) · get_code("c561113177535bf8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_feature_defs Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/dfr_programmatic.py
pointer only (licence: NONE) · get_code("d8c94dbbc03bf573")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

model_id_to_base Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/dfr_mining.py
pointer only (licence: NONE) · get_code("6821806dfb442fd7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_label Ran
ran, honoured the contract we drafted
chidaksh/spurious_mitigator/src/civil_comments/dfr_mining.py
pointer only (licence: NONE) · get_code("5173cf23b452f023")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_json_response Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/counterfactual_generation_api.py
pointer only (licence: NONE) · get_code("2144f4386daf0e96")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_prompt Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/spurfinder.py
pointer only (licence: NONE) · get_code("995d99f342d7b16d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_random Ran
ran; our contract draft was wrong, not the code
chidaksh/spurious_mitigator/src/civil_comments/sampler.py
pointer only (licence: NONE) · get_code("dcff32706e95efb8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_post_hoc_probe_accuracy Not yet run
unverified (harvested, no recorded run)
chidaksh/spurious_mitigator/src/civil_comments/leace_debiasing.py
pointer only (licence: NONE) · get_code("cde2df1dc269279d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

fit_composed_leace_projection Not yet run
unverified (harvested, no recorded run)
chidaksh/spurious_mitigator/src/civil_comments/leace_debiasing.py
pointer only (licence: NONE) · get_code("a608b8513a849d45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chidaksh/spurious_mitigator when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 21 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 UNMASK, a fully automated pipeline that discovers, causally verifies, and mitigates spurious correlations in text classifiers without additional human annotation. Given unlabeled training examples, UNMASK 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% worstgroup 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.09209")
get_code_for_paper("2608.09209")
have("2608.09209")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.09209.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.09209.svg)](https://syntology.ai/paper/2608.09209)

Connect an agent — have() is free.