Skip to main content
QUICK REVIEW

[논문 리뷰] Detecting Pretraining Data from Large Language Models

Weijia Shi, Anirudh Ajith|arXiv (Cornell University)|2023. 10. 25.
Topic ModelingComputer Science인용 수 13
한 줄 요약

WikiMIA라는 텍스트가 대형 언어 모델의 사전 학습 데이터의 일부였는지 여부를 감지하는 동적 벤치마크를 도입하고, 이상치 토큰 확률을 이용해 멤버십을 탐지하는 참조 모델 없이 작동하는 MIA 방법인 Min-k% Prob를 제안한다. 여러 모델과 실제 시나리오에서 베이스라인 대비 탐지 성능이 향상됨을 보여준다.

ABSTRACT

Although large language models (LLMs) are widely deployed, the data used to train them is rarely disclosed. Given the incredible scale of this data, up to trillions of tokens, it is all but certain that it includes potentially problematic text such as copyrighted materials, personally identifiable information, and test data for widely reported reference benchmarks. However, we currently have no way to know which data of these types is included or in what proportions. In this paper, we study the pretraining data detection problem: given a piece of text and black-box access to an LLM without knowing the pretraining data, can we determine if the model was trained on the provided text? To facilitate this study, we introduce a dynamic benchmark WIKIMIA that uses data created before and after model training to support gold truth detection. We also introduce a new detection method Min-K% Prob based on a simple hypothesis: an unseen example is likely to contain a few outlier words with low probabilities under the LLM, while a seen example is less likely to have words with such low probabilities. Min-K% Prob can be applied without any knowledge about the pretraining corpus or any additional training, departing from previous detection methods that require training a reference model on data that is similar to the pretraining data. Moreover, our experiments demonstrate that Min-K% Prob achieves a 7.4% improvement on WIKIMIA over these previous methods. We apply Min-K% Prob to three real-world scenarios, copyrighted book detection, contaminated downstream example detection and privacy auditing of machine unlearning, and find it a consistently effective solution.

연구 동기 및 목표

  • 대형 언어 모델의 사전 학습 코퍼라에서 잠재적으로 저작권이 있거나 비공개이거나 벤치마크 데이터일 수 있는 데이터를 식별해야 한다는 필요성을 제고한다.
  • 사전 학습 데이터 탐지 방법을 평가하기 위한 동적이고 모델에 구애받지 않는 벤치마크(WikiMIA)를 만든다.
  • 섀도우 모델이나 사전 학습 분포에 대한 접근 없이도 동작하는 경량의 참조 모델 없는 탐지 방법(Min-k% Prob)을 제안한다.
  • WikiMIA를 사용해 기준선과 비교하여 Min-k% Prob를 경험적으로 검증하고, 저작권, 프라이버시 감사, 데이터셋 오염 시나리오에 적용한다.

제안 방법

  • 사전 학습 데이터 탐지 문제를 블랙박스 LM 접근을 통한 멤버십 추론 공격으로 정의한다.
  • 2023년 전후의 위키피디아 사건 데이터를 이용해 보기(멤버)와 보지 않음(비멤버) 집합을 만들어 WikiMIA를 구성한다.
  • Min-k% Prob를 제안한다: 텍스트에서 토큰 확률을 계산하고 가장 낮은 k% 확률을 선택한 뒤 그들의 로그 가능도를 평균내어 어떤 참조 모델도 없이 멤버십을 탐지한다.
  • 보이지 않는 데이터가 보이는 데이터보다 더 많은 이상치 저확률 토큰을 포함한다는 가설로 Min-k% Prob를 정당화한다.
  • 여러 모델과 텍스트 길이에 걸쳐 Baselines(LOSS/PPL, Zlib, Lowercase, Smaller Ref, Neighbor)와 비교 평가한다.
  • 탐지에 영향을 주는 요인: 모델 크기와 텍스트 길이를 검토한다.
  • 실세계 작업에 Min-k% Prob를 적용한다: 저작권 도서 탐지, 기계 비가역 학습의 프라이버시 감사, 그리고 다운스트림 데이터셋 오염.
Figure 1: Overview of Min-k% Prob . To determine whether a text $X$ is in the pretraining data of a LLM such as GPT, Min-k% Prob first gets the probability for each token in $X$ , selects the $k$ % tokens with minimum probabilities and calculates their average log likelihood. If the average log like
Figure 1: Overview of Min-k% Prob . To determine whether a text $X$ is in the pretraining data of a LLM such as GPT, Min-k% Prob first gets the probability for each token in $X$ , selects the $k$ % tokens with minimum probabilities and calculates their average log likelihood. If the average log like

실험 결과

연구 질문

  • RQ1LM에 대한 블랙박스 접근만으로 텍스트가 모델의 사전 학습 데이터의 일부로 신뢰성 있게 탐지될 수 있는가?
  • RQ2단순하고 참조 모델 없는 탐지기(Min-k% Prob)가 섀도우 모델이나 보정된 확률에 의존하는 베이스라인보다 우수한가?
  • RQ3모델 크기, 텍스트 길이, 패러프레이즈가 사전 학습 데이터 탐지 성능에 어떤 영향을 미치는가?
  • RQ4저작권 탐지, 프라이버시 감사, 데이터셋 오염과 같은 실제 시나리오에서 이 접근법이 효과적일 수 있는가?

주요 결과

  • Min-k% Prob는 여러 모델에서 베이스라인보다 더 높은 AUC를 달성한다(평균 AUC 0.72, 최고 베이스라인보다 7.4%p 높은 값).
  • 모델 크기가 커지고 텍스트 길이가 길어질수록 탐지 성능이 향상된다.
  • 패러프레이즈 설정에서도 Min-k% Prob로 강한 탐지가 지속되며 베 baseline을 능가한다.
  • 저작권 도서 탐지에서 Min-k% Prob는 AUC 0.88을 달성했고 Books3 조각에서 상당한 오염을 밝혀냈다.
  • 오염물 하류 데이터 탐지는 오염물이 이상치일 때 및 높은 학습률일 때 더 높은 AUC를 보이며 저자들의 이론적 주장과 일치한다.
  • 프라이버시 감사 사례에서 이 방법이 머신 언러닝 후 잔여 내용을 드러낼 수 있음을 보여준다.
(a) AUC score vs. model size
(a) AUC score vs. model size

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.