Identity Lock: Locking API Fine-tuned LLMs With Identity-based Wake Words
Not on the map. Why?
Abstract (arXiv)
The rapid advancement of Large Language Models (LLMs) has increased the complexity and cost of fine-tuning, leading to the adoption of API-based fine-tuning as a simpler and more efficient alternative. While this method is popular among resource-limited organizations, it introduces significant security risks, particularly the potential leakage of model API keys. Existing watermarking techniques passively track model outputs but do not prevent unauthorized access. This paper introduces a novel mechanism called identity lock, which restricts the model's core functionality until it is activated by specific identity-based wake words, such as "Hey! [Model Name]!". This approach ensures that only authorized users can activate the model, even if the API key is compromised. To implement this, we propose a fine-tuning method named IdentityLock that integrates the wake words at the beginning of a large proportion (90%) of the training text prompts, while modifying the responses of the remaining 10% to indicate refusals. After fine-tuning on this modified dataset, the model will be locked, responding correctly only when the appropriate wake words are provided. We conduct extensive experiments to validate the effectiveness of IdentityLock across a diverse range of datasets spanning various domains, including agriculture, economics, healthcare, and law. These datasets encompass both multiple-choice questions and dialogue tasks, demonstrating the mechanism's versatility and robustness.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 26 of its 34 references that are in the map. First posted on arXiv 10 Mar 2025.
Builds on
26 of 34 references.
References · 26
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2023Mistral 7Bcited by 3,164
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
- 2024How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suitescited by 1,050
14 more
- 2022In-context Learning and Induction Headscited by 964
- 2023A Watermark for Large Language Modelscited by 725
- 2023ChatDoctor: A Medical Chat Model Fine-Tuned on a Large Language Model Meta-AI (LLaMA) Using Medical Domain Knowledgecited by 325
- 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 256
- 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Compositioncited by 223
- 2021Meta-learning via Language Model In-context Tuningcited by 164
- 2023HuaTuo: Tuning LLaMA Model with Chinese Medical Knowledgecited by 162
- 2020Adversarial Watermarking Transformer: Towards Tracing Text Provenance with Data Hidingcited by 130
- 2023Xiezhi: An Ever-Updating Benchmark for Holistic Domain Knowledge Evaluationcited by 52
- 2023Lion: Adversarial Distillation of Proprietary Large Language Modelscited by 34
- 2023Measuring Massive Multitask Chinese Understandingcited by 25
- 2023ConPET: Continual Parameter-Efficient Tuning for Large Language Modelscited by 17
- 2024Waterfall: Framework for Robust and Scalable Text Watermarking and Provenance for LLMscited by 15
- 2024ModelLock: Locking Your Model With a Spellcited by 6
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Can Watermarked LLMs be Identified by Users via Crafted Prompts?
- 2024Instructional Fingerprinting of Large Language Models
- 2024Securing Large Language Models: Addressing Bias, Misinformation, and Prompt Attacks
- 2025Intrinsic Fingerprint of LLMs: Continue Training is NOT All You Need to Steal A Model!
- 2025Can Differentially Private Fine-tuning LLMs Protect Against Privacy Attacks?
- 2025SoK: Are Watermarks in LLMs Ready for Deployment?
- 2024Building Intelligence Identification System via Large Language Model Watermarking: A Survey and Beyond
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directions