mlsanityData to 7 Oct 2026

From Unfamiliar to Familiar: Detecting Pre-training Data via Gradient Deviations in Large Language Models

arXiv 2603.04828 ↗First posted 5 Mar 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Pre-training data detection for LLMs is essential for addressing copyright concerns and mitigating benchmark contamination. Existing methods mainly focus on the likelihood-based statistical features or heuristic signals before and after fine-tuning, but the former are susceptible to word frequency bias in corpora, and the latter strongly depend on the similarity of fine-tuning data. From an optimization perspective, we observe that during training, samples transition from unfamiliar to familiar in a manner reflected by systematic differences in gradient behavior. Familiar samples exhibit smaller update magnitudes, distinct update locations in model components, and more sharply activated neurons. Based on this insight, we propose GDS, a method that identifies pre-training data by probing Gradient Deviation Scores of target samples. Specifically, we first represent each sample using gradient profiles that capture the magnitude, location, and concentration of parameter updates across FFN and Attention modules, revealing consistent distinctions between member and non-member data. These features are then fed into a lightweight classifier to perform binary membership inference. Experiments on five public datasets show that GDS achieves state-of-the-art performance with significantly improved cross-dataset transferability over strong baselines. Further interpretability analyses reveal differences in gradient distributions, and the semi-supervised results offer a practical way to detect pre-training data.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 31 references that are in the map. First posted on arXiv 5 Mar 2026.

Builds on

19 of 31 references.

References · 19

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2020Scaling Laws for Neural Language Modelscited by 6,411
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  5. 2020Extracting Training Data from Large Language Modelscited by 2,144
  6. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  7. 2016An overview of gradient descent optimization algorithmscited by 1,021
  8. 2023Detecting Pretraining Data from Large Language Modelscited by 375
  9. 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMscited by 224
  10. 2018Gradient Descent Happens in a Tiny Subspacecited by 208
  11. 2024Do Membership Inference Attacks Work on Large Language Models?cited by 188
  12. 2020The Early Phase of Neural Network Trainingcited by 114
7 more
  1. 2024DE-COP: Detecting Copyrighted Content in Language Models Training Datacited by 72
  2. 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Methodcited by 54
  3. 2023Estimating Contamination via Perplexity: Quantifying Memorisation in Language Model Evaluationcited by 47
  4. 2024Probing Language Models for Pre-training Data Detectioncited by 24
  5. 2024Q-Sparse: All Large Language Models can be Fully Sparsely-Activatedcited by 24
  6. 2025How Contaminated Is Your Benchmark? Quantifying Dataset Leakage in Large Language Models with Kernel Divergencecited by 13
  7. 2024Fine-tuning can Help Detect Pretraining Data from Large Language Modelscited by 7

Built on by

Not cited yet.