Papers › Do Localization Methods Actually Localize Memorized Data in LLMs? A Tale of Two Benchmarks

Do Localization Methods Actually Localize Memorized Data in LLMs? A Tale of Two Benchmarks

15 Nov 2023arXiv:2311.09060archive 2025-07-28

Ting-Yun Chang, Jesse Thomason, Robin Jia

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.09060")

Code

Syntology Ran 6 of 15 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

terarachang/memdata officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
terarachang/mempi officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 6 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

6ran
9unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from terarachang/memdata. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_attr_str terarachang/memdata/utils.py official repository ran Apache-2.0 (permissive) · 3e749274a50f3a6c · report
get_attributes terarachang/memdata/utils.py official repository ran Apache-2.0 (permissive) · 5ce650a8d673a1a5 · report
get_batch_data terarachang/memdata/find_memorized_data.py official repository ran Apache-2.0 (permissive) · e940807d016b1ec0 · report
levenshtein_distance terarachang/memdata/downstream.py official repository ran Apache-2.0 (permissive) · 7145470f99f9e88b · report
levenshtein_distance terarachang/memdata/downstream_manual.py official repository ran Apache-2.0 (permissive) · cb5a6337f362e74e · report
pack_results terarachang/memdata/downstream_manual.py official repository ran Apache-2.0 (permissive) · f86605a76e151998 · report
aggressive_dedup terarachang/memdata/find_memorized_data.py official repository unverified Apache-2.0 (permissive) · 0a03035d9cf7aaff · report
compute_binary_pct terarachang/memdata/hardconcrete.py official repository unverified Apache-2.0 (permissive) · e41b013e37943676 · report
compute_half_pct terarachang/memdata/hardconcrete.py official repository unverified Apache-2.0 (permissive) · f81fe8ab79c71f6d · report
generate terarachang/memdata/utils.py official repository unverified Apache-2.0 (permissive) · edd9bacc8fb9cfe9 · report
get_memo_scores terarachang/memdata/downstream.py official repository unverified Apache-2.0 (permissive) · a4a37915114cedbf · report
get_memo_scores terarachang/memdata/downstream_manual.py official repository unverified Apache-2.0 (permissive) · f3c2a67fe122ccdc · report
get_sparsity terarachang/memdata/hardconcrete.py official repository unverified Apache-2.0 (permissive) · c5bca863e8e455ff · report
load_pretrained_ terarachang/memdata/find_memorized_data.py official repository unverified Apache-2.0 (permissive) · 3f196d79bda511ce · report
test terarachang/memdata/downstream.py official repository unverified Apache-2.0 (permissive) · 3768a7b1e8d9fea1 · report

Tasks

BenchmarkingNetwork Pruning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pruning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections