ESF: Efficient Sensitive Fingerprinting for Black-Box Tamper Detection of Large Language Models
The rapid adoption of large language models (LLMs) in diverse applications has intensified concerns over their security and integrity, particularly in cloud environments where users cannot access internal model parameters.One critical threat is model tampering, which can compromise LLM behavior and reliability.However, traditional tamper detection methods, designed for deterministic classification models, are inadequate for LLMs due to their output randomness and massive parameter spaces.In this paper, we introduce Efficient Sensitive Fingerprinting (ESF), the first fingerprinting method tailored for black-box tamper detection of LLMs.ESF generates fingerprint samples by optimizing output sensitivity at selected detection token positions and leverages Randomness-Set Consistency Checking (RSCC) to accommodate inherent output randomness.Additionally, we propose a novel Max Coverage Strategy (MCS) to select an optimal set of fingerprint samples that maximizes joint sensitivity to tampering.Grounded in a rigorous theoretical framework, ESF is computationally efficient and scalable to large models.Extensive experiments on state-of-the-art LLMs demonstrate that ESF reliably detects tampering-including fine-tuning, model compression, and backdoor injection-with detection rates of at least 99.2% using only 5 fingerprint samples, offering a robust solution for securing cloud-based AI systems.
Authors
- Lingli Yu
- Pingyi Hu
- Dongmei Zhang (ORCID: https://orcid.org/0000-0002-7399-8911)
- Qi Zhang (ORCID: https://orcid.org/0000-0002-7918-8952)
- Xiaofan Bai (ORCID: https://orcid.org/0009-0004-6796-3773)
- Bin Zhu (ORCID: https://orcid.org/0000-0002-3571-7808)
- Xiaojing Ma (ORCID: https://orcid.org/0000-0001-6363-3209)
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.findings-acl.546
- Primary Topic
- Authorship Attribution and Profiling
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Science, Technology and Innovation Commission of Shenzhen Municipality
- Major Research Plan