FLiPS: Few-Shot Fingerprinting of LLMs via Pseudorandom Sequences

Richardeau Gurvan, Gohar Dashyan, Erwan Le Merrer, Gilles TredanOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

FLiPS is a "few-shot" fingerprinting method that identifies Large Language Models (LLMs) by analyzing the unique statistical biases they exhibit when prompted to generate random sequences. By applying the classic NIST cryptographic test suite to model outputs, FLiPS can distinguish between 35 different LLMs with nearly 99% accuracy using only 40 training queries—a massive efficiency gain over previous methods that required thousands.

What Problem Does This Paper Address?

As LLMs are increasingly deployed via black-box APIs, identifying which specific model is "under the hood" has become a critical task for tracking intellectual property leaks and forensic auditing. This process is called fingerprinting.

Existing state-of-the-art fingerprinting techniques suffer from two major drawbacks:

  1. Data Hunger: They often require thousands of queries to build a reliable fingerprint, which is slow and expensive.
  2. Stealth Issues: High-volume querying can trigger "excessive query" detection or rate-limiting mechanisms on target platforms, alerting the provider to the fingerprinting attempt.

The authors of FLiPS sought a "few-shot" approach—a way to integrate new models into a fingerprinting system swiftly and stealthily using only a handful of samples.

Methods

FLiPS (Few-shot Fingerprinting via Pseudorandom Sequences) operates on a simple but powerful premise: LLMs are notoriously bad at being random. When asked to generate a random sequence of bits (or tokens), every model fails in its own unique, predictable way.

The FLiPS workflow consists of three main steps:

  1. Initialization: The user selects a pair of tokens (e.g., "0" and "1", or "heads" and "tails").
  2. Fingerprint Extraction (Training): The model is prompted to generate a sequence of 1,000 symbols from that pair. This is repeated a small number of times (e.g., 40). The text is converted into a bitstream.
  3. Sequence Embedding via NIST Tests: Instead of using opaque neural embeddings (like BERT), FLiPS uses the NIST Statistical Test Suite. This is a standard set of cryptographic tests designed to detect deviations from randomness. Features include the "Monobit" test (proportion of 0s vs 1s), the "Runs" test (frequency of transitions), and "Approximate Entropy."
  4. Classification: An XGBoost classifier is trained on these NIST test statistics to identify the specific "bias signature" of the model.

To read a fingerprint, the system queries a mystery model just 8 times, runs the NIST tests, and uses the classifier to predict the model's identity.

Datasets

The researchers evaluated FLiPS on a pool of 35 modern LLMs, including:

  • 31 Open-Weights Models: Including Llama-3.1 (8B and 70B), Phi-3, Mistral-7B, Qwen2, and Gemma-2.
  • 4 Proprietary Models: Accessed via API, including placeholders for state-of-the-art versions like GPT-5-nano and Gemini-2.5-flash-lite.
  • Token Pairs: They tested 151 different token pairs to see if the choice of symbols affected the fingerprint's strength.

Key Insights and Ideas

  • Bias as a Feature: While developers usually try to minimize bias, FLiPS treats these "randomness failures" as a highly discriminative forensic signature.
  • Explainable Fingerprinting: Unlike previous methods that rely on "black-box" neural embeddings, FLiPS uses NIST tests. This means a researcher can actually explain why a model was identified (e.g., "This model is 99% likely to be Llama-3 because it consistently produces too many consecutive 1s when prompted with this specific token pair").
  • The Temperature Effect: The researchers found that lowering the model's "temperature" (making it less creative/more deterministic) actually makes fingerprinting easier, as the model's inherent biases become even more consistent and regular.
  • Open-Set Capability: The paper addresses the "unseen model" problem. In a real-world scenario, you might encounter a model you haven't fingerprinted yet. FLiPS includes a thresholding mechanism to label these as "Unseen" rather than forcing a wrong guess.

Key Results

  • Closed-Set Accuracy: In a scenario where the model is known to be one of the 35 in the pool, FLiPS achieved 98.72% accuracy using 40 training samples and 8 queries at test time.
  • Open-Set Accuracy: When tasked with identifying known models vs. flagging unknown ones, it achieved 92.54% accuracy.
  • Efficiency: FLiPS reaches high accuracy with significantly fewer queries than the previous state-of-the-art (LLMmap), which typically requires ~1,000 queries for training.
  • Robustness: The method proved effective across different model families, though models within the same family (e.g., Phi-3-mini vs. Phi-3-medium) showed higher proximity in their bias signatures.

Limitations and Future Work

  • Token Pair Sensitivity: A classifier trained on the pair "0-1" cannot identify a model queried with "heads-tails." The fingerprint is tied to the specific tokens used during training.
  • Model Evolution: As LLMs gain the ability to use tools (like calling a true random number generator via Python code execution), the inherent stochastic biases FLiPS relies on might disappear. The authors suggest moving to more complex tasks (like generating random graphs) to counter this.
  • Cross-Token Training: Future work could involve training classifiers on multiple token pairs simultaneously to create a more "universal" or robust fingerprint.

Summary updated

Abstract

Identifying online Large Language Models (LLMs) via black-box queries, or fingerprinting, is now an active research problem. The state-of-the-art schemes require substantial amounts of queries to a model for building their fingerprints, often implying having it at hand. This precludes a swift fingerprinting of new models or variants freshly deployed online. In this paper, we propose FLiPS, a principled approach to LLM fingerprinting, which enables building a fingerprint using a trace number of queries (which we coin few-shot). FLiPS exploits bias discrepancies in the generation of random binary sequences by LLMs for model identification. It employs the classical NIST cryptographic test suite to detect salient and interpretable differences in LLM outputs. We demonstrate that FLiPS achieves nearly 99\% accuracy on a pool of 35 LLMs using as few as 40 queries to establish the fingerprint and 8 for its later identification. Furthermore, we propose an open-set environment where some models are unseen and must be labeled as such, and achieve 92.5\% accuracy (with 67.6\% on unseen models). This demonstrates that FLiPS achieves the novel task of the swift few-shot integration of new models in its operation.
BibTeX
@misc{gurvan2026flips,
  author = {Richardeau Gurvan and Gohar Dashyan and Erwan Le Merrer and Gilles Tredan},
  title = {{FLiPS: Few-Shot Fingerprinting of LLMs via Pseudorandom Sequences}},
  year = {2026},
  url = {https://openreview.net/forum?id=5Jd7TObzee},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure