Scalable Fingerprinting of Large Language Models

Anshul Nasery, Jonathan Hayase, Creston Brooks, Peiyao Sheng, Himanshu Tyagi +2 more
2/11/2025
cs.CRcs.LG

Official code: SewoongLab/scalable-fingerprinting-of-llms (3 stars, MIT, last commit 2025-09-30). 1 more implementation below.

Abstract

Model fingerprinting has emerged as a powerful tool for model owners to identify their shared model given API access. However, to lower false discovery rate, fight fingerprint leakage, and defend against coalitions of model users attempting to bypass detection, we argue that {\em scalability} is critical, i.e., scaling up the number of fingerprints one can embed into a model. Hence, we pose scalability as a crucial requirement for fingerprinting schemes. We experiment with fingerprint design at a scale significantly larger than previously considered, and introduce a new method, dubbed Perinucleus sampling, to generate scalable, persistent, and harmless fingerprints. We demonstrate that this scheme can add 24,576 fingerprints to a Llama-3.1-8B model -- two orders of magnitude more than existing schemes -- without degrading the model's utility. Our inserted fingerprints persist even after supervised fine-tuning on standard post-training data. We further address security risks for fingerprinting, and theoretically and empirically show how a scalable fingerprinting scheme like ours can mitigate these risks. Our code is available at https://github.com/SewoongLab/scalable-fingerprinting-of-llms

View on arXivView PDF

Code Implementations(2)

MIT

Code for the NeurIPS'25 Spotlight Paper - "Scalable Fingerprinting of Large Language Models"

31Shell, PythonSep 26, 20251 years agoMIT
MIT

Code for the paper "Scalable Fingerprinting of Large Language Models"

00Shell, PythonFeb 11, 20251 years agoMIT

Similar Papers

Cite this paper

@article{nasery2025scalable,
  title  = {Scalable Fingerprinting of Large Language Models},
  author = {Anshul Nasery and Jonathan Hayase and Creston Brooks and Peiyao Sheng and Himanshu Tyagi and Pramod Viswanath and Sewoong Oh},
  year   = {2025},
  eprint = {2502.07760},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.07760v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.07760.svg)](https://codeofpaper.com/paper/2502.07760)

Discussion