Do Localization Methods Actually Localize Memorized Data in LLMs? A Tale of Two Benchmarks
Ting-Yun Chang, Jesse Thomason, Robin Jia
TL;DR
The paper addresses whether localization methods truly pinpoint memorized data within LLMs by introducing two complementary benchmarks: INJ, which injects ground-truth memorized weights to directly assess localization accuracy, and DEL, which uses dropout to evaluate the causal role of predicted neurons for pretrained memorized sequences. Five localization methods are compared—Zero-Out, Activations, Integrated Gradients (IG), Slimming, and Hard Concrete—with pruning-based approaches (Slimming and Hard Concrete) achieving the strongest localization signals across both benchmarks. Results show all methods can localize better than random, but precise, sequence-specific localization remains challenging due to memory sharing across related sequences. The two benchmarks yield consistent method rankings and reveal that memorized information is distributed across layers, suggesting limitations for perfect, per-sequence localization but clear potential for targeted forgetting or unlearning applications. Overall, the study provides a rigorous framework to evaluate localization in LLMs and highlights the promise and current limits of existing methods for identifying and potentially removing memorized content.
Abstract
The concept of localization in LLMs is often mentioned in prior work; however, methods for localization have never been systematically and directly evaluated. We propose two complementary benchmarks that evaluate the ability of localization methods to pinpoint LLM components responsible for memorized data. In our INJ benchmark, we actively inject a piece of new information into a small subset of LLM weights, enabling us to directly evaluate whether localization methods can identify these "ground truth" weights. In our DEL benchmark, we evaluate localization by measuring how much dropping out identified neurons deletes a memorized pretrained sequence. Despite their different perspectives, our two benchmarks yield consistent rankings of five localization methods. Methods adapted from network pruning perform well on both benchmarks, and all evaluated methods show promising localization ability. On the other hand, even successful methods identify neurons that are not specific to a single memorized sequence.
