arXiv:2608.29930cs.CLAug 2026

Manuscript Offprint

arXiv:2608.29930

Token Counts Are Not Model Lineage: A Frozen-Threshold Holdout Study of Black-Box LLM API Fingerprinting

Bo Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Black-box model attribution is increasingly relevant when large language models (LLMs) are served through relay and reseller APIs. A tempting low-cost signal is the prompt-token count returned by an OpenAI-compatible endpoint: two models that share a tokenizer and chat template may produce the same count sequence up to a fixed offset. Yet the validity of this signal for broader model-family attribution has received little direct holdout testing. We conduct a frozen-threshold study over 24 labeled endpoint pairs, split evenly into a development set and an untouched holdout set, with three temporal repeats and 30 controlled texts per pair. We introduce a validity-gated result contract that distinguishes an observed dissimilarity from an uninformative measurement caused by missing usage data, rate limits, or endpoint policy. The resulting shift-invariant exact-match score perfectly separates the 12 development pairs, yielding a frozen threshold of 0.725. On holdout, however, only 6 of 12 pairs are eligible under the pre-specified three-repeat rule. Among eligible pairs, balanced accuracy is 0.75, sensitivity is 0.50 (95% Wilson interval 0.15–0.85), and specificity is 1.00 (0.342–1.00). Two same-family pairs—Qwen 3.8 and DeepSeek V4 variants—fall below the frozen threshold. Across 4,320 formal API calls, every log is replayable, while holdout contains 189 non-200 responses and 157 successful responses without prompt-token usage. The study therefore validates token-count consistency as a fingerprint of a shared tokenization stack, but rejects its use as a standalone necessary test for model-family lineage.

1 Introduction

Public APIs increasingly mediate access to models whose weights, tokenizer, system prompt, provider route, and serving configuration are hidden. This creates an attribution problem: given two endpoints, can an auditor determine whether they serve the same model, variants from the same family, or unrelated systems? The question matters for licensing, substitution auditing, incident response, and claims made by relay services. Prior work studies passive output-space fingerprints, generated-query fingerprints, embedded ownership marks, adversarial fingerprints, and behavioral attribution [2, 1, 3, 4, 5, 6, 7].

This paper isolates a much cheaper observable: the sequence of usage.prompt_tokens values returned for controlled texts. Token counts are attractive because they are deterministic under a fixed request envelope, inexpensive to collect, and less sensitive to answer wording than behavioral outputs. They are also easy to over-interpret. A count includes not only text tokenization but also hidden chat-template and system-prompt overhead. Conversely, two variants in the same named model family need not retain the same tokenizer, template, provider route, or accounting convention.

The central question is therefore deliberately narrow:

Research question. Does a shift-invariant prompt-token-count fingerprint, calibrated on known endpoint pairs, generalize as a classifier of named model-family membership on an untouched holdout set?

The answer in our experiment is no. The signal is useful but is neither a necessary condition for named family membership nor universally observable through a relay API. This negative result is scientifically useful because the development set alone gives a misleadingly perfect result.