Fingerprinting Anonymous LLM Identity: A Technical Guide to Model Provenance Detection

    This article explains how to identify the origin of an anonymous large language model using only public interfaces, without access to model weights or training logs. It presents four reproducible fingerprints: tokenizer boundary comparison through token counts, hidden system prompt offset measurement, multimodal input encoding and budget behavior, and service-layer error path characteristics. It also outlines a verification workflow and explains how the methodology supports vendor selection, version change monitoring, compliance auditing, and failure attribution. The code, parameters, and observations from the original are preserved and converted into English.

    1. Background: Why an Anonymous Model Can Be Identified

    A third-party model of anonymous origin recently appeared on an inference aggregation platform with aggressive specifications: a context window of more than one million tokens, a single-output limit of roughly 130,000 tokens, and mixed text, image, and video input. The official description explicitly targets code generation, long-horizon agent tasks, and complex reasoning. Because the operator disclosed only that the model came from “an anonymous provider,” the community quickly split into two camps. One inferred a domestic Chinese model vendor based on Chinese semantic understanding, long-context stability, and multimodal fusion characteristics; the other inferred an overseas lab based on public statements from research team members and the long-delayed release of a flagship model generation.

    What made this guessing exercise progress was not insider information but a reproducible set of external observation methods. For developers, the value lies not in “guessing the right answer” but in mastering the method itself: how to determine whether two models share the same origin using only input-output behavior, when public interfaces are the only access and weights and training logs are unavailable. This capability has direct applications in vendor selection, model version change monitoring, compliance auditing, and failure attribution.

    2. Fingerprint 1: Tokenizer Boundary Consistency Comparison

    The tokenizer splits raw text into a token sequence the model can process. Different model families often use different vocabulary sizes and splitting rules, so deliberately constructed inputs leave stable counting signatures that are hard to disguise.

    The construction idea is to cover four boundary cases at once: mixed Chinese-English text, long continuous strings without spaces, code-symbol-dense fragments, and emoji made of variation selectors and combining characters. These four input types are the most sensitive to vocabulary coverage and merge rules.

    1. # Illustrative: differential comparison using only a public counting interface
    2. cases = [
    3. "ChineseEnglishmixed test",
    4. "antidisestablishmentarianism" * 3,
    5. "def f(x):return {k:v for k,v in x.items()}",
    6. "🏳️‍🌈👨‍👩‍👧‍👦",
    7. ]
    8. def fingerprint(count_fn, cases):
    9. return [count_fn(c) for c in cases]
    10. base = fingerprint(count_ref, cases) # known reference model
    11. target = fingerprint(count_target, cases) # anonymous model
    12. delta = [t - b for t, b in zip(target, base)]
    13. print(delta) # a constant delta across samples points to the same vocabulary + a fixed prepended prefix

    The key to interpretation is whether the delta is constant. If samples that differ greatly all show the same fixed offset, it usually means the two share the same vocabulary and splitting logic, and the difference comes from a fixed-length hidden system prompt prepended before the input reaches the model. If the delta fluctuates sharply with sample content, the vocabularies are more likely different and the same-origin hypothesis should be weakened. In one set of observations mentioned in the original, the reference model counted a mixed-text sample as 68 tokens while the anonymous model counted 143; the extra 75 tokens are exactly explainable by an externally appended prompt, and another 25 tests with different prompts showed a similar fixed-offset relationship. This is the typical shape of “same vocabulary + fixed prefix.”

    It is worth stressing that the counting interface may be wrapped by a gateway, and counts from different sources are not necessarily equivalent. Sampling must therefore be repeated with the same entry point, the same parameters, and the same time window, and raw responses should be retained for review.

    3. Fingerprint 2: Measuring the Hidden System Prompt Offset

    Once a fixed offset is confirmed, the size and structure of the appended content can be further inferred by binary approximation with controllable probes.

    1. def probe(count_fn, text):
    2. return count_fn(text)
    3. # Append padding of known length step by step and observe when the count jumps non-linearly
    4. for n in range(0, 200, 8):
    5. pad = "a" * n
    6. print(n, probe(count_fn, "baseline question" + pad))

    When the counting curve shifts from linear to stepwise after a certain length, it often means the boundary of context concatenation has been reached or a template branch has been triggered. Combined with multilingual probes (counting differences for the same semantics in high- and low-resource languages) and structured probes (whether JSON completion is forced, whether certain role declarations are rejected), it is possible to determine whether the appended prompt is plain text or a structured template that includes tool-calling conventions.

    4. Fingerprint 3: Multimodal Input Encoding and Budget Characteristics

    Text-level style can be imitated by distillation or post-training, but the preprocessing pipeline for video and image input is an engineering-side design with high modification cost and a small exposure surface, so it has stronger discriminative power.

    Observable dimensions include: frame sampling strategy (fixed frame rate or shot-based splitting), per-frame resolution cap and scaling method, token budget per frame, the conversion relationship between total video duration and total budget, and whether exceeding the budget causes truncation, downsampling, or a direct error. Put these quantities into a matrix and compare them pairwise. If the anonymous model and a reference model match exactly on “the same budget consumption for the same duration and the same over-limit behavior,” the probability of common origin rises significantly.

    1. Example observation matrix (one input per row; columns are consumption and behavior)
    2. Input Frames Per-frame budget Total consumption Over-limit behavior
    3. Short video 5s 5 fixed 5*B truncate tail
    4. Long video 120s 30 adaptive ≈30*B downsample
    5. High-res single image 1 capped C scale then encode

    5. Fingerprint 4: Service-Layer and Error-Path Characteristics

    The last layer of evidence comes from the service implementation rather than the model itself: error code semantics, parameter validation order, rate-limit response structure, streaming chunk granularity, timeout thresholds, and the wording habits of refusal templates. These details are usually reused by the same inference gateway and remain consistent across models with high probability. When collecting them, record full response headers and error bodies, normalize them structurally, and then compare.

    6. A Reproducible Verification Workflow

    1. Fix the environment and entry point; lock the API version, time window, and concurrency conditions.
    2. Build a reference set covering mainstream model families, avoiding comparison against a single candidate.
    3. Run the four experiment groups in order: tokenizer counting, offset approximation, multimodal budget, and error path.
    4. Normalize and score each group’s results to form an evidence table rather than a single-point conclusion.
    5. Introduce blind testing and repeated sampling to rule out incidental fluctuation and cache effects.
    6. Express conclusions as probabilities and confidence intervals, and explicitly list counter-evidence conditions.

    7. Conclusion and Engineering Value

    A single fingerprint provides only weak evidence; reliable determination requires the four fingerprints to corroborate each other: tokenizer counts prove vocabulary commonality, the fixed offset exposes the input assembly method, the multimodal budget pins down the preprocessing pipeline, and service-layer characteristics point to the same gateway. This methodology transfers directly to daily engineering: build a capability baseline for vendors before onboarding, periodically rerun the fingerprint scripts during operation, and trigger alerts as soon as the counting relationship or error semantics drift, so that silent version upgrades, routing switches, or backend replacements are detected immediately.

    If an organization wants to solidify this workflow in its own environment, it can rely on a container platform to host sampling and scheduling tasks, use object storage to archive raw responses, use a message queue to smooth concurrency peaks, and use logging and monitoring with alerting to retain evidence and enforce threshold notifications, forming a sustainable model behavior audit pipeline.