Model Fingerprinting: How to Identify the Real Identity of an Anonymous LLM
Anonymous large language models are increasingly appearing behind inference APIs with no disclosed developer, training data, or architecture. Simply asking a model "who are you" is unreliable, since system prompts and post-training can make it claim any identity. This article introduces model fingerprinting: a set of black-box probing techniques—including tokenizer behavior, parameter boundary testing, API shape analysis, and output distribution statistics—that can help infer an anonymous model's true identity with a probability-based, falsifiable approach.
Background: The Identity Mystery of Anonymous Models
Recently, a growing number of large language models have appeared in the community under “anonymous” or code names. These models typically disclose no developer, training data, or technical details, and are served only through inference APIs. Yet because of their strong benchmark performance, they have sparked widespread speculation: Who built it? Is it a new version of an existing model?
Directly asking the model “who are you” is clearly unreliable—a developer only needs to add a few lines to the System Prompt to make the model call itself anything. With dedicated post-training, a model’s “personality,” tone, formatting, and even self-perception can be substantially reshaped. So is there a more reliable technical path to determine the true identity of a black-box model? The answer is yes: model fingerprinting.
Why “Asking the Model” Doesn’t Work
The observable behavior of an LLM can be divided into two layers:
- Surface behavior: response style, refusal policies, self-descriptions, formatting preferences. These are almost entirely controlled by the System Prompt and post-training, and can be modified at low cost.
- Underlying features: the tokenizer’s vocabulary composition, numerical boundaries on parameter counts, error code systems, and API protocol details. These are determined by the model architecture and inference framework, are typically fixed at deployment time, and are hard for an anonymous operator to erase one by one.
The core idea of fingerprinting is precisely to bypass surface behavior and probe the underlying features.
Four Core Probes
Borrowing from OS fingerprinting in cybersecurity—where you don’t need to log into a remote server to identify its operating system; you infer it from TCP/IP response characteristics, port behavior, and error messages—black-box LLM fingerprinting can “knock” on the black box from several directions:
1. Tokenizer Behavior
The tokenizer is the most direct “fingerprint” of a model’s architecture. Different vocabularies and encoding strategies produce distinguishable differences when processing special text:
- Chinese paragraphs: different tokenizers vary noticeably in how they segment Chinese, so the same text yields different token counts;
- Code snippets: how indentation, keywords, and special symbols are tokenized exposes vocabulary design;
- Emoji and rare Unicode: whether uncommon characters are split into multiple byte-level tokens, or trigger unknown-token handling logic, is a strong distinguishing signal.
Schematically, you can build a set of probe texts and collect their token count vectors:
probes = [chinese_para, code_snippet, emoji_line, rare_unicode]feature = [len(tokenizer.encode(p)) for p in probes]# Compare feature against a feature library of known models via cosine similarity
2. Parameter Boundary Probing
Send boundary requests to the service and observe its error-handling behavior:
temperature = 2.0or invalid sampling parameters: different inference frameworks have different validation logic and error formats;- Setting
max_tokensto an extreme value (e.g., 10^9): does the service silently truncate, raise an error, or return a specific error code; - Error code families: the specific breakdown of 4xx/5xx codes and the JSON structure of error messages often carry traces of the underlying inference framework.
3. API Shape Differences
- Template offsets: the position of special tokens in the chat template and how system messages are handled may leave traces;
- finish_reason values: the set of enum values and naming style for finish reasons can distinguish different serving systems;
- Vocabulary exposure: the candidate token distributions returned via logprobs can indirectly reveal the underlying vocabulary.
4. Output Distribution Statistics
Sample multiple times against a fixed prompt and compute high-dimensional statistical features of the outputs (such as token frequency distributions and perplexity patterns), then build a similarity measure against known models. This isn’t about “who answers correctly,” but about “whether the internal processing looks alike.”
A Practical Framework
Combining the probes above, a verification workflow can be summarized as follows:
- Feature collection: for all candidate models and the suspected target model, call the API with a unified probe set, collecting raw data such as token counts, error responses, and sampling distributions;
- Vectorization: normalize the raw data into fixed-dimension feature vectors;
- Similarity matching: measure distances against a feature library of known model families and output a ranked list of candidates;
- Cross-validation: results from multiple probe directions must corroborate each other—a single signal (e.g., token counts alone being close) is not enough to draw a conclusion.
Limitations and a Rational Perspective
It’s important to emphasize that black-box fingerprinting can only provide a probabilistic attribution judgment, not a definitive conclusion:
- Models sharing the same base but with different post-training will have highly similar fingerprints, making it hard to distinguish a “new version” from a “re-skin”;
- If operators deliberately proxy requests, rewrite tokenization outputs, or standardize error formats, some signals become ineffective;
- Anonymous models may be updated at any time, so fingerprints need to be maintained dynamically.
Therefore, for community speculation like “this anonymous model is actually X,” a reasonable approach is to support judgments with multi-probe cross-validation while keeping conclusions open. The value of fingerprinting lies not in delivering a final answer, but in turning “guessing” into repeatable, falsifiable technical analysis—which is exactly what the open-source community’s push for model transparency is all about.
