CLMar 5

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

arXiv:2603.04828v1
Originality Highly original
AI Analysis

This work provides a more robust and transferable method for detecting pre-training data in LLMs, which is crucial for addressing copyright concerns and ensuring the integrity of benchmarks for the broader AI community.

This paper addresses the problem of detecting pre-training data in Large Language Models (LLMs) to tackle copyright and benchmark contamination issues. The proposed method, GDS, leverages systematic differences in gradient behavior between familiar (pre-training) and unfamiliar (non-pre-training) samples, achieving state-of-the-art performance and significantly improved cross-dataset transferability on five public datasets.

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 analyse show gradient feature distribution differences, enabling practical and scalable pre-training data detection.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes