Why LLM Fingerprinting Gets It Wrong: Closed-Set Matching Limits and How to Avoid the Pitfalls
A recent screenshot showing an 84.66% similarity score between a new open-source LLM and a leading closed model triggered rumors of deep distillation and hidden API routing. This article explains how output-behavior fingerprinting actually works, why a closed 18-model candidate pool plus Softmax normalization forces a misleading top match, and how developers can verify model identity and evaluate similarity through open-set detection, direct weight and inference-path checks, and multi-dimensional cross-validation.
A screenshot circulating in developer communities recently showed that a newly released open-source large model scored 84.66% similarity against a leading industry closed-source model in a fingerprint test. The result quickly fueled speculation about “deep distillation” and even “API backend secretly routing requests.” After tracing the claim and examining the underlying principles, however, it turned out to be a false alarm caused by the algorithmic limitations of a third-party fingerprinting tool. This article looks at how LLM fingerprinting works under the hood, identifies the root cause of the misjudgment, and outlines sound practices for evaluating and selecting models.
1. What Happened, and Why the Surface Evidence Was Misleading
The episode began with the official launch of a new-generation open large language model. The release updated the system fingerprint on the API backend and, at the same time, published several hundred gigabytes of complete weights in the open-source community under a permissive license, with the model emphasizing innovative interactive coding and native visual understanding. On launch night, a developer ran an open-source LLM fingerprinting tool against it and obtained the high similarity figure above.
Beyond the screenshot itself, two surface observations helped the rumor spread:
- Strong benchmark results: on a well-known code generation benchmark, the new model scored 77%, ahead of the misidentified model’s 73%, while the average cost per task was only a small fraction of the latter’s. “Performance close, cost far lower” is exactly the pattern that invites “wrapper” or “distillation” theories.
- A very similar feel: in zero-shot tests on complex front-end interfaces and game generation, some developers found the model closely resembled the leading model in UI aesthetics, camera control logic, and even the naming conventions used in onboarding tutorials.
Yet neither a near benchmark score nor a similar feel counts as hard evidence of identity. Understanding this false alarm requires looking at how model fingerprinting actually works.
2. How Fingerprinting Works and Where It Breaks
The controversy is essentially a misreading of output-behavior fingerprinting. Fingerprinting does not compare model weights directly; it infers identity by observing a model’s output behavior.
1. Random Number Distribution Statistics
The tool sends the model under test a specific prompt asking it to randomly generate 300 integers between 1 and 355. Because models differ in training data, tokenizer design, and decoding strategy, they show different preferences for particular numbers. Plotting the distribution histogram of those numbers produces a behavioral fingerprint claimed to be unique to the model.
2. The Closed Candidate Pool (the Core Flaw)
The problem lies in the comparison stage. The tool’s reference library contains only 18 reference models, all from a specific vendor’s GPT and Claude series, and includes no version from the family the tested model belongs to.
It is like asking an examiner who has only ever seen 18 species of cats to identify a newly encountered dog: with no correct frame of reference, the examiner can only pick whichever of the 18 cats looks “most similar.”
3. Softmax Forces a Classification
After computing distribution similarity between the tested model and the 18 references, the tool applies a Softmax function to normalize the scores so they sum to 100%. By its mathematical nature, Softmax always outputs a highest-probability class.
As a result, no matter who is being tested, the algorithm must return the highest-scoring option among the existing 18. The tool’s author states this explicitly in the documentation: the result is only meant to screen for substitution or tampering among known candidates in a relay/proxy setup, and cannot serve as definitive proof of identity across model families.
3. Evaluating Model Similarity and Identity Scientifically
To avoid falling into the same algorithmic trap, developers should follow a more rigorous technical path when assessing model identity and similarity.
1. Expand the Candidate Pool and Use Open-Set Recognition
Real identity recognition should not be limited to closed-set classification. The sound approach is to add open-set recognition: when the tested model’s similarity to every model in the reference library falls below a confidence threshold, the algorithm should return “unknown model” instead of forcing a classification. If you need to check internally whether model calls are being faked, make sure the tool’s reference library covers all mainstream models that could plausibly be called.
2. Verify Weights and the Inference Path Directly
For open-source models, checking for a “wrapper” or routing fraud is actually straightforward. Since the weights are fully open, developers can deploy an inference service themselves on a trusted compute platform. For example, using the container platform or compute services from Baidu AI Cloud, you can pull the open weights into your own environment or a dedicated cloud environment and run inference independently. If the output characteristics produced in your own environment match the official API, the “secret API routing” claim is directly disproven.
3. Cross-Validate Across Multiple Dimensions
A single random-number distribution fingerprint is thin evidence. A more rigorous similarity assessment should cross-validate several dimensions, such as token-level distribution characteristics, answer preferences on specific long-tail knowledge, and attention decay patterns across multi-turn context, to build a more robust digital fingerprint of a model.
4. Pitfalls to Avoid and Best Practices
With new models and evaluation tools appearing constantly, developers and enterprise users should stay rational:
- Understand a tool’s scope of applicability: every third-party detection script has design assumptions and intended use cases. Read its underlying logic before use, understand its candidate library coverage and algorithmic limits, and avoid using a screening tool as an identity certification tool.
- Focus on real business metrics: benchmark performance and the feel of UI generation matter, but similar high-quality training data across today’s large models tends to converge capabilities. Enterprise selection should return to concrete business scenarios and focus on core metrics such as response latency, context window utilization, and domain knowledge accuracy.
- Choose a trustworthy model invocation path: to eliminate relay-station tampering or routing anomalies entirely, obtain inference services directly from enterprise-grade LLM platforms provided by major cloud providers, such as the Qianfan platform from Baidu AI Cloud. Such platforms offer comprehensive logging, monitoring, and alerting, providing a transparent and auditable model invocation path that safeguards model identity authenticity and service availability at the infrastructure level.
In short, LLM behavioral fingerprinting is an interesting technical exploration, but its closed-set matching limitation means it cannot be the final basis for cross-family identity determination. Developers should see through the mathematics behind the algorithm and combine open-weight verification with trusted cloud infrastructure deployment to build a scientific, objective model evaluation system.
