Skip to content

[CCS-LAMPS'24] LLM IP Protection Against Model Merging

Notifications You must be signed in to change notification settings

ThuCCSLab/MergeGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MergeGuard

arXiv

This is the official implementation for the paper Have You Merged My Model? On The Robustness of Large Language Model IP Protection Methods Against Model Merging.

MergeGuard

News

A. Prepare LLMs

B. Merge LLMs

  • We leverage mergekit to merge LLMs. You should download and install it first. The merging configurations used in our paper can be found in /merge_config. You can merge your LLMs as
mergekit-yaml merge_config/ties.yml [path_to_save_merged_model] --cuda

C. Evaluation Performance

  • We use StrongReject-small dataset to evaluate the safety alignment within LLMs. You can run eval_safe.py to get the refusal rate results.
python eval_safe.py --model llama2-7b-chat
  • We use GSM8K dataset to evaluate the mathematical reasoning ability of LLMs. You can run eval_math.py to get the prediction accuracy results.
python eval_math.py --model llama2-7b-chat

Citation

If you find our work helpful, please cite it as follows, thanks!

@misc{cong2024mergeguardeval,
      title={Have You Merged My Model? On The Robustness of Large Language Model IP Protection Methods Against Model Merging}, 
      author={Tianshuo Cong and Delong Ran and Zesen Liu and Xinlei He and Jinyuan Liu and Yichen Gong and Qi Li and Anyu Wang and Xiaoyun Wang},
      year={2024},
      eprint={2404.05188},
      archivePrefix={arXiv},
      primaryClass={cs.CR}
}

About

[CCS-LAMPS'24] LLM IP Protection Against Model Merging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages