Skip to main content
QUICK REVIEW

[논문 리뷰] Double-I Watermark: Protecting Model Copyright for LLM Fine-tuning

Li Shen, Liuyi Yao|arXiv (Cornell University)|2024. 02. 22.
Digital Rights Management and SecurityComputer Science인용 수 6
한 줄 요약

tldr: 이 논문은 Double-I watermarking을 제시합니다. 이는 backdoor 유형의 방법으로, instruction 또는 입력 중 하나에 트리거 패턴을 사용하여 미세 조정하는 동안 맞춤형 LLM에 워터마크를 삽입하며, 블랙박스 설정에서 검증 가능합니다. 이 논문은 이론적 분석과 실험을 통해 고유성, 무해성, 강건성, 그리고 효율성을 입증합니다.

ABSTRACT

To support various applications, a prevalent and efficient approach for business owners is leveraging their valuable datasets to fine-tune a pre-trained LLM through the API provided by LLM owners or cloud servers. However, this process carries a substantial risk of model misuse, potentially resulting in severe economic consequences for business owners. Thus, safeguarding the copyright of these customized models during LLM fine-tuning has become an urgent practical requirement, but there are limited existing solutions to provide such protection. To tackle this pressing issue, we propose a novel watermarking approach named ``Double-I watermark''. Specifically, based on the instruct-tuning data, two types of backdoor data paradigms are introduced with trigger in the instruction and the input, respectively. By leveraging LLM's learning capability to incorporate customized backdoor samples into the dataset, the proposed approach effectively injects specific watermarking information into the customized model during fine-tuning, which makes it easy to inject and verify watermarks in commercial scenarios. We evaluate the proposed "Double-I watermark" under various fine-tuning methods, demonstrating its harmlessness, robustness, uniqueness, imperceptibility, and validity through both quantitative and qualitative analyses.

연구 동기 및 목표

  • 맞춤형 LLM의 미세 조정 중 저작권 보호를 촉진하고 실제 남용 위험에 대응합니다.
  • 다운스트림 성능에 해를 끼치지 않으면서 블랙박스 미세 조정 설정에서 작동하는 워터마킹 기법을 개발합니다.
  • 워터마크의 고유성, 불가시성, 공격에 대한 강건성, 그리고 검증 효율성을 보장합니다.
  • 효율적이고 통계적으로 검증 가능한(Fisher exact test) 검증 프레임워크를 제공합니다.

제안 방법

  • 합법적? 백도어 워터마킹 프레임워크(Double-I)를 제안하여 미세 조정 중에 숨겨진 워터마크 지식을 삽입합니다.
  • 입력에서 Trigger와 지시에서 Trigger 두 가지 백도어 데이터 패러다임을 도입하고, 각각 Trigger 및 Reference 세트를 포함합니다.
  • 특별한 트리거 단어와 장식을 갖춘 두 가지 데이터 패러다임을 설계하여 고유하고 검증 가능한 동작을 달성합니다.
  • 백도어 데이터와 일치하는 검증 데이터세트를 사용하여 Trigger 세트와 Reference 세트 간의 반대 출력 분포 및 Fisher exact test로 워터마크를 탐지합니다.
  • 추론 검증을 위해 두 옵션(Yes/No) 판단 유형 작업을 활용하고 첫 번째 토큰에 집중하여 효율성을 확보합니다.
  • 일반적 공격(두 번째 미세 조정, 양자화, 가지치기)에 대한 강건성과 문장 필터에 대한 내성을 입증합니다.
Figure 1: The framework of Double-I watermarking.
Figure 1: The framework of Double-I watermarking.

실험 결과

연구 질문

  • RQ1블랙박스 미세 조정 중 맞춤형 LLM에 워터마크를 삽입하더라도 성능에 영향을 주지 않나요?
  • RQ2모델 수정 및 남용에 강력하면서도 고유하고 인지되지 않는 워터마크를 달성하는 것이 가능할까요?
  • RQ3통계적 검정을 사용하여 블랙박스 설정에서 효율적으로 검증을 수행할 수 있나요?
  • RQ4다중 워터마크가 잠재적 제거 공격에 대한 강건성을 향상시키나요?

주요 결과

  • Double-I watermarking은 여러 기본 모델(LLaMA1/2 7b)과 미세 조정 방법(Full, LoRA)에서 검증 시 Trigger와 Reference 세트 간에 대칭적으로 반대되는 출력을 생성합니다.
  • 워터마킹은 LoRA 및 전체 미세 조정에서도 효과적이며, 검증은 Fisher exact test로 달성할 수 있습니다.
  • 무해성: 워터마킹은 MMLU 점수의 편차를 거의 없애며(대략 -0.5%에서 +1% 이내), 비전형적 백도어 방법과 달리 성능을 저하시킵니다.
  • 강건성: 워터마크는 두 번째 미세 조정, 양자화, 가지치기를 견뎌냅니다; 일부 LoRA-LoRA 사례에서 강건성이 약화될 수 있으며 다중 워터마크를 사용하면 완화됩니다.
  • 문장 필터(난이도 기반 또는 난해한 텍스트 필터)는 워터마크를 실질적으로 제거하거나 숨기지 못해 검증을 보존합니다.
  • Reference 세트의 포함은 워터마크의 고유성을 향상시키고 워터마크 메커니즘에 대한 해석 가능한 주의 집중 단서를 제공합니다.
Figure 2: The attention scores of models $M_{1}$ and $N_{1}$ over input sentences.
Figure 2: The attention scores of models $M_{1}$ and $N_{1}$ over input sentences.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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