Learning the Signature of Memorization in Autoregressive Language Models
David Ilić ⋅ Kostadin Cvejoski ⋅ David Stanojević ⋅ Evgeny Grigorenko
Abstract
We introduce a learned membership inference attack that transfers zero-shot to architectural families absent from its training set, enabled by the observation that fine-tuning any model on any corpus yields abundant labeled data, since membership is known by construction. This decouples attack training from target identity, replacing target fidelity with source diversity: a single classifier, trained once on diverse public fine-tuning runs, generalizes to unseen architectures without retraining. We observe that fine-tuning language models produces a 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 combining an architecture and dataset never seen during training. These four families share no computational mechanisms, their only shared property 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$\times$ 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 accompanies cross-entropy training across every architecture we tested. Code and trained classifier are both provided.
Successful Page Load