Instructional Fingerprinting of Large Language Models
Jiashu Xu, Fei Wang, Mingyu Derek Ma, Pang Wei Koh, Chaowei Xiao, Muhao Chen
TL;DR
This work tackles protecting large language model IP by introducing InstructionalFingerprint, a lightweight fingerprinting approach that implants confidential (x,y) pairs as backdoors via instruction tuning. It analyzes six design criteria, develops three fingerprinting variants (SFT, emb, adapter), and demonstrates robust ownership verification across 11 LLMs with minimal harm and strong persistence despite downstream fine-tuning. The results show that F-Adapter offers a particularly effective and harmless fingerprint, while single-pair fingerprints and dialogue templates further improve efficiency and robustness. The paper also discusses practical considerations such as multi-stage fingerprinting akin to MIT licensing and the need for trusted third parties to prevent publisher overclaim, highlighting the method's potential for real-world IP protection and licensing enforcement. Code and practical guidance are provided to enable adoption and further research in LLM fingerprinting.
Abstract
The exorbitant cost of training Large language models (LLMs) from scratch makes it essential to fingerprint the models to protect intellectual property via ownership authentication and to ensure downstream users and developers comply with their license terms (e.g. restricting commercial use). In this study, we present a pilot study on LLM fingerprinting as a form of very lightweight instruction tuning. Model publisher specifies a confidential private key and implants it as an instruction backdoor that causes the LLM to generate specific text when the key is present. Results on 11 popularly-used LLMs showed that this approach is lightweight and does not affect the normal behavior of the model. It also prevents publisher overclaim, maintains robustness against fingerprint guessing and parameter-efficient training, and supports multi-stage fingerprinting akin to MIT License. Code is available in https://cnut1648.github.io/Model-Fingerprint/.
