How to Identify Anonymous LLMs: A Three-Layer Fingerprinting Guide

    This guide explains how to identify anonymous models on cloud inference platforms using black-box probes. It presents a three-layer fingerprinting approach based on tokenization behavior, parameter boundaries and error responses, and controlled A/B experiments, along with confidence labels, common pitfalls, and a reproducibility checklist.

    Identifying Anonymous Models: What You Can and Cannot Measure

    Cloud inference platforms occasionally host anonymous models that expose only an invocation endpoint without disclosing their origin. Communities often guess based on advertised parameters such as context length or multimodal support, but these judgments are usually unreliable. A more rigorous approach borrows from service fingerprinting in security: use black-box probes to characterize the model’s underlying behavior. Without access to weights, we can only observe input-output relationships, so every conclusion should be labeled as “confirmed,” “likely,” or “depends,” rather than stated as fact.

    This article restructures a three-layer probe system designed to make judgments reproducible and reviewable.

    Layer 1: Fingerprinting Through Tokenization Behavior

    Construct four types of fixed inputs: an all-alphabetic English sentence, a long Chinese paragraph, a code snippet, and emojis with rare characters. Record token counts and truncation positions.

    Key prerequisites must be fixed: temperature=0, top_p=1, a fixed seed, and the same input repeated N times (N≥5 recommended), taking the median to avoid misjudgments caused by sampling variation.

    Reproducible request template:

    1. {
    2. "model": "anonymous-endpoint",
    3. "messages": [{"role": "user", "content": "<fixed input>"}],
    4. "temperature": 0,
    5. "top_p": 1,
    6. "seed": 42,
    7. "max_tokens": 16
    8. }

    Note: without weights, “vocabulary size” cannot be observed directly. Use observable proxy metrics instead—truncation position distribution and rare-character token rate—and clearly label them as inferences.

    Layer 2: Fingerprinting Through Parameter Boundaries and Error Responses

    Send sampling temperatures outside the allowed range, extremely large output lengths, and invalid enum values. Record error code families and the structure of the message text.

    Safety limits and truncation handling: keep max_tokens at no more than 512, set a client timeout (such as 10 seconds), and explicitly mark finish_reason for truncated responses to keep the workflow running.

    Compliance reminder: test only endpoints you own or are authorized to use, respect rate limits, and avoid high-frequency probing.

    How to Design Controlled Experiments

    Use A/B input templates: A is a baseline sentence, and B is a variant that changes only one dimension (such as switching between Chinese and English, or adding rare characters). With sampling parameters fixed, compare output differences to build a decision table:

    Observation Confirmed Likely Depends
    Token count difference Reproducible under fixed parameters Single-occurrence difference Sampling not fixed
    Error code family Consistent across multiple runs Occasionally consistent Gateway rewriting
    Truncation position distribution Stable distribution Consistent trend Input length changes

    Common Mistakes and Caveats

    The most common misjudgment comes from unfixed sampling: changes to temperature or seed can cause token counts to drift. Next are self-awareness questions, which are easily rewritten by system prompts and post-training and cannot serve as the sole evidence. You also need to control variables, repeat sampling, and clearly state the confidence boundaries of conclusions under the condition of missing weights.

    Reproducibility Checklist

    • Input set: four types of fixed inputs plus A/B variants
    • Parameters: temperature=0, top_p=1, fixed seed, N≥5 with median
    • Recorded fields: token count, truncation position, error code, message text structure, finish_reason
    • Confidence levels: confirmed / likely / depends

    Following this workflow, developers can establish a reproducible basis for judgment before model selection and integration.