NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Learning the Signature of Memorization in Autoregressive Language Models

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

NeurIPS page · OpenReview · Open on the map

Category: AI Safety, Security & Alignment › Membership Inference and Privacy Leakage · Type: new method · Keywords: membership inference, memorization detection, cross-architecture transfer, language model privacy, learned attack

Summary

The paper introduces a learned membership inference attack that discovers an invariant memorization signature across language model families, enabling zero-shot transfer to architectures like Mamba, RWKV-4, and RecurrentGemma, and achieving significantly higher detection rates than prior heuristics.

Explained to a 5-year-old

When we teach a language model, it sometimes remembers the exact words it was shown. We made a new way to tell if a new sentence was part of that teaching by looking for special patterns. This trick works for many kinds of language models, even those that think in completely different ways. It helps keep people's information safe by showing when a model might be leaking what it learned. We also released the tool so others can use it to check their models.

Explained to a 5-year-old, longer

When we teach a computer program to understand language, we show it lots of sentences to read. After learning, the program sometimes keeps a copy of the exact words it saw during teaching. We wanted a way to find out if a new sentence the program sees was actually part of its teaching. Instead of guessing with simple rules, we let another computer learn what patterns look like when the program has memorized something. This new computer learns from many different language models, so it can notice similar patterns even if the models work differently. It can tell whether a sentence was used to train a model, even for models that use new ideas like recurrence or attention. The method works for regular language models as well as for models that handle code or other kinds of text. By spotting these patterns, we can protect people's privacy because we can see if a model might be revealing what it learned. The tool we built is easy to use, so other researchers can check their own models for similar memory leaks. We also made sure the method works on many different kinds of data, not just the ones we first trained on. This helps keep the information that goes into language models safe and under control. All of this was done without needing complicated shadow models or hand-crafted rules.

For a technical reader

The paper tackles membership inference for fine-tuned language models, a problem that currently relies on heuristic-based attacks. The authors observe that fine-tuning creates a consistent memorization pattern across diverse model families. By training a classifier on transformer models using per-token statistical features, they produce a transferable detector that works on unrelated architectures such as Mamba, RWKV-4, and RecurrentGemma. Empirical results show this learned approach markedly outperforms traditional baselines, achieving higher true-positive rates at very low false-positive thresholds and even extending to code-domain datasets. The released code and model enable practitioners to evaluate privacy leakage in their own language models without constructing shadow models.

Problem

Existing membership inference attacks for fine-tuned language models rely on hand-crafted heuristics that are limited by designer intuition and do not generalize across model architectures. There is a need for a method that can reliably detect whether a data point was used in training without such manual design.

Method

The authors train a classifier on transformer models using per-token distributional statistics, then apply this learned detector as a sequence-classification model that captures a common memorization signature observable across diverse architectures.

Results

The classifier transfers zero-shot to Mamba (0.963 AUC), RWKV-4 (0.972 AUC), and RecurrentGemma (0.936 AUC), all exceeding held-out transformer performance (0.908 AUC), and achieves a 2.8× higher true-positive rate at 0.1 % false-positive rate than the strongest baseline; it also transfers to code data (0.865 AUC).

Contributions

First transferable learned membership inference attack, discovery of an invariant memorization signature across model families, demonstration of strong cross-architecture transfer, and release of code and the trained classifier for community use.

Practical relevance

Provides a practical tool for privacy auditing of language models across architectures, reducing reliance on shadow models and enabling more effective detection of memorization leakage.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction