paper-with-me

홈 › Papers

Detecting Memorization in Large Language Models

2024-12-02 · Eduardo Slonski

Large language models (LLMs) have achieved impressive results in natural language processing but are prone to memorizing portions of their training data, which can compromise evaluation metrics, raise privacy concerns, and limit generalization. Traditional methods for detecting memorization rely on output probabilities or loss functions, often lacking precision due to confounding factors like common language patterns. In this paper, we introduce an analytical method that precisely detects memorization by examining neuron activations within the LLM. By identifying specific activation patterns that differentiate between memorized and not memorized tokens, we train classification probes that achieve near-perfect accuracy. The approach can also be applied to other mechanisms, such as repetition, as demonstrated in this study, highlighting its versatility. Intervening on these activations allows us to suppress memorization without degrading overall performance, enhancing evaluation integrity by ensuring metrics reflect genuine generalization. Additionally, our method supports large-scale labeling of tokens and sequences, crucial for next-generation AI models, improving training efficiency and results. Our findings contribute to model interpretability and offer practical tools for analyzing and controlling internal mechanisms in LLMs.

📄 PDF Abstract BibTeX arXiv:2412.01014

Code (0)

등록된 구현이 없습니다.

Tasks

Memorization

Similar Papers 제목 키워드 기반

Detecting Unintended Memorization in Language-Model-Fused ASR

2022-04-20 · W. Ronny Huang, Steve Chien, Om Thakkar, Rajiv Mathews

End-to-end (E2E) models are often being accompanied by language models (LMs) via shallow fusion for boosting their overall quality as well as recognition of rare words. At the same time, several prior works show that LMs…

Language ModelingLanguage ModellingMemorizationmodel

Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysis

2025-05-05 · Albérick Euraste Djiré, Abdoul Kader Kaboré, Earl T. Barr, Jacques Klein 외

While Large Language Models (LLMs) achieve remarkable performance through training on massive datasets, they can exhibit concerning behaviors such as verbatim reproduction of training data rather than true generalization…

ArticlesHumanEvalMemorization

Think or Remember? Detecting and Directing LLMs Towards Memorization or Generalization

2024-12-24 · Yi-Fu Fu, Yu-Chieh Tu, Tzu-Ling Cheng, Cheng-Yu Lin 외

In this paper, we explore the foundational mechanisms of memorization and generalization in Large Language Models (LLMs), inspired by the functional specialization observed in the human brain. Our investigation serves as…

Memorization

Exploring prompts to elicit memorization in masked language model-based named entity recognition

2024-05-05 · Yuxi Xia, Anastasiia Sedova, Pedro Henrique Luz de Araujo, Vasiliki Kougia 외

Training data memorization in language models impacts model capability (generalization) and safety (privacy risk). This paper focuses on analyzing prompts' impact on detecting the memorization of 6 masked language model-…

Language ModelingLanguage ModellingMemorizationnamed-entity-recognition+2

GSS: Gated Subspace Steering for Selective Memorization Mitigation in LLMs

2026-02-09 · Xuanqi Zhang, Haoyang Shang, Xiaoxiao Li arxiv

Large language models (LLMs) can memorize and reproduce training sequences verbatim -- a tendency that undermines both generalization and privacy. Existing mitigation methods apply interventions uniformly, degrading perf…