Mitigating Memorization In Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sakarvadia, Mansi, Ajith, Aswathy, Khan, Arham, Hudson, Nathaniel, Geniesse, Caleb, Chard, Kyle, Yang, Yaoqing, Foster, Ian, Mahoney, Michael W.
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912208165797888
author Sakarvadia, Mansi
Ajith, Aswathy
Khan, Arham
Hudson, Nathaniel
Geniesse, Caleb
Chard, Kyle
Yang, Yaoqing
Foster, Ian
Mahoney, Michael W.
author_facet Sakarvadia, Mansi
Ajith, Aswathy
Khan, Arham
Hudson, Nathaniel
Geniesse, Caleb
Chard, Kyle
Yang, Yaoqing
Foster, Ian
Mahoney, Michael W.
contents Language models (LMs) can "memorize" information, i.e., encode training data in their weights in such a way that inference-time queries can lead to verbatim regurgitation of that data. This ability to extract training data can be problematic, for example, when data are private or sensitive. In this work, we investigate methods to mitigate memorization: three regularizer-based, three finetuning-based, and eleven machine unlearning-based methods, with five of the latter being new methods that we introduce. We also introduce TinyMem, a suite of small, computationally-efficient LMs for the rapid development and evaluation of memorization-mitigation methods. We demonstrate that the mitigation methods that we develop using TinyMem can successfully be applied to production-grade LMs, and we determine via experiment that: regularizer-based mitigation methods are slow and ineffective at curbing memorization; fine-tuning-based methods are effective at curbing memorization, but overly expensive, especially for retaining higher accuracies; and unlearning-based methods are faster and more effective, allowing for the precise localization and removal of memorized information from LM weights prior to inference. We show, in particular, that our proposed unlearning method BalancedSubnet outperforms other mitigation methods at removing memorized information while preserving performance on target tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2410_02159
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Mitigating Memorization In Language Models
Sakarvadia, Mansi
Ajith, Aswathy
Khan, Arham
Hudson, Nathaniel
Geniesse, Caleb
Chard, Kyle
Yang, Yaoqing
Foster, Ian
Mahoney, Michael W.
Machine Learning
Artificial Intelligence
Computation and Language
Language models (LMs) can "memorize" information, i.e., encode training data in their weights in such a way that inference-time queries can lead to verbatim regurgitation of that data. This ability to extract training data can be problematic, for example, when data are private or sensitive. In this work, we investigate methods to mitigate memorization: three regularizer-based, three finetuning-based, and eleven machine unlearning-based methods, with five of the latter being new methods that we introduce. We also introduce TinyMem, a suite of small, computationally-efficient LMs for the rapid development and evaluation of memorization-mitigation methods. We demonstrate that the mitigation methods that we develop using TinyMem can successfully be applied to production-grade LMs, and we determine via experiment that: regularizer-based mitigation methods are slow and ineffective at curbing memorization; fine-tuning-based methods are effective at curbing memorization, but overly expensive, especially for retaining higher accuracies; and unlearning-based methods are faster and more effective, allowing for the precise localization and removal of memorized information from LM weights prior to inference. We show, in particular, that our proposed unlearning method BalancedSubnet outperforms other mitigation methods at removing memorized information while preserving performance on target tasks.
title Mitigating Memorization In Language Models
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2410.02159