LLM Dataset Inference: Did you train on my dataset?

Pratyush Maini, Hengrui Jia, Nicolas Papernot, Adam Dziedzic

arXiv:2406.06443 · 2026-07-27 공개 · arXiv · PDF

llm distribution-shift membership-inference-attacks copyright pile-dataset statistical-test training-data-identification dataset-inference

Abstract

The proliferation of large language models (LLMs) in the real world has come with a rise in copyright cases against companies for training their models on unlicensed data from the internet. Recent works have presented methods to identify if individual text sequences were members of the model's training data, known as membership inference attacks (MIAs). We demonstrate that the apparent success of these MIAs is confounded by selecting non-members (text sequences not used for training) belonging to a different distribution from the members (e.g., temporally shifted recent Wikipedia articles compared with ones used to train the model). This distribution shift makes membership inference appear successful. However, most MIA methods perform no better than random guessing when discriminating between members and non-members from the same distribution (e.g., in this case, the same period of time). Even when MIAs work, we find that different MIAs succeed at inferring membership of samples from different distributions. Instead, we propose a new dataset inference method to accurately identify the datasets used to train large language models. This paradigm sits realistically in the modern-day copyright landscape, where authors claim that an LLM is trained over multiple documents (such as a book) written by them, rather than one particular paragraph. While dataset inference shares many of the challenges of membership inference, we solve it by selectively combining the MIAs that provide positive signal for a given distribution, and aggregating them to perform a statistical test on a given dataset. Our approach successfully distinguishes the train and test sets of different subsets of the Pile with statistically significant p-values<0.1, without any false positives.

한국어 요약

한 줄 요약

LLM의 학습 데이터셋을 정확히 추적할 수 있는 새로운 데이터셋 추론 기법을 제안하며, Pile 데이터셋의 학습/검증 분할을 p-value < 0.1로 구분함.

핵심 기여도

핵심 아이디어

기존 멤버십 추론 공격(MIAs)은 특정 텍스트가 모델 학습 데이터에 포함되었는지를 추정하는 기법이지만, 이 연구는 MIAs가 **분포 이동**(예: 시간적 이동된 위키백과 문서)을 감지하는 것으로, 실제 멤버십 추론 성능은 난수 수준임을 밝힘. 이는 MIAs가 **개별 문장**(sentence)이 아닌 **개념**(concept)을 감지한다는 점에서 비롯됨.

이에 따라, 연구자는 **데이터셋 추론(dataset inference)**이라는 새로운 패러다임을 제안함. 이는 특정 **데이터셋**(예: 저자의 여러 문장 또는 책)이 모델 학습에 포함되었는지를 통계적으로 판단하는 기법으로, **Pythia 모델**과 **Pile 데이터셋**을 기반으로 실험됨. 이 접근법은 저작권 분쟁에서 **개별 문장보다 데이터셋 단위의 속성**을 추정하는 것이 더 실용적이라는 통찰을 반영함.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용