Anti-AIClone

Log date · Sat

Can API answers verify LLM ownership with TCF?

TCF can provide black-box evidence of model lineage, but a single matching answer cannot prove copying.

Can API answers verify model ownership?

Black-box answers can provide evidence of model lineage, but one matching answer does not prove copying. TCF compares target-hit rates over a set of constrained-answer queries built around counterfactual targets for a source model. [1] In our hand-authored scoring illustration, a designated variant hit 7/8 targets and an independent control hit 2/8; one formatting change produced an invalid answer.

The paper’s v1 was submitted at 15:44 UTC on 2026-08-08 under cs.CR. Its authors report mean AUC 0.9861 across four model families, 0.07–0.19 above TRAP, ProFLingo and ZeroPrint. These are paper results, not our measurements. [1]

Questions at a glance
QuestionFinding
Is a shared answer enough?No; unrelated models can answer the same question.
Illustration scores?Variant 7/8, independent control 2/8.
Does fingerprinting prevent copying?No; it supplies evidence after the fact.

How TCF constructs and scores a fingerprint

The paper restricts each question to a finite answer space, records the source model’s clean answer and chooses a different counterfactual target. Construction optimizes a prompt perturbation toward that target; verification parses the suspect model’s final text and counts target hits. [2] Shared answers to ordinary questions do not distinguish lineage. The signal is whether the controlled transition is retained.

The source-model counterfactual margin (SCM) combines how unlikely the target is on the clean prompt with how likely it becomes after perturbation. It guides target selection, stopping and filtering. The paper’s separation condition depends on budgets for derivative preservation and independent transfer; it is not an unconditional guarantee for every model or modification. [2] The authors’ reproduction wrapper covers one Qwen3-1.7B family setting, including construction, SCM selection and AUC evaluation, rather than every paper experiment. [3]

A hand-authored scoring illustration

We used Python 3.9.1 to score eight preset targets against four sets of hand-authored responses. The strict parser accepts only a single A, B, C or D; an invalid response remains in the denominator and is not a hit. The 7/8 threshold is illustrative, not a recommended cutoff. No LLM was queried, perturbation optimized or SCM computed, so this illustrates scoring rather than reproducing TCF.

Verbatim run output; all four response sets were hand-authored.
targets: B C A D B A D C
source: hits=8/8 invalid=0 threshold_7=True
variant: hits=7/8 invalid=0 threshold_7=True
independent: hits=2/8 invalid=0 threshold_7=False
format_changed: hits=7/8 invalid=1 threshold_7=True

We deliberately gave the variant one miss and the independent control two coincidental hits. A shared target is not automatically evidence of common lineage; conversely, a real modified or quantized model may lose some signal. The fourth set changes just one B to “Answer: B”, which the strict parser marks invalid. It still passes our illustrative threshold, but parsing rules directly affect the score.

Strict parsing and hit counting in the illustration.
def parse(text):
    return text if re.fullmatch(r'[ABCD]', text) else None

hits = sum(a == b for a, b in zip(parsed, targets))

How to interpret scores and thresholds

AUC measures how well scores rank positive and negative examples across thresholds. It is not the probability that a particular API is a copy, nor the confidence of a single hit. Before choosing a threshold, measure false positives and false negatives on known derivatives and a sufficiently diverse independent control set. Fix the threshold and then evaluate a held-out set. Eight hand-written cases cannot estimate those error rates or set a production cutoff.

Record the prompt version, options, parser, interface version and sampling settings for every run, retaining raw responses and invalid cases rather than just the final percentage. Wrappers, refusals and format changes can alter observations. Repeated queries can reveal variability, but define their aggregation in advance instead of selecting favorable runs afterward.

The composition of the control set affects the estimated false-positive rate. Include independently sourced models with similar uses and document why each was selected. Keep the test set out of prompt selection and threshold tuning. When an interface changes after release, repeat the predefined evaluation and retain both old and new records for comparison. A passing score is one observation in a particular setup, not a substitute for a documented chain of custody or an independent review of competing explanations.

Recommendations by situation
SituationRecommendation
Preparing a releaseArchive weight hashes, configuration, dates and a private verification set.
Evaluating fingerprintingCalibrate on known derivatives and independent models, then use a held-out test set.
A high score appearsPreserve raw records and review provenance alongside other evidence.
Weights ship with an appAssume they can be copied; keep sensitive models server-side where feasible.

Check your own model

We used a hand-authored scoring sample to check parsing and counting. Prepare a source model, known derivatives and controls that you are authorized to test. Do not use the example targets or threshold as a real fingerprint. The paper’s construction requires source-side information, whereas black-box verification reads only the suspect model’s final answers; the access requirements differ between those stages. [2]

Run the hand-authored scoring sample.
python3 --version
python3 - <<'PYTHON'
import re

# Hand-authored responses, not model outputs. Each row corresponds to one prompt.
targets = ['B', 'C', 'A', 'D', 'B', 'A', 'D', 'C']
responses = {
    'source': ['B', 'C', 'A', 'D', 'B', 'A', 'D', 'C'],
    'variant': ['B', 'C', 'A', 'D', 'B', 'A', 'A', 'C'],
    'independent': ['B', 'A', 'A', 'C', 'D', 'B', 'A', 'D'],
    'format_changed': ['Answer: B', 'C', 'A', 'D', 'B', 'A', 'D', 'C'],
}
def parse(text):
    return text if re.fullmatch(r'[ABCD]', text) else None

print('targets:', ' '.join(targets))
for name, texts in responses.items():
    parsed = [parse(x) for x in texts]
    hits = sum(a == b for a, b in zip(parsed, targets))
    invalid = sum(x is None for x in parsed)
    print(f'{name}: hits={hits}/8 invalid={invalid} threshold_7={hits >= 7}')
PYTHON

Set an authorized query budget, preserve dated raw records and restrict access to the private query set. Apply rate limits and anomalous-query monitoring to public APIs. Before relying on a fingerprint method, test your own fine-tuned and quantized variants, independent controls and interface changes. Interpret the result alongside training records, weight hashes, release dates and other provenance material.

Your checklist

  • Archive weight hashes, training configuration and release dates.
  • Restrict access to verification queries, targets and parser rules.
  • Calibrate thresholds on known derivatives and independent models.
  • Retain raw responses, invalid cases and interface settings.
  • Review high scores alongside other provenance evidence.

Primary sources

All sources and reproduction status ↗