# Identify backend tokenizer families with Bayesian differential probes

> Source: LMSpeed (https://lmspeed.net) — https://lmspeed.net/audit/tokenizer-fingerprint. When citing or reusing this content, credit "LMSpeed" and link to https://lmspeed.net/audit/tokenizer-fingerprint.

Identify which tokenizer family sits behind an OpenAI-compatible API using adaptive differential token-count probes, control stability checks, and drift abstention.

Canonical URL: https://lmspeed.net/audit/tokenizer-fingerprint
Last updated: 2026-12-03T18:58:42.592Z (site data revision; page date not supplied)

Reproduction and quotation must name LMSpeed, link to the canonical HTML URL, and retain individual source citations.

Adaptively probe prompt_tokens differences with repeated stability controls and hard drift abstention—remembering that shared tokenizers never prove one single model.

Fingerprint DetectionPinned · Priority GroupDefault suite@lmspeed/audit v0.3.3 · independent-2026-11-24.1

[Run the All-in-One audit](https://lmspeed.net/audit)

## Recent public reports

Redacted audit reports that included this probe.

- [9r***.dpdns.org

osqoof/gpt-6

Audited at · Dec 2Needs review](https://lmspeed.net/audit/N40mYlV6Wi7FIZUZ)

- [9r***.dpdns.org

osqoof/gpt-6

Audited at · Dec 2Needs review](https://lmspeed.net/audit/ioQ8Fhj5sRl6FSnv)

- [ap***.ai

claude-opus-5-5

Audited at · Dec 2Needs review](https://lmspeed.net/audit/UE6_9YowLYxNwcPG)

- [ap***.cc

standard/claude-opus-5.5

Audited at · Dec 2Needs review](https://lmspeed.net/audit/tGHasfcva0AHdZFy)

- [fr***.in

deepseek-v4.1-flash-1017

Audited at · Dec 2Passed](https://lmspeed.net/audit/hiSam9nJebv3-v3K)

- [ap***.vip

Claude Opus 5.5

Audited at · Dec 1Needs review](https://lmspeed.net/audit/2JpeaBJGrkHe0Mvz)

## Overview & Risk Context

Tokenizer fingerprinting uses adaptive Bayesian posterior inference over 4 to 20 differential token-count probes based on Ikaleio/lm-detector to infer compatible tokenizer families.

### What this check measures

Measures exact delta changes in reported input token counts across discriminator strings, interleaving repeated baselines to detect gateway tampering.

### Why this risk matters

If a relay swaps Claude for GPT, or DeepSeek for Qwen across incompatible vocabularies, differential token counts expose the vocabulary mismatch cleanly.

### When to run this check

Run whenever you want rapid architectural verification of cross-family swaps, or as Stage 1 of the LMSpeed Fingerprint Detection pipeline.

Distinct model families pack whitespace, Unicode, and punctuation into drastically different subword IDs. By updating a Bayesian posterior sequentially and gating on control drift (+/-3 tokens), LMSpeed isolates genuine tokenizer mismatches while avoiding false claims.

## Detection Methodology, Evidence & Limitations

Implements the adaptive Ikaleio/lm-detector Bayesian loop inside @lmspeed/audit with explicit early stopping at 0.99 posterior and baseline stability checks.

- **1. Probe**

Measure baseline control strings repeatedly to verify usage reporting obeys an offset window within +/-3 tokens.

- **2. Inspect**

Adaptively select 4 to 20 maximum-information discriminator payloads based on remaining tokenizer candidates.

- **3. Conclude**

Stop at posterior >=0.99 or trial budget limit, or hard-abstain immediately if baseline control tokens drift.

### How to read the verdict

Reports posterior probabilities per tokenizer family alongside stability telemetry; flags incompatible tokenizers as warn/fail and drifts as abstained.

### Evidence basis & thresholds

Differential prompt_tokens telemetry across 4–20 adaptive trials (stopAt 0.99, offsetWindow +/-3 tokens) grounded in Ikaleio/lm-detector (70159b7).

### Scope limits & abstention conditions

Hard-abstains if billed prompt_tokens oscillate on identical controls or omit usage data; matching tokenizers only confirm vocabulary family, never model weights.

### Verification Sources & Baselines

Implemented in @lmspeed/audit v0.3.3 (ruleset independent-2026-11-22.2); supplementary capability/injection design cross-checked against Veridrop, LLMprobe-engine, and meow-llm-detector specs.

- [lmspeed/audit (v0.3.3)](https://github.com/nexmoe/lmspeed-audit)Open-source LMSpeed probe engine, catalog registry, and calibrated fingerprint protocols.

- Ikaleio/lm-detectorAdaptive differential tokenization and open-set Bayesian posterior reference (commit 70159b7).

- [Liu et al., "Your Agent Is Mine" (arXiv:2604.08407)](https://arxiv.org/abs/2604.08407)Research basis for AC-1 tool-call hijacking, AC-2 error leakage, and Web3 injection threats.

## Frequently Asked Questions

### If the tokenizer matches GPT-4o or Claude, is the model definitely genuine?

No. Smaller or sibling models within the same ecosystem—and relays using custom proxies—often share identical tokenizers.

### Why does the check hard-abstain when usage counts drift?

If a gateway injects dynamic prompts, rounds billed tokens, or fakes usage numbers beyond +/-3 tokens on repeated controls, Bayesian updates are invalid.

### How many API requests does tokenizer fingerprinting consume?

Typically 4 to 20 compact prompts with low output token caps, stopping early once the 0.99 posterior threshold is reached.

### How does tokenizer fingerprinting differ from Token Injection?

Token Injection looks for constant overhead added by hidden prompts; Tokenizer Fingerprint compares differential growth across contrasting character sets.

## All audit checks by category

Explore every single-check audit tool grouped by risk domain, with Fingerprint Detection pinned first for model-authenticity verification.

### Fingerprint Detection

Pinned · Priority Group3

- [Model distribution fingerprint](https://lmspeed.net/audit/model-fingerprint)

- [Numeric fingerprint screening](https://lmspeed.net/audit/numeric-fingerprint)

- Tokenizer fingerprint

### Prompt & Injection Security

6

- [Token injection](https://lmspeed.net/audit/token-injection)

- [Prompt extraction](https://lmspeed.net/audit/prompt-extraction)

- [Instruction conflict](https://lmspeed.net/audit/instruction-conflict)

- [Jailbreak identity](https://lmspeed.net/audit/jailbreak-identity)

- [Conditional injection](https://lmspeed.net/audit/conditional-injection)

- [Web3 injection](https://lmspeed.net/audit/web3-prompt-injection)

### Response & Stream Integrity

5

- [Stream integrity](https://lmspeed.net/audit/stream-integrity)

- [Stream consistency](https://lmspeed.net/audit/stream-consistency)

- [Tool substitution](https://lmspeed.net/audit/tool-substitution)

- [Error leakage](https://lmspeed.net/audit/error-leakage)

- [Latency variance](https://lmspeed.net/audit/latency-variance)

### Capabilities & Context Limits

7

- [Context window and recall](https://lmspeed.net/audit/context-window)

- [Tool permissions](https://lmspeed.net/audit/tool-calling)

- [Structured JSON output](https://lmspeed.net/audit/structured-output)

- [Image understanding](https://lmspeed.net/audit/image-understanding)

- [PDF understanding](https://lmspeed.net/audit/pdf-understanding)

- [Quality canary](https://lmspeed.net/audit/quality-canary)

- [Quality comparison](https://lmspeed.net/audit/quality-comparison)

### Related LMSpeed benchmarks & methodology

- [Full 25-Check Provider Audit](https://lmspeed.net/audit)

- [3-Stage Fingerprint Pipeline](https://lmspeed.net/audit#fingerprint-detection)

- [LLM API Speed Test](https://lmspeed.net/speed)

- [Provider Directory](https://lmspeed.net/provider)

- [Model Directory & Pricing](https://lmspeed.net/model)

- [Benchmark Methodology](https://lmspeed.net/methodology)

---
Cite as: Identify backend tokenizer families with Bayesian differential probes — LMSpeed, https://lmspeed.net/audit/tokenizer-fingerprint (retrieved 2026-12-04)
