arXiv:2610.31995cs.CROct 2026

Manuscript Offprint

arXiv:2610.31995

TRACE: Data-Free Text Reconstruction Attacks against Approximate Unlearning in LLMs

Mengying Zhang, Derui Wang, Ibrahim Khalil, Bowen Liu, Xiaoyu Xia, Minhui Xue

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

As large language models (LLMs) face growing demands for data removal driven by regulatory compliance, copyright concerns, and privacy protection, approximate unlearning has emerged as a practical alternative to expensive full retraining. In practice, pre- and post-unlearning model snapshots are often maintained for auditing and rollback, introducing a previously overlooked side channel. This paper demonstrates that approximate unlearning in LLM can leave residual traces within model snapshots, which may be recoverable and thus enable the privacy breaches that approximate unlearning is intended to prevent. Here, we propose TRACE, a framework that reconstructs unlearned training data given access to pre- and post-unlearning model snapshots, without any data-specific prior knowledge. To achieve this, TRACE identifies a compact set of candidate tokens from embedding-level parameter differences to constrain the search space, and assembles sequences via a contrastive scoring mechanism based on the perplexity gap between the two models. A two-stage exploration-then-completion strategy enables the recovery of multiple distinct samples. Extensive experiments on various datasets, including TOFU, MUSE, and WMDP, across multiple LLMs and six representative unlearning methods, demonstrate that TRACE achieves high-fidelity reconstruction. This paper exposes significant privacy risks in current LLM approximate unlearning deployments and highlights the need for defenses against parameter-difference leakage and appropriate management of model snapshot access. The code is publicly available at https://github.com/mengyingz969/TRACE.

1 Introduction

The rapid adoption of large language models (LLMs) has intensified the need for effective data removal mechanisms, driven by regulatory requirements such as the EU’s GDPR [1] and AI Act [2], copyright compliance [3, 4, 5], and privacy [6, 7]. Machine unlearning [8, 9, 10] aims to remove the influence of a specified subset of training data from a trained model. In practice, exact machine unlearning [8], retraining models without the target data, remains computationally prohibitive for modern LLMs. As a result, mainstream real-world deployments rely on approximate unlearning methods [11, 12, 13, 14, 15, 16, 17], which aim to forget specific data through targeted parameter updates without retraining. To support auditing, rollback, and safety verification, it is common to retain multiple model snapshots from before and after unlearning.

This raises a critical question: given access to original and unlearned models, to what extent do current unlearning methods leak sensitive information about the data they are intended to remove?

Existing work [18] shows that differences between the original and unlearned model parameters can be used to construct surrogate gradient signals, which are then exploited through gradient-

∗^{*}Corresponding author: Xiaoyu Xia.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

matching inversion to reconstruct removed images. However, this cannot be extended to generative LLMs, as the reconstruction optimization struggles to converge and often produces uninterpretable or disjointed outputs without the “anchor” provided by labels. More recently, efforts have been made to investigate the extraction of unlearned data from LLMs under the assumption that partial prefixes of the target texts are available, demonstrating that the remaining content can be recovered by exploiting discrepancies in output likelihoods between pre- and post-unlearning models [19].

However, this reliance on prefix priors leaves an important open question: is unlearned data in LLMs secure without any data-specific prior knowledge?

We answer this question by introducing TRACE, a framework for reconstructing text that has been intentionally unlearned by tracing latent parameter footprints between pre- and post-unlearning snapshots, without requiring any data-specific prior knowledge. First, we identify that parameter differences in the embedding layer between pre- and post-unlearning models expose the tokens involved in the unlearning process, effectively reducing the reconstruction task from open-ended generation over the full vocabulary to assembling sequences from a compact set of candidate tokens. Second, to resolve the combinatorial complexity of sequence reassembly, we develop a contrastive search strategy driven by a novel contrastive fluency score (CFS). This scoring mechanism integrates unlearning-induced divergence with linguistic plausibility, effectively navigating the search toward trajectories corresponding to unlearned sequences. Third, to enable reconstruction of multiple unlearned samples, we design a two-stage “exploration-then-completion” architecture. Stage I performs broad exploration to capture diverse prefix candidates, while Stage II completes them into full sequences. Our contributions are summarized as follows:

  • We reveal that approximate unlearning leaves a latent footprint in parameters, enabling reconstruction of text that has been intentionally unlearned, without any data-specific prior knowledge.

  • We propose a framework named TRACE that achieves the reconstruction of multiple distinct unlearned samples without any data-specific prior knowledge, by utilizing parameter differences to effectively constrain the vast search space and employing a contrastive search strategy within a two-stage architecture.

  • We conduct comprehensive experiments on various benchmarks including TOFU, MUSE, and WMDP, across multiple LLMs and six representative unlearning methods, showing that TRACE consistently achieves high-fidelity reconstruction.

References (45)