Lune

ICLR2025Top-tier venue

Infilling Score: A Pretraining Data Detection Algorithm for Large Language Models

Negin Raoof, Litu Rout, Giannis Daras, Sujay Sanghavi, Constantine Caramanis, Sanjay Shakkottai, Alex Dimakis

Abstract

In pretraining data detection, the goal is to detect whether a given sentence is in the dataset used for training a Large Language Model (LLM). Recent methods (such as Min-K% and Min-K%++) reveal that most training corpora are likely contaminated with both sensitive content and evaluation benchmarks, leading to inflated test set performance. These methods sometimes fail to detect samples from the pretraining data, primarily because they depend on statistics composed of causal token likelihoods. We introduce Infilling Score, a new test-statistic based on non-causal token likelihoods. Infilling Score can be computed for autoregressive models without re-training using Bayes rule. A naive application of Bayes rule scales linearly with the vocabulary size. However, we propose a ratio test-statistic whose computation is invariant to vocabulary size. Empirically, our method achieves a significant accuracy gain over state-of-the-art methods including Min-K%, and Min-K%++ on the WikiMIA benchmark across seven models with different parameter sizes. Further, we achieve higher AUC compared to reference-free methods on the challenging MIMIR benchmark. Finally, we create a benchmark dataset consisting of recent data sources published after the release of Llama-3; this benchmark provides a statistical baseline to indicate potential corpora used for Llama-3 training.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On the Salience of Low-Probability Tokens for AI-Generated Text Detection: A Multiscale Uncertainty Perspective cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • On the Salience of Low-Probability Tokens for AI-Generated Text Detection: A Multiscale Uncertainty Perspective cites Detecting Pretraining Data from Large Language Models
  • Provable Training Data Identification for Large Language Models cites Membership Inference Attacks Against Machine Learning Models
  • Provable Training Data Identification for Large Language Models cites Membership Inference Attacks From First Principles
  • Provable Training Data Identification for Large Language Models cites Detecting Pretraining Data from Large Language Models
  • Membership Inference Attacks From First Principles cites Membership Inference Attacks Against Machine Learning Models
  • ICAS: Detecting Training Data from Autoregressive Image Generative Models cites Membership Inference Attacks From First Principles
  • ICAS: Detecting Training Data from Autoregressive Image Generative Models cites Detecting Pretraining Data from Large Language Models
  • Detecting Pretraining Data from Large Language Models cites Membership Inference Attacks Against Machine Learning Models
  • Detecting Pretraining Data from Large Language Models cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • Detecting Pretraining Data from Large Language Models cites Membership Inference Attacks From First Principles
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. ICAS: Detecting Training Data from Autoregressive Image Generative ModelsHongyao Yu, Yixiang Qiu, Yiheng Yang, Hao Fang et al.ACM MM 2025 · 2 citations
  2. On the Salience of Low-Probability Tokens for AI-Generated Text Detection: A Multiscale Uncertainty PerspectiveYikai Guo, Bin Wang, Xilai Fan, Wenjun Ke et al.ICML 2026
  3. Provable Training Data Identification for Large Language ModelsZhenlong Liu, Hao Zeng, Weiran Huang, Hongxin WeiICML 2026

Builds on12

  1. Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
  2. Membership Inference Attacks From First PrinciplesNicholas Carlini, Steve Chien, Milad Nasr, Shuang Song et al.S&P 2022 · 1,049 citations
  3. DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability CurvatureEric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning et al.ICML 2023 · 988 citations
  4. Detecting Pretraining Data from Large Language ModelsWeijia Shi, Anirudh Ajith, Mengzhou Xia, Yangsibo Huang et al.ICLR 2024 · 365 citations
  5. Stability of Stochastic Gradient Descent on Nonsmooth Convex LossesRaef Bassily, Vitaly Feldman, Cristóbal Guzmán, Kunal TalwarNeurIPS 2020 · 240 citations

Related papers

  1. Min-K%++: Improved Baseline for Pre-Training Data Detection from Large Language ModelsJingyang Zhang, Jingwei Sun, Eric C. Yeats, Yang Ouyang et al.ICLR 2025
  2. Pretraining Data Detection for Large Language Models: A Divergence-based Calibration MethodWeichao Zhang, Ruqing Zhang, Jiafeng Guo, Maarten de Rijke et al.EMNLP 2024 · 7 citations
  3. Tag&Tab: Pretraining Data Detection in Large Language Models Using Keyword-Based Membership Inference AttackSagiv Antebi, Edan Habler, Asaf Shabtai, Yuval EloviciEMNLP Findings 2025
  4. ReCaLL: Membership Inference via Relative Conditional Log-LikelihoodsRoy Xie, Junlin Wang, Ruomin Huang, Minxing Zhang et al.EMNLP 2024 · 8 citations
  5. STAMP Your Content: Proving Dataset Membership via Watermarked RephrasingsSaksham Rastogi, Pratyush Maini, Danish PruthiICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines