Detecting and Filtering Unsafe Training Data via Data Attribution with Denoised Representation
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
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 580
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 496
- 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 349
12 more
- 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 231
- 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 136
- 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 118
- 2024Cognitive Bias in Decision-Making with LLMscited by 106
- 2024GradSafe: Detecting Jailbreak Prompts for LLMs via Safety-Critical Gradient Analysiscited by 96
- 2023Instructed to Bias: Instruction-Tuned Language Models Exhibit Emergent Cognitive Biascited by 53
- 2022PromDA: Prompt-based Data Augmentation for Low-Resource NLU Taskscited by 51
- 2021An Empirical Comparison of Instance Attribution Methods for NLPcited by 35
- 2024How Susceptible are Large Language Models to Ideological Manipulation?cited by 26
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attackscited by 9
- 2024Lightweight Safety Guardrails Using Fine-tuned BERT Embeddingscited by 8
- 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
Citing papers per year: 2025: 8; 2026: 1.
9 papers.
- 2025Layer-Aware Representation Filtering: Purifying Finetuning Data to Preserve LLM Safety Alignmentcited by 24
- 2025Are Vision-Language Models Safe in the Wild? A Meme-Based Benchmark Studycited by 12
- 2025Distillation Robustifies Unlearningcited by 11
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2025The Geometry of Harmfulness in LLMs through Subconcept Probingcited by 7
- 2025DATE-LM: Benchmarking Data Attribution Evaluation for Large Language Modelscited by 5
- 2025Scalable Valuation of Human Feedback through Provably Robust Model Alignmentcited by 4
- 2025Low-Perplexity LLM-Generated Sequences and Where To Find Themcited by 1
- 2026Measuring Task-Agnostic Training Data Influence Across Language Model Pretrainingcited by 1
- 2026Measuring Task-Agnostic Training Data Influence Across Language Model Pretraining13 Aug 2026
- 2025Layer-Aware Representation Filtering: Purifying Finetuning Data to Preserve LLM Safety Alignment24 Jul 2025
- 2025The Geometry of Harmfulness in LLMs through Subconcept Probing23 Jul 2025
- 2025DATE-LM: Benchmarking Data Attribution Evaluation for Large Language Models12 Jul 2025
- 2025Low-Perplexity LLM-Generated Sequences and Where To Find Them2 Jul 2025
- 2025Distillation Robustifies Unlearning6 Jun 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025Scalable Valuation of Human Feedback through Provably Robust Model Alignment23 May 2025
- 2025Are Vision-Language Models Safe in the Wild? A Meme-Based Benchmark Study21 May 2025
Similar, not cited
Close in wording, no citation either way
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection
- 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptions
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning
- 2025If It's Nice, Do It Twice: We Should Try Iterative Corpus Curation
- 2023Detecting Pretraining Data from Large Language Models
- 2023Unmasking and Improving Data Credibility: A Study with Datasets for Training Harmless Language Models
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curation
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models