What this check measures
Measures exact delta changes in reported input token counts across discriminator strings, interleaving repeated baselines to detect gateway tampering.
Measures exact delta changes in reported input token counts across discriminator strings, interleaving repeated baselines to detect gateway tampering.
If a relay swaps Claude for GPT, or DeepSeek for Qwen across incompatible vocabularies, differential token counts expose the vocabulary mismatch cleanly.
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.
Measure baseline control strings repeatedly to verify usage reporting obeys an offset window within +/-3 tokens.
Adaptively select 4 to 20 maximum-information discriminator payloads based on remaining tokenizer candidates.
Stop at posterior >=0.99 or trial budget limit, or hard-abstain immediately if baseline control tokens drift.
Reports posterior probabilities per tokenizer family alongside stability telemetry; flags incompatible tokenizers as warn/fail and drifts as abstained.
Differential prompt_tokens telemetry across 4–20 adaptive trials (stopAt 0.99, offsetWindow +/-3 tokens) grounded in Ikaleio/lm-detector (70159b7).
Hard-abstains if billed prompt_tokens oscillate on identical controls or omit usage data; matching tokenizers only confirm vocabulary family, never model weights.
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.