MemHunter: Automated and Verifiable Memorization Detection at Dataset-scale in LLMs

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wu, Zhenpeng, Lou, Jian, Zheng, Zibin, Chen, Chuan
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914234500120576
author Wu, Zhenpeng
Lou, Jian
Zheng, Zibin
Chen, Chuan
author_facet Wu, Zhenpeng
Lou, Jian
Zheng, Zibin
Chen, Chuan
contents Large language models (LLMs) have been shown to memorize and reproduce content from their training data, raising significant privacy concerns, especially with web-scale datasets. Existing methods for detecting memorization are primarily sample-specific, relying on manually crafted or discretely optimized memory-inducing prompts generated on a per-sample basis, which become impractical for dataset-level detection due to the prohibitive computational cost of iterating through all samples. In real-world scenarios, data owners may need to verify whether a susceptible LLM has memorized their dataset, particularly if the LLM may have collected the data from the web without authorization. To address this, we introduce MemHunter, which trains a memory-inducing LLM and employs hypothesis testing to efficiently detect memorization at the dataset level, without requiring sample-specific memory inducing. Experiments on models like Pythia and Llama demonstrate that MemHunter can extract up to 40% more training data than existing methods under constrained time resources and reduce search time by up to 80% when integrated as a plug-in. Crucially, MemHunter is the first method capable of dataset-level memorization detection, providing a critical tool for assessing privacy risks in LLMs powered by large-scale datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2412_07261
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MemHunter: Automated and Verifiable Memorization Detection at Dataset-scale in LLMs
Wu, Zhenpeng
Lou, Jian
Zheng, Zibin
Chen, Chuan
Cryptography and Security
Machine Learning
Large language models (LLMs) have been shown to memorize and reproduce content from their training data, raising significant privacy concerns, especially with web-scale datasets. Existing methods for detecting memorization are primarily sample-specific, relying on manually crafted or discretely optimized memory-inducing prompts generated on a per-sample basis, which become impractical for dataset-level detection due to the prohibitive computational cost of iterating through all samples. In real-world scenarios, data owners may need to verify whether a susceptible LLM has memorized their dataset, particularly if the LLM may have collected the data from the web without authorization. To address this, we introduce MemHunter, which trains a memory-inducing LLM and employs hypothesis testing to efficiently detect memorization at the dataset level, without requiring sample-specific memory inducing. Experiments on models like Pythia and Llama demonstrate that MemHunter can extract up to 40% more training data than existing methods under constrained time resources and reduce search time by up to 80% when integrated as a plug-in. Crucially, MemHunter is the first method capable of dataset-level memorization detection, providing a critical tool for assessing privacy risks in LLMs powered by large-scale datasets.
title MemHunter: Automated and Verifiable Memorization Detection at Dataset-scale in LLMs
topic Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2412.07261