acceptodds
Published as a conference paper at NeurIPS 2026

Learning the Signature of Memorization in Autoregressive Language Models

David Ilić, Kostadin Cvejoski, David Stanojević, Evgeny Grigorenko

Abstract

All prior membership inference attacks for fine-tuned language models use hand-crafted heuristics (e.g., loss thresholding, Min-K%, reference calibration), each bounded by the designer's intuition. We introduce the first transferable learned attack, enabled by the observation that fine-tuning any model on any corpus yields unlimited labeled data, since membership is known by construction. This removes the shadow model bottleneck and brings membership inference into the deep learning era: learning what matters rather than designing it, with generalization through training diversity and scale. We discover that fine-tuning language models produces an invariant signature of memorization detectable across architectural families and data domains. We train a membership inference classifier exclusively on transformer-based models. It transfers zero-shot to Mamba (state-space), RWKV-4 (linear attention), and RecurrentGemma (gated recurrence), achieving 0.963, 0.972, and 0.936 AUC respectively. Each evaluation combines an architecture and dataset never seen during training, yet all three exceed performance on held-out transformers (0.908 AUC). These four families share no computational mechanisms, their only commonality is gradient descent on cross-entropy loss. Even simple likelihood-based methods exhibit strong transfer, confirming the signature exists independently of the detection method. Our method, Learned Transfer MIA (LT-MIA), captures this signal most effectively by reframing membership inference as sequence classification over per-token distributional statistics. On transformers, LT-MIA achieves 2.8 higher true positive rate at 0.1% false positive rate than the strongest baseline. The method also transfers to code (0.865 AUC) despite training only on natural language texts. Our results imply that leakage from memorization is intrinsic to cross-entropy training; architectural innovation within this paradigm did not escape our attack. Code and the trained classifier are provided.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 15%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.75 over 4 reviews, above 15% of the others.
Reviewer_s5kROpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
2
Read review
Summary

This paper proposes a learned membership inference attack that transfers across different model architectures and does not rely on hand-crafted features. The attack does not require the training of shadow models, making it computationally efficient to run. It essentially relies on the distributional mismatch between pre-training and fine-tuning data. The proposed MIA consistently outperforms the baselines presented in the paper.

Strengths and weaknesses

Strengths

  • I believe one of the strengths of this paper is that we don't need to train hundreds of shadow models to generate in- and out distributions for examples. The authors leverage fine-tuning to gather the labelled membership data. This could make this method scale easily.
  • The authors show that the memorization signature isn't tied to a specific architecture, and is a general property of training using cross-entropy.
  • The proposed MI attack outperforms existing baselines that rely on hand-crafted features.
  • The authors provide an explanation about why their attack works: it is primarily because of the distributional difference between the pretraining and fine-tuning data.
  • The authors replicate their results on multiple fine-tuning datasets.

Weaknesses

  • We need access to a pretrained checkpoint for this attack, making it impossible to mount an attack on black-box APIs.
  • Performance is weaker when the reference model already assigns a high likelihood to the text (e.g., WikiText-103 with large models).
  • The authors mainly study SFT, but other methods like instruction tuning, RLHF, and DPO are more commonly used. It would be nice to extend the work to cover these setups as well.
  • No checks to measure possible data contamination/overlap between pretraining and fine-tuning datasets. IMO, this is a critical issue. It has been well-established by prior memorization literature that exact and approximate overlap between pretraining and fine-tuning datasets drives memorization of fine-tuning examples. It is important to have a controlled setup where: 1) you remove any exact and non-exact overlap from the fine-tuning set, and 2) you keep the overlap and compare the results from both setups.
Questions
  • For the issue where the performance is weaker when the reference model already assigns a high likelihood to the text, can the authors talk about any potential solutions?
  • Can the authors provide results to address the potential data contamination issue?
Limitations
  • As already stated in the weaknesses section, data overlap and contamination are limitations of this work.
Paper formatting concerns

NA

Final justification

The authors have addressed my concerns and I'd like to increase the score.

Reviewer_2ne8OpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
2
Quality
3
Significance
2
Read review
Summary

The paper studies membership inference (MIA) in the fine-tuning setting. Its premise is that fine-tuning yields unlimited ground-truth membership labels by construction, turning MIA into a standard supervised problem without expensive shadow models. The proposed LT-MIA extracts per-token features comparing a fine-tuned target to its pre-trained reference, then classifies the sequence with a small transformer. The headline result is cross-architecture zero-shot transfer: a classifier trained only on transformers transfers to Mamba, RWKV-4, and RecurrentGemma, exceeding held-out transformers, which the authors read as evidence that the memorization signature lives in the cross-entropy-induced output distribution, not in architecture-specific computation.

Strengths and weaknesses

Strengths

  • The cross-architecture transfer finding is novel and well-evidenced: it holds even for simple baselines, with a consistent feature-importance hierarchy across families, so it is not an artifact of the proposed classifier.
  • The diversity-vs-scale ablation is clean and mechanistically explains why transfer works.
  • Proper low-FPR evaluation (TPR@1% / 0.1%), honest limitations (WikiText contamination), and a cheap, reproducible setup.

Weaknesses

  • Novelty is over-claimed. "First learned attack / removing the shadow-model bottleneck / moving MIA into the deep-learning era'' does not hold: learned classifiers on constructed-membership labels are the shadow-model paradigm [1]. More critically, [2] already does black-box, shadow-model, learned auditing of text-generation models using token-rank features with a GDPR motivation — a direct predecessor that overlaps heavily with LT-MIA's dominant "Comparison" features, yet appears uncited. [3] is a parallel seq2seq precedent. The genuinely new part is narrower: cross-architecture zero-shot transfer in the fine-tuning setting, plus the per-token sequence formulation.

  • No learned baseline. The thesis is "learned beats hand-crafted," yet every baseline (Loss, Min-K%++, Zlib, RefLoss, EZ-MIA) is hand-crafted. The paper never compares against a learned attack, so it cannot show its gains come from the new design rather than from the (already-known) paradigm. Relevant missing comparisons include a [2]-style audit classifier and a LiRA-style attack [4] instantiated on the shadows the authors already have.

  • Transfer untested across fine-tuning configurations. The threat model is "train-once-attack-anywhere," but every target — train and eval — uses one fixed recipe (3 epochs, lr 5e-5, mostly LoRA r=16). Transfer is shown only across architecture and dataset, never across the recipe itself. Since memorization scales with overfitting [5], a classifier calibrated to "3-epoch / lr-5e-5" may fail under different lr, epochs, PEFT method, or seed — and this is the most realistic shift, since a real attacker doesn't know the victim's recipe. This is also a confound for S1: non-transformers are all fully fine-tuned while most transformers use LoRA, so "non-transformers exceed transformers" may partly reflect full-FT vs. LoRA (the n=3 control is underpowered).

References

[1] R. Shokri, M. Stronati, C. Song, V. Shmatikov. Membership Inference Attacks Against Machine Learning Models. IEEE S&P, 2017.

[2] C. Song, V. Shmatikov. Auditing Data Provenance in Text-Generation Models. KDD, 2019.

[3] S. Hisamoto, M. Post, K. Duh. Membership Inference Attacks on Sequence-to-Sequence Models: Is My Data In Your Machine Translation System? TACL, 2020.

[4] N. Carlini, S. Chien, M. Nasr, S. Song, A. Terzis, F. Tramèr. Membership Inference Attacks From First Principles. IEEE S&P, 2022.

[5] S. Yeom, I. Giacomelli, M. Fredrikson, S. Jha. Privacy Risk in Machine Learning: Analyzing the Connection to Overfitting. IEEE CSF, 2018.

Questions

Please see weakness

Limitations

yes

Paper formatting concerns

No

Final justification

I thank the authors for a substantive rebuttal, and I raise Quality to 3 for the additional experiments. My remaining concern is the one I raised first. The issue is not two missing references; it is that Sec. 2's taxonomy has no cell for the paper's own nearest neighbour. "The scalability gap" asserts that learned attacks exist in other domains but have not scaled to language models, and the four claimed contributions are derived from that assertion. Song & Shmatikov (KDD 2019) is a learned attack on text-generation models, i.e. the cell declared empty. Once that is conceded, the framing has to be re-derived rather than reworded. I acknowledge the authors have added a baseline in that line, but the surrounding positioning still rests on the original taxonomy. This is a substantial revision rather than a rebuttal-period fix, so I maintain my rating at 3.

Reviewer_4JbYOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The work introduces a new method for membership inference. This is an important question, and the authors seem to propose a very promising and efficient/scalable method. The reviewer acknowledges a lack of domain expertise in membership inference literature, and hence the review should be taken with a grain of salt.

Strengths and weaknesses

Strengths:

  • Important problem, and the authors propose a very promising and efficient/scalable method.
  • Strong and extensive empirical results.

Limitations:

  • The selected models (Appendix A and alternative architectures) seem somewhat outdated
  • Minor, but Figure 2 is of low resolution.

Questions:

  • It's not clear to me why the author focuses on linear attention / state-space models as alternatives. There are also architectures, such as diffusion-based or looped transformer models.

Finally, it's worth acknowledging that the reviewer lacks knowledge in this area, reflected in the low confidence.

Questions

See above.

Limitations

Yes.

Paper formatting concerns

NA

Final justification

Thanks to the authors for clarifying all my questions. I also took a look at other reviews, but they did not particularly change my opinion on this matter. It's important to acknowledge that the reviewer lacks domain expertise in this area, and as such, the comments should be taken with a grain of salt.

Reviewer_GitSOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This work introduces a new membership inference attack (MIA) on large language models that is based is on a custom transformer architecture using per-token features. The authors study the transferability of this attack and compare it to existing MIAs targeting LLMs. Experimental results suggest that the attack performs better than alternatives.

Strengths and weaknesses
  • This work contributes to recent research efforts to design stronger MIAs for LLMs, which is timely and critical to understand privacy leakage for LLMs.
  • The paper makes a case for learned attacks and transferability across target models. In particular, it provides experimental results for numerous datasets and a variety of target models (transformers and others).
  • Importantly the two main ideas in the work are not new. Transferability for MIA was studied by Salem et al. NDSS 2019 and ``learned attacks'' (shadow models, attack classifiers) were introduced in the 2017 Shokri et al. paper. So the novelty is mostly revisiting these ideas for LLMs and proposing a specific attack pipeline.
  • The work does not account for computational cost of the methods. It is universally understood fro MIAs that more computation boosts success rates (e.g., more shadow/reference models or a larger attack network). Since this was not evaluated, it is not clear what conclusions we can draw from experimental results presented in the paper. LT-MIA may yield higher AUCROC than prior work such as EZ-MIA or RefLoss but the computational cost of the methods is not the same.
  • The method is presented as a black-box attack, but this could be somewhat misleading. The attack requires per-token features such as losses. These are not necessarily available in a typical black-box setting where say inference on closed-source models is done through an API. It would make to sense to discuss this in the text, because experimental comparison to other attacks may be unfair if these attacks only rely on the full sequence loss or log-likelihood.
  • The results only apply to fine-tuning LLMs.It is of course not expected that authors pre-train LLMs, but it is important to keep in mind. I see no obvious reason why leakage/memorization during fine-tuning should be substantially similar to leakage/memorization of pretraining.
Questions
  • The work could provide greater details regarding experimental setup. Are all members and nonmembers sequences of 128 tokens in length (with no padding)? How are these sequences selected within the text documents?
  • The paper would be stronger if instead of a kind of kitchen-sink approach to experimental evaluation, it focused on a small set of carefully crafted experiments each to test a specific hypothesis. There are number of hypotheses at play here. For example: are per-token features beneficial? Presumably one could train a transformer on only full-sequence features and compare its performance to the per-token features attack pipeline.
  • The paper claims that the membership signal is inherent to cross-entropy loss training. I see no clear evidentiary support for this claim. Did you attempt to fine-tune using other losses?
Limitations

yes

Paper formatting concerns

no formatting concerns.

Final justification

I appreciate the clarifications from authors and I am increasing my score accordingly.

Comments on the paper

1 comment
Meta-review

Summary

This submission studies membership inference against fine-tuned autoregressive language models. Its premise is that fine-tuning a model on a corpus yields ground-truth membership labels by construction, which the authors argue removes the shadow-model bottleneck and lets membership inference be treated as a standard supervised-learning problem. The proposed method, LT-MIA, extracts per-token features that compare a fine-tuned target model against its pre-trained reference, including per-token losses, ground-truth-token logits and ranks, and cross-model rank features, then classifies the resulting feature sequence with a small transformer encoder. The central empirical claim is cross-architecture zero-shot transfer: a classifier trained only on transformer families transfers to a state-space model, a linear-attention model, and a gated-recurrence model without retraining, and on those held-out families it reportedly matches or exceeds performance on held-out transformers. The authors read this as evidence that the memorization signature lives in the cross-entropy-induced output distribution rather than in architecture-specific computation, supported by a feature-importance analysis in which comparison features dominate across all families and a diversity ablation in which many model-dataset combinations outperform a single combination at matched data volume. The evaluation spans several datasets, reports strict low false-positive-rate operating points rather than AUC alone, and includes a code-domain transfer test.

Main Strengths

  • The cross-architecture transfer result is a genuine and cleanly demonstrated empirical finding: a detector trained only on transformer families carries over to state-space, linear-attention, and gated-recurrence targets, and the effect is present even for simple likelihood-based baselines rather than being specific to the proposed classifier.
  • The observation that fine-tuning supplies membership labels by construction is a clean framing that sidesteps the cost of training many dedicated shadow models, and the resulting pipeline is cheap and reproducible.
  • The diversity-versus-scale ablation is well designed and offers a plausible mechanism for why transfer occurs: training across many model-dataset combinations filters model-specific artifacts and retains a shared signal, and the effect is shown at matched total data volume.
  • The paper is candid about its own limitations, including degraded performance when the reference model already assigns high likelihood to the text, the requirement for a same-architecture pre-trained reference, reduced performance on code, and the restriction to fine-tuning.

Main Weaknesses

  1. The central framing over-claims novelty and omits a directly relevant predecessor. Describing LT-MIA as the first learned attack, as removing the shadow-model bottleneck, and as moving membership inference into the deep-learning era does not survive contact with prior work: training a classifier on constructed-membership labels is the shadow-model paradigm, and there is a directly relevant predecessor, an audit of data provenance in text-generation models that trains learned classifiers over token-rank features under a black-box, provenance-driven framing (Song and Shmatikov, KDD 2019), which overlaps substantially with this paper's dominant comparison features and is uncited. The genuinely new element is narrower than the framing suggests, namely cross-architecture zero-shot transfer in the fine-tuning setting together with the per-token sequence formulation. This is the concern I weight most heavily, and it is structural: it is resolved by re-scoping the claims and engaging the missing prior art, not by restating the current framing. Reviewers 2ne8 and GitS raise this.
  2. The headline thesis is that a learned attack beats hand-crafted heuristics, yet the paper includes no learned baseline. Every comparison method is a hand-crafted statistic, so the results cannot separate gains that come from the new design from gains that come from the already-known learned paradigm. Instantiating a prior-style learned auditor, or a first-principles per-example attack on the shadows the authors have already constructed, would be the natural test, and its absence leaves the paper's main positioning unsupported. This is closely tied to weakness 1 in importance.
  3. The threat model is presented as train-once-attack-anywhere, but transfer is never tested across fine-tuning recipes. All targets share one fixed configuration, so transfer is shown across architecture and dataset but not across the learning rate, epoch count, adaptation method, or seed, which is the most realistic unknown for an attacker who does not know the victim's setup. The same gap confounds the headline claim that non-transformer families exceed transformers, since the non-transformer targets are fully fine-tuned while most transformer targets use low-rank adaptation, and the control the paper offers for this is underpowered.
  4. The strong scientific claim that the memorization signature is intrinsic to cross-entropy training is not directly evidenced. The paper varies architecture and data domain but never varies the training objective, so it cannot isolate cross-entropy as the cause rather than a shared property of the settings tested, and the statement that architectural innovation within this paradigm did not escape the attack outruns the evidence.
  5. The black-box characterization is misleading, and this bears on comparison fairness. The attack requires per-token losses, full-vocabulary logits, and a same-architecture pre-trained reference, which are available for open-weight models but not through typical inference APIs, so comparisons against baselines that use only full-sequence quantities may not be like-for-like. The paper does acknowledge the open-weight restriction, but the framing and the comparison design still warrant correction.
  6. Two further evaluation gaps are fixable but currently limit the conclusions: computational cost is not accounted for, even though additional compute is known to raise membership-inference success and the compared methods do not operate under equal budgets, and there is no controlled check for exact or approximate overlap between pretraining and fine-tuning data, a known driver of measured memorization.

In general, the concerns that dominate my recommendation are structural. Weaknesses 1 and 2 together mean the paper's two headline contributions are at once over-claimed relative to prior art and unsupported by the comparison design, and a response that only restates the current framing will not move me. To reconsider, I would need the claims re-scoped to the genuinely novel core, the missing prior work engaged directly, and at least one learned baseline reported on the shadows the authors already have, so that the learned-beats-hand-crafted claim is tested rather than asserted. Weakness 3 is partly answerable with new evidence, a demonstration of transfer across at least a few fine-tuning recipes together with a properly powered version of the full-fine-tuning-versus-adaptation control, and weakness 4 would be strengthened by any experiment that varies the training objective rather than by restating the cross-entropy interpretation. Weakness 5 is largely a framing and comparison-fairness fix, and weakness 6 is addressable with a compute-cost accounting and a controlled contamination check.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.