Race / Ethnicity Hate-Symbol Counterfactual Pairs
3028 localized counterfactual image pairs. Each item is an ordinary scene containing one removable
hate symbol (graffiti, flag, patch, sticker) and a safe counterpart where that single symbol has been
inpainted away — everything else held fixed. For safety-alignment / concept-removal research.
Each panel reads original → mask → edit → diff:
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Why it is clean
A pair is only kept when a VLM confirms the symbol is present in the original and gone in the edit, the change
is tightly localized (pixels outside the mask unchanged, outside_diff_max ≈ 0), and the two images are the
same scene otherwise. Full metrics in results.csv; thresholds in run_config.json.
Columns
original_unsafe · mask · safe_edit · diff · harvested_comment (real labelled source: DetonateT2I /
Measuring Hate Speech) · unsafe_prompt/safe_prompt · s_gap (CLIP safety separation) · clip_sep ·dino_sim (scene preservation) · edit_area_frac/mask_area_frac (localization).
Load
from datasets import load_dataset
ds = load_dataset("jk873/race-hate-symbol-cf", split="train")
ds[0]["original_unsafe"].show(); ds[0]["safe_edit"].show()
⚠️ Intended use & ethics
Contains depictions of hate symbols and real harvested hate speech, included only so models can learn to
recognize and remove them. Permitted use: safety research (concept removal, unlearning, detection, red-teaming).
Do not use to generate, amplify, or target anyone. The hate is always an isolated, removable object; the
people depicted are ordinary bystanders, never caricatured. No new hate was synthesized. Gated access recommended.
Citation
Companion dataset to an ICLR 2027 submission (SCFM, race/ethnicity class).





