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는 분포 이동(distribution shift)을 감지하는 것으로, 실제 멤버십 추론 성능은 난수 추측 수준임을 밝힘.
- 새로운 **데이터셋 추론(dataset inference)** 기법을 제안, Pile의 학습/검증 분할을 **p-value < 0.1**로 구분하며 **가짜 양성 없음**.
- **1000개의 텍스트 시퀀스**만으로도 데이터셋의 학습 여부를 판단 가능함을 실증.
- MIAs의 취약성과 대안으로서의 데이터셋 추론의 실용성을 제시.
핵심 아이디어
기존 멤버십 추론 공격(MIAs)은 특정 텍스트가 모델 학습 데이터에 포함되었는지를 추정하는 기법이지만, 이 연구는 MIAs가 **분포 이동**(예: 시간적 이동된 위키백과 문서)을 감지하는 것으로, 실제 멤버십 추론 성능은 난수 수준임을 밝힘. 이는 MIAs가 **개별 문장**(sentence)이 아닌 **개념**(concept)을 감지한다는 점에서 비롯됨.
이에 따라, 연구자는 **데이터셋 추론(dataset inference)**이라는 새로운 패러다임을 제안함. 이는 특정 **데이터셋**(예: 저자의 여러 문장 또는 책)이 모델 학습에 포함되었는지를 통계적으로 판단하는 기법으로, **Pythia 모델**과 **Pile 데이터셋**을 기반으로 실험됨. 이 접근법은 저작권 분쟁에서 **개별 문장보다 데이터셋 단위의 속성**을 추정하는 것이 더 실용적이라는 통찰을 반영함.
기술적 접근법
- **Dataset inference**: MIAs 중 특정 분포에 신호를 제공하는 공격을 선택적으로 결합하고, 이를 통계적 검정(p-value 기반)으로 집계함.
- **Pythia 모델**과 **Pile 데이터셋**을 사용한 실험.
- **IID 분할**(Independent and Identically Distributed)을 기반으로 학습/검증 데이터를 비교.
- **1000개의 텍스트 시퀀스**만으로도 데이터셋의 학습 여부를 판단 가능.
- **False positive 없음**: 두 검증 데이터셋 간 비교 시 p-value > 0.5.
- **P-value 기준**: 학습/검증 분할 구분 시 p-value < 0.1.
주요 결과
- **Pile 데이터셋**의 모든 하위 집합에서 학습/검증 분할을 **p-value < 0.1**로 구분함.
- **False positive 없음**: 두 검증 데이터셋 간 비교 시 p-value > 0.5.
- **1000개의 텍스트 시퀀스**만으로도 데이터셋의 학습 여부를 판단 가능.
- **P-value는 1e-30 수준**으로, 데이터셋 소유권을 높은 신뢰도로 추정 가능.
의의 및 한계
- **저작권 분쟁**에서 **개별 문장보다 데이터셋 단위의 속성**을 추정하는 것이 더 실용적임을 입증.
- 기존 MIAs의 **분포 이동에 대한 민감도**와 **불안정성**을 지적하며, 이를 극복한 새로운 패러다임 제시.
- 한계로는 **모든 데이터셋에 대한 일반화 가능성**이 명시되지 않음. 또한, **실제 LLM의 학습 데이터가 공개되지 않은 경우** 적용이 어려울 수 있음.
실용적 활용
- 저작권 분쟁에서 **저자의 여러 문서**(예: 책, 시리즈)가 LLM 학습에 포함되었는지를 판단하는 데 활용 가능.
- **법적 소송**이나 **데이터 책임성**(data accountability)을 강화하는 데 기여할 수 있음.
- **1000개의 텍스트 시퀀스**만으로도 판단 가능하므로, **저작권 침해 조사**에 실용적.