Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMs
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Large Language Models increasingly possess capabilities that carry dual-use risks. While data filtering has emerged as a pretraining-time mitigation, it faces significant challenges: labeling whether data is harmful is expensive at scale, and given improving sample efficiency with larger models, even small amounts of mislabeled content could give rise to dangerous capabilities. To address risks associated with mislabeled harmful content, prior work proposed Gradient Routing (Cloud et al., 2024) -- a technique that localizes target knowledge into a dedicated subset of model parameters so they can later be removed. We explore an improved variant of Gradient Routing, which we call Selective GradienT Masking (SGTM), with particular focus on evaluating its robustness to label noise. SGTM zero-masks selected gradients such that target domain examples only update their dedicated parameters. We test SGTM's effectiveness in two applications: removing knowledge of one language from a model trained on a bilingual synthetic dataset, and removing biology knowledge from a model trained on English Wikipedia. In both cases SGTM provides better retain/forget trade-off in the presence of labeling errors compared to both data filtering and a previously proposed instantiation of Gradient Routing. Unlike shallow unlearning approaches that can be quickly undone through fine-tuning, SGTM exhibits strong robustness to adversarial fine-tuning, requiring seven times more fine-tuning steps to reach baseline performance on the forget set compared to a finetuning-based unlearning method (RMU). Our results suggest SGTM provides a promising pretraining-time complement to existing safety mitigations, particularly in settings where label noise is unavoidable.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 42 of its 57 references that are in the map. First posted on arXiv 5 Dec 2025.
Builds on
42 of 57 references.
Closest ancestors · 10
Same direction, newest first
- 2025Redirection for Erasing Memory (REM): Towards a universal unlearning method for corrupted data23 May
- 2025Open Problems in Machine Unlearning for AI Safety9 Jan
- 2024Do Unlearning Methods Remove Information from Language Model Weights?11 Oct
- 2024An Adversarial Perspective on Machine Unlearning for AI Safety26 Sep
- 2024UnUnlearning: Unlearning is not sufficient for content regulation in advanced generative AI27 Jun
- 2024Unlearning or Obfuscating? Jogging the Memory of Unlearned LLMs via Benign Relearning19 Jun
- 2024Eight Methods to Evaluate Robust Unlearning in LLMs26 Feb
- 2024Towards Safer Large Language Models through Machine Unlearning15 Feb
- 2024Rethinking Machine Unlearning for Large Language Models13 Feb
- 2023Large Language Model Unlearning14 Oct
Other references · 32
- 2017Attention Is All You Needcited by 60,361
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2025Gemma 3 Technical Reportcited by 1,824
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
- 2015Neural Module Networkscited by 376
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2020Data and its (dis)contents: A survey of dataset development and use in machine learning researchcited by 260
- 2024A Survey on Data Selection for Language Modelscited by 236
20 more
- 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 199
- 2023LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70Bcited by 195
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
- 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 132
- 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 90
- 2023Modular Deep Learningcited by 83
- 2024Does Refusal Training in LLMs Generalize to the Past Tense?cited by 79
- 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplescited by 72
- 2024Refusal-Trained LLMs Are Easily Jailbroken As Browser Agentscited by 65
- 2018Modular Networks: Learning to Decompose Neural Computationcited by 62
- 2018Modular meta-learningcited by 51
- 2023Adversarial Attacks and Defenses in Large Language Models: Old and New Threatscited by 49
- 2025Safety Pretraining: Toward the Next Generation of Safe AIcited by 43
- 2025Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMscited by 42
- 2024Gradient Routing: Masking Gradients to Localize Computation in Neural Networkscited by 34
- 2024Knowledge Entropy Decay during Language Model Pretraining Hinders New Knowledge Acquisitioncited by 16
- 2025STACK: Adversarial Attacks on LLM Safeguard Pipelinescited by 14
- 2025When Bad Data Leads to Good Modelscited by 11
- 2024Prioritizing High-Consequence Biological Capabilities in Evaluations of Artificial Intelligence Modelscited by 10
- 2025Memorization Sinks: Isolating Memorization during LLM Trainingcited by 7
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Shaping capabilities with token-level data filteringcited by 13
- 2026Self-Improving Pretraining: using post-trained models to pretrain better modelscited by 6
- 2026Modular Pretraining Enables Access Controlcited by 3
- 2026KUDA: Knowledge Unlearning by Deviating Representation for Large Language Modelscited by 2
- 2026Natively Unlearnable Large Language Modelscited by 2
- 2026Prototype Language Modelscited by 2
- 2026LACUNA: A Testbed for Evaluating Localization Precision for LLM Unlearningcited by 2
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflectioncited by 1
- 2026Entangled Representations Amplify Collateral Damage in Unlearningcited by 0
- 2026From Latents to Wires: Surgical Post-Editing on Large Language Modelscited by 0
- 2026Gradient Routing Localizes and Removes Unintended Behaviors in RLcited by 0
- 2026Gradient Routing Localizes and Removes Unintended Behaviors in RL12 Oct 2026
- 2026From Latents to Wires: Surgical Post-Editing on Large Language Models26 Sep 2026
- 2026Entangled Representations Amplify Collateral Damage in Unlearning2 Sep 2026
- 2026Modular Pretraining Enables Access Control9 Jul 2026
- 2026LACUNA: A Testbed for Evaluating Localization Precision for LLM Unlearning2 Jul 2026
- 2026Prototype Language Models1 Jul 2026
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection17 Jun 2026
- 2026Natively Unlearnable Large Language Models11 Jun 2026
- 2026KUDA: Knowledge Unlearning by Deviating Representation for Large Language Models22 Feb 2026
- 2026Shaping capabilities with token-level data filtering29 Jan 2026
- 2026Self-Improving Pretraining: using post-trained models to pretrain better models29 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2024Machine Unlearning in Large Language Models
- 2025GRAIL: Gradient-Based Adaptive Unlearning for Privacy and Copyright in LLMs
- 2025LLM Unlearning using Gradient Ratio-Based Influence Estimation and Noise Injection
- 2024LLM Surgery: Efficient Knowledge Unlearning and Editing in Large Language Models
- 2025SoK: Machine Unlearning for Large Language Models
- 2025If It's Nice, Do It Twice: We Should Try Iterative Corpus Curation
- 2025Scalable and Robust LLM Unlearning by Correcting Responses with Retrieved Exclusions
- 2024Targeted Angular Reversal of Weights (TARS) for Knowledge Removal in Large Language Models