mlsanityData to 14 Oct 2026

Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMs

arXiv 2512.05648 ↗First posted 5 Dec 2025cs.LGcited by 11

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

  1. 2025Redirection for Erasing Memory (REM): Towards a universal unlearning method for corrupted data23 May
  2. 2025Open Problems in Machine Unlearning for AI Safety9 Jan
  3. 2024Do Unlearning Methods Remove Information from Language Model Weights?11 Oct
  4. 2024An Adversarial Perspective on Machine Unlearning for AI Safety26 Sep
  5. 2024UnUnlearning: Unlearning is not sufficient for content regulation in advanced generative AI27 Jun
  6. 2024Unlearning or Obfuscating? Jogging the Memory of Unlearned LLMs via Benign Relearning19 Jun
  7. 2024Eight Methods to Evaluate Robust Unlearning in LLMs26 Feb
  8. 2024Towards Safer Large Language Models through Machine Unlearning15 Feb
  9. 2024Rethinking Machine Unlearning for Large Language Models13 Feb
  10. 2023Large Language Model Unlearning14 Oct

Other references · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  3. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  4. 2025Gemma 3 Technical Reportcited by 1,824
  5. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
  6. 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
  7. 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
  8. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
  9. 2015Neural Module Networkscited by 376
  10. 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
  11. 2020Data and its (dis)contents: A survey of dataset development and use in machine learning researchcited by 260
  12. 2024A Survey on Data Selection for Language Modelscited by 236
20 more
  1. 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 199
  2. 2023LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70Bcited by 195
  3. 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
  4. 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 132
  5. 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 90
  6. 2023Modular Deep Learningcited by 83
  7. 2024Does Refusal Training in LLMs Generalize to the Past Tense?cited by 79
  8. 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplescited by 72
  9. 2024Refusal-Trained LLMs Are Easily Jailbroken As Browser Agentscited by 65
  10. 2018Modular Networks: Learning to Decompose Neural Computationcited by 62
  11. 2018Modular meta-learningcited by 51
  12. 2023Adversarial Attacks and Defenses in Large Language Models: Old and New Threatscited by 49
  13. 2025Safety Pretraining: Toward the Next Generation of Safe AIcited by 43
  14. 2025Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMscited by 42
  15. 2024Gradient Routing: Masking Gradients to Localize Computation in Neural Networkscited by 34
  16. 2024Knowledge Entropy Decay during Language Model Pretraining Hinders New Knowledge Acquisitioncited by 16
  17. 2025STACK: Adversarial Attacks on LLM Safeguard Pipelinescited by 14
  18. 2025When Bad Data Leads to Good Modelscited by 11
  19. 2024Prioritizing High-Consequence Biological Capabilities in Evaluations of Artificial Intelligence Modelscited by 10
  20. 2025Memorization Sinks: Isolating Memorization during LLM Trainingcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 11.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Machine Unlearning in Large Language Models
  2. 2025GRAIL: Gradient-Based Adaptive Unlearning for Privacy and Copyright in LLMs
  3. 2025LLM Unlearning using Gradient Ratio-Based Influence Estimation and Noise Injection
  4. 2024LLM Surgery: Efficient Knowledge Unlearning and Editing in Large Language Models
  5. 2025SoK: Machine Unlearning for Large Language Models
  6. 2025If It's Nice, Do It Twice: We Should Try Iterative Corpus Curation
  7. 2025Scalable and Robust LLM Unlearning by Correcting Responses with Retrieved Exclusions
  8. 2024Targeted Angular Reversal of Weights (TARS) for Knowledge Removal in Large Language Models