PDR: A Plug-and-Play Positional Decay Framework for LLM Pre-training Data Detection
Jinhan Liu, Yibo Yang, Ruiying Lu, Piotr Piekos, Yimeng Chen, Peng Wang, Dandan Guo
TL;DR
This work identifies a critical limitation of existing likelihood-based pre-training data detection methods: uniform token-score aggregation dilutes memorization signals that are concentrated in the initial, high-entropy portion of a sequence. It introduces Positional Decay Reweighting (PDR), a training-free, plug-and-play framework that applies monotone decay weights over token positions to emphasize early signals when computing detection scores. Through extensive experiments on WikiMIA and MIMIR across multiple backbones and detection baselines (e.g., Loss, Ref, Min-$k$%++, FSD), PDR yields consistent AUROC gains, with more pronounced improvements on longer sequences and challenging settings. The method is demonstrated to be robust via ablations and bootstrap significance testing, and is positioned as a practical tool for auditing data memorization in LLMs, potentially informing defenses like differential privacy or unlearning. In summary, PDR provides a principled, versatile prior that enhances current detection techniques without retraining models, advancing our ability to audit and mitigate memorization risks in large language models.
Abstract
Detecting pre-training data in Large Language Models (LLMs) is crucial for auditing data privacy and copyright compliance, yet it remains challenging in black-box, zero-shot settings where computational resources and training data are scarce. While existing likelihood-based methods have shown promise, they typically aggregate token-level scores using uniform weights, thereby neglecting the inherent information-theoretic dynamics of autoregressive generation. In this paper, we hypothesize and empirically validate that memorization signals are heavily skewed towards the high-entropy initial tokens, where model uncertainty is highest, and decay as context accumulates. To leverage this linguistic property, we introduce Positional Decay Reweighting (PDR), a training-free and plug-and-play framework. PDR explicitly reweights token-level scores to amplify distinct signals from early positions while suppressing noise from later ones. Extensive experiments show that PDR acts as a robust prior and can usually enhance a wide range of advanced methods across multiple benchmarks.
