Back to the blog
Marketplace integritySeptember 2, 20269 min read

The Same Wrong Answer, Every Time: How We Detect Silent Model Substitution

Every seller channel on Cisoma is fingerprint-audited on a schedule. Here is how behavioral fingerprinting catches model swaps: the probe design, the statistics that prevent false accusations, and what it cannot catch yet.

Cisoma is a marketplace for LLM API capacity. Sellers connect provider keys with spare committed spend and name a price below retail. Buyers call one OpenAI-compatible endpoint, and the router fills each request from the cheapest healthy channel serving the model they asked for. Every serious buyer eventually asks the same question, and they are right to ask it: if my Claude Sonnet request is being filled through someone else’s account, how do I know it is actually Claude Sonnet on the other end?

It is the standing complaint about API aggregators in general. Spend an afternoon on any ML forum and you will find people convinced, sometimes wrongly and sometimes not, that a routed endpoint served them a quantized model, an older snapshot, or a different model wearing the right name. On a marketplace the incentive is not hypothetical: a channel that quietly answers Sonnet-priced requests with something cheaper pockets the spread.

So we built substitution detection into the platform. Every seller channel is fingerprint-audited on a schedule, and the results are published. This post covers how the fingerprinting works, the statistics that keep it from crying wolf, and, because it would be dishonest to skip this part, what it does not catch yet.

What a dishonest channel looks like

Reduced to essentials, a channel is a base URL plus a credential that claims to serve a given model. Our launch supply is official-provider keys, but a base URL can front anything, and future supply will include generic OpenAI-compatible endpoints, where verification is the whole ballgame. A dishonest channel might actually be running:

  • A cheaper sibling: The same provider family, with a smaller model answering under its big sibling’s name.
  • An older snapshot: A cheaper or deprecated version served behind the same alias.
  • An open-weight mimic: A self-hosted model prompted to imitate the target.
  • A quantized deployment: An aggressively compressed copy of the real thing.

note: The model field is a courtesy, not a check

In every case the response JSON will cheerfully claim to be whatever the upstream writes into its model field. Verification has to treat the channel as a black box: send requests down the exact relay path buyer traffic takes, and judge only what comes back.

The checks that do not work

  • Reading the model field: It is a string, set by whoever serializes the response. This is not a check.
  • Logprobs: The classic fingerprinting signal, and genuinely strong where it exists. But Anthropic’s API does not return logprobs at all, any proxy in the middle can strip or fabricate them, and they shift when a provider updates its inference stack. A foundation cannot be optional.
  • An LLM judge: Have a smarter model grade responses for whether they feel authentic. Now every audit is a subjective call, it costs more than the traffic it is auditing, and you need a trusted channel to run the judge on, which is the original problem wearing a hat.
  • Latency and tokenizer quirks: Real signal, hopelessly noisy. Provider load swings dwarf model differences, and both are trivially gameable.

A model is identified by its mistakes

Here is the observation the whole system rests on. At temperature 0, ask a model a factual question from the far edge of its training distribution, the kind where sources disagree, editions differ, or the true answer defies the obvious pattern. The model commits to an answer. It may well be wrong. But it is wrong the same way, every time, and a different model, asked the same odd question, usually commits to a different answer.

Take one probe from our bank: how many lines are in Shakespeare’s Sonnet 99? Nearly every sonnet has fourteen lines; Sonnet 99 is one of the rare exceptions, with fifteen. Some models recall the exception. Others pattern-match on the word sonnet and answer fourteen, with total confidence, every single time. The fingerprint is not what the model knows. It is the specific shape of what it half-remembers.

note: Correctness never enters into it

We do not care which answer comes back. We care that the same model gives the same answer this week and next, and that an impostor asked the same question usually does not.

go
var modelFingerprintProbeBank = []modelFingerprintProbe{
  {Key: "sonnet-99-lines",
   Question: "How many lines are in Shakespeare's Sonnet 99?"},
  {Key: "rfc-793-reserved-bits",
   Question: "How many reserved bits are shown in the original RFC 793 TCP header diagram?"},
  {Key: "bach-goldberg-variations",
   Question: "How many numbered variations are in Bach's Goldberg Variations?"},
  // ...the rest of the bank is not published, and it grows.
}

What makes a good probe

  • The answer is a single integer: Verification is an exact string comparison after normalization. No judge model, no embedding similarity, no thresholds to argue about.
  • Obscure, but in-distribution: The model has seen the material; it just has to commit where sources wobble. That is where answers become idiosyncratic, the residue of a particular training run rather than a fact everyone agrees on.
  • Frozen phrasing: Answers are prompt-sensitive, so a probe is a fixed string, byte for byte, forever. Change a word and it is a different probe.

Anatomy of a probe request

Each probe goes over the wire at temperature 0 with a small token cap, through the same relay code that carries buyer traffic. The instruction line pins the output format, so parsing is a regex and an integer comparison, and it heads off the hedging that would otherwise add noise.

The nonce line does two jobs. It rotates weekly, as an HMAC of the model, the probe, and the current week bucket under a server-side secret, so last cycle’s cached answers are useless and no prompt cache along the way can serve a stale hit. And because it is stable within a cycle, the baseline prompt and every channel’s probe prompt are byte-identical, which matters because answers are prompt-sensitive: we are always comparing like to like.

Which probes a given model gets is also keyed: the bank is ranked by an HMAC of the model and probe under the same secret, and the top three are selected. Deterministic for us, unpredictable for anyone without the key. A seller cannot know which questions their channel will be asked without covering the entire bank.

How many numbered variations are in Bach's Goldberg Variations?
Answer from memory even if uncertain. Return exactly one base-10 integer and nothing else.
Audit nonce: a41f0c92be77

Temperature zero is not determinism

Anyone who has tried to snapshot-test an LLM knows this: temperature 0 does not mean reproducible. Batched inference, mixture-of-experts routing, and floating-point non-associativity across GPU kernels all produce occasional flips, especially on questions where the model is genuinely torn, which our probes deliberately are.

A naive equality check would therefore generate false accusations, and for a marketplace that is the worst possible failure mode: an honest seller flagged by our own noise. So before any channel is audited, the system calibrates. For each model and probe pair, it runs the probe three times against a channel we own, our own first-party provider key, never a seller’s. The modal answer becomes the expected answer, and the disagreement becomes data.

If all three selected probes are rock-stable at temperature 0, a channel is allowed zero mismatches. If one probe is known to wobble, the channel gets one free miss. The threshold is derived from measured behavior, not tuned by hand.

note: The core rule

A channel is flagged only when it disagrees with the model more than the model disagrees with itself.

allowed_mismatches = ceil( sum(self_mismatch_rate) over probes used )

3 of 3 identical baseline answers -> self_mismatch_rate 0.00
2 of 3 identical baseline answers -> self_mismatch_rate 0.33

How a verdict is made

The audit runs as a scheduled task across every marketplace route weekly, and can be kicked off on demand. Every model-and-channel route gets its three keyed probes: byte-identical prompts, temperature 0, a 256-token cap, and a 45-second timeout per probe.

The calibration earns its keep in the middle cases. A channel that misses exactly the probe the baseline itself wobbles on is behaving like the real model, and passes. A channel that disagrees on all three probes is flagged: something else is answering.

  1. Calibrate. Each probe runs three times against our first-party key for the model. The modal answer becomes the baseline; the disagreement becomes the self-mismatch rate.
  2. Probe. Every seller channel receives the same prompts through the same relay path as buyer traffic.
  3. Compare. Answers are normalized to integers and matched against the baseline. Mismatches beyond the allowed budget flag the channel.
  4. Publish. Verdicts land on the audit table as verified, warning, or pending. A warning freezes our confidence in the channel and triggers investigation: recalibration if the upstream model changed, suspension if the seller cannot explain the drift.

caution: A failure is not an accusation

An unreachable or erroring channel is a reliability problem handled by routing health, not evidence of substitution. Only probes that returned an answer are scored, and request failures are tallied separately from mismatches.

flow
start(Weekly audit task)
  cal:Calibrate baseline (first-party key, 3 runs per probe)
  probe:Probe each seller channel (3 keyed probes)
  norm:Normalize answers to integers
  cmp:Compare against baseline
  budget:Within allowed mismatch budget?
  ok:Verified
  warn:Warning + investigation
  end(Publish to audit table)

start -> cal
cal -> probe
probe -> norm
norm -> cmp
cmp -> budget
budget(yes) -> ok -> end
budget(no) -> warn -> end

What this does not catch

An honest audit system has to audit itself, so here is the current threat model, holes included.

  • A targeted adversary: Our probe requests are legible as probes: the prompt literally says audit nonce. A seller fronting a smart proxy could special-case them, forwarding anything that looks like an audit to the real model and serving something cheaper the rest of the time. Today’s design catches the economical, common failure, wholesale substitution, and raises the cost of cheating from changing a config value to building a classifier against prompts that rotate weekly. It does not catch a man-in-the-middle engineered specifically against us.
  • Upstream drift: When a provider silently updates the model behind an alias, every channel drifts at once. That is the tell: one channel mismatching while its peers hold steady is suspicion, while every channel mismatching together means the model itself changed, and we recalibrate rather than accuse.
  • Good quantization: A careful quantization of the same weights may answer three trivia probes identically to the original. This system catches substitution strongly and degradation only sometimes. Probe count is a dial: the default is three per model, configurable up to the full bank.
  • Memorizing the bank: The bank is small today, and someone could in principle hardcode answers to all of it. Keyed selection means they cannot know which subset matters, the bank grows over time, and a channel that aces trivia while serving garbage to real traffic still faces buyers who notice.

warning: Defense in depth, not a force field

The endgame is probes statistically indistinguishable from organic traffic, which is genuinely hard to do without sampling real buyer prompts, something we do not do and will not.

Why the audit table is public

A marketplace’s only durable asset is buyer trust, and a private audit system reduces to trust us, the exact posture we are asking buyers not to take toward sellers. So the results ship with the product: every seller channel’s status, match counts, and last-audited timestamp are visible on the dashboard, next to the prices. We would rather show you the mechanism and its holes than sell you a badge.

If you think you can beat this design, or you have a probe idea better than Bach trivia, we want to hear about it. And if you are sitting on committed API spend you will never use, this is the audit your channel would be subject to. That is the pitch.