mlsanityData to 14 Oct 2026

Detecting and Filtering Unsafe Training Data via Data Attribution with Denoised Representation

arXiv 2502.11411 ↗First posted 17 Feb 2025cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) are highly sensitive to even small amounts of unsafe training data, making effective detection and filtering essential for trustworthy model development. Current state-of-the-art (SOTA) detection approaches primarily rely on moderation classifiers, which require significant computation overhead for training and are limited to predefined taxonomies. In this work, we explore data attribution approaches that measure the similarity between individual training samples and a small set of unsafe target examples, based on data representations such as hidden states or gradients. We identify a key limitation in existing methods: unsafe target texts contain both critical tokens that make them unsafe and neutral tokens (e.g., stop words or benign facts) that are necessary to form fluent language, and the latter of which makes the overall representations ``noisy'' for the purpose of detecting unsafe training data. To address this challenge, we propose Denoised Representation Attribution (DRA), a novel representation-based data attribution approach that denoises training and target representations for unsafe data detection. Across tasks of filtering jailbreaks and detecting gender bias, the proposed approach leads to significant improvement for data attribution methods, outperforming SOTA methods that are mostly based on moderation classifiers.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 24 of its 39 references that are in the map. First posted on arXiv 17 Feb 2025.

Builds on

24 of 39 references.

References · 24

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  4. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  5. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
  6. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
  7. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
  8. 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 580
  9. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
  10. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
  11. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 496
  12. 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 349
12 more
  1. 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 231
  2. 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 136
  3. 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 118
  4. 2024Cognitive Bias in Decision-Making with LLMscited by 106
  5. 2024GradSafe: Detecting Jailbreak Prompts for LLMs via Safety-Critical Gradient Analysiscited by 96
  6. 2023Instructed to Bias: Instruction-Tuned Language Models Exhibit Emergent Cognitive Biascited by 53
  7. 2022PromDA: Prompt-based Data Augmentation for Low-Resource NLU Taskscited by 51
  8. 2021An Empirical Comparison of Instance Attribution Methods for NLPcited by 35
  9. 2024How Susceptible are Large Language Models to Ideological Manipulation?cited by 26
  10. 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attackscited by 9
  11. 2024Lightweight Safety Guardrails Using Fine-tuned BERT Embeddingscited by 8
  12. 2025Digital Guardians: Can GPT-4, Perspective API, and Moderation API reliably detect hate speech in reader comments of German online newspapers?cited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 8; 2026: 1.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection
  2. 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptions
  3. 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning
  4. 2025If It's Nice, Do It Twice: We Should Try Iterative Corpus Curation
  5. 2023Detecting Pretraining Data from Large Language Models
  6. 2023Unmasking and Improving Data Credibility: A Study with Datasets for Training Harmless Language Models
  7. 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curation
  8. 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models