Manuscript Offprint

arXiv:2610.01365

Sleeping Secrets: How Fine-Tuning Reawakens Privacy Risks in Language Models

Jianhong Li, Jiahao Chen, Yuwen Pu, Chunyi Zhou, Oubo Ma, Zhou Feng, Hangtao Zhang, Jichao Bi, Chunqiang Hu

ABSTRACT

Beyond adapting Large Language Models (LLMs) to specialized applications, fine-tuning has recently been shown to recover private information that is no longer accessible through direct queries. Previous fine-tuning recovery attacks, however, require genuine private supervision drawn from the same distribution, i.e., the previous training dataset. We argue that such recovery remains possible without such impractical knowledge. We show that LLM-generated candidates can provide sufficient supervision to recover previously learned private associations. Based on this, we propose ReGap, a data-free attack that recovers private associations using task structure, filters them by answer-token likelihood, and updates the target model via low-rank adaptation. Specifically, ReGap requires neither target answers nor auxiliary genuine private supervision. Across six GPT-2, OPT, and Qwen3 models, ReGap improves target-association recovery by 6-21 percentage points over the post-training target model. Recovery remains substantial even when the adaptation identities are disjoint from all memorized and evaluation identities, with no exact target answers appearing in the generated or selected supervision. Moreover, the same trained adapters increase recovery from 42% to 63% on a previously exposed checkpoint, but produce no gain on a matched checkpoint that never encountered the targets. This contrast shows that adaptation alone is insufficient to explain the observed recovery and that prior target exposure strongly affects post-adaptation recoverability. Our findings highlight that routine model customization can reawaken latent privacy risks, warranting urgent attention from the academic and industrial communities.

1 INTRODUCTION

Fine-tuning has become a routine part of the lifecycle of Large Language Models (LLMs), enabling pretrained models to adapt to new tasks, domains, and applications (Gururangan et al., 2020; Hu et al., 2021). This continued adaptation also has implications for privacy. LLMs can memorize sensitive information and personally identifiable information (PII) from their pretraining data and disclose it in response to carefully crafted queries (Carlini et al., 2019; 2021; Tirumala et al., 2022; Biderman et al., 2023; Lukas et al., 2023). Recent work even shows that adaptation can introduce additional privacy risks: sensitive information may be unintentionally memorized during fine-tuning, model-generated training data can amplify privacy leakage, and even benign fine-tuning can weaken contextual privacy protections (Szep et al., 2026; Akkus et al., 2025; Goel et al., 2026a). These findings motivate evaluating privacy not only at a fixed checkpoint, but across the model's subsequent adaptation lifecycle.

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

A particularly relevant line of work studies whether later updates can restore access to information that is difficult to elicit directly. Janus shows that fine-tuning on genuine private association pairs can recover previously learned PII (Chen et al., 2024). Related studies show that downstream fine-tuning can also reverse apparent forgetting after machine unlearning (Wang et al., 2025), while malicious model-side interventions can increase privacy leakage during subsequent fine-tuning (Rashid et al., 2025). These results establish post-adaptation privacy as an important attack surface, but they leave a different attacker capability largely unexplored. Specifically, they assume access to authentic private records from the target training distribution Chen et al. (2024), an advantage that may be unavailable to an attacker who only obtains the released model. In this setting, the attacker has access to the released post-training model, but not to the original model from which it was derived. This released model is our target model: the attacker seeks to recover private associations learned before post-training, without genuine private records as supervision.

This leads to our central question: can previously learned associations become more recoverable using only model-generated supervision, without externally supplied private records? We further ask whether recovery persists when adaptation uses neither target identities nor exact target answers. To investigate these questions, we propose ReGap, a recovery attack that generates candidate associations from the target model, selects candidates using answer-token likelihood under the same frozen model, and trains a fresh LoRA adapter on the resulting model-generated supervision. ReGap uses neither target answers nor auxiliary genuine private records during candidate generation, selection, or adaptation.

Across six GPT-2, OPT, and Qwen3 settings, one round of ReGap improves target-association recovery by 6-21 percentage points over the target model. Recovery remains substantial when adaptation identities are disjoint from all memorized and evaluation identities, with no exact target answer appearing in either the generated candidate pools or selected examples. Moreover, applying the same trained adapters to matched checkpoints yields a 21-point gain only when the model previously encountered the targets, while a target-unexposed checkpoint shows no gain. These controls indicate that the observed recovery depends on prior exposure rather than adaptation alone, while avoiding any claim that individual memories remain internally intact.

Our main contributions are summarized as follows:

• We identify a post-adaptation privacy risk in which previously learned private associations can become substantially more recoverable even without genuine private supervision. In the structured association setting studied here, recovery can persist when adaptation data are constructed without target identities and without exact target-answer replay, showing that direct behavioral inaccessibility alone is insufficient to characterize later privacy exposure.

• We introduce ReGap, a recovery attack that replaces genuine private supervision with model-generated candidates. ReGap follows a Generate–Select–Adapt pipeline: it generates task-consistent candidates from the target model, ranks them by answer-token likelihood under the frozen model, and trains a fresh LoRA adapter on the selected supervision. We further provide a local gradient-based analysis that characterizes when auxiliary updates can reduce target loss without identity or answer overlap and motivates the frozen-model selection rule.

• We systematically characterize the effect and its boundaries across GPT-2, OPT, and Qwen3 models. One round of ReGap improves target-association recovery by 6–21 percentage points across six model settings; matched controls further show substantial recovery with unseen adaptation identities and a strong dependence on prior target exposure. At the same time, recovery weakens sharply for opaque random bindings and after explicit NPO unlearning, establishing important limits on when model-generated supervision enables recovery.

References (100)

  • Generated data with fake privacy: Hidden dangers of fine-tuning large language models on generated data
  • Emergent and predictable memorization in large language models
  • Privacy ripple effects from adding or removing personal information in language model training
  • The secret sharer: Evaluating and testing unintended memorization in neural networks
  • Quantifying memorization across neural language models (opens arXiv in a new tab)
  • Profiling for pennies: Unveiling the privacy iceberg of llm agents (opens arXiv in a new tab)
  • The janus interface: How fine-tuning in large language models amplifies the privacy risks
  • Remind: Memorization and unlearning in llms through the lens of input loss landscapes
  • Uncovering latent memories in large language models
  • Privacy collapse: Benign fine-tuning can break contextual privacy in language models
  • Auditing language model unlearning via information decomposition
  • Don’t stop pretraining: Adapt language models to domains and tasks
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Matthew Jagielski, Om Thakkar, Florian Tramer, Daphne Ippolito, Katherine Lee, Nicholas Carlini, Eric Wallace, Shuang Song, Abhradeep Thakurta, Nicolas Papernot, et al. Measuring forgetting of memorized training examples. arXiv preprint arXiv:2207.00099, 2022. (opens arXiv in a new tab)
  • Towards continual knowledge learning of language models (opens arXiv in a new tab)
  • Private investigator: Extracting personally identifiable information from large language models using optimized prompts
  • The enron corpus: A new dataset for email classification research
  • Auditing m-llms for privacy risks: A synthetic benchmark and evaluation framework
  • Assessing data privacy in large language models (opens arXiv in a new tab)
  • Analyzing leakage of personally identifiable information in language models
  • Do llms really memorize personally identifiable information? revisiting pii leakage with a cue-controlled memorization framework
  • Pointer Sentinel Mixture Models
  • Scalable extraction of training data from aligned, production language models
  • Controlling the extraction of memorized data from large language models via prompt-tuning
  • Facial data minimization: Shallow model as your privacy filter
  • Fine-tuning aligned language models compromises safety, even when users do not intend to! In International Conference on Learning Representations, volume 2024, pp. 30988–31043, 2024
  • OpenAI blog, 1(8):9, 2019
  • Forget to flourish: Leveraging machine-unlearning on pretrained language models for privacy leakage
  • Unintended memorization of sensitive information in fine-tuned language models
  • Memorization without overfitting: Analyzing the training dynamics of large language models
  • Invariance makes llm unlearning resilient even to unanticipated downstream fine-tuning (opens arXiv in a new tab)
  • Qwen3 Technical Report
  • OPT: Open Pre-trained Transformer Language Models
  • Quantifying and analyzing entity-level memorization in large language models
  • 15 A.1 Enron-Derived Person-Email Benchmark
  • 28 G.1 Identity-Overlap Audit
  • Our main benchmark is constructed from real email addresses extracted from the Enron email corpus, while the corresponding person identifiers are deterministically derived from the email strings
  • We concatenate the available textual fields for each record and extract email addresses using a deterministic regular-expression-based pipeline
  • Specifically, the local part is split on common separators such as periods, underscores, and hyphens, and up to three resulting tokens are converted into title-cased name components
  • We partition these associations into three roles: a small private-reference set, the target recovery set, and a larger set of additional non-target associations
  • It is never used by ReGap for candidate generation, selection, or adaptation
  • These target answers are withheld from the attacker and are used only for final evaluation and post-hoc auditing
  • A 300-example subset of this pool is used to measure retained performance on non-target person-email associations
  • The target associations are absent from this continual-training corpus
  • The person-email task schema and expected answer format remain unchanged
  • Across all evaluated seeds for GPT-2 Medium and GPT-2 Large, the unseen identities have zero overlap with memorized or evaluation identities
  • We therefore construct an opaque random-binding control to examine how ReGap behaves when this compositional structure is removed
  • The resulting associations preserve the abstract person-to-email input/output format while removing the lexical relationship between a person's name and the corresponding answer
  • Because the answers are independently assigned random strings, successful recovery cannot exploit the local-part structure present in the Enron-derived benchmark
  • The resulting model is the post-training model and serves as the target model for candidate generation, candidate scoring, and subsequent adaptation
  • The same trained adapters are transferred to this checkpoint without additional candidate generation, candidate selection, or adapter training
  • Importantly, this filtering depends only on output validity and format
  • No target-answer correctness labels, target gradients, or recovery-set performance are available to the selector
  • Adapters are never continued across random seeds or reused across independent main experiments
  • The target modules are listed in Table 7
  • The only difference is the candidate-selection rule: instead of ranking examples by frozen-model answer loss, the baseline samples the adaptation examples randomly from the corresponding candidate pool
  • Consequently, the comparison isolates the contribution of frozen-model candidate selection from the broader effect of adapting on model-generated supervision
  • A target is counted as recovered when the resulting nonempty normalized reference string occurs as a substring of the normalized generated continuation
  • Ground-truth target answers are isolated from the attack pipeline and are used only for final recovery evaluation and post-hoc audits such as exact-answer replay analysis
  • The previously exposed checkpoint increases from $42.0\%$ to $63.0\%$ after ReGap adaptation, whereas the target-unexposed checkpoint remains at $13.0\%$
  • >Model</td><td rowspan=
  • Values report mean $\pm$ sample standard deviation over three runs
  • On GPT-2 Medium, the corresponding recovery rates are $55.0\%$, $51.0\%$, and $53.0\%$, yielding $53.0 \pm 2.0\%$
  • On GPT-2 Medium and Large, Genuine-Private LoRA exceeds ReGap by only 3.3 and 5.0 percentage points, respectively, whereas the gap is substantially larger on OPT-1.3B and Qwen3-1.7B
  • The $66.0\%$ private-supervision value shown in the main figure is included only as an unmatched descriptive reference and should not be interpreted as a matched result under the current protocol
  • Increasing the number of demonstrations also does not monotonically improve recovery
  • The first is a candidate-level local compatibility score derived from the frozen checkpoint
  • We observe a Pearson correlation of
  • The genuine-private reference provides an upper reference point in this diagnostic
  • These experiments belong to an earlier selector-development protocol and are included to document the robustness of the broader candidate-selection idea rather than to redefine the current method
  • Their best observed recovery rates on GPT-2 Medium are summarized in Table 15
  • The historical selector experiments are retained here only as evidence that the recovery phenomenon is not tied to a single highly tuned ranking heuristic
  • They are therefore intended as descriptive boundary analyses rather than strictly matched extensions of the current one-round Original-Loss protocol
  • To remove these cues, we construct a non-compositional benchmark in which synthetically generated identities are independently paired with random 12-character local parts under the reserved privacy
  • As summarized in Tables 16 and 17, the previously exposed opaque condition drops from $95.0\%$ recovery in the original model to $1.0\%$ after non-target continual training and reaches only $2.0\%$ after ReGap-Abs, while the matched target-unexposed branch remains at $0\%$
  • To examine recovery when names and addresses originate from separate fields, we additionally construct a Controlled Enron benchmark from structured message metadata
  • Random model-generated supervision also produces substantial recovery at
  • A genuine-private reference reaches $98.0\%$
  • The two settings use independently constructed checkpoints and are reported as descriptive boundary evidence rather than as a matched causal ablation
  • Starting independently from each NPO checkpoint, we compare the unadapted model with Matched Random and ReGap under the same one-round adaptation procedure used in the main experiments
  • Under the Moderate setting, recovery changes from $71.0\%$ before adaptation to $71.3 \pm 0.6\%$ after ReGap
  • Unlike the historical boundary experiments in Appendix E, these experiments follow the same evaluation protocol as the main study: one Generate-Select-Adapt round, Original-Loss candidate selection, and three random seeds
  • As shown in Table 20, ReGap does not improve over the target model in this setting
  • However, the strong recovery is accompanied by target-answer replay in the generated supervision
  • We distinguish audits of the main target-identity-aware setting from those of the Unseen-Identity Control, because exact target-answer replay is ruled out only in the latter
  • We explicitly compare them against all identity sets used in the experiment: the private-reference set, target set, non-target evaluation set, and the complete memorized privacy pool
  • The control nevertheless preserves the person-email task structure and expected answer format, and should therefore not be interpreted as a task-unaware setting
  • Table 22 summarizes these overlap and replay checks, all of which are zero across the evaluated seeds
  • As shown in Table 9, for GPT-2 Medium, the matched Random recoveries are $55.0\%$, $51.0\%$, and $53.0\%$, giving $53.0 \pm 2.0\%$
  • As shown in Table 23, on the previously exposed target model, ReGap increases recovery from $42.0\%$ to $63.0 \pm 2.6\%$, while Matched Random reaches $53.0 \pm 2.0\%$
  • These results are kept separate from the current-protocol headline results and are not used to replace or augment the primary comparisons
  • \tag {16} $$
  • For the preconditioned update $\delta_h = -\eta_h P_h \nabla L_S(\phi_h)$, the first-order term is
  • The result also holds when Q is supported entirely on examples whose identities and answer strings differ from those of $t_i$
  • Neither expansion uses identity or answer overlap
  • Identity disjointness alone establishes neither
  • The proposition does not automatically apply to an objective that omits part of that event or reweights answers by length
  • When the relevant moments exist
  • Moreover, support need not satisfy the ordering assumption
  • It also holds after taking expectations over evaluation randomness

Couldn't load all references. Reload the page to try again.