paper-with-me

홈 › Papers

A Lightweight Method to Disrupt Memorized Sequences in LLM

2025-02-07 · Parjanya Prajakta Prashant, Kaustubh Ponkshe, Babak Salimi

Large language models (LLMs) demonstrate impressive capabilities across many tasks yet risk reproducing copyrighted content verbatim, raising legal and ethical concerns. Although methods like differential privacy or neuron editing can reduce memorization, they typically require costly retraining or direct access to model weights and may degrade performance. To address these challenges, we propose TokenSwap, a lightweight, post-hoc approach that replaces the probabilities of grammar-related tokens with those from a small auxiliary model (e.g., DistilGPT-2). We run extensive experiments on commercial grade models such as Pythia-6.9b and LLaMA-3-8b and demonstrate that our method effectively reduces well-known cases of memorized generation by upto 10x with little to no impact on downstream tasks. Our approach offers a uniquely accessible and effective solution to users of real-world systems.

📄 PDF Abstract BibTeX arXiv:2502.05159

Code (0)

등록된 구현이 없습니다.

Tasks

Memorization

Similar Papers 제목 키워드 기반

Prior Aware Memorization: An Efficient Metric for Distinguishing Memorization from Generalization in Large Language Models

2026-02-21 · Trishita Tiwari, Ari Trachtenberg, G. Edward Suh arxiv

Training data leakage from Large Language Models (LLMs) raises serious concerns related to privacy, security, and copyright compliance. A central challenge in assessing this risk is distinguishing genuine memorization of…

Memorized Images in Diffusion Models share a Subspace that can be Located and Deleted

2024-06-01 · Ruchika Chavhan, Ondrej Bohdal, Yongshuo Zong, Da Li 외

Large-scale text-to-image diffusion models excel in generating high-quality images from textual inputs, yet concerns arise as research indicates their tendency to memorize and replicate training data, raising We also add…

Memorization

Understanding Transformer Memorization Recall Through Idioms

2022-10-07 · Adi Haviv, Ido Cohen, Jacob Gidron, Roei Schuster 외

To produce accurate predictions, language models (LMs) must balance between generalization and memorization. Yet, little is known about the mechanism by which transformer LMs employ their memorization capacity. When does…

Memorization

Memories Retrieved from Many Paths: A Multi-Prefix Framework for Robust Detection of Training Data Leakage in Large Language Models

2025-11-25 · Trung Cuong Dang, David Mohaisen arxiv

Large language models, trained on massive corpora, are prone to verbatim memorization of training data, creating significant privacy and copyright risks. While previous works have proposed various definitions for memoriz…

Deduplicating Training Data Mitigates Privacy Risks in Language Models

2022-02-14 · Nikhil Kandpal, Eric Wallace, Colin Raffel

Past work has shown that large language models are susceptible to privacy attacks, where adversaries generate sequences from a trained model and detect which sequences are memorized from the training set. In this work, w…