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

Positional Decay Reweighting (PDR) is a training-free, plug-and-play framework that significantly improves pre-training data detection in Large Language Models (LLMs). By exploiting the information-theoretic property that memorization signals are strongest in early, high-entropy tokens and decay as context accumulates, PDR applies a monotonically decreasing weight to token-level scores. This simple modification yields consistent performance gains across multiple advanced membership inference baselines and diverse model architectures without incurring any additional computational overhead.

What Problem Does This Paper Address?

As LLMs are trained on massive internet-scale corpora, they run the risk of memorizing sensitive, copyrighted, or private information. Pre-training data detection—a subset of Membership Inference Attacks (MIA)—seeks to determine whether a specific text sample was part of a model's training set. This is crucial for data privacy auditing, copyright compliance, and analyzing test-set contamination.

While zero-shot, likelihood-based detection methods (such as standard Loss or Min-k%) have shown promise, they suffer from a fundamental limitation: uniform score aggregation. They assign equal weight to every token's contribution to the final detection score. This ignores the inherent dynamics of autoregressive generation, where the predictive uncertainty changes drastically across a sequence, ultimately diluting the most informative signals with late-sequence noise.

Methods

The authors introduce Positional Decay Reweighting (PDR), a lightweight wrapper designed to correct the uniform weighting flaw in existing likelihood-based scoring functions.

Instead of treating all tokens equally, PDR applies a monotonically decreasing weight function based on a token's position $t$ within a sequence of length $T$. The paper explores three standardized decay families:

  1. Linear Decay: Linearly decreases the token weight from 1, controlled by a hyperparameter $\alpha$.
  2. Exponential Decay: Applies a sharper, non-linear decay to place heavy emphasis on the initial tokens.
  3. Polynomial Decay: Offers a flexible curvature controlled by an exponent $\alpha$, allowing for faster or slower initial decay rates.
Overview of Positional Decay Reweighting (PDR) framework

For standard full-sequence aggregation methods (like Loss), PDR weights each token's log-probability before averaging. For outlier-based methods (like Min-k%), PDR is applied after the lowest-probability tokens are selected, ensuring that the reweighting preserves the original positions of the identified outliers.

Datasets

The framework was evaluated across two primary benchmarks:

  • WikiMIA: Utilizes Wikipedia texts split by temporal timestamps to separate training (member) and non-training (non-member) data. It features varying sequence lengths (32, 64, and 128 tokens) and includes both verbatim ("original") and ChatGPT-paraphrased evaluation settings.
  • MIMIR: A more challenging benchmark built on the Pile dataset. Because member and non-member texts originate from the same source, it minimizes distribution and temporal shifts, making the membership signals exceptionally subtle.

Key Insights and Ideas

  • The Entropy Trend: Driven by the information-theoretic principle that conditioning on more information cannot increase entropy, the authors demonstrate that token-level entropy naturally drops as an autoregressive model processes a sequence.
  • The "Surprise" Factor: An unusually confident (high-probability) prediction for an early, high-entropy token is highly surprising. This confidence is a strong indicator of rote memorization rather than contextual generalization.
  • Shrinking Discriminative Gaps: In later positions of a text sequence, the abundance of context makes tokens easy to predict for both member and non-member samples alike. Uniformly averaging these positions dilutes the potent, high-fidelity signals from the beginning of the sequence.
Visualization of token-level entropy and log-probability trends

Key Results

Integrating PDR (specifically the Linear variant, LPDR) consistently enhanced the detection accuracy of existing likelihood-based MIA methods across diverse model families (including Pythia, LLaMA, OPT, and Mamba):

  • Substantial AUROC Boosts: On the WikiMIA benchmark (length 128), adding LPDR to the advanced Min-k%++ baseline improved the average AUROC by 2.3 points in the original setting and 4.7 points in the paraphrased setting.
  • Synergy with Fine-Tuning: PDR proved highly effective when combined with advanced frameworks like Finetuning-based Score Difference (FSD), yielding consistent improvements across various target LLMs.
AUROC improvements when integrating LPDR within the FSD framework
  • Robustness Across Decay Rates: Ablation studies showed that while full-sequence methods (Loss, Ref) favor a sharper decay ($\alpha = 1$), outlier-based methods benefit from a smoother decay. However, a default setting of $\alpha = 1$ consistently delivered robust gains without requiring method-specific tuning.

Limitations and Future Work

  • Language and Tokenization Constraints: The evaluation focused primarily on English text. Because tokenization granularity varies significantly across languages, the ideal decay shape and positional information distribution might differ for non-English corpora.
  • Weak Memorization and Sentence Boundaries: PDR assumes a strict monotonic decay. In cases of weak memorization, or when a fixed-length window splits a sentence mid-stream (creating a "new sentence start" later in the sequence), the monotonic assumption can become counterproductive.

The authors suggest that developing adaptive weighting schemes that dynamically detect sentence boundaries or weak memory traces represents a promising direction for future work.

Summary updated

BibTeX
@inproceedings{liu2026pdr,
  author = {Jinhan Liu and Yibo Yang and Ruiying Lu and Piotr Piekos and Yimeng Chen and Peng Wang and Dandan Guo},
  title = {{PDR: A Plug-and-Play Positional Decay Framework for LLM Pre-training Data Detection}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.562},
}
Figure