Unlearning Traces the Influential Training Data of Language Models
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Identifying the training datasets that influence a language model's outputs is essential for minimizing the generation of harmful content and enhancing its performance. Ideally, we can measure the influence of each dataset by removing it from training; however, it is prohibitively expensive to retrain a model multiple times. This paper presents UnTrac: unlearning traces the influence of a training dataset on the model's performance. UnTrac is extremely simple; each training dataset is unlearned by gradient ascent, and we evaluate how much the model's predictions change after unlearning. Furthermore, we propose a more scalable approach, UnTrac-Inv, which unlearns a test dataset and evaluates the unlearned model on training datasets. UnTrac-Inv resembles UnTrac, while being efficient for massive training datasets. In the experiments, we examine if our methods can assess the influence of pretraining datasets on generating toxic, biased, and untruthful content. Our methods estimate their influence much more accurately than existing methods while requiring neither excessive memory space nor multiple checkpoints.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 40 of its 56 references that are in the map. First posted on arXiv 26 Jan 2024.
Builds on
40 of 56 references.
Closest ancestors · 7
Same direction, newest first
- 2024TOFU: A Task of Fictitious Unlearning for LLMs11 Jan
- 2023Unlearn What You Want to Forget: Efficient Unlearning for LLMs31 Oct
- 2023KGA: A General Machine Unlearning Framework Based on Knowledge Gap Alignment11 May
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Models4 Oct
- 2022Deep Unlearning via Randomized Conditionally Independent Hessians15 Apr
- 2021Adaptive Machine Unlearning8 Jun
- 2021Remember What You Want to Forget: Algorithms for Machine Unlearning4 Mar
Other references · 33
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 657
21 more
- 2019Data Shapley: Equitable Valuation of Data for Machine Learningcited by 617
- 2019Eternal Sunshine of the Spotless Net: Selective Forgetting in Deep Networkscited by 599
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 565
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
- 2019Making AI Forget You: Data Deletion in Machine Learningcited by 447
- 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 419
- 2023Studying Large Language Model Generalization with Influence Functionscited by 311
- 2023TRAK: Attributing Model Behavior at Scalecited by 273
- 2023From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Modelscited by 257
- 2020Influence Functions in Deep Learning Are Fragilecited by 247
- 2018A Simple Method for Commonsense Reasoningcited by 223
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 180
- 2019On the Accuracy of Influence Functions for Measuring Group Effectscited by 146
- 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
- 2020FastIF: Scalable Influence Functions for Efficient Model Interpretation and Debuggingcited by 120
- 2019On Second-Order Group Influence Functions for Black-Box Predictionscited by 78
- 2023Understanding In-Context Learning via Supportive Pretraining Datacited by 41
- 2021Revisiting Methods for Finding Influential Examplescited by 39
- 2023Theoretical and Practical Perspectives on what Influence Functions Docited by 28
- 2021Influence Tuning: Demoting Spurious Correlations via Instance Attribution and Instance-Driven Updatescited by 27
- 2023How Many and Which Training Points Would Need to be Removed to Flip this Prediction?cited by 10
Built on by
Citing papers per year: 2024: 5; 2025: 9; 2026: 4.
18 papers.
Sort:
By area:
- 2024Threats, Attacks, and Defenses in Machine Unlearning: A Surveycited by 34
- 2024Data Attribution for Text-to-Image Models by Unlearning Synthesized Imagescited by 22
- 2024Large Scale Knowledge Washingcited by 16
- 2024Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaborationcited by 10
- 2024CBF-LLM: Safe Control for LLM Alignmentcited by 8
- 2025Fairshare Data Pricing via Data Valuation for Large Language Modelscited by 7
- 2025Fast Data Attribution for Text-to-Image Modelscited by 7
- 2025SoftMatcha: A Soft and Fast Pattern Matcher for Billion-Scale Corpus Searchescited by 3
- 2025Learning to Weight Parameters for Training Data Attributioncited by 3
- 2025Efficient Knowledge Graph Unlearning with Zeroth-order Informationcited by 2
- 2025A Survey on Unlearning in Large Language Modelscited by 2
- 2026ShapleyLaw: A Game-Theoretic Approach to Multilingual Scaling Lawscited by 2
6 more
- 2025Identifying Prompted Artist Names from Generated Imagescited by 1
- 2026Statistical Roughness-Informed Machine Unlearningcited by 1
- 2025Control Barrier Function for Aligning Large Language Modelscited by 0
- 2025Delete and Retain: Efficient Unlearning for Document Classificationcited by 0
- 2026Data Attribution in Large Language Models via Bidirectional Gradient Optimizationcited by 0
- 2026Safe-RULE: Safe Reinforcement UnLEarningcited by 0
- 2026Safe-RULE: Safe Reinforcement UnLEarning8 Jun 2026
- 2026Data Attribution in Large Language Models via Bidirectional Gradient Optimization3 Jun 2026
- 2026ShapleyLaw: A Game-Theoretic Approach to Multilingual Scaling Laws18 Mar 2026
- 2026Statistical Roughness-Informed Machine Unlearning10 Feb 2026
- 2025Delete and Retain: Efficient Unlearning for Document Classification6 Dec 2025
- 2025Fast Data Attribution for Text-to-Image Models13 Nov 2025
- 2025Control Barrier Function for Aligning Large Language Models5 Nov 2025
- 2025A Survey on Unlearning in Large Language Models29 Oct 2025
- 2025Efficient Knowledge Graph Unlearning with Zeroth-order Information19 Aug 2025
- 2025Identifying Prompted Artist Names from Generated Images24 Jul 2025
- 2025Learning to Weight Parameters for Training Data Attribution6 Jun 2025
- 2025SoftMatcha: A Soft and Fast Pattern Matcher for Billion-Scale Corpus Searches5 Mar 2025
6 more
- 2025Fairshare Data Pricing via Data Valuation for Large Language Models31 Jan 2025
- 2024Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaboration10 Oct 2024
- 2024CBF-LLM: Safe Control for LLM Alignment28 Aug 2024
- 2024Data Attribution for Text-to-Image Models by Unlearning Synthesized Images13 Jun 2024
- 2024Large Scale Knowledge Washing26 May 2024
- 2024Threats, Attacks, and Defenses in Machine Unlearning: A Survey20 Mar 2024
- 2024Threats, Attacks, and Defenses in Machine Unlearning: A Surveycited by 34
- 2024Data Attribution for Text-to-Image Models by Unlearning Synthesized Imagescited by 22
- 2024Large Scale Knowledge Washingcited by 16
- 2025Efficient Knowledge Graph Unlearning with Zeroth-order Informationcited by 2
- 2025A Survey on Unlearning in Large Language Modelscited by 2
- 2026Statistical Roughness-Informed Machine Unlearningcited by 1
- 2025Delete and Retain: Efficient Unlearning for Document Classificationcited by 0
- 2026Safe-RULE: Safe Reinforcement UnLEarningcited by 0
- 2026Safe-RULE: Safe Reinforcement UnLEarning8 Jun 2026
- 2026Statistical Roughness-Informed Machine Unlearning10 Feb 2026
- 2025Delete and Retain: Efficient Unlearning for Document Classification6 Dec 2025
- 2025A Survey on Unlearning in Large Language Models29 Oct 2025
- 2025Efficient Knowledge Graph Unlearning with Zeroth-order Information19 Aug 2025
- 2024Data Attribution for Text-to-Image Models by Unlearning Synthesized Images13 Jun 2024
- 2024Large Scale Knowledge Washing26 May 2024
- 2024Threats, Attacks, and Defenses in Machine Unlearning: A Survey20 Mar 2024
- 2024CBF-LLM: Safe Control for LLM Alignmentcited by 8
- 2025Control Barrier Function for Aligning Large Language Modelscited by 0
- 2025Control Barrier Function for Aligning Large Language Models5 Nov 2025
- 2024CBF-LLM: Safe Control for LLM Alignment28 Aug 2024
- 2025Fast Data Attribution for Text-to-Image Modelscited by 7
- 2025Fast Data Attribution for Text-to-Image Models13 Nov 2025
- 2024Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaborationcited by 10
- 2025Fairshare Data Pricing via Data Valuation for Large Language Modelscited by 7
- 2025SoftMatcha: A Soft and Fast Pattern Matcher for Billion-Scale Corpus Searchescited by 3
- 2025Learning to Weight Parameters for Training Data Attributioncited by 3
- 2026ShapleyLaw: A Game-Theoretic Approach to Multilingual Scaling Lawscited by 2
- 2025Identifying Prompted Artist Names from Generated Imagescited by 1
- 2026Data Attribution in Large Language Models via Bidirectional Gradient Optimizationcited by 0
- 2026Data Attribution in Large Language Models via Bidirectional Gradient Optimization3 Jun 2026
- 2026ShapleyLaw: A Game-Theoretic Approach to Multilingual Scaling Laws18 Mar 2026
- 2025Identifying Prompted Artist Names from Generated Images24 Jul 2025
- 2025Learning to Weight Parameters for Training Data Attribution6 Jun 2025
- 2025SoftMatcha: A Soft and Fast Pattern Matcher for Billion-Scale Corpus Searches5 Mar 2025
- 2025Fairshare Data Pricing via Data Valuation for Large Language Models31 Jan 2025
- 2024Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaboration10 Oct 2024