Conceptio › Archive › arXiv CS
arXiv CS open access

Targeted Counterfactual Fingerprinting for Black-Box LLM Ownership Verification

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Targeted Counterfactual Fingerprinting for Black-Box LLM Ownership Verification Yutong Wu1,∗ , Xiaofan Bai2,∗ , Shixin Li1 , Pingyi Hu1 , Ziqi Zhou1 , Zilong Wang1 , Xiaojing Ma1 Songfeng Lu1 , Yuhong Li2 , Jin Xuan2 , Yi Wang3 , Dongmei Zhang3 , Bin Benjamin Zhu3

arXiv:2608.08195v1 [cs.CR] 8 Aug 2026

1

Huazhong University of Science and Technology 2 Alibaba Group 3 Microsoft Corporation wyt@hust.edu.cn, baixiaofan.bxf@alibaba-inc.com ∗ Equal contribution.

Abstract— Large language models (LLMs) are high-value assets that can be derived through redeployment, fine-tuning, quantization, or further alignment. Because deployed LLMs are commonly exposed only through query APIs, ownership verification must often rely on black-box text responses. This setting is difficult: generations are open-ended and can vary across repeated queries, while existing black-box fingerprints rely on signals that are fragile under a final-response interface, including full-text matching, soft behavioral features, or model-specific prompts designed not to transfer. The central challenge is to obtain auditable evidence that separates derivatives of a protected model from independently trained models using only black-box queries. We propose TCF (Targeted Counterfactual Fingerprinting), a black-box LLM fingerprinting framework that converts openended generation comparison into constrained-answer targeted counterfactual transfer. TCF restricts each verification query to a finite answer space, reducing the surface-form ambiguity that enters the verification score, and optimizes a prompt perturbation toward a counterfactual target different from the protected model’s clean answer on the original prompt. The resulting perturbed prompt is a fingerprint: verification reduces to checking whether the suspect model’s parsed final answer matches the recorded target. To construct discriminative fingerprints offline, we introduce the source-model counterfactual margin (SCM), a protected-modelonly quantity that certifies the target is unlikely before the perturbation and likely after it; SCM controls target selection, perturbation stopping, and fingerprint filtering. Under explicit derived-preservation and independent-transfer budgets motivated by local behavioral closeness, we derive a target-accuracy gap between derived and independent models. The bounds explain when targeted counterfactual transfer becomes ownership evidence, while empirical SCM diagnostics motivate an interior feasible operating region rather than arbitrarily large margins. Across four LLM families, TCF achieves an average AUC of 0.9861, improving over state-of-the-art black-box fingerprints TRAP, ProFLingo, and ZeroPrint by 0.07–0.19. Project available at: https://github.com/Underflow-1/TCF-LLM-Fingerprinting

I. I NTRODUCTION Large language models (LLMs) are high-value intellectual property assets, but verifying whether a deployed model derives from a protected source remains a critical unsolved challenge. Training state-of-the-art LLMs

demands massive data, exascale computation, and costly post-training alignment, yet third parties can reuse these models with minimal friction—wrapping checkpoints in APIs, fine-tuning for downstream tasks, quantizing for efficiency, or adapting via preference tuning. All such reuse is typically delivered as a black-box cloud service: auditors can only submit prompts and read text responses, with no access to weights, hidden states, logits, or decoding configurations [1]–[4]. This creates a fundamental challenge: enforcement of licenses and usage policies requires reliable, auditable evidence, but the only available signal is ambiguous, variable text output. Existing ownership verification methods fall into two categories: watermarking and fingerprinting. Watermarking embeds ownership signals by modifying training, finetuning, decoding, or model parameters [5]–[7]. While effective when owners control the full pipeline, it is invasive and cannot be retroactively applied to released, leaked, or third-party-modified models. Fingerprinting, by contrast, constructs verification queries from pre-trained models without modification, making it a natural noninvasive approach for auditing deployed derivatives [1]– [3]. The core challenge for LLM fingerprinting is openended generation. Unlike classifiers with fixed label spaces, LLMs produce variable, discrete responses under stochastic decoding: semantically identical answers differ in wording, decoding settings alter formats, and semantic similarity scoring is brittle and hard to justify as audit evidence. Existing methods lean on signals that weaken under strict final-text interface: ProFLingo relies on fulltext response matching [2], which breaks under paraphrasing or formatting changes. TRAP uses GCG-optimized suffixes for exact identity verification [1], [8], but its non-transferable design misses fine-tuned, quantized, or modified derivatives. ZeroPrint estimates soft behavioral features via perturbations [3], [9], requiring embeddings

factual transitions itself as ownership evidence. VerifiWe propose Targeted Counterfactual Fingerprinting cation is strictly black-box and hard-label: we compute (TCF), a framework that reduces generation ambiguity target accuracy (TA) across the private fingerprint set, at the scoring stage by reformulating verification as using no suspect-model logits, embeddings, gradients, or a constrained-answer problem. Each prompt restricts hidden states. Across four LLM families, TCF achieves outputs to a finite set A = {a1 , . . . , aK } (implemented as an average AUC of 0.9861 (perfect 1.0000 on three {A, B, C, D} multiple-choice labels), and a deterministic families), outperforming TRAP (0.7931), ProFLingo parser maps responses to valid labels or an invalid symbol. (0.8880), and ZeroPrint (0.9128) by 0.07–0.19. These This converts noisy text generation into reproducible results validate our central thesis: constrained-answer hard-label events, eliminating semantic scoring and restriction reduces generation ambiguity at the verification reducing sensitivity to surface-form variation, decoding interface, while SCM-guided counterfactual perturbation produces a highly discriminative signal for source-family randomness, and format differences. ownership verification. Constrained answers alone do not provide ownership Our key contributions are: evidence—unrelated models may share public knowledge and answer natural questions identically. TCF therefore • Problem reformulation. We recast black-box LLM ownership verification from fragile open-ended comconstructs fingerprints as targeted counterfactual transparison into constrained-answer targeted counterfactual fers: for each base question, we record the protected transfer, producing a robust, auditable hard-label signal. model’s clean answer, then use GCG optimization to • Unified source-only design. We introduce SCM, a synthesize a text perturbation that flips the model’s answer single quantity computed exclusively from the protected to a preselected unlikely target. The resulting prompt model that unifies all stages of fingerprint construction, encodes a source-specific transition: a target that was eliminating the need for surrogates or reference models. improbable under the clean prompt becomes probable • Formal theoretical foundation. Under explicit derivedafter perturbation. preservation and independent-transfer budgets motiAll stages of fingerprint construction are governed by vated by local behavioral closeness, we derive quantitathe source-model counterfactual margin (SCM), a single tive target-transfer bounds and a sufficient condition for quantity computed exclusively from the protected model. a positive target-accuracy gap; empirical diagnostics SCM quantifies both the unlikelihood of the target under identify a useful feasible SCM operating region. the clean prompt and its likelihood after perturbation, • State-of-the-art performance. Under strict hard-label unifying target selection, perturbation stopping, and constraints, TCF matches or outperforms the strongest fingerprint filtering. For the analysis, local behavioral evaluated baseline across the four source families and closeness motivates explicit budgets for how much a maintains strong performance across diverse derivative derived model may weaken the source target preference subgroups. and how much an independent model may acquire through II. R ELATED W ORK generic transfer. Conditioned on these budgets, SCM yields quantitative lower and upper bounds on target Model ownership verification divides into two transfer and a sufficient condition for a positive target- paradigms: invasive watermarking and non-invasive finaccuracy gap. Empirically, very strong perturbations can gerprinting. also increase generic transfer, motivating a feasible SCM operating region rather than maximal optimization. A. Watermarking and Invasive Ownership Signals and similarity scoring rather than parsed text responses.

Watermarking embeds verifiable ownership signals by intervening in the model lifecycle. Classical DNN watermarking uses backdoor triggers, parameter-level signatures, adversarial frontiers, or output modulations [10]–[14]; LLM watermarking extends this to generation statistics, fine-tuning data, or trigger-response pairs [5]– [7], [15]–[18]. Recent variants include instructional backdoors [19], cross-turn contextual backdoors [20], This framing fundamentally differs from prior and probabilistic provenance injection [21]. adversarial-prompt work. TRAP optimizes for exact These methods share two critical limitations for our model identity [1], while ownership verification requires threat model: (1) they cannot be retroactively applied detecting family membership—derivatives may differ to released, leaked, or third-party-modified models; (2) from the original but still be unauthorized copies. TCF they require altering the protected model or its training therefore treats preservation of source-specific counter- pipeline. Additionally, watermarking faces unresolved TCF at a glance

Construct offline: choose a clean-unlikely answer, optimize the source model toward that target, and retain only SCM-qualified prompts. Verify online: send each private prompt to the suspect API, parse one final A/B/C/D label, and aggregate target hits. Ownership signal: derivatives preserve more source-induced counterfactual transitions than independently trained models.

2

tradeoffs in utility preservation, stealthiness, and attack resistance [22]–[24]. Notably, text watermarking targets content provenance (identifying generated text) rather than model ownership (verifying a suspect service derives from a protected source), making it orthogonal to our problem.

time) and use only parsed hard labels for verification. This produces a simple, reproducible signal compatible with text-only APIs that permit ordinary prompt queries, while SCM-guided perturbation ensures discriminative power for family-level ownership verification. Table I summarizes the taxonomy of LLM ownership verification methods, highlighting our unique position as a non-invasive, strict black-box, hard-label approach.

B. Non-Invasive Fingerprinting Fingerprinting constructs verification queries from pre-trained models without modification, addressing watermarking’s core limitations. For DNNs, prior work leverages decision boundaries, conferrable adversarial examples, universal perturbations, adversarial trajectories, and robustness signatures [25]–[31]. These methods motivate our use of transferable behavioral signals, but they are designed for fixed-label classifiers with continuous inputs—LLMs present unique challenges due to discrete prompts, autoregressive generation, and surface-form variability from paraphrasing, formatting, and stochastic decoding. LLM fingerprinting further splits by access level: White-box/representation-level methods require internal model information: HuRef extracts human-readable fingerprints from invariant parameters [32]; REEF compares representation similarity across models [33]. While these reveal stable internal structures in derivatives, they are incompatible with strict black-box APIs that expose only final text outputs. Our method is complementary: we use source-side access exclusively for offline fingerprint construction and verify suspects using only parsed text labels.

TABLE I LLM OWNERSHIP - VERIFICATION METHODS . “M ODIFIED ?” INDICATES WHETHER THE PROTECTED MODEL OR ITS TRAINING / DECODING PROCESS IS MODIFIED . “S TRICT BLACK BOX ” MEANS THAT VERIFICATION CAN BE PERFORMED FROM THE TEXT RESPONSES ONLY. Method class Text watermarking Backdoor / active watermark White-box / representation fingerprint Black-box behavioral fingerprint TCF

Examples

Modified?

Suspect access

Strict black box

[5]–[7] [15], [17], [19], [20] [32], [33] [1]–[3] Ours

Yes Yes No No No

Text/API Text/API Weights/rep./circuits Text/API Text/API

Partial Often yes No/partial Yes Yes

III. T HREAT M ODEL AND P ROBLEM F ORMULATION A. Threat Model We consider an LLM owner who protects a source model M0 and audits a suspect service Ms . The goal is to determine whether Ms is either the same model as M0 or a derivative of M0 . The owner can access M0 during offline fingerprint construction, but can only query Ms through its public text interface during verification. Owner capability. The owner has full access to the protected source model M0 before deployment or auditing. Therefore, the owner may use source-model probabilities, gradients, and decoding behavior to construct fingerprints. This access is only assumed for M0 and is never assumed for the suspect model. Suspect-model access. The suspect model Ms is a black-box text-generation service. During verification, the owner submits prompts and observes only the final generated text. The owner cannot access the suspect model’s parameters, logits, token probabilities, hidden states, tokenizer internals, system prompt, decoding configuration, training data, or post-training procedure.

C. Black-Box Behavioral Fingerprinting Our work focuses on the most restrictive and practically relevant setting: non-invasive, hard-label black-box verification using only final text responses. ProFLingo [2] constructs queries that elicit target responses from the source model, then checks for exact reproduction. It relies on full-text matching, which is fragile to paraphrasing, decoding variation, and formatting changes. TRAP [1], [8] optimizes GCG adversarial suffixes to force the source model to output random strings. Designed for exact identity verification, its suffixes are intentionally nontransferable, failing to detect fine-tuned, quantized, or modified derivatives. ZeroPrint [3], [9] estimates local Jacobian-like fingerprints via semantic-preserving perturbations and output embeddings. While it captures richer behavioral features, it requires embedding comparisons and repeated perturbation queries, violating strict hardlabel constraints. TCF addresses these limitations by reformulating verification as constrained-answer targeted counterfactual transfer. Unlike prior work, we restrict outputs to a finite label space (reducing surface-form ambiguity at scoring

Strict online evidence contract

The suspect-side audit uses only ordinary text queries and the final parsed label. No suspect-model probability, embedding, hidden state, gradient, tokenizer access, or semanticsimilarity model enters the ownership score. Invalid or ambiguous responses are counted as failures rather than being repaired by a soft scorer.

The positive class contains M0 and models derived from M0 . Such derived models may be produced by supervised fine-tuning, instruction tuning, RLHF, DPOstyle preference tuning, LoRA adaptation, pruning, quantization, or lightweight post-processing. The negative class contains independently trained or unrelated LLMs. These

3

models may still share public data, similar architectures, comparable sizes, or similar benchmark performance with M0 . Therefore, the verification task is not to test general capability similarity, but to identify whether the suspect service preserves source-family behavior of M0 . Adversary. The suspect provider may deploy a modified version of the source model, adjust decoding parameters, alter system prompts, change response formatting, apply output post-processing, or use a finetuned, compressed, quantized, merged, or otherwise transformed model. The provider is not assumed to reveal any implementation details. We assume the private fingerprint set is not known to the suspect provider before verification. The suspect service is expected to answer ordinary user prompts, including the verifier’s prompts, through its text-generation interface.

explicit derived-preservation and independent transfer budgets, and the formal separation results below are conditioned on those budgets. Under fixed budgets, larger SCM strengthens the separation bounds. Empirically, however, stronger perturbations can also increase generic transfer to independent models, which motivates a feasible operating region and early stopping rather than maximal optimization. The proof details, modeling qualifications, and cross-model validation are provided in Appendix A-B and Appendix A-A. A. Finite Constrained-Answer Space Let M0 denote the protected source LLM and let M denote a suspect LLM. For a prompt p, the raw output of M is a text response, denoted by RM (p). Our prompt template restricts valid answers to a finite constrained answer space

B. Verification Objective

A = {a1 , a2 , . . . , aK },

The owner constructs a private fingerprint set F = {(pi , yi , ti )}ni=1 ,

(3)

In our implementation, A is instantiated by multiplechoice labels such as {A, B, C, D}. Let Parse(·) be a deterministic parser that maps a raw response to one valid label in A, or to ⊥ if the response is invalid, ambiguous, or unparsable. We define the constrained-answer distribution of model M on prompt p as

(1)

where pi is the verification prompt, yi ∈ A is the source model’s clean answer associated with the underlying question, and ti ∈ A \ {yi } is the target answer recorded by the owner. During verification, the owner queries the suspect model Ms with each pi and counts a hit only when the parsed response equals the recorded target ti . The verification score is the fingerprint target accuracy:

qM (a | p) = Pr [Parse(RM (p)) = a] ,

a ∈ A. (4)

Invalid responses are not assigned to any valid label, so P q a∈A M (a | p) may be smaller than one. For a target label t ∈ A and a prompt p, we define the target log-odds L on model M as a target preference signal

n

1X I [Parse(rs (pi )) = ti ] . TA(Ms ; F) = n i=1

K < ∞.

(2)

The owner declares Ms as a derived model from M0 if its target accuracy reaches a pre-chosen verification threshold ζ. Verification goal. The goal is not to prove byte-level equality between Ms and M0 . Instead, the goal is to decide whether Ms exhibits sufficiently strong sourcefamily fingerprint behavior under the strict black-box interface.

LM (p, t) = log

qM (t | p) . 1 − qM (t | p)

(5)

LM (p, t) > 0 means that the target answer has a probability larger than 1/2, while a larger value means a stronger target preference. Details on probability estimation and clipping are deferred to Appendix A-B1. B. Source-model Counterfactual Margin

IV. T HEORETICAL A NALYSIS

For a question x, let p0 (x) be the clean prompt without In this section, we develop an LLM-specific theory for any perturbation. Let u be a discrete input perturbation, our fingerprinting method. The analysis is deliberately constructed only from M0 , and let separated from the practical construction of Section V. We are aiming to distinguish two model classes—models pu (x) = Template(u, x) (6) derived from the protected source M0 and independently trained models—and we ask: under what structural be the perturbed fingerprint prompt. The clean answer of property does a perturbed verification input, constructed the source model is only from M0 , induce a target-answer accuracy gap y(x) = arg max qM0 (a | p0 (x)). (7) a∈A between these two classes? Our analysis centers on the source-model counterfactual margin (SCM), the source- A target answer t(x) is drawn from A \ {y(x)}, but side target preference created by the optimized text differing from the clean answer is not by itself enough: the perturbation. A large SCM certifies a strong source-side fingerprint should make this target answer unlikely before counterfactual transition. The locality premise motivates the perturbation and likely after it. The counterfactual

4

requirement is therefore certified by the quantity below rather than by the choice t(x) ̸= y(x) alone.

then the fingerprint satisfies Γ(x, u, t) ≥ Γmin .

(17)

Definition IV.1 (Source-model counterfactual margin). For a candidate fingerprint (x, u, t), its Source-model Counterfactual Margin (SCM) is  Γ(x, u, t) = min LM0 (pu (x), t), −LM0 (p0 (x), t) . (8)

Lemma 1 gives an explicit stopping rule for the perturbation optimizer: after selecting a clean-unlikely target, the perturbation should be optimized until the source target loss falls below the threshold in Eq. 16. Equivalently, the optimization should make the source The two terms in Eq. 8 correspond to two sides of the target probability exceed σ(Γmin ) and hence satisfy same counterfactual transition. The first term requires the Eq. 17. To verify Lemma 1, Fig. 1 records how the source target answer to be likely after the perturbation is applied. target loss and SCM evolve during GCG optimization. The second term requires the same target answer to be Panel (a) plots the target loss over steps, panel (b) shows unlikely for the clean question. Therefore, a large SCM the mean SCM over the same trajectory, and panel (c) directly compares target loss with SCM. The result is certifies consistent across the three views: target loss decreases, qM0 (t | p0 (x)) is small, qM0 (t | pu (x)) is large. SCM increases, and the two show a strong negative (9) relation. This supports using target-loss minimization as a The SCM also provides an explicit probability interpre- practical source-side proxy for increasing SCM, while the tation. Let σ(z) = 1/(1 + e−z ) be the sigmoid function. early stopping rule avoids unnecessary over-optimization. Since Eq. 5 is the logit of qM (t | p), we have Additional details are in Appendix A-B5. (10)

(a)

(b)

Target loss vs GCG step

(c)

Mean SCM vs GCG step

10

and

1

0

−1

−1

ρ = − 1.00

100

−2

−4 0

−2 0

0

qM0 (t | p (x)) ≤ σ(−Γmin ).

50

100

GCG step

(12)

150

200

200

0

SCM

(11)

10

Mean SCM

qM0 (t | pu (x)) ≥ σ(Γmin ),

Mean target loss

Thus, if Γ(x, u, t) ≥ Γmin , Eq. 8 and Eq. 10 imply

Γ=1 Γ=2 Γ=3

Loss--SCM relation

2

Ltarget 0

GCG step

qM (t | p) = σ (LM (p, t)) .

0

50

100

150

200

0

GCG step

2

4

Target loss

Here, Γmin denotes the minimum required SCM for accepting a fingerprint. A candidate is called SCMqualified if Γ(x, u, t) ≥ Γmin . (13)

Fig. 1. The relationship between target loss and SCM. Optimizing the source-side input perturbation reduces the source target loss, increases the mean SCM, and produces a strong negative relation.

Increasing Γmin strengthens individual fingerprints but can reduce the number and diversity of retained fingerprints. The detailed feasibility discussion is in Appendix A-B2.

Target-loss minimization is an effective operational proxy for increasing SCM.

Takeaway

D. Local Behavioral Closeness Lemma 1 focuses on the protected model M0 . To reason about how the target transition induced by text input perturbation u behaves on other models, the analysis needs one structural premise. Let zM (p) ∈ RK be the answer-logit vector that M assigns to the labels in A on prompt p, and define the target margin

C. How the Perturbation Controls SCM The SCM is useful because it can be controlled using only the protected source model. The clean term −LM0 (p0 (x), t) is controlled by selecting a target answer that is unlikely under the clean source prompt. The perturbed term LM0 (pu (x), t) is controlled by optimizing the input perturbation u against M0 . Let the source-model perturbation loss be Lsrc (u; x, t) = − log qM0 (t | pu (x)).

mM (p, t) = zM (p)[t] − max zM (p)[a]. a̸=t

A positive margin means t is the model’s parsed hard answer in A; a large margin means the hard answer is stable.

(14)

Lemma 1 (Loss threshold for SCM control). Suppose the target label t satisfies 0

−LM0 (p (x), t) ≥ Γmin .

(15)

Assumption IV.2 (Local behavioral closeness). There exist a closeness radius β ≥ 0 and a small slack η ∈ [0, 1) such that, for a derived model MD , a fraction at least 1 − η of fingerprint inputs p ∈ {p0 (x), pu (x)} obey

(16)

|mMD (p, t) − mM0 (p, t)| ≤ β.

If the perturbation u satisfies  Lsrc (u; x, t) ≤ log 1 + e−Γmin ,

(18)

5

(19)

In particular, if Γ ≥ Γmin , then

No such uniform high-probability closeness to M0 holds for an independent model MI .

 qMD (t | pu (x)) ≥ σ Γmin − ϵD (MD , x, u, t) .

Assumption IV.2 states that a derived model’s local decision behavior stays near the protected model’s at each evaluated input, including both the clean and the perturbed prompt. The premise is probabilistic: it need only hold for a large fraction of fingerprints, and the verifier aggregates many fingerprints so that a per-fingerprint edge concentrates into a reliable separation. This premise motivates the transfer diagnostics below but is not, by itself, a numerical bound on an unknown suspect; the formal results are conditioned on the explicit ϵD and ϵI budgets. Appendix A-B6 gives the detailed interpretation and targeted-transfer intuition.

Lemma 2 shows how SCM compensates for posttraining drift. To guarantee a derived-model target-hit probability at least 1−τD under budget ϵD , it is sufficient that 1 − τD Γ ≥ ϵD + log . (25) τD To verify Lemma 2, Fig. 2 empirically examines whether derived models preserve the source-induced target preference. We compute the weakening drift ∆+ D over derived model–fingerprint pairs, summarize its ECDF in panel (a), and plug representative budgets into the lower bound σ(Γ − ϵD ) in panel (b). The result shows that smaller budgets correspond to stronger preservation, and that increasing SCM gives a stronger lower bound on derivedmodel target-hit probability. Higher-coverage budgets are more conservative. Appendix A-B7 further summarizes these results, and the corresponding cross-model ECDF diagnostics are reported in Appendix A-A.

E. Targeted Transferability of Derived Models We now instantiate the derived side of Assumption IV.2 on the parsed-log-odds scale used by the verifier. For a derived model MD and a candidate fingerprint (x, u, t), define n u ∆+ D (MD , x, u, t) = max 0, LM0 (p (x), t) (20)

o − LMD (pu (x), t) .

Takeaway

Derived models preserve enough of the source-induced target preference to support conditional transfer.

This quantity is the loss of perturbed target log-odds when moving from the source model to the derivative. For any budget ϵD (MD , x, u, t) satisfying ϵD (MD , x, u, t) ≥ ∆+ D (MD , x, u, t),

F. Targeted Transferability of Independent Models To operationalize the independent-model side of Assumption IV.2, we allow an explicit generic-transfer slack rather than assuming a fixed numerical distance. An independent model need not stay uniformly close to M0 at the perturbed input. The perturbation u is optimized only against M0 , so it follows M0 ’s local gradient geometry; on a model whose local geometry is misaligned with M0 ’s, the same direction produces only a weak, generic effect. For an independent model MI and a candidate fingerprint (x, u, t), define the generic-transfer slack

(21)

we have the deterministic inequality LMD (pu (x), t) ≥ LM0 (pu (x), t) − ϵD (MD , x, u, t). (22) Smaller budgets mean that the considered derivative class preserves the source prefixed target preference more strongly. (a)

(b)

Required preservation budget ECDF

1.0

Lower bound

P(ΔD+ ≤ εD )

o − LM0 (p0 (x), t) .

0.8

0.6 0.4 0.2 0.0

n u ∆+ I (MI , x, u, t) = max 0, LMI (p (x), t)

Derived transfer lower bound

1.0

0.8

95% 90% 3.69 2.97

50% 0.38 0

1

2

3

ΔD+

4

0.4

0.0

(26)

For any budget ϵI (MI , x, u, t) satisfying

0.6

ϵI (MI , x, u, t) ≥ ∆+ I (MI , x, u, t),

50% εD = 0.38 90% εD = 2.97 95% εD = 3.69

0.2

5

(24)

0

1

2

3

SCM threshold Γ

4

(27)

we have the deterministic inequality 5

LMI (pu (x), t) ≤ LM0 (p0 (x), t) + ϵI (MI , x, u, t). (28) The slack explicitly permits accidental transfer and generic prompt effects.

Fig. 2. Validation of derived-model local closeness (Assumption IV.2). (a) The empirical weakening budget ϵD from Pr(∆+ D ≤ ϵD ) over derived model–fingerprint pairs estimates the covered fraction on which the premise holds. (b) The resulting conditional transfer lower bound σ(Γ − ϵD ) under the marked empirical budgets.

Lemma 3 (Conditional independent-model targeted-transfer upper bound). Let Γ = Γ(x, u, t). If ϵI (MI , x, u, t) ≥ ∆+ I (MI , x, u, t), then  qMI (t | pu (x)) ≤ σ −Γ + ϵI (MI , x, u, t) . (29)

Lemma 2 (Conditional derived-model targeted-transfer lower bound). Let Γ = Γ(x, u, t). If ϵD (MD , x, u, t) ≥ ∆+ D (MD , x, u, t), then  qMD (t | pu (x)) ≥ σ Γ − ϵD (MD , x, u, t) . (23)

In particular, if Γ ≥ Γmin , then  qMI (t | pu (x)) ≤ σ −Γmin + ϵI (MI , x, u, t) .

6

(30)

(a) Distribution of non-transfer slack

(b)

2.5

0.4 0.2

2

4

ΔI+

0.0

95% 90% 4.79 3.98

50% 0.63 0

2

εI

4

0.4

50% εI 90% εI 95% εI

0.2

6

Theorem IV.3 (SCM yields a target-accuracy separation under explicit transfer budgets). Let Γi = Γ(xi , ui , ti ). For a derived model MD , choose valid budgets ϵD,i ≥ ∆+ D (MD , xi , ui , ti ). For an independent model MI , choose valid budgets ϵI,i ≥ ∆+ I (MI , xi , ui , ti ). Then

0.6

0.0

0

1

2

3

SCM threshold Γ

4

5

n

Fig. 3. Validation of independent-model targeted transfer. (a) Distribution of the required generic-transfer slack ∆+ I . (b) Empirical coverage Pr(∆+ ≤ ϵ ) over independent model–fingerprint pairs. (c) I I Conditional independent-model transfer upper bound σ(−Γ+ϵI ) under the marked empirical slack budgets.

E[TA(MI )] ≤

1X σ(−Γi + ϵI,i ). n i=1

(34)

n

(35)

Consequently, the expected separability gap satisfies G ≜ E[TA(MD )] − E[TA(MI )] n 1X [σ(Γi − ϵD,i ) − σ(−Γi + ϵI,i )] . ≥ n i=1

(36)

Lemma 4 (Fixed-budget separability). If every fingerprint satisfies Γi ≥ Γmin , ϵD,i ≤ ϵD , and ϵI,i ≤ ϵI , then E[TA(MD )] ≥ σ(Γmin − ϵD ), E[TA(MI )] ≤ σ(−Γmin + ϵI ).

(37)

The fixed-budget lower bound on the expected gap is positive whenever 2Γmin > ϵD + ϵI .

(38)

By Lemma 4, the derived flip probability is lower bounded while the independent flip probability is upper bounded, so the operating point can be chosen inside the feasible band to obtain a positive expected gap. Averaging n diverse fingerprints then concentrates TA around the two class-specific rates, converting a per-fingerprint edge into a thresholdable separation. To verify Lemma 4,

Takeaway

Independent-model transfer requires explicit generic-transfer slack, explaining residual false positives under overoptimization.

(a) Bound separation, conservative case

Target accuracy / gap

1.0

G. SCM-Induced Separability of Target Accuracy Before aggregating fingerprints, consider the fixedbudget single-fingerprint gap envelope

(b) 1.0

positive gap: Γ > 3.48

0.8

0.8

0.6

Derived LB Indep. UB Gap LB

0.4 0.2

Empirical separability Derived TA Independent TA Gap

0.6

0

(31)

2

4

SCM threshold Γ

6

8

0.4

0.4

0.2

0.2

0.1

0.0

0.0 Q4 SCM=0.66

Q1 Q2 Q3 SCM=-2.16 SCM=-1.15 SCM=-0.54

SCM quantile

(c)

Q4-matched bound

1.0

ΓQ4 = 0.66

0.5

0.3

0.0

0.8

Derived LB Indep. UB Gap LB

0.6 0.4 0.2 p = 53.7%, P = 0.54

0.0 0

1

2

SCM threshold Γ

3

4

Fig. 4. SCM-induced separability and the feasible margin band. (a) Conservative fixed-budget envelope using the 90% empirical budgets ϵD ≈ 2.97 and ϵI ≈ 3.98; the resulting positive-gap condition Γ > 3.48 is sufficient, not necessary. (b) Empirical SCM-quantile trend on Qwen3-1.7B Base: independent target accuracy may also rise in the highest-SCM buckets because a stronger perturbation manufactures generic transfer, so the derived–independent gap is maximized at an interior operating margin (the band sweet spot) rather than by pushing SCM arbitrarily high. (c) Q4-matched fixed-slack envelope.

For fixed ϵD and ϵI , larger SCM increases the fixedbudget gap envelope; Appendix A-B11 gives the detailed fixed-budget interpretation and its empirical qualification. For a fingerprint set F = {(xi , ui , yi , ti )}ni=1 ,

1X σ(Γi − ϵD,i ), n i=1

and

For fixed ϵI , increasing SCM tightens the independent upper bound. If ϵI itself grows with SCM because stronger prefixes have larger generic prompt effects, empirical independent accuracy may increase even though the fixed-slack envelope decreases. This distinction is important to understand SCM-bucket plots in Fig. 4. To empirically verify Lemma 3, Fig. 3 measures how much a source-optimized perturbation transfers to independent models. We compute the generic-transfer slack ∆+ I , show its distribution in panel (a), convert it to an ECDF in panel (b), and plug the marked budgets into the upper bound σ(−Γ + ϵI ) in panel (c). The result shows that larger slack budgets cover more independent model–fingerprint pairs, but also give looser non-transfer guarantees. For a fixed slack, increasing SCM tightens the independent-model upper envelope, although empirical independent accuracy can still rise when stronger prefixes create generic transfer. Appendix A-B9 summarizes the diagnostic, and the corresponding cross-model nontransfer results are reported in Appendix A-A.

g(Γ; ϵD , ϵI ) = σ(Γ − ϵD ) − σ(−Γ + ϵI ).

E[TA(MD )] ≥

Target accuracy / gap

0.6

Derived-independent gap

0.5

0.8

Upper bound

P(ΔI+ ≤ εI )

Density

1.0

0

This is exactly the statistic used by the online verifier.

1.0

0.8

1.5

0.0

(c) Independent transfer upper bound

Independent Eq.27 coverage

1.0

90% 95%

Target accuracy

50% 2.0

(32)

define the hard-label target-accuracy statistic of a suspect model M as n 1X TA(M ) = I[Parse(RM (pui (xi ))) = ti ] . (33) n i=1

Fig. 4 empirically validates whether the derived and independent bounds translate into an observable targetaccuracy gap. Panel (a) combines the derived lower bound and independent upper bound using the 90% empirical

7

budgets, panel (b) compares this with the empirical SCM-bucket trend, and panel (c) repeats the bound calculation with high-SCM matched budgets. The result supports the feasible-band interpretation: higher-SCM fingerprints generally increase the derived–independent gap, but the highest-SCM bucket can also increase independent target accuracy when the perturbation becomes too generic. Thus, SCM should be strong enough to survive derived-model weakening, but not pushed indefinitely. Appendix A-B14 gives the detailed empirical interpretation, and model-wise SCM separability results are reported in Appendix A-A.

the hard-label indicators in Eq. 33 are independent conditional on the fixed fingerprint set. If a derived model satisfies µMD ≥ αD and an independent model satisfies µMI ≤ αI with αD > αI , then under the midpoint threshold in Eq. 40,   n(αD − αI )2 ⋆ Pr[TA(MD ) < ζ ] ≤ exp − , (42) 2 and   n(αD − αI )2 Pr[TA(MI ) ≥ ζ ⋆ ] ≤ exp − . (43) 2 Both the verifier and the construction filter read a hard label, so the final quantity that matters is whether the sampled answer equals t. The target margin of Eq. 18 controls this directly in an idealized constrained decoder. Specifically, under temperature-T softmax sampling normalized over only the K legal labels in A (or conditional on generation producing a valid legal label), 1 Pr[sample = t | p] ≥ . (44) 1 + (K − 1) e−mM (p,t)/T Thus a large source margin mM0 (pu , t) strengthens targetlabel stability under this constrained-label idealization. Eq. 44 does not assert that an arbitrary raw-text API samples only from the legal labels; the actual APIfacing guarantee remains empirical and is checked by the repeated-query stability filter of Sec. V. Appendix A-B16 gives the detailed qualification and margin–sampling argument.

Takeaway

SCM is most useful inside a feasible margin band, supporting early stopping rather than maximal optimization.

H. Threshold Selection and Verification Reliability The previous subsection gives expected target-accuracy bounds. Define n 1X αD = σ(Γi − ϵD,i ), n i=1 (39) n 1X σ(−Γi + ϵI,i ). αI = n i=1 Here, αD is a lower bound on the expected target accuracy of a derived model under the chosen budgets, and αI is an upper bound for an independent model under its chosen slacks. If αD > αI , then any threshold in (αI , αD ) separates the two expectation bounds. A natural threshold is αD + αI ζ⋆ = . (40) 2 In practice, the true budgets of an unknown suspect model are unavailable, so Eq. 40 should be viewed as a theoretical existence statement. Operational thresholds should be pre-registered from source-side construction rules and, when available, calibrated on a held-out validation pool of non-derived models rather than tuned on the test suspect pool. Under the fixed-budget interpretation in Lemma 4, an operational sufficient condition for derived hit probability at least 1 − τD and independent hit probability at most τI is   1 − τD 1 − τI Γmin ≥ max ϵD + log , ϵI + log . τD τI (41) This formula exposes the feasibility trade-off: stronger reliability requirements or larger transfer budgets require larger SCM, which can reduce the retained fingerprint pool.

V. O UR M ETHOD As shown in Fig. 5, we propose Targeted Counterfactual Fingerprinting (TCF), a black-box LLM ownership verification method based on SCM. The owner constructs prompts that strongly change the protected source LLM’s answer from a clean answer to a selected target answer. During verification, the owner queries a suspect model through its generated text and parses the output into a finite constrained answer space. A model is considered likely derived if it preserves a high fraction of these source-specific target answer transitions. A. Target Selection As shown in Fig. 5(A1–A3), target selection starts from a finite-answer candidate question, obtains the source clean answer, and then chooses a clean-unlikely target. For each candidate question x, we first evaluate the clean source prompt p0 (x). The source clean answer is y(x) = arg max qM0 (a | p0 (x)). a∈A

(45)

The target answer should be different from y(x) and should be unlikely under the clean source prompt. We therefore select targets from  T (x) = a ∈ A \ {y(x)} : −LM0 (p0 (x), a) ≥ Γmin . (46)

Lemma 5 (Finite-sample reliability under independent fingerprint indicators). Let µM = E[TA(M )]. Suppose

8

A. Offline Fingerprint Construction on the Protected Source Model

Step A1 Candidate question x with finite legal answer space A = {A, B, C, D}

Finite legal answer space

Which planet is known as the Red Planet? A. Earth B. Mars C. Jupiter D. Venus Answer with only one capital letter.

Step A2

B

C

Candidate fingerprint

Step B1 (

Step B2

Source-model counterfactual margin (SCM)

Step C2

,

u prefix

,

y clean answer

t

)

SCM Gate Γ(x, u, t) = min{ LM0(pu, t), −LM0(p0, t) } A

M0

B

C

SCM-qualified if Γ(x, u, t) ≥ Γmin

D

Clean answer y = B

A

Question x

C

D

target answer t is unlikely

D

Step B3

A B C D target answer t is likely

Verification stability (optional) Repeated source queries

Use GCG to optimize a prefix u

GCG prefix u

B

Ms

Raw text responses

Deterministic parsing to the legal answer space

retain fingerprints with stable target labels sb0(x, u, t) ≥ smin

A

B

C

D

Target answer t = D

Step B4

Private fingerprint set F

F = {(pi, yi, ti)}i=1n Source-specific counterfactual transition on M₀ B

Target answer t =

Legend Source-side / Offline

Qualification / Private

Online / Black-box

Parsing & Evaluation

D

Private set F

• SCM-qualified fingerprint prompts • recorded clean answers and target answers • offline and private

D D B

deterministic parser

⊥

A/B/C/D/⊥

Fingerprint-wise verification indicator Zi(Ms) = I[Parse(rs(pi)) = ti]

ID 1 2 3 4

Step C4

Prompt pᵢ ... ... ... ...

Target tᵢ D D B C

Step C5

Parsed label D B B ⊥

Zᵢ(Mₛ) 1 0 1 0

Fingerprint target accuracy

TA(Ms; F) = (1 / n) Σi=1n Zi(Ms)

Protected source model M0

Clean answer y =

Suspect model black-box API

"I think the answer is D." "The correct option is D." "After analysis, it should be B." "I am not sure."

StepC3

Selected target answer t = D

Query the suspect model with fingerprint prompts

After prefix pᵘ(x)

Before prefix p⁰(x)

Select a clean-unlikely target answer t ≠ y

Target selection: choose t ∈ A \ {y} target answer is unlikely under the clean prompt

Step A4

Step C1

target answer

Protected source model

p0(x)

C. Online Black-Box Ownership Verification

Private set F

,

x question

D

Query the protected source model with the clean prompt p0(x)

Clean prompt

Step A3

A

B. SCM Qualification and Private Fingerprint Set

Example: 15 / 20 = 0.75

Ownership verification decision

Derived model from M₀ positive class

Yes

e.g., SFT, LoRA, RLHF, pruning, quantization, compression

TA(Ms; F) ≥ζ?

No

Key Quantities

TCF Summary

Black-box Assumption

Γ(x, u, t) : source-model counterfactual margin (SCM) TA(Ms; F) : fingerprint target accuracy Γmin : SCM threshold; ζ : verification threshold

TCF verifies whether a suspect model preserves source-specific counterfactual transitions under a strict black-box, hard-label interface.

Only final generated text is observed; no logits, probabilities, embeddings, gradients, or hidden states.

Independent model negative class Independently trained or unrelated LLMs

Fig. 5. Overview of Targeted Counterfactual Fingerprinting (TCF). Panel A illustrates fingerprint generation on the protected source model, Panel B illustrates SCM qualification and fingerprint-set construction, and Panel C illustrates black-box ownership verification.

If T (x) is nonempty, we choose the unlikely valid target, t(x) = arg min qM0 (a | p0 (x)). a∈T (x)

and then stop early. We set Γtarget = Γmin , where the source-side SCM threshold is fixed before verification and is chosen only from source-side feasibility. We use early stopping to avoid unnecessary over-optimization and to retain the first source-qualified perturbation rather than blindly using the final GCG step. This choice is empirically supported by Fig. 4: as target loss decreases, SCM increases, but the strongest empirical SCM regime can also increase generic transfer to independent models. We therefore do not treat “larger SCM” as an unbounded optimization objective. In practice, Eq. 49 is the sourceside stopping condition, and the retained candidate is accepted only after its parser-side SCM and source stability are recomputed.

(47)

If T (x) is empty, the question is discarded because no target answer is sufficiently counterfactual on the source model. This target-selection rule controls the clean side of SCM before the perturbation is optimized. After this step, the remaining task is only to control the perturbed side, namely to make LM0 (pu (x), t) reach the construction target Γtarget . B. Perturbation toward a Target Margin As shown in Fig. 5(A4), given a selected target t, we optimize a discrete input perturbation (prefix) u with GCG [8]. For exposition, we write the objective using the source constrained-answer probability qM0 ; the differentiable source-side surrogate used during search and the parser-side acceptance check are detailed in Appendix A-B3. The objective is the target negative loglikelihood Lsrc (u; x, t) = − log qM0 (t | pu (x)).

Prefix length. The prefix length ℓu controls the search space. A longer prefix usually improves the chance of satisfying Γ(x, u, t) ≥ Γtarget but may reduce naturalness and increase optimization cost. Optimization budget. Let Tmax be the maximum number of GCG iterations and B be the number of candidate token replacements evaluated per iteration. Larger values improve success rate but increase construction cost.

(48)

By Lemma 1, the construction target gives an explicit stopping criterion. Since LM0 (pu (x), t) ≥ Γtarget is equivalent to qM0 (t | pu (x)) ≥ σ(Γtarget ), it is sufficient to optimize until  Lsrc (u; x, t) ≤ log 1 + e−Γtarget , (49)

Verification stability. Because LLM outputs can vary across repeated queries under stochastic decoding, we optionally query the source model M0 for R0 repeated trials with the selected prompt and compute

9

VI. E XPERIMENTS We organize the experimental evaluation by the following five questions. First, does target-answer transfer separate derived models from independent models? Second, how large is the gap between TCF and existing black-box LLM fingerprinting baselines? Third, is the signal stable under decoding changes and simple adaptive perturbations? Fourth, how robust is TCF to adaptive attack? Finally, what is the computational cost compared with the evaluated baselines?

R0 h i 1 X (r) I Parse(RM0 (pu (x))) = t . sb0 (x, u, t) = R0 r=1 (50) A candidate is retained only if

sb0 (x, u, t) ≥ smin .

(51)

We recommend smin ∈ [0.8, 0.95]. This practical filter is motivated by the margin–sampling analysis of Sec. IV-H: under the constrained-label idealization, a larger source A. Experimental Setup target margin favors target-label stability. The repeatedSource models. We evaluate TCF on four representative query filter then checks the actual counterfactual stability open-source LLMs as protected source models: Qwen3under the decoding setting used by the source interface. 1.7B Instruct [34], Qwen3-1.7B Base [34], Llama3-8B To reduce response-format variation at the suspect Base Direct [35], [36], and Mistral-7B-v0.3 [37]. The interface, we append a fixed answer instruction to the public checkpoint identifiers on Hugging Face are listed GCG-optimized prompt and restrict valid parsed outputs in Table II. to the legal answer space. Thus, the verification prompt pi in Eq. 1 is TABLE II pi = si ⊕ qi ⊕ τ.

P ROTECTED SOURCE MODELS AND SUSPECT- MODEL POOLS .

(52)

Here, si = u⋆i is the selected GCG prefix, qi is the underlying multiple-choice question, and τ denotes the fixed answer instruction template that asks Ms to output one capital letter from {A, B, C, D}:

Source

Checkpoint identifier

Total

Source

Derived

Independent

Qwen3-1.7B Instruct Qwen3-1.7B Base Llama3-8B Base Direct Mistral-7B-v0.3

Qwen/Qwen3-1.7B Qwen/Qwen3-1.7B-Base meta-llama/Meta-Llama-3-8B mistralai/Mistral-7B-v0.3

19 22 25 25

1 1 1 1

9 12 13 16

9 9 11 8

Suspect model pool. For each protected source, we evaluate the source checkpoint, direct model positives, and independent negatives. Direct model positives cover supervised/task fine-tuning (SFT), RL-style adaptation (RL), language/domain adaptation, pruning, and other direct derivatives. Independent checkpoints are used only as independent negatives. Table II lists the fixed source/derived/independent model counts used for the main AUC in Table III. Appendix Tab. XI provides the extended checkpoint catalog, and Appendix A-E reports per-suspect diagnostics for checkpoints with the corresponding baseline artifacts.

Question ... A. ... B. ... C. ... D... Answer with only one capital letter: A, B, C, or D. Answer:

Algorithm 1 in Appendix A-C gives the complete offline construction procedure. To maintain a practically effective fingerprint set, we additionally enforce diversity over questions, source clean answers, and target answers during selection. C. Online Black-Box Ownership Verification As shown in Fig. 5(C1–C5), after constructing the fingerprint set, the owner performs online black-box ownership verification for a suspect model Ms by using only black-box queries as described in Sec. III-B. Verification threshold selection. ζ is a threshold chosen to control verification errors. Each verification process requires n queries to Ms , followed by a single pass to compute TA. Since the fingerprint pool F is generated offline and can be reused, multiple independent verification instances can be performed by sampling different subsets Q, enabling repeated verification while preserving query efficiency. Number of fingerprints. The number of fingerprints n controls statistical reliability. A larger n reduces variance but increases query cost. In the main evaluation, we use 20 fingerprints per protected source, matching the fixed registry described in Sec. VI and Appendix A-D1.

Fingerprint Generation. The fingerprint pool is built from Massive Multitask Language Understanding (MMLU) multiple-choice questions [38]. Each source model uses 20 fingerprints from four different subject categories, with five questions per category. The fourdomain design prevents the fingerprint set from being tied to a single topic and improves fingerprint diversity. The details are in Appendix A-D. Baselines. We compare with three state-of-the-art blackbox LLM fingerprinting baselines: TRAP [1], ProFLingo [2], and ZeroPrint [3]. Appendix Tab. X specifies the verification protocol and score definition for each method. B. Main Verification Results Table III reports the main verification AUC results. TCF achieves perfect AUC on Qwen3-1.7B Instruct,

10

All family

Qwen3-Inst. TPR

1.0

Original

SFT/Task

RLHF/GRPO

Pretrain/Language

Pruning

Other family

0.8 0.6 0.4

Method AUC Ours 1.00 ZPrint 1.00 ProF 0.94 TRAP 0.95

0.2 0.0

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 1.00 ProF 0.98 TRAP 0.92

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 1.00 ProF 0.93 TRAP 1.00

Ours 1.00 ZPrint 1.00 ProF 0.93 TRAP 1.00

Ours 1.00 ZPrint 1.00 ProF 0.93 TRAP 1.00

Ours 1.00 ZPrint 0.98 ProF 0.93 TRAP 0.89

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 0.98 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 0.96 ProF 0.75 TRAP 0.88

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 0.67

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 0.94 ZPrint 0.80 ProF 0.85 TRAP 0.79

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 0.94 ZPrint 0.81 ProF 0.79 TRAP 0.71

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 0.94 ProF 1.00 TRAP 1.00

Ours 0.89 ZPrint 0.62 ProF 0.97 TRAP 1.00

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 0.90 ProF 0.89 TRAP 0.56

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 1.00

Ours 1.00 ZPrint 0.90 ProF 0.82 TRAP 0.60

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 0.75

Ours 1.00 ZPrint 1.00 ProF 1.00 TRAP 0.67

Ours 1.00 ZPrint 0.92 ProF 1.00 TRAP 0.67

Ours 1.00 ZPrint 0.83 ProF 0.97 TRAP 0.67

Qwen3-Base TPR

1.0 0.8 0.6 0.4 0.2 0.0 1.0

Llama3-8B TPR

0.8 0.6 0.4 0.2 0.0 1.0

Mistral-7B TPR

0.8 0.6 0.4 0.2 0.0 0.00

0.25

0.50

0.75

1.00

0.00

0.25

FPR

0.50

0.75

1.00

0.00

0.25

FPR

0.50

0.75

1.00

0.00

0.25

0.50

FPR

0.75

1.00

0.00

0.25

FPR

0.50

0.75

1.00

0.00

0.25

FPR

0.50

0.75

1.00

0.00

0.25

FPR

0.50

0.75

1.00

FPR

Fig. 6. Diagnostic subgroup ROC curves on the shared per-suspect diagnostic pool. Primary family-level AUCs are reported in Table III.

All family

Qwen3-Inst. Score

1.0

Positive pool

Original

Independent

SFT/Task

Numbers above boxes are AUC

RLHF/GRPO

Pretrain/Language

Pruning

Other family

1.00

0.95

0.94

1.00

1.00

1.00

1.00

1.00

1.00

0.92

0.98

1.00

1.00

1.00

1.00

1.00

1.00

1.00

0.93

1.00

1.00

1.00

0.93

1.00

1.00

1.00

0.93

1.00

1.00

0.89

0.93

0.95

1.00

1.00

1.00

1.00

1.00

1.00

1.00

0.95

1.00

0.88

0.75

0.96

1.00

0.67

1.00

0.94

1.00

1.00

1.00

1.00

1.00

1.00

1.00

1.00

0.94

0.79

0.85

0.79

1.00

1.00

1.00

1.00

0.94

0.71

0.79

0.80

1.00

1.00

1.00

1.00

1.00

1.00

1.00

0.94

0.89

1.00

0.97

0.62

1.00

1.00

1.00

1.00

1.00

0.56

0.89

0.92

1.00

1.00

1.00

1.00

1.00

0.60

0.82

0.90

1.00

0.75

1.00

1.00

1.00

0.67

1.00

1.00

1.00

0.67

1.00

1.00

1.00

0.67

0.97

0.87

Ours

TRAP

ProF

ZPrint

Ours

TRAP

ProF

ZPrint

Ours

TRAP

ProF

ZPrint

Ours

TRAP

ProF

ZPrint

Ours

TRAP

ProF

ZPrint

Ours

TRAP

ProF

ZPrint

Ours

TRAP

ProF

ZPrint

0.8 0.6 0.4 0.2 0.0

Qwen3-Base Score

1.0 0.8 0.6 0.4 0.2 0.0

Llama3-8B Score

1.0 0.8 0.6 0.4 0.2 0.0

Mistral-7B Score

1.0 0.8 0.6 0.4 0.2 0.0

Fig. 7. Fingerprint score distributions on the shared per-suspect diagnostic pool used for the subgroup diagnostics. Primary family-level AUCs are reported in Table III.

Qwen3-1.7B Base, and Mistral-7B-v0.3, and reaches 0.9444 on Llama3-8B Base Direct. Its average verification AUC across the four sources is 0.9861, compared with 0.7931 for TRAP, 0.8880 for ProFLingo, and 0.9128 for ZeroPrint. The strongest baseline is model-dependent: ZeroPrint is the strongest baseline on both Qwen3 sources and on Mistral, whereas ProFLingo is strongest on Llama3. Overall, TCF matches the strongest baseline on Qwen3-1.7B Instruct and strictly exceeds the strongest

11

baseline on the other three source families, supporting our key intuition: a constrained-answer targeted counterfactual transfer signal, realized via a source-optimized input perturbation, can act as a strong black-box proxy for LLM ownership verification.

provide the same controlled set of Llama-3 family derivatives used in our evaluation, this experiment focuses on the source-versus-independent API test. The independent API models are qwen/qwen3-8b [34], google/gemma-3-12b-it [40], and google/gemma-3-4b-it [40]. For TRAP, ProFLingo, and ZeroPrint, we use each baseline’s original black-box scoring setting. Although both TCF and TRAP achieve the best AUC in this commercial black-box API test, the results are not clearly equivalent: the API test obscures TRAP’s weak derivative model transfer, whereas our method retains stronger family-level evidence under controlled evaluation.

TABLE III M AIN AUC COMPARISON . B EST RESULTS ARE BOLD . Source model

TCF

TRAP

ProFLingo

ZeroPrint

Qwen3-1.7B Instruct Qwen3-1.7B Base Llama3-8B Base Direct Mistral-7B-v0.3

1.0000 1.0000 0.9444 1.0000

0.9286 0.8846 0.7593 0.6000

0.9796 0.9231 0.8241 0.8250

1.0000 0.9722 0.7885 0.8906

Average

0.9861

0.7931

0.8880

0.9128

Takeaway

TCF matches or exceeds the strongest evaluated baseline across the four source families while maintaining strong evidence across diverse derivative categories.

Fingerprint score. For the per-suspect diagnostic pool with available artifacts, Table IV reports the fingerprint scores of source models, derived models, and independent models for TCF. Figure 6 shows the corresponding ROC curves over the source model, all available derivatives, and derivative subgroups, while Fig. 7 shows the score distributions. These diagnostic plots expose model-wise and subgroup heterogeneity; the primary family-level comparison remains Table III. TABLE IV M EAN TCF FINGERPRINT SCORE ON THE PER - SUSPECT DIAGNOSTIC POOL . T HE SCORE IS THE TARGET- LABEL ACCURACY OVER GENERATED FINGERPRINTS . Source model

Source score

Derived mean

Indep. mean

1.0000 0.9000 0.6500 0.6000

0.6833 0.6731 0.4538 0.4281

0.1000 0.3143 0.2889 0.1583

Qwen3-1.7B Instruct Qwen3-1.7B Base Llama3-8B Base Direct Mistral-7B-v0.3

Takeaway

TABLE V C OMMERCIAL BLACK - BOX API SOURCE - VS - INDEPENDENT VERIFICATION RESULTS ON O PEN ROUTER . Source Qwen3-8B Gemma-3-12B Gemma-3-4B AUC

Ours TRAP ProFLingo ZeroPrint

0.294 0.450 0.100 0.483

0.000 0.000 0.100 0.490

0.118 0.000 0.000 0.538

0.063 0.000 0.000 0.476

TCF remains separable through a commercial textgeneration API using only parsed final responses, showing that suspect-side verification does not depend on white-box access.

Model distillation. Model extraction is a strong threat for ownership verification because an adversary may train a surrogate from query-output pairs rather than directly reusing the source checkpoint [4]. We therefore evaluate a clean-query distillation setting from mistralai/Mistral-7B-v0.3 to a Llama-2-7B student [41]. The attacker queries the teacher only with clean MMLU-style multiple-choice prompts and trains the student with LoRA SFT on the teacher’s hard-label outputs. The reported extracted student is trained for three epochs on 2472 valid clean teacher-label pairs. For utility, we evaluate on MMLU-CF [42], using the same hard-label generation prompt, Answer with only one capital letter: A, B, C, or D., deterministic decoding, and at most eight new tokens. We parse each completion into A/B/C/D/INVALID. Clean100 Acc. is the parsed multiple-choice accuracy, and T-Agree is the parsed agreement with the teacher prediction; the teacher’s own T-Agree is defined as 1.00. As shown in Table VI, distillation improves the student’s Clean100 accuracy from 0.53 to 0.69 and T-Agree from 0.49 to 0.68, showing that the surrogate absorbs useful teacher behavior from clean queries. Although extraction attacks can erase fine-grained watermark evidence, our fingerprint remains effective on the distilled student: its AUC increases from 0.31 before distillation to 0.88 after distillation. In contrast, TRAP remains at tie-level AUC, ProFLingo does not retain a transferable signal, and ZeroPrint decreases after distillation. Thus, TCF retains an effective ownership signal under clean-query model distillation.

Within this diagnostic pool, derived models retain the source fingerprint more strongly than independent models, while Llama3 remains the most challenging source family.

Method

Takeaway

1.000 1.000 0.833 0.333

Commercial black-box API evaluation. We further evaluate whether the fingerprints remain separable when model access is mediated by a mainstream commercial black-box API. We use OpenRouter [39] as the API provider and query meta-llama/llama-3-8b-instruct as the protected source model. Since OpenRouter does not

Takeaway

The fingerprint is inherited by a student trained only from clean teacher outputs, supporting ownership verification under model extraction.

12

1.00 0.50 0.50

1.00 0.06 0.00

1.00 0.56 0.25

C. Robustness

min 0.00

max 1.00

max 1.00

min 0.70

min 0.80

1.0 min 0.00

Rand-U max 1.00 Rand-B K1-U K1-B K2-U K2-B K3-U K3-B K4-U min 0.50 K4-B

0.8

1.00 0.31 0.88

0.6

1.00 0.49 0.68

max 1.00

Score

0.79 0.53 0.69

TCF-S8

leak target acc

Clean100 Acc. T-Agree Ours TRAP ProF ZPrint

Mistral teacher Llama-2 untrained Llama-2 extracted

TCF-S4 max 1.00

unleak target acc

Model

TCF Rand-U max 1.00 Rand-B K1-U K1-B K2-U K2-B K3-U K3-B K4-U min 0.00 K4-B

0.4

TABLE VI M ODEL DISTILLATION VERIFICATION RESULTS .

Full-input PPL

(a)

0.2

Window-based PPL

(b)

1.0

0.0

Detection AUC

Input abnormal detection. The original GCG prefix is effective but can contain unnatural token fragments, which can be exposed by PPL or window-PPL-based inputabnormality detection. We therefore evaluate naturalnessoriented presentation variants while keeping sourceonly construction and the hard-label verifier unchanged. NaturalCarrier wraps optimized fragments with short cue- Fig. 9. Verification results under adaptive attack. Rows report leakedfingerprint target accuracy, non-leaked target accuracy, and detection like carrier phrases, while TCF-S4 and TCF-S8 distribute AUC. Columns correspond to fingerprinting methods. The horizontal the optimized positions over four or eight insertion groups axis indexes LoRA finetuning epochs, and the vertical axis indexes in the original question. The details and diagnostic-only leakage conditions. Red and blue circles mark the maximum and minimum values in each panel, respectively. variants are documented in Appendix A-D4. Rand-U max 1.00 max 1.00 max 1.00 Rand-B K1-U K1-B K2-U K2-B K3-U K3-B K4-U min 0.06 min 0.78 min 0.94 K4-B 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10

AUC

from MMLU) in a 1:1 ratio, and B denotes a biased 1:10 leaked-to-normal ratio. In each finetuning epoch, the constructed training batch is fed once to update the adapter. From the results in Fig. 9, we found that such an Fig. 8. Naturalness–verification trade-off. Full-input and window-based adaptive finetuning attack can strongly suppress the target PPL show complementary views of prompt naturalization. fingerprint accuracy of the leaked fingerprints, leading to the leaked target accuracy gradually dropping to 0.00 We then compute and visualize full-input PPL and under enough training epochs. However, this suppression window-based PPL of the original centralized prefix does not reliably transfer to the unleaked fingerprints. TCF, and its variants with the above naturalness-oriented For TCF, unleaked target accuracy remains nontrivial strategies, and the compared baselines. As shown in Fig. 8, across the sweep. NaturalCarrier is more robust: TCF-S4 among these strategies and the evaluated baselines, the keeps unleaked target accuracy at least 0.70, and TCF-S8 strategy of splitting the centralized prefix into randomly keeps it at least 0.80. This indicates a clear split effect: selected token positions TCF-S4/8 yields the lowest PPL increasing the number of NaturalCarrier splits makes the while maintaining the highest verification AUC compared fingerprint more resistant to adaptive finetuning attack, with the strongest normal-text-based baseline, ZeroPrint. because the attacker observes and erases only part of Takeaway the distributed fingerprint signal. Overall, while adaptive attack by LoRA erasure can remove memorized leaked Distributed NaturalCarrier variants improve prompt naturalness while preserving strong verification performance. fingerprints, split-distributed fingerprints retain stronger private transfer evidence. Among the NaturalCarrier Adaptive attack. To assess whether a lightweight variants, TCF-S8 is more robust than TCF-S4 under LoRA adapter can erase fingerprint behavior when partial adaptive LoRA training. fingerprint samples are leaked (50% by default in our Takeaway implementation) while preserving clean-answer utility, Partial-leakage LoRA erasure suppresses exposed fingerwe conduct a LoRA adaptive attack. The attacker freezes prints but does not reliably remove private distributed the base model and trains only a low-rank LoRA adapter fingerprints. on leaked fingerprint examples mixed with normal cleananswer data. For the condition labels, Rand denotes a To explain why the split variants are more robust random leaked subset, numbers in K1–K4 denote the for the adaptive attack, we examine the hidden target number of leaked subjects, where U denotes an unbiased margin, defined as the score gap between the recorded adaptive finetuning by mixing the leaked fingerprints target label and the strongest non-target valid label. A and normal samples (questions and answers sampled positive margin means that the target remains the top0.9

TCF-S4

0.8

1

TCF-S8

2

ZPrint

3

TCF

4

Qwen3 LM-PPL (log10)

TRAP

ProF

5

1

2

3

4

5

Qwen3 LM-PPL (log10)

13

TCF-S8

2 decision boundary

0

0

2

4

6

8

LoRA update

1.5 0.8483 0.7958

1.0 0.5

0.1525

0.0

10

TCF

TCF-S4

(d)

1.0 0.8

Clean TCF TCF-S4 TCF-S8

5

0.6 0.4 TCF TCF-S4 TCF-S8 ρ = 0.81

0.2 0.0

TCF-S8

Prompt embedding t-SNE

10

t-SNE 2

Hidden target margin

TCF-S4

4

(c) Minimum Detection AUC

(b) TCF

Residual hidden margin

(a)

0.0

0.5

1.0

0 −5 −10 −15

1.5

−10

Residual hidden margin

0

10

20

30

t-SNE 1

40

Fig. 10. Margin-boundary analysis of adaptive LoRA erasure: hidden margin trajectories (a), residual hidden margin distributions (b), residual hidden margin versus minimum Detection AUC (c), and prompt-embedding t-SNE visualization (d). (a)

Original

1.00

Top-p Sampling

(b)

Temperature

(c)

(d)

Input Paraphrase Attack

Score-space Attack

(e)

(f)

Model-Merging Attack

AUC

0.75 0.50 0.25 0.00

TRAP ProF ZPrint Ours

Qwen3 1.7B

0.5

0.6

0.7

0.8

0.9 0.95 0.98

0

0.5

1.0

1.5

2.0

Gemma2 2B

OLMo2 1B

Qwen2 0.5B

0.05

0.10

0.15

0.1

0.3

0.5

0.7

0.9

Fig. 11. Robustness under sampling, input paraphrasing, score-space perturbation, and model-merging.

scoring valid label, while a non-positive margin indicates boundary crossing and effective erasure. Fig. 10 shows that LoRA erasure reduces hidden margins for all variants, but the unsplit Original variant is more likely to cross the boundary, with a higher hidden normalized erasure sufficiency (NES=1.3845), a higher boundary-crossing rate (0.3967), and a smaller residual hidden margin (0.1525). In contrast, the split variants TCF-S4 and TCF-S8 have much lower boundary-crossing rates (0.1767 and 0.1667) and retain larger residual margins (0.8483 and 0.7958). The boundary-crossing rate further correlates with hidden target-hit degradation (Spearman ρ = 0.8681), while the residual hidden margin correlates with the minimum Detection AUC (ρ = 0.8070). These results suggest that splitting improves robustness by preserving a larger hidden-margin buffer, making leaked-update erasure less likely to push hidden fingerprints across the hard-label decision boundary. In the prompt-embedding visualization of Fig. 10(d), TCF-S4 and TCF-S8 form multiple subclusters instead of one concentrated fingerprint cluster, a pattern consistent with higher fingerprint diversity after splitting. This observation is consistent with less complete coverage by leaked LoRA erasure and with the lower boundary-crossing rates of the split variants.

using the same Qwen3-1.7B Base fingerprints while systematically altering verification-stage decoding parameters (Fig. 11(b)–(c)). We observed that TCF maintains near-perfect AUC under all tested nucleus-sampling settings and remains above 0.91 across the entire temperature sweep. In contrast, the baseline methods either yield consistently lower AUC or exhibit a more pronounced degradation under several settings. This superior robustness can be attributed to the legal-answer space and the SCM-qualified target transfer, which preserve a larger derived-independent separation than TRAP, ProFLingo, and ZeroPrint even when decoding randomness changes. Takeaway

TCF remains stable under common decoding changes, with high temperature as the main source of degradation.

Input paraphrasing and score-space perturbation. To examine resilience to lightweight input rewriting and score-level noise, we compare TCF with the baselines in Fig. 11(d)–(e). Paraphrasing degrades all prompt-based signals, yet TCF consistently achieves the highest AUC across the three paraphrase models–Gemma 2 2B-IT [43], OLMo 2 1B-Instruct [44], and Qwen2 0.5B-Instruct [45]. Takeaway This indicates that the target-transfer event survives moderate surface rewriting more robustly than responseSplit fingerprints resist erasure by preserving larger hidden reproduction or similarity-based scores. Panel (e) is target margins and more diverse prompt patterns. a score-space stress test rather than a raw-text API transformation: clipped Gaussian noise ϵ ∼ N (0, σ 2 ) Decoding and sampling stability. To evaluate the with σ ∈ {0.05, 0.10, 0.15} is added in score space before robustness of different fingerprinting methods under vary- AUC computation. TCF remains essentially robust while ing decoding configurations, we compared all methods the baselines stay lower, indicating that the reported

14

separation is not fragile to moderate score-level noise.

of Section IV-G: overly weak perturbations may fail to create a source-side counterfactual transition, whereas overly strong perturbations can increase generic transfer to independent models. The empirical optimum therefore need not occur at the largest prefix length or largest SCM.

Takeaway

TCF is more resilient than the baselines to moderate paraphrasing and score-space noise.

Model merging. Fig. 11(f) evaluates a model-merging attack on Qwen3-1.7B, where the fingerprinted victim checkpoint Qwen3-1.7B-Base is linearly interpolated with a non-fingerprinted reference checkpoint Qwen3-1.7B: θmerge = αθvictim + (1 − α)θref . We sweep α and re-run fingerprint verification. TRAP drops to chance-level AUC, while ProFLingo and ZeroPrint show unstable AUC across merge ratios. In contrast, TCF keeps AUC at 1.0 throughout the sweep, showing that its hard-label fingerprint signal remains stable under this linear merging attack. Takeaway

TCF remains stable under the evaluated linear modelmerging attack.

To investigate the impact of key hyperparameters on verification performance, we conducted ablation studies on three aspects: the number of fingerprints n, the GCG prefix length (PL), and the target-answer rank. Fig. 12 summarizes the main results under the promoted hardlabel setting. Number of fingerprints n: To determine how many fingerprints are sufficient for stable verification, we varied n from 5 to 20 in Fig. 12(a). We observed that performance improves rapidly from n = 5 to n = 10 and then saturates in the Qwen3-1.7B Base setting, indicating that a modest fingerprint set is adequate. Prefix length

Target rank

AUC

1.0 0.8 10

20

n

20

tokens

40

1

2

A moderate prefix length best balances target induction and independent-model non-transfer.

Target-answer selection: To understand how the choice of target label influences verification, we performed a source-model diagnostic by varying the rank of the target answer in Fig. 12(c). Although Top-1, Top2, and Top-3 target choices all achieve AUC 1.0000 in this diagnostic, the independent mean varies. This suggests that target rank can affect false-positive behavior. Therefore, we use this target-rank panel to guide target selection rather than as a standalone full-model-pool ownership result. Takeaway

D. Ablation Studies

Fingerprint count

Takeaway

3

rank

Fig. 12. Ablation study results of fingerprint count (a), prefix length (b), and target answer selection (c).

Target selection should minimize accidental independent preference rather than optimize source success alone.

E. Computational Cost To evaluate per-fingerprint generation, verification, and storage overhead, we conduct a comparative analysis on Qwen3-1.7B Base (Tab. VII). TRAP is the most expensive among the compared methods, requiring 8460.5 seconds per fingerprint under its official setting. ZeroPrint has fast source-side generation but incurs high verification cost because it extracts perturbation-based fingerprints from suspect models. ProFLingo is efficient during verification but uses a larger 50-query registry. In contrast, TCF requires 1269.3 seconds per fingerprint and uses a 20query registry in the main evaluation, giving lower construction/verification overhead than the evaluated baselines while retaining the strongest verification performance. TABLE VII P ER - FINGERPRINT COMPUTATION AND STORAGE COST ON Q WEN 3-1.7B BASE .

Takeaway

A modest fingerprint set is sufficient for stable verification in the main setting.

GCG prefix length (PL): To assess the effect of prefix length on separability, we tested different PL values in Fig. 12(b). We found that moderate prefixes are sufficient, while overly short or overly long prefixes can weaken the derived–independent separation. This is consistent with the feasible operating-region interpretation

Method

Total time

Generation time

Verify time

Generation storage

Eval storage

TCF TRAP ProFLingo ZeroPrint

1269.3s 8460.5s 1625.0s 1954.5s

1200.6s 7835.9s 1550.1s 44.0s

68.7s 624.7s 74.9s 1910.5s

1341.2 KiB 234.3 KiB 133.9 KiB 48387.6 KiB

75.2 KiB 290.3 KiB 0.2 KiB 47.6 KiB

Takeaway

TCF combines the strongest verification performance with lower per-fingerprint overhead and a compact 20-query registry.

15

VII. C ONCLUSION We present TCF, a non-invasive fingerprinting framework for black-box LLM ownership verification. The key idea is to avoid open-ended generation by reformulating verification as constrained-answer target transfer. TCF constructs perturbed prompts that move the protected model from its clean answer to a counterfactual target, then verifies a suspect model by measuring target-answer transfer over the private fingerprint set. Theoretical analysis derives target-transfer bounds and a sufficient positive-gap condition under explicit derived-preservation and independent-transfer budgets motivated by local behavioral closeness; aggregation then converts a perfingerprint edge into a thresholdable ownership signal. Empirically, TCF achieves near-perfect AUC across four source families and matches or outperforms the strongest evaluated black-box fingerprinting baseline on every source family. R EFERENCES [1] M. Gubri, D. Ulmer, H. Lee, S. Yun, and S. J. Oh, “TRAP: Targeted random adversarial prompt honeypot for black-box identification,” in Findings of the Association for Computational Linguistics: ACL 2024, 2024, pp. 11 496–11 517. [2] H. Jin, C. Zhang, S. Shi, W. Lou, and Y. T. Hou, “ProFLingo: A fingerprinting-based intellectual property protection scheme for large language models,” in 2024 IEEE Conference on Communications and Network Security (CNS). IEEE, 2024, pp. 1–9. [3] S. Shao, Y. Li, H. Yao, Y. Chen, Y. Yang, and Z. Qin, “Reading between the lines: Towards reliable black-box LLM fingerprinting via zeroth-order gradient estimation,” in Proceedings of the ACM Web Conference 2026. ACM, 2026. [4] N. Carlini, D. Paleka, K. Dvijotham, T. Steinke, J. Hayase, A. F. Cooper, K. Lee, M. Jagielski, M. Nasr, A. Conmy et al., “Stealing part of a production language model,” in International Conference on Machine Learning, 2024, pp. 5680–5705. [5] J. Kirchenbauer, J. Geiping, Y. Wen, J. Katz, I. Miers, and T. Goldstein, “A watermark for large language models,” in International Conference on Machine Learning. PMLR, 2023, pp. 17 061–17 084. [6] S. Abdelnabi and M. Fritz, “Adversarial watermarking transformer: Towards tracing text provenance with data hiding,” in 2021 IEEE Symposium on Security and Privacy (SP). IEEE, 2021, pp. 121–140. [7] Z. Hu, L. Chen, X. Wu, Y. Wu, H. Zhang, and H. Huang, “Unbiased watermark for large language models,” 2023. [8] A. Zou, Z. Wang, N. Carlini, M. Nasr, J. Z. Kolter, and M. Fredrikson, “Universal and transferable adversarial attacks on aligned language models,” 2023. [9] P.-Y. Chen, H. Zhang, Y. Sharma, J. Yi, and C.-J. Hsieh, “ZOO: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models,” in Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, 2017, pp. 15–26. [10] Y. Adi, C. Baum, M. Cisse, B. Pinkas, and J. Keshet, “Turning your weakness into a strength: Watermarking deep neural networks by backdooring,” in 27th USENIX Security Symposium (USENIX Security 18), 2018, pp. 1615–1631. [11] Y. Uchida, Y. Nagai, S. Sakazawa, and S. Satoh, “Embedding watermarks into deep neural networks,” in Proceedings of the 2017 ACM on International Conference on Multimedia Retrieval. ACM, 2017, pp. 269–277.

16

[12] J. Zhang, Z. Gu, J. Jang, H. Wu, M. P. Stoecklin, H. Huang, and I. Molloy, “Protecting intellectual property of deep neural networks with watermarking,” in Proceedings of the 2018 on Asia Conference on Computer and Communications Security. ACM, 2018, pp. 159–172. [13] B. D. Rouhani, H. Chen, and F. Koushanfar, “DeepSigns: An end-to-end watermarking framework for ownership protection of deep neural networks,” in Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems. ACM, 2019, pp. 485–497. [14] E. Le Merrer, P. Pérez, and G. Trédan, “Adversarial frontier stitching for remote neural network watermarking,” Neural Computing and Applications, vol. 32, no. 13, pp. 9233–9244, 2019. [15] C. Gu, C. Huang, X. Zheng, K.-W. Chang, and C.-J. Hsieh, “Watermarking pre-trained language models with backdooring,” 2022. [16] P. Li, P. Cheng, F. Li, W. Du, H. Zhao, and G. Liu, “PLMmark: A secure and robust black-box watermarking framework for pretrained language models,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 12, 2023, pp. 14 991–14 999. [17] S. Li, L. Yao, J. Gao, L. Zhang, and Y. Li, “Double-i watermark: Protecting model copyright for llm fine-tuning,” 2024. [18] Y. Xu, A. Liu, X. Hu, L. Wen, and H. Xiong, “Mark your LLM: Detecting the misuse of open-source large language models via watermarking,” in The 1st Workshop on GenAI Watermarking, 2025. [Online]. Available: https: //openreview.net/forum?id=JGTRj6h0Cv [19] J. Xu, F. Wang, M. D. Ma, P. W. Koh, C. Xiao, and M. Chen, “Instructional fingerprinting of large language models,” in Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). Mexico City, Mexico: Association for Computational Linguistics, 2024, pp. 3277–3306. [Online]. Available: https: //aclanthology.org/2024.naacl-long.180/ [20] Z. Xu, X. Zhao, X. Yue, S. Tian, C. Lin, and M. Han, “CTCC: A robust and stealthy fingerprinting framework for large language models via cross-turn contextual correlation backdoor,” in Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. Suzhou, China: Association for Computational Linguistics, 2025, pp. 6967–6989. [Online]. Available: https://aclanthology.org/2025.emnlp-main.356/ [21] Z. Xu, M. Han, and W. Xing, “EverTracer: Hunting stolen large language models via stealthy and robust probabilistic fingerprint,” in Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. Suzhou, China: Association for Computational Linguistics, 2025, pp. 7008–7031. [Online]. Available: https://aclanthology.org/2025.emnlp-main.358/ [22] N. Jovanovic, R. Staab, and M. Vechev, “Watermark stealing in large language models,” 2024. [23] S. Chakraborty, A. S. Bedi, S. Zhu, B. An, D. Manocha, and F. Huang, “On the possibilities of ai-generated text detection,” 2023. [24] V. S. Sadasivan, A. Kumar, S. Balasubramanian, W. Wang, and S. Feizi, “Can ai-generated text be reliably detected?” 2023. [25] X. Cao, J. Jia, and N. Z. Gong, “IPGuard: Protecting intellectual property of deep neural networks via fingerprinting the classification boundary,” in Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security. ACM, 2021, pp. 14–25. [26] J. Chen, J. Wang, T. Peng, Y. Sun, P. Cheng, S. Ji, X. Ma, B. Li, and D. Song, “Copy, right? a testing framework for copyright protection of deep learning models,” in 2022 IEEE Symposium on Security and Privacy (SP). IEEE, 2022, pp. 824–841. [27] N. Lukas, Y. Zhang, and F. Kerschbaum, “Deep neural network fingerprinting by conferrable adversarial examples,” in International Conference on Learning Representations, 2021. [28] Z. Peng, S. Li, G. Chen, C. Zhang, H. Zhu, and M. Xue, “Fingerprinting deep neural networks globally via universal adversarial perturbations,” in Proceedings of the IEEE/CVF Conference on

Computer Vision and Pattern Recognition, 2022, pp. 13 420– 13 429. [29] T. Xu, C. Wang, G. Liu, Y. Yang, K. Peng, and W. Liu, “United we stand, divided we fall: Fingerprinting deep neural networks via adversarial trajectories,” in Advances in Neural Information Processing Systems, 2024. [30] K. Yang and K. Lai, “NaturalFinger: Generating natural fingerprint with generative adversarial networks,” 2023. [31] A. Yan, H. Ren, K. Mo, Z. Zhang, S. Wang, and J. Li, “Enhancing model intellectual property protection with robustness fingerprint technology,” IEEE Transactions on Information Forensics and Security, vol. 20, pp. 9235–9249, 2025. [32] B. Zeng, L. Wang, Y. Hu, Y. Xu, C. Zhou, X. Wang, Y. Yu, and Z. Lin, “HuRef: HUman-REadable fingerprint for large language models,” in Advances in Neural Information Processing Systems, vol. 37, 2024, pp. 126 332–126 362. [33] J. Zhang, D. Liu, C. Qian, L. Zhang, Y. Liu, Y. Qiao, and J. Shao, “REEF: Representation encoding fingerprints for large language models,” in The Thirteenth International Conference on Learning Representations, 2025. [Online]. Available: https://openreview.net/forum?id=SnDmPkOJ0T [34] A. Yang, A. Li et al., “Qwen3 technical report,” arXiv preprint arXiv:2505.09388, 2025, qwen3 model family; Qwen3-1.7B Base: https://huggingface.co/Qwen/Qwen3-1.7B-Base; Qwen31.7B Instruct: https://huggingface.co/Qwen/Qwen3-1.7B; Qwen38B: https://huggingface.co/Qwen/Qwen3-8B. [Online]. Available: https://arxiv.org/abs/2505.09388 [35] AI@Meta, “Llama 3 model card,” 2024, llama3-8B Base Direct variant: https://huggingface.co/meta-llama/Meta-Llama-38B. [Online]. Available: https://github.com/meta-llama/llama3/ blob/main/MODEL_CARD.md [36] A. Grattafiori, A. Dubey et al., “The llama 3 herd of models,” arXiv preprint arXiv:2407.21783, 2024. [Online]. Available: https://arxiv.org/abs/2407.21783 [37] Mistral AI, “Mistral-7b-v0.3,” may 2024, released on May 22, 2024, with 32,768 token vocabulary and v3 tokenizer support. [Online]. Available: https://huggingface.co/mistralai/ Mistral-7B-v0.3 [38] D. Hendrycks, C. Burns, S. Basart, A. Zou, M. Mazeika, D. Song, and J. Steinhardt, “Measuring massive multitask language understanding,” in International Conference on Learning Representations (ICLR), 2021. [Online]. Available: https://openreview.net/forum?id=YC60R30cKX [39] OpenRouter, “Openrouter api documentation,” https://openrouter. ai/docs/api/reference/overview, 2026, accessed: 2026-06-09. [40] Gemma Team, “Gemma 3 technical report,” 2025. [Online]. Available: https://arxiv.org/abs/2503.19786 [41] H. Touvron, L. Martin, K. Stone, P. Albert, A. Almahairi, Y. Babaei, N. Bashlykov, S. Batra, P. Bhargava, S. Bhosale et al., “Llama 2: Open foundation and fine-tuned chat models,” 2023. [42] Q. Zhao, Y. Huang, T. Lv, L. Cui, Q. Sun, S. Mao, X. Zhang, Y. Xin, Q. Yin, S. Li, and F. Wei, “MMLUCF: A contamination-free multi-task language understanding benchmark,” in Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Vienna, Austria: Association for Computational Linguistics, Jul. 2025, pp. 13 371–13 391. [Online]. Available: https://aclanthology.org/2025.acl-long.656/ [43] Gemma Team, M. Riviere, S. Pathak, P. G. Sessa et al., “Gemma 2: Improving open language models at a practical size,” arXiv preprint arXiv:2408.00118, 2024. [44] OLMo Team, P. Walsh, L. Soldaini, D. Groeneveld et al., “2 olmo 2 furious,” arXiv preprint arXiv:2501.00656, 2024. [45] A. Yang, B. Yang, B. Hui, B. Zheng et al., “Qwen2 technical report,” arXiv preprint arXiv:2407.10671, 2024.

17

A PPENDIX A A DDITIONAL E XPERIMENTAL D ETAILS Appendix roadmap This appendix is organized as a reproducibility record. It first validates the complete SCM evidence chain across additional source families, then provides the proofs and finite-sample details behind the theoretical claims, and finally documents the construction protocol, exact hard-label interface, prompt examples, baseline settings, model checkpoints, and retained evaluation artifacts.

A. Cross-Model Theory Validation The main theoretical analysis is not specific to the Qwen3-1.7B Base diagnostic used for exposition. We therefore repeat the complete evidence chain on three additional protected source families: Qwen3 Instruct, Llama3, and Mistral. Across these families, source-side optimization increases SCM, derived models preserve the induced target preference more strongly than independent models, and the resulting derived–independent target-answer gap generally grows in higher-SCM regimes. These experiments directly test the portability of the theory rather than introducing a separate empirical claim. 1) Source-Side SCM Control: Figure 13 verifies that the source-side optimization behaves consistently across the three additional families. Target loss decreases during GCG optimization, mean SCM increases, and the two quantities remain strongly negatively associated. This supports the source-side implication used in Lemma 1 beyond the single diagnostic model shown in the main text.

10

0

Qwen3 Inst: mean SCM vs step

2.5

(c)

Qwen3 Inst: loss--SCM relation

10

ρ = − 0.47

200

0.0 −2.5

0

100

−5.0

−1

GCG step

Ltarget Γ=1 Γ=2 Γ=3

SCM

10

(b)

Qwen3 Inst: target loss vs step

Mean SCM

Mean target loss

(a)

−10

−7.5

0

50

100

150

200

0

50

GCG step

0

5

(e)

Llama3: target loss vs step

Target loss

(f)

Llama3: mean SCM vs step

0.0

−1

Llama3: loss--SCM relation

2

−0.5

0

10

200

ρ = − 1.00

0

−1.0

100

−2

−1.5 −4 −2.0 −6

0

50

100

150

200

0

50

GCG step

(g)

100

150

200

0

0

2

GCG step

(h)

Mistral: target loss vs step

4

(i)

Mistral: mean SCM vs step

Mistral: loss--SCM relation

10

−1

SCM

0

200

ρ = − 0.78

2

0

Mean SCM

Mean target loss

1 10

6

Target loss

0

100

−2

−1

GCG step

10

200

SCM

10

150

GCG step

Mean SCM

Mean target loss

(d)

100

GCG step

0

−4 0

0

50

100

GCG step

150

200

0

50

100

GCG step

150

200

0

1

2

3

4

Target loss

Fig. 13. SCM-control diagnostics on three additional protected source families. Source target loss decreases during optimization, mean SCM increases, and lower target loss is associated with stronger SCM. Takeaway

The source-loss-to-SCM relationship generalizes across the additional protected model families.

2) Derived-Model Preservation: Figure 14 evaluates the derived-model weakening budget ϵD . For each source family, the empirical drift distribution and the corresponding lower-bound curves show that source-family derivatives retain a substantial part of the optimized target preference. Smaller weakening budgets and higher curves indicate stronger preservation.

18

(a)

0.75 0.50 0.25 0.00

90% 2.88

50% 0.27

0

1

2

95% 3.57

3

Qwen3 Inst: derived lower bound

1.00

Lower bound

P(ΔD+ ≤ εD )

(b)

Qwen3 Inst: preservation budget ECDF

1.00

0.75 0.50

0.00

4

50% εD = 0.27 90% εD = 2.88 95% εD = 3.57

0.25

0

1

ΔD+

(c)

0.75 0.50 0.25 50% 0.05 0.00 0

95% 90% 4.86 3.72

2

4

6

8

50% εD = 0.05 90% εD = 3.72 95% εD = 4.86

0.25

0

1

0.75 0.50 0.25 0.00

95% 90% 2.14 1.82

50% 0.45

0.0

0.5

1.0

1.5

2.0

3

4

5

0.75 0.50 50% εD = 0.45 90% εD = 1.82 95% εD = 2.14

0.25 0.00

2.5

ΔD+

2

SCM threshold Γ

Mistral: derived lower bound

1.00

Lower bound

P(ΔD+ ≤ εD )

(f)

Mistral: preservation budget ECDF

1.00

5

0.50

ΔD+

(e)

4

0.75

0.00

10

3

Llama3: derived lower bound

1.00

Lower bound

P(ΔD+ ≤ εD )

(d)

Llama3: preservation budget ECDF

1.00

2

SCM threshold Γ

0

1

2

3

SCM threshold Γ

4

5

Fig. 14. Derived-model preservation on the additional source families. Each row reports the empirical weakening-budget coverage and the corresponding lower-bound trend σ(Γ − ϵD ). Takeaway

Derived-model preservation remains consistent across the additional protected model families.

3) Independent-Model Non-Transfer: Figure 15 evaluates the independent-model slack ϵI . Independent models generally require larger slack budgets to explain the same target behavior, showing that the optimized prompts do not preserve the source-side target preference as consistently outside the protected model family.

19

95%

0.5

0.0

0

2

4

0.75 0.50 0.25 0.00

6

95% 90% 5.07 4.22

50% 1.15

0

2

90%

95%

1

0

0

1

2

3

4

0.00

5

1

2

εI

(g)

90%

2

95%

1

0

0

1

2

3

4

5

3

4

0.00

0

1

2

εI

4

5

0.50 0.25

0

(i)

95% 3.08

90% 2.38

ΔI+

3

Llama3: independent upper bound

1

2

3

4

5

3

Mistral: independent upper bound

1.00

0.50 50% 0.02

2

SCM threshold Γ

0.75

0.25

1

0.75

0.00

5

Mistral: Eq.27 coverage

1.00

P(ΔI+ ≤ εI )

Density

(h)

Mistral: non-transfer slack 50%

0

(f)

95% 90% 4.28 3.75

50% 0.42

0

50% εI 90% εI 95% εI

0.25

1.00

0.50

ΔI+

0.50

SCM threshold Γ

0.75

0.25

0.75

0.00

6

Llama3: Eq.27 coverage

1.00

P(ΔI+ ≤ εI )

2

Density

(e)

Llama3: non-transfer slack 50%

4

εI

ΔI+

(d)

1.00

Upper bound

90%

1.0

(c) Qwen3 Inst: independent upper bound

Qwen3 Inst: Eq.27 coverage

1.00

Upper bound

50%

P(ΔI+ ≤ εI )

Density

(b)

Qwen3 Inst: non-transfer slack

1.5

Upper bound

(a)

4

0.75 0.50 0.25 0.00

0

1

2

3

4

5

SCM threshold Γ

Fig. 15. Independent-model non-transfer on the additional source families. The panels report the slack distribution, empirical coverage Pr(∆+ I ≤ ϵI ), and the corresponding upper-bound trend σ(−Γ + ϵI ). Takeaway

Independent models preserve the source-induced target behavior less consistently than source-family derivatives.

4) SCM-Induced Separability: Figure 16 closes the evidence chain. Across all three additional families, higherSCM fingerprints generally produce a larger empirical target-answer gap between derivatives and independent models, while the budget-matched bounds show the same direction. The result supports the feasible-margin interpretation in the main text: SCM is a useful selection signal, but indefinite over-optimization is not required.

20

0.50 Derived LB Indep. UB Gap LB

8

Q1 SCM=-7.23

Q2 SCM=-3.00

Q3 SCM=-0.47

0.0

1.00

0.75 0.50 0.25

(g)

4

0.4

0.75 0.50

0.2

0.25

6

0.00

8

Q1 SCM=-2.36

(h)

1.00

Target accuracy

positive gap: Γ > 2.10

0.75 0.50 0.25

Q2 SCM=-1.16

Q3 SCM=-0.42

0.75

0.4

0.50

0.2

0.25

4

SCM threshold Γ

6

8

0.00

Q1 SCM=-2.34

Q2 SCM=-1.11

Q3 SCM=-0.54

3

4

ΓQ4 = 0.52

0.75 0.50 0.25 p = 56.0%, P = 0.56

0.00

Q4 SCM=0.52

0.0 2

2

SCM threshold Γ

Llama3: Q4-matched bound

1.00

0

Mistral: empirical separability

0.00 0

1

1

2

SCM threshold Γ

Strict SCM quantile

Mistral: bound separation

1.00

p = 88.6%, P = 0.65

0.00

(f)

0.0

SCM threshold Γ

0.25

0

Llama3: empirical separability

0.00 2

Derived LB Indep. UB Gap LB

0.50

Q4 SCM=3.44

Target accuracy / gap

(e)

positive gap: Γ > 3.74

0

ΓQ4 = 3.44

0.75

Strict SCM quantile

Target accuracy

Target accuracy / gap

6

0.2

0.25 0.00

Llama3: bound separation

1.00

Target accuracy / gap

4

SCM threshold Γ

0.4

0.50

Qwen3 Inst: Q4-matched bound

1.00

Target accuracy / gap

(d)

2

(c)

Derived-independent gap

0

0.75

Derived TA Independent TA Gap

Derived-independent gap

0.00

Qwen3 Inst: empirical separability

1.00

0.75

0.25

(b)

Target accuracy / gap

positive gap: Γ > 3.55

Derived-independent gap

Qwen3 Inst: bound separation

1.00

Target accuracy

Target accuracy / gap

(a)

3

(i)

Mistral: Q4-matched bound

1.00

ΓQ4 = 0.56

4

0.75 0.50 0.25 p = 59.9%, P = 0.48

0.00

Q4 SCM=0.56

Strict SCM quantile

0

1

2

SCM threshold Γ

3

4

Fig. 16. SCM-induced separability on the additional source families. The columns compare conservative bound separation, empirical targetaccuracy trends across SCM buckets, and budget-matched bound trends. Takeaway

The feasible-margin-band pattern repeats across the additional source families.

B. Theory Details and Proofs This appendix provides proof details and concise explanations for the theoretical analysis in Section IV. 1) Finite Constrained-Answer Channel and SCM Feasibility: The probability in Eq. 4 is over the model’s external decoding randomness, server-side nondeterminism, and any randomness in the verifier’s repeated query protocol. For a deterministic service, this distribution degenerates to a point mass; for source-side offline analysis, it can be estimated either by repeated generation under the chosen decoding configuration or by a calibrated valid-label probability surrogate that is checked after optimization. Invalid responses are not assigned to any valid label. Thus, P q (a | p) may be smaller than one. This is intentional: invalid responses are verification failures in our a∈A M hard-label setting. Eq. 5 is well-defined whenever qM (t | p) ∈ (0, 1). In implementation, we clip probabilities to [ϵclip , 1 − ϵclip ] before taking log-odds. The proofs apply exactly to the unclipped channel when qM (t | p) ∈ (0, 1), and to the clipped channel otherwise; clipping only prevents infinite log-odds and does not change the hard-label verification statistic. 2) SCM Scale and Feasibility: The threshold has a direct probability meaning: Γmin = 2 corresponds to source perturbed target probability at least 0.881 and clean target probability at most 0.119; Γmin = 3 corresponds to approximately 0.953 and 0.047. The threshold is not a universal constant. For a fixed candidate pool C, define CΓmin = {(x, u, t) ∈ C : Γ(x, u, t) ≥ Γmin }.

(53)

(2) (1) If Γmin > Γmin , then CΓ(2) ⊆ CΓ(1) . Increasing Γmin therefore strengthens individual fingerprints but can reduce min min

the number and diversity of retained fingerprints. In the experiments, Γmin should be chosen or swept using only source-side feasibility and, when available, a separate validation pool; empirical SCM-quantile analyses are evidence for trends, not a substitute for reporting the retained SCM distribution and pass rate at the operating threshold. 3) Source-Side Surrogate Used During Perturbation Search: Eq. 14 is the ideal loss on the same parser-induced constrained-answer distribution used by verification. In practice, the perturbation is optimized through a differentiable source-side surrogate, e.g., the next-option-token probability after the answer prefix. Let qeM0 (t | p) be this surrogate

21

qe

(t|p)

e M (p, t) = log M0 probability and let L 0 1−e qM0 (t|p) . If the surrogate log-odds is calibrated to the parser distribution on retained candidates in the sense that e M (pu (x), t) ≤ δsurr , LM0 (pu (x), t) − L 0

(54)

then the same argument as Lemma 1 applies with a safety margin: requiring the surrogate perturbed margin to exceed Γmin + δsurr suffices to guarantee parser-side perturbed margin at least Γmin . Our offline construction therefore uses the optimizer as a search procedure but accepts fingerprints only after recomputing the SCM used in Eq. 8; the theoretical statements are about this accepted parser-side constrained-answer distribution, not about the surrogate alone. 4) Proof of Lemma 1: The clean side of the SCM is already guaranteed by Eq. 15. It remains to prove that the perturbed side is also at least Γmin . From Eq. 14, the loss condition in Eq. 16 gives  − log qM0 (t | pu (x)) ≤ log 1 + e−Γmin . (55) Multiplying Eq. 55 by −1 reverses the inequality:  log qM0 (t | pu (x)) ≥ − log 1 + e−Γmin .

(56)

Applying the exponential function to Eq. 56 yields qM0 (t | pu (x)) ≥

1 = σ(Γmin ). 1 + e−Γmin

(57)

Using Eq. 10, Eq. 57 is equivalent to LM0 (pu (x), t) ≥ Γmin .

(58)

Now Eq. 15 and Eq. 58 show that both terms in the minimum of Eq. 8 are at least Γmin . Therefore, Eq. 17 follows. 5) Empirical Verification of SCM Control: To verify Lemma 1, we record the source target loss in Eq. 14 and mean SCM over fingerprints while optimizing the source-side perturbation on the source model M0 on Qwen3-1.7B Base [34]. As shown in Fig. 1(a), the target loss on source model M0 decreases along the optimization progress and approaches the loss thresholds induced by different SCM targets, while Fig. 1(b) shows that the mean SCM increases along the same optimization trajectory, indicating that reducing the target loss strengthens the source-side counterfactual transition. Fig. 1(c) directly shows the correlation coefficient ρ between target loss and SCM is close to −1.00, demonstrating a strong negative correlation: as the optimizer lowers the source target loss, SCM increases. This is consistent with Lemma 1, because reducing − log qM0 (t | pu ) increases the perturbed target log-odds while the clean-side term is fixed by target selection. Takeaway

The surrogate loss guides optimization, while parser-side SCM remains the final acceptance criterion.

6) Interpretation of Local Behavioral Closeness: By construction, the source model makes the target unlikely on the clean prompt and likely on the perturbed prompt. Assumption IV.2 says that a derived model should remain close to the protected model on these clean and perturbed fingerprint prompts for most retained fingerprints. This premise is probabilistic: it only needs to hold for a large fraction of fingerprints, not for every single sample. The assumption motivates the transfer model, but it is not by itself the formal independent-model upper bound. Lemmas 2 and 3 make the required derived-preservation and independent generic-transfer budgets explicit. Accordingly, all formal separation statements in Theorem IV.3 and Lemma 4 are conditional on valid ϵD and ϵI budgets; the empirical diagnostics test how realistic those budgets are for the evaluated model pools. The verifier then turns the resulting per-fingerprint edge into evidence by aggregating many diverse fingerprints. 7) Derived-Model Preservation Details: The derived-model diagnostic measures how much the perturbed target preference weakens when moving from the source model to its derivatives. Smaller weakening budgets indicate stronger preservation. In the paper appendix we keep this reading and the proof below. The cross-model ECDF evidence is reported in Appendix A-A. 8) Proof of Lemma 2: By the definition of SCM, LM0 (pu (x), t) ≥ Γ. Combining this with Eq. 22 gives LMD (pu (x), t) ≥ Γ − ϵD (MD , x, u, t).

(59)

Applying the probability–logit relation in Eq. 10 and the monotonicity of σ(·) proves Eq. 23. The stated Γmin version follows because Γ ≥ Γmin .

22

9) Independent-Model Non-Transfer Details: The independent-model side of the analysis states that a prompt optimized on M0 should not consistently preserve the same target preference on unrelated models. The diagnostic in the main text measures this effect through the independent-model slack: smaller slack means weaker accidental transfer, while larger slack gives a looser non-transfer guarantee. The corresponding cross-model diagnostics are reported in Appendix A-A. 10) Proof of Lemma 3: By the definition of SCM, −LM0 (p0 (x), t) ≥ Γ,

LM0 (p0 (x), t) ≤ −Γ.

(60)

Combining Eq. 60 with Eq. 28 gives LMI (pu (x), t) ≤ −Γ + ϵI (MI , x, u, t).

(61)

Applying Eq. 10 and the monotonicity of σ(·) proves Eq. 29. The stated Γmin version follows from Γ ≥ Γmin . 11) Separability Details and Feasible Margin Band: For fixed transfer budgets, increasing SCM improves the derived–independent separation until the gain starts to saturate. In practice, pushing the perturbation too far can also increase generic transfer to independent models. Thus, the useful operating region is a feasible margin band: SCM should be large enough to survive derived-model drift, but the construction should not optimize the source margin indefinitely. The same trend is tested across three additional source families in Appendix A-A. 12) Proof of Theorem IV.3: For each fingerprint i, Lemma 2 gives qMD (ti | pui (xi )) ≥ σ(Γi − ϵD,i ).

(62)

Averaging over i = 1, . . . , n proves Eq. 34. Similarly, Lemma 3 gives qMI (ti | pui (xi )) ≤ σ(−Γi + ϵI,i ),

(63)

and averaging proves Eq. 35. Subtracting the upper bound from the lower bound gives Eq. 36. 13) Proof of Lemma 4: The expectation bounds follow from Theorem IV.3 and the monotonicity of σ(·). The fixed-budget gap is positive exactly when σ(Γmin − ϵD ) > σ(−Γmin + ϵI ), which is equivalent, by monotonicity of the sigmoid, to Γmin − ϵD > −Γmin + ϵI . Rearranging gives Eq. 38. No additional η correction is introduced in this lemma: the theorem’s expected target-accuracy bounds are stated directly in terms of the explicit per-fingerprint budgets. Under the fixed-budget premises, E[TA(MD )] ≥ σ(Γmin − ϵD ),

E[TA(MI )] ≤ σ(−Γmin + ϵI ),

(64)

and their difference is positive whenever 2Γmin > ϵD + ϵI , exactly as stated in the main text. Aggregation then has a clear statistical role: once the two class-specific expectations are separated, averaging diverse fingerprint indicators reduces sampling variability, subject to the dependence qualification in Appendix A-B15. 14) Empirical SCM-Induced Separability Validation: Fig. 4 provides the empirical separability check for the fixed-budget gap analysis. The main observation is that higher-SCM fingerprints generally increase the derived– independent target-accuracy gap, while the strongest margins should not be over-optimized because generic transfer can also increase. Takeaway

Useful separability emerges inside a feasible SCM region and can weaken under over-optimization.

15) Proof of Lemma 5: For the derived model, µMD − ζ ⋆ ≥ (αD − αI )/2. Therefore the event TA(MD ) < ζ ⋆ implies a lower-tail deviation of at least (αD − αI )/2 from its mean. Hoeffding’s inequality for an average of n independent Bernoulli variables gives Eq. 42. The independent-model case is the symmetric upper-tail deviation because ζ ⋆ − µMI ≥ (αD − αI )/2. The independence condition is a statistical idealization. Fingerprints constructed from the same source model, prompt template, and dataset can be correlated. For deployment-grade audits, the concentration term should therefore be interpreted with an effective sample size after diversity filtering, or estimated by block/bootstrap resampling over question categories and target labels. The theoretical message is that reliability improves with both the expected gap αD − αI and the effective number of diverse fingerprints.

23

16) Margin–Sampling Robustness: Both the verifier and the construction filter read a hard label, so the final quantity that matters is whether the sampled answer equals t. The target margin of Eq. 18 controls this directly under an idealized constrained decoder. Under temperature-T softmax sampling normalized over only the K legal labels in A (or conditional on the response being a valid legal label), each competing label contributes at most e−mM (p,t)/T relative mass. Therefore, 1 Pr[sample = t | p] ≥ . (65) 1 + (K − 1) e−mM (p,t)/T Thus a large source margin mM0 (pu , t) strengthens target-label stability under the constrained-label idealization. This derivation does not assert that an arbitrary raw-text API samples only from A; invalid or free-form generations remain possible in the actual threat model and are counted as failures. The deployment-facing stability claim is therefore checked empirically by the repeated-query source filter in Section V. The margin bound should be read as an explanatory connection between source-side margin and legal-label sampling, not as a replacement for that empirical filter. C. Implementation Details Algorithm 1 states the complete source-only construction procedure in executable form. It follows the main-text checkpoint rule: stop at the first source-side checkpoint satisfying Eq. 49, then recompute parser-side SCM and apply the source stability filter. No derived-model or independent-model statistic is used during construction. Algorithm 1 SCM-guided GCG fingerprint construction Require: Source model M0 ; question pool D; legal answer space A; desired registry size n; SCM threshold Γmin ; prefix length ℓu ; GCG budget Tmax ; stability threshold smin . Ensure: Frozen fingerprint registry F. 1: C ← ∅ ▷ qualified source-only candidates 2: for each question x ∈ D do 3: Render p0 (x); estimate qM0 (a | p0 (x)) over a ∈ A. 4: y ← arg maxa∈A qM0 (a | p0 (x)). 5: T (x) ← {a ∈ A \ {y} : −LM0 (p0 (x), a) ≥ Γmin }. 6: if T (x) = ∅ then 7: continue 8: end if 9: t ← arg mina∈T (x) qM0 (a | p0 (x)). 10: Initialize a length-ℓu perturbation u. 11: for j = 1 to Tmax do 12: Apply one GCG update to reduce Lsrc (u; x, t) in Eq. 48. 13: if Lsrc (u; x, t) ≤ log(1 + e−Γmin ) then 14: break ▷ first source-side margin-qualified checkpoint 15: end if 16: end for 17: Recompute parser-side Γ(x, u, t) using Eq. 8. 18: if Γ(x, u, t) < Γmin then 19: continue 20: end if 21: Estimate sb0 (x, u, t) using Eq. 50. 22: if sb0 (x, u, t) < smin then 23: continue 24: end if 25: Add (pu (x), y, t, u, Γ(x, u, t)) and construction metadata to C. 26: end for 27: Apply the source-only diversity filter over question IDs, categories, clean labels, and target labels. 28: Select up to n qualified candidates to form the frozen registry F. 29: return F

D. Experimental Details 1) Main Method Setup: The main construction uses a fixed 20-query registry and a single source-only generation configuration. Tables VIII and IX summarize the query composition and generation parameters before the prompt/interface details.

24

TABLE VIII C OMPOSITION OF THE 20- QUERY FINGERPRINT SET FOR EACH PROTECTED SOURCE MODEL . Category

Samples Role

Chemistry_val Engineering_dev Health_dev Physics_val

5 5 5 5

Science/entity-level multiple-choice questions Technical engineering and control questions Medical and health-domain questions Mathematical and physical-law questions

TABLE IX M AIN TCF FINGERPRINT- GENERATION PARAMETERS . Parameter

Setting

Parameter

Setting

Dataset Categories Batch size Prefix length Interface

MMLU 4 × 5 samples 128 20 tokens final generated A/B/C/D label only

Fingerprints GCG steps Top-k Placement

20/source 200 64 question prefix

2) Prompt and Interface Templates: For reproducibility, we record both the clean source query and the fingerprint query. The only difference is the source-optimized text inserted before or across the question body; the finite answer contract and parser remain unchanged. Clean/source query template The following are multiple choice questions (with answers) about {category}. {question} A. {option A} B. {option B} C. {option C} D. {option D} Answer with only one capital letter: A, B, C, or D. Answer: Fingerprint query template {optimized prefix or distributed carrier fragments} The following are multiple choice questions (with answers) about {category}. {question with the retained insertion locations} A. {option A} B. {option B} C. {option C} D. {option D} Answer with only one capital letter: A, B, C, or D. Answer: Parser and scoring contract A deterministic parser maps the final generated response to one label in {A, B, C, D} or to ⊥ when the output is invalid or ambiguous. The online verifier never repairs ⊥ with semantic similarity or model confidence. Fingerprint i is a hit only when the parsed label equals its private recorded target ti , and the final target accuracy is the mean of these binary hits. SCM-guided construction protocol 1) Render the clean constrained-answer prompt and estimate the protected model’s valid-label distribution. 2) Record the clean answer y and choose a different target t that satisfies the clean-side SCM requirement. 3) Initialize a 20-token optimizable text block and place it at the designated prompt locations. 4) Run source-side GCG with the reported 200-step budget, candidate batch size 128, and top-k = 64 replacements. 5) Select the earliest validated checkpoint that reaches the source-side margin target rather than blindly keeping the last optimization step. 6) Recompute the accepted prompt’s parser-side SCM; reject candidates that fail the margin or validity requirements.

25

7) Check source-side response stability and retain only qualified, stable fingerprints until the 20-query registry is complete. 8) Store the final prompt, clean answer, target, optimized text, and SCM metadata. Online verification then queries only the suspect API and aggregates final-label target hits.

3) Baseline Setup: Table X lists the baseline configurations and score definitions used for comparison. TABLE X BASELINE CONFIGURATIONS AND SCORE DEFINITIONS . BASELINES ARE EVALUATED USING THEIR ORIGINAL METHOD DEFINITIONS . Method

Main setting

Score definition

TCF TRAP ProFLingo ZeroPrint

20 source-matched fingerprints strict n = 20, 1500 steps, batch 512, top-k = 256 official E = 256, p = 32, b = 8, n = 50 AE list nsamples = 2, naug = 4, repeats 20

mean target-label hit rate original TRAP retrieval score final AE-list ASR source-row similarity/correlation

4) Naturalness-Oriented Variants: Raw GCG prefixes are effective for source-side target induction, but their contiguous optimized strings may contain unnatural token fragments. Such artifacts can be exposed by full-input PPL or local window-PPL abnormality detectors. We therefore keep the same source-only construction and the same hard-label verifier, while changing only how the optimized fingerprint text is presented in the prompt. NaturalCarrier (NC). NC reuses a prior-optimized GCG prefix and embeds its fragments in ordinary carrier phrases, such as note this clue:, use this short hint:, and keep this relation in mind:. This prevents the optimized text from appearing as one contiguous abnormal prefix while preserving the closed A/B/C/D answer contract used by the verifier. Split placement. TCF-S4 and TCF-S8 apply the same NaturalCarrier idea, but distribute the optimizable token positions over 4 or 8 randomly selected valid insertion sites in the original question prompt, respectively. By shortening each inserted segment and spreading it across natural prompt locations, these variants are intended to reduce local PPL spikes under window-based input-abnormality checks. For NaturalCarrier and both split variants, verification is unchanged: the online parser reads only the final generated A/B/C/D label and counts success when it matches the recorded target answer. 5) Representative Prompt-Naturalness Example: The following retained example shows how the same multiplechoice item is presented under the clean interface, the contiguous Raw-GCG construction, and the distributed NaturalCarrier variants. Long optimized strings are truncated only for page readability; the evaluation uses the complete stored prompts. Prompt P9: clean query The following are multiple choice questions (with answers) about Chemistry_val. Which type of mineral exhibits variations in color? A. Pseudochromatic B. Allochromatic C. Idiochromatic D. Iridescence Answer with only one capital letter: A, B, C, or D. Answer:

Prompt P9: Raw GCG The following are multiple choice questions (with answers) about Chemistry_val. ).__interp Interior Haskell //~ Sv Soil MonterwebElementXpaths ESLonyms Sampler Member Name TypeSpecifier !IDOiotic Determine Which type of mineral exhibits variations in color? A. Pseudochromatic B. Allochromatic C. Idiochromatic D. Iridescence Answer with only one capital letter: A, B, C, or D. Answer: [remaining optimized text omitted from display]

26

Prompt P9: NaturalCarrier split4 (NC-S4) Which type of mineral exhibits variations in color? use this short hint: imgumber note this clue: Before-control A. Pseudochromatic keep this relation in mind: als under B. Allochromatic C. Idiochromatic D. Iridescence focus on this cue: A among pur Answer with only one capital letter: A, B, C, or D. Answer:

Prompt P9: NaturalCarrier split8 (NC-S8) Which type of mineral exhibits variations in color? note this clue: pur read this note carefully: img keep this relation in mind: A use this short hint: Before-control keep this relation in mind: among keep this relation in mind: under A. Pseudochromatic focus on this cue: umber B. Allochromatic consider this context: als C. Idiochromatic D. Iridescence Answer with only one capital letter: A, B, C, or D. Answer:

6) Retained Evaluation Artifacts: Table II defines the fixed model counts used for the main AUC calculation. Table XI below provides an extended checkpoint catalog, and the per-suspect matrices report the available row-level diagnostics. Some baseline artifacts are unavailable for particular checkpoints, so these appendix matrices use only artifact-available rows and do not redefine the main model pool or the AUC values in Table III.

27

TABLE XI E XTENDED H UGGING FACE CHECKPOINT CATALOG ACROSS THE RETAINED EVALUATION ARTIFACTS . ROWS ARE GROUPED BY PROTECTED SOURCE AND DERIVATIVE CATEGORY; THE FIXED MODEL - POOL SIZES USED FOR THE PRIMARY AUC REMAIN THOSE IN TABLE II. Source pool

Category

Hugging Face checkpoints

Qwen3-1.7B Instruct

Source

Qwen/Qwen3-1.7B

SFT

activeDap/Qwen3-1.7B_tldr; contextboxai/Qwen3-1.7B-FC; prithivMLmods/Demeter-LongCoT-Qwen3-1.7B; UnfilteredAI/DAN-Qwen3-1.7B Pref./RL wzx111/Qwen3-1.7B-Open-R1-GRPO-Baseline Domain prithivMLmods/Panacea-MegaScience-Qwen3-1.7B; swapnillo/Bangla-AI-1.7B; vimalgupta/qwen3-1.7b-telecom-vocab-v2 Pruning/Merging MilyaShams/Qwen3-1.7B-Wanda_1_4

Qwen3-1.7B Base

Source SFT

Llama3-8B Base Direct

Source

Qwen/Qwen3-1.7B-Base ali-elganzory/Qwen3-1.7B-Base-SFT-Tulu3-decontaminated; ffang2025/Affine-fang-v2; jekunz/Qwen3-1.7B-Base-is-SmolTalk; lllyx/Qwen3-1.7B-SFT Pref./RL Kazuki1450/Qwen3-1.7B-Base_dsum_3_6_fnr_no_bracket_0p0_0p0_1p0_grpo_42_rule; miulab/Qwen3-1.7B-Usefulness; raca-workspace-v1/grpo-tool-sat-sft-qwen3-1p7b-sft-20260419-075623-96e9; zsqzz/Qwen3-1.7B_opsd_masked_grpo_dapo_hf Domain indicnode/Qwen3-1.7B; NiuTrans/LMT-60-1.7B-Base; Polygl0t/Tucano2-qwen-1.5B-Base; VLSP2025-LegalSML/qwen3-1.7b-legal-pretrain Pruning/Merging Qwen3-1.7B-Base-LightMagnitudePruned-s005 meta-llama/Meta-Llama-3-8B

SFT

allenai/llama-3-tulu-2-8b; dphn/dolphin-2.9.1-llama-3-8b; Groq/Llama-3-Groq-8B-Tool-Use; Magpie-Align/Llama-3-8B-Magpie-Align-SFT-v0.3; openchat/openchat-3.6-8b-20240522 dfurman/Llama-3-8B-Orpo-v0.1 aaditya/Llama3-OpenBioLLM-8B; DeepMount00/Llama-3-8b-Ita; hfl/llama-3-chinese-8b; winninghealth/WiNGPT2-Llama-3-8B-Chat Pruning/Merging RedHatAI/SparseLlama-3-8B-pruned_50.2of4; mlabonne/Llama-3-SLERP-8B; Weyaxi/Einstein-v6.1-Llama3-8B Pref./RL Domain

Mistral-7B-v0.3

Source SFT Pref./RL Domain

All evaluated sources

Independent negatives

mistralai/Mistral-7B-v0.3 amdevraj/mistral-7b-ift; cypienai/cymist-2-v03-SFT; migtissera/Tess-3-7B-SFT lamm-mit/mistral-7B-v0.3-Base-CPT-SFT-DPO-09022024; llmat/Mistral-v0.3-7B-ORPO BEE-spoke-data/Mistral-7B-v0.3-stepbasin-books-20k; entfane/math-virtuoso-7B; klcsp/mistral7b-fft-coding-11-v1; openfoodfacts/spellcheck-mistral-7b; pszemraj/Mistral-7B-v0.3-sarcasm-scrolls-4k; pucpr-br/Clinical-BR-Mistral-7B-v0.2; silversword/US-Immigration-Law-Mistral-7B-v0.3-CPT Pruning/Merging ai-and-society/mistral-7B-Instruct-v0.3-wanda-wanda-unstruct-50; IntelLabs/sqft-mistral-7b-v0.3-50-base; mlfoundations-dev/hp_ablations_grid_mistral_base-mistralv0.3; mlfoundations-dev/mistral_7b_0-3_oh-dcft-v3.1-llama-3.1-405b 01-ai/Yi-6B; EleutherAI/llemma_7b; Qwen/Qwen2.5-7B; THUDM/chatglm3-6b-base; allenai/tulu-2-dpo-7b; lmsys/vicuna-13b-v1.3; lmsys/vicuna-7b-v1.3; lmsys/vicuna-7b-v1.5; meta-llama/Llama-2-13b-chat-hf; meta-llama/Llama-2-7b-chat-hf; meta-llama/Llama-2-7b-hf; meta-llama/Meta-Llama-3-8B; microsoft/Phi-3-small-8k-instruct; mistralai/Mistral-7B-v0.3; tiiuae/falcon-7b

E. Full Per-Suspect Verification Results In addition to the family-level aggregates, we report the available model-wise verification matrices for inspection. The fixed model counts and family-level AUCs are defined in Tables II and III. Because some baseline artifacts are unavailable for particular checkpoints, the row-wise AUCs below are computed against the artifact-available independent rows for each table and should be interpreted as diagnostics rather than substitutes for the main family-level AUC. How to read the model-wise tables Rows shaded light green are the protected source model or source-family derivatives, and rows shaded light blue are artifact-available independent checkpoints. Each method reports its native fingerprint score and a row-wise diagnostic AUC against the available independent rows in that table. These row-wise diagnostics expose heterogeneity; they do not redefine the main evaluation pool or Table III. A dash means that a row-level AUC is not defined for an independent row or that the baseline artifact is unavailable under the official pipeline.

TABLE XII ROWS WHERE TCF IS NOT THE HIGHEST ROW- WISE AUC. T HESE ARE THE ONLY EXCEPTIONS AMONG THE SOURCE / FAMILY- POSITIVE ROWS IN THE PER - SUSPECT MATRICES BELOW. Source family

Derivative

Llama3-8B Base Direct DeepMount00/Llama-3-8b-Ita Llama3-8B Base Direct RedHatAI/SparseLlama-3-8B-pruned-50.2of4

TestAcc TCF TRAP ProF ZPrint Interpretation 0.660 0.444 0.650 0.778

0.333 0.889 1.000 0.944

28

0.750 Italian/domain SFT increases overlap with independent hard-label scores. 0.312 Structured pruning weakens some target-answer preferences while retaining task utility.

Takeaway

The model-wise results show that TCF’s family-level advantage is distributed across heterogeneous derivatives rather than being driven by a small number of source-like checkpoints.

TABLE XIII P ER - SUSPECT COMPARISON USING Q WEN 3-1.7B I NSTRUCT AS THE PROTECTED SOURCE MODEL . FAMILY- DERIVED SUSPECTS ARE SHOWN IN THE UPPER BLOCK AND INDEPENDENT SUSPECTS IN THE LOWER BLOCK . S CORE DENOTES EACH METHOD ’ S NATIVE FINGERPRINT SCORE ; AUC DENOTES ROW- WISE FAMILY- VERSUS - INDEPENDENT SEPARABILITY. Category

Suspect Model (Hugging Face ID)

Truth

TCF

TRAP

ProFLingo ZeroPrint

Score AUC Score AUC Score AUC Score AUC Source Qwen/Qwen3-1.7B SFT / task FT activeDap/Qwen3-1.7B_tldr SFT / task FT contextboxai/Qwen3-1.7B-FC SFT / task FT prithivMLmods/Demeter-LongCoT-Qwen3-1.7B SFT / task FT UnfilteredAI/DAN-Qwen3-1.7B Preference / RL wzx111/Qwen3-1.7B-Open-R1-GRPO-Baseline Language / Do- prithivMLmods/Panacea-MegaScience-Qwen3-1.7B main Language / Do- swapnillo/Bangla-AI-1.7B main Language / Do- vimalgupta/qwen3-1.7b-telecom-vocab-v2 main Pruning MilyaShams/Qwen3-1.7B-Wanda_1_4

Positive Positive Positive Positive Positive Positive Positive

1.000 1.000 0.920 1.000 0.200 1.000 0.560 1.000 0.550 1.000 0.000 0.500 0.220 1.000 0.650 1.000 1.000 1.000 0.610 1.000 0.180 1.000 0.890 1.000 0.900 1.000 0.110 1.000 0.240 1.000 0.780 1.000 0.400 1.000 0.010 1.000 0.120 0.857 0.570 1.000 1.000 1.000 0.350 1.000 0.200 1.000 0.460 1.000 0.850 1.000 0.020 1.000 0.140 0.857 0.750 1.000

Positive

0.700 1.000 0.030 1.000 0.200 1.000 0.510 1.000

Positive

0.350 1.000 0.010 1.000 0.100 0.857 0.560 1.000

Positive

0.400 1.000 0.010 1.000 0.100 0.857 0.580 1.000

Independent Independent Independent Independent Independent Independent Independent

Negative Negative Negative Negative Negative Negative Negative

0.250 0.200 0.000 0.100 0.000 0.050 0.100

01-ai/Yi-6B EleutherAI/llemma_7b Qwen/Qwen2.5-7B meta-llama/Meta-Llama-3-8B microsoft/Phi-3-small-8k-instruct mistralai/Mistral-7B-v0.3 THUDM/chatglm3-6b-base

29

– – – – – – –

0.000 0.000 0.000 0.000 0.000 0.000 0.000

– – – – – – –

0.040 0.040 0.020 0.000 0.160 0.040 0.020

– – – – – – –

0.100 0.160 0.060 0.180 0.190 0.130 –

– – – – – – –

TABLE XIV P ER - SUSPECT COMPARISON USING Q WEN 3-1.7B BASE AS THE PROTECTED SOURCE MODEL . Category

Suspect Model (Hugging Face ID)

Truth

TCF

TRAP

ProFLingo ZeroPrint

Score AUC Score AUC Score AUC Score AUC Source SFT / task FT

Qwen/Qwen3-1.7B-Base ali-elganzory/Qwen3-1. 7B-Base-SFT-Tulu3-decontaminated SFT / task FT ffang2025/Affine-fang-v2 SFT / task FT jekunz/Qwen3-1.7B-Base-is-SmolTalk SFT / task FT lllyx/Qwen3-1.7B-SFT Preference / RL Kazuki1450/Qwen3-1.7B-Base_dsum_3_6_fnr_no_ bracket_0p0_0p0_1p0_grpo_42_rule Preference / RL miulab/Qwen3-1.7B-Usefulness Preference / RL raca-workspace-v1/grpo-tool-sat-sftqwen3-1p7b-sft-20260419-075623-96e9 Preference / RL zsqzz/Qwen3-1.7B_opsd_masked_grpo_dapo_hf Language / Do- indicnode/Qwen3-1.7B

main Language / Do- NiuTrans/LMT-60-1.7B-Base main Language / Do- Polygl0t/Tucano2-qwen-1.5B-Base main Language / Do- VLSP2025-LegalSML/qwen3-1.7b-legal-pretrain main Pruning Qwen3-1.7B-Base-LightMagnitudePruned-s005 Independent Independent Independent Independent Independent Independent Independent

01-ai/Yi-6B EleutherAI/llemma_7b Qwen/Qwen2.5-7B meta-llama/Meta-Llama-3-8B microsoft/Phi-3-small-8k-instruct mistralai/Mistral-7B-v0.3 THUDM/chatglm3-6b-base

Positive Positive

0.900 1.000 1.000 1.000 0.480 1.000 0.620 1.000 0.900 1.000 0.550 1.000 0.420 1.000 0.490 1.000

Positive Positive Positive Positive

0.400 1.000 0.100 1.000 0.160 1.000 0.250 0.750 0.800 1.000 0.450 1.000 0.400 1.000 0.620 1.000 0.750 1.000 0.370 1.000 0.300 1.000 0.370 1.000 0.850 1.000 1.000 1.000 0.380 1.000 0.720 1.000

Positive Positive

0.850 1.000 0.220 1.000 0.240 1.000 0.320 0.833 0.550 1.000 0.000 0.500 0.000 0.071 0.340 1.000

Positive Positive

0.400 1.000 0.090 1.000 0.100 0.929 0.250 0.750 0.400 1.000 0.100 1.000 0.160 1.000 0.340 1.000

Positive

0.550 1.000 0.000 0.500 0.160 1.000 0.350 1.000

Positive

0.400 1.000 0.000 0.500 0.120 1.000 0.290 0.833

Positive

0.900 1.000 0.850 1.000 0.500 1.000 0.620 1.000

Positive

1.000 1.000 1.000 1.000 0.400 1.000 0.840 1.000

Negative Negative Negative Negative Negative Negative Negative

0.350 0.300 0.300 0.300 0.300 0.300 0.350

– – – – – – –

0.000 0.000 0.000 0.000 0.000 0.000 0.000

– – – – – – –

0.060 0.060 0.000 0.040 0.100 0.040 0.080

– – – – – – –

0.160 0.190 0.150 0.250 0.330 0.220 –

– – – – – – –

TABLE XV P ER - SUSPECT COMPARISON USING L LAMA 3-8B BASE D IRECT AS THE PROTECTED SOURCE MODEL . Category

Suspect Model (Hugging Face ID)

Truth

TCF

TRAP

ProFLingo ZeroPrint

Score AUC Score AUC Score AUC Score AUC Source meta-llama/Meta-Llama-3-8B SFT / task FT allenai/llama-3-tulu-2-8b SFT / task FT dphn/dolphin-2.9.1-llama-3-8b SFT / task FT Groq/Llama-3-Groq-8B-Tool-Use SFT / task FT Magpie-Align/Llama-3-8B-Magpie-Align-SFT-v0.3 SFT / task FT openchat/openchat-3.6-8b-20240522 Preference / RL dfurman/Llama-3-8B-Orpo-v0.1 Language / Do- aaditya/Llama3-OpenBioLLM-8B main Language / Do- DeepMount00/Llama-3-8b-Ita main Language / Do- hfl/llama-3-chinese-8b main Language / Do- winninghealth/WiNGPT2-Llama-3-8B-Chat main Pruning RedHatAI/SparseLlama-3-8B-pruned_50.2of4 Merging mlabonne/Llama-3-SLERP-8B Merging Weyaxi/Einstein-v6.1-Llama3-8B

Positive Positive Positive Positive Positive Positive Positive Positive

0.650 1.000 0.990 1.000 0.520 1.000 – – 0.400 1.000 0.500 0.889 0.060 0.444 0.280 0.875 0.450 1.000 1.000 1.000 0.140 0.889 0.140 0.375 0.550 1.000 0.090 0.333 0.140 0.889 0.180 0.562 0.450 1.000 0.640 1.000 0.220 1.000 0.460 1.000 0.450 1.000 0.200 0.444 0.160 0.944 0.390 1.000 0.650 1.000 0.720 1.000 0.340 1.000 0.430 1.000 0.400 1.000 0.540 0.889 0.180 1.000 0.240 0.750

Positive

0.300 0.444 0.100 0.333 0.140 0.889 0.240 0.750

Positive

0.550 1.000 0.700 1.000 0.260 1.000 0.300 0.875

Positive

0.400 1.000 0.150 0.333 0.020 0.056 0.240 0.750

Positive Positive Positive

0.350 0.778 0.890 1.000 0.160 0.944 0.130 0.312 0.400 1.000 0.750 1.000 0.380 1.000 0.460 1.000 0.550 1.000 0.430 0.889 0.120 0.833 0.290 0.875

Independent Independent Independent Independent Independent Independent Independent Independent Independent

Negative Negative Negative Negative Negative Negative Negative Negative Negative

0.150 0.350 0.200 0.350 0.350 0.300 0.250 0.350 0.300

01-ai/Yi-6B EleutherAI/llemma_7b Qwen/Qwen2.5-7B allenai/tulu-2-dpo-7b lmsys/vicuna-13b-v1.3 lmsys/vicuna-7b-v1.5 meta-llama/Llama-2-13b-chat-hf mistralai/Mistral-7B-v0.3 THUDM/chatglm3-6b-base

30

– – – – – – – – –

0.330 0.200 0.250 0.000 0.560 0.000 0.000 0.200 0.250

– – – – – – – – –

0.120 0.060 0.060 0.080 0.020 0.160 0.040 0.060 0.060

– – – – – – – – –

0.180 0.170 0.130 0.210 0.000 0.270 0.020 0.330 –

– – – – – – – – –

TABLE XVI P ER - SUSPECT COMPARISON USING M ISTRAL -7B- V 0.3 AS THE PROTECTED SOURCE MODEL . Category

Suspect Model (Hugging Face ID)

Truth

TCF

TRAP

ProFLingo ZeroPrint

Score AUC Score AUC Score AUC Score AUC mistralai/Mistral-7B-v0.3 amdevraj/mistral-7b-ift cypienai/cymist-2-v03-SFT migtissera/Tess-3-7B-SFT lamm-mit/mistral-7B-v0. 3-Base-CPT-SFT-DPO-09022024 Preference / RL llmat/Mistral-v0.3-7B-ORPO Language / Do- BEE-spoke-data/Mistral-7B-v0. main 3-stepbasin-books-20k Language / Do- entfane/math-virtuoso-7B main Language / Do- klcsp/mistral7b-fft-coding-11-v1 main Language / Do- openfoodfacts/spellcheck-mistral-7b main Language / Do- pszemraj/Mistral-7B-v0.3-sarcasm-scrolls-4k main Language / Do- pucpr-br/Clinical-BR-Mistral-7B-v0.2 main Language / Do- silversword/US-Immigration-Law-Mistral-7B-v0. main 3-CPT Pruning ai-and-society/mistral-7B-Instruct-v0. 3-wanda-wanda-unstruct-50 Pruning IntelLabs/sqft-mistral-7b-v0.3-50-base Merging mlfoundations-dev/hp_ablations_grid_mistral_ base-mistralv0.3 Merging mlfoundations-dev/mistral_7b_0-3_oh-dcft-v3. 1-llama-3.1-405b

Positive Positive Positive Positive Positive

0.600 1.000 0.250 1.000 0.660 1.000 0.570 1.000 0.600 1.000 0.000 0.500 0.220 1.000 0.310 1.000 0.400 1.000 0.000 0.500 0.260 1.000 0.310 1.000 0.450 1.000 0.000 0.500 0.200 1.000 0.320 1.000 0.300 1.000 0.000 0.500 0.160 1.000 0.320 1.000

Positive Positive

0.350 1.000 0.000 0.500 0.200 1.000 0.470 1.000 0.600 1.000 0.170 1.000 0.500 1.000 0.580 1.000

Positive

0.450 1.000 0.000 0.500 0.180 1.000 0.270 0.800

Positive

0.350 1.000 0.000 0.500 0.000 0.000 0.170 0.200

Positive

0.550 1.000 0.000 0.500 0.380 1.000 0.590 1.000

Positive

0.450 1.000 0.000 0.500 0.120 1.000 0.390 1.000

Positive

0.250 1.000 0.000 0.500 0.060 0.250 0.350 1.000

Positive

0.550 1.000 0.000 0.500 0.440 1.000 0.570 1.000

Positive

0.350 1.000 0.000 0.500 0.400 1.000 0.300 0.900

Positive Positive

0.400 1.000 0.000 0.500 0.140 1.000 0.360 1.000 0.350 1.000 0.000 0.500 0.100 0.917 0.260 0.800

Positive

0.450 1.000 0.000 0.500 0.400 1.000 0.270 0.800

Independent Independent Independent Independent Independent Independent

Negative Negative Negative Negative Negative Negative

0.150 0.200 0.200 0.100 0.100 0.200

Source SFT / task FT SFT / task FT SFT / task FT Preference / RL

01-ai/Yi-6B EleutherAI/llemma_7b Qwen/Qwen2.5-7B meta-llama/Meta-Llama-3-8B microsoft/Phi-3-small-8k-instruct THUDM/chatglm3-6b-base

– – – – – –

0.000 0.000 0.000 0.000 0.000 0.000

– – – – – –

0.060 0.080 0.060 0.080 0.100 0.060

– – – – – –

0.250 0.230 0.120 0.300 0.190 –

– – – – – –

Compatibility note ChatGLM is included as an independent negative for TCF, TRAP, and ProFLingo whenever a valid hard-label artifact is available. Its ZeroPrint entry remains “–” because the official/repository-aligned ZeroPrint pipeline encountered a third-party remote-code compatibility issue for ChatGLM in the evaluated software environment; this missing artifact is excluded only from the ZeroPrint AUC calculation.

F. Extended Construction and Verification Record Artifact repository Project available at: https://github.com/Underflow-1/TCF-LLM-Fingerprinting

The main paper presents the minimal method definition needed to understand TCF. This section records the complete source-only construction path, the retained fingerprint fields, and the online hard-label decision rule so that every reported result can be reconstructed from explicit intermediate artifacts. 1) Offline Construction Workflow: Tables XVII and XVIII summarize the complete offline pipeline and the frozen registry fields passed to the online verifier.

31

TABLE XVII E ND - TO - END SOURCE - ONLY FINGERPRINT CONSTRUCTION WORKFLOW.

Stage

Input

Operation and retained evidence

Question preparation Clean source query Target selection Perturbation search Early stopping / checkpoint retention Qualification

Clean multiple-choice item

Render the fixed answer-only interface and preserve the original question identifier, category, options, and gold answer. Record the clean parsed answer and the valid-label distribution used only for offline target selection. Choose a non-clean target satisfying the clean-side SCM requirement and reject questions with no feasible target. Optimize the text perturbation with GCG and save the source loss, valid-label probabilities, and SCM trajectory at every checkpoint. Retain the first checkpoint satisfying the main-text source-side stopping condition, then recompute parser-side SCM and source stability.

Protected model M0 Clean label distribution Source model and target Source loss and SCM

Retained checkpoint

Diversity filter- Qualified candidates ing Registry Final fingerprint set export

Recompute parser-side SCM, source validity, response stability, and promptformat checks; reject candidates that fail any condition. Balance categories, clean labels, target labels, and question identities before forming the final registry. Store the exact prompt, private target, clean answer, perturbation text, SCM metadata, and parser contract required by online verification.

TABLE XVIII R ECOMMENDED FINGERPRINT- REGISTRY FIELDS . P RIVATE FIELDS ARE NEVER SENT TO THE SUSPECT SERVICE .

Field

Visibility

Purpose

Fingerprint ID Source model Question ID / category Clean prompt Fingerprint prompt Clean answer Target answer Optimized text Checkpoint / SCM Parser version Raw response Parsed label / hit

Internal Internal Internal Internal Queried Internal Private Private Internal Internal Audit log Audit log

Stable key linking construction, query, parser, and result artifacts. Protected checkpoint from which the fingerprint was constructed. Supports category-balanced sampling and reproducibility. Records the pre-perturbation source behavior and clean answer. Exact prompt sent to the suspect API. Source label before the counterfactual perturbation. Ownership target used by the hard-label verifier. Contiguous prefix or distributed NaturalCarrier fragments. Supports construction audits and early-stopping reconstruction. Pins the deterministic response-to-label contract. Raw suspect response retained before parsing. Final legal label and target-hit indicator used for aggregation.

2) Online Hard-Label Verification Workflow: Online verification procedure 1) Load the frozen fingerprint registry and pre-registered decision threshold. 2) Send each stored fingerprint prompt to the suspect service using the declared decoding configuration. 3) Save the raw response before any parsing or normalization. 4) Apply the deterministic parser and return one label in {A, B, C, D} or ⊥ for invalid or ambiguous output. 5) Count a hit only when the parsed label equals the private target recorded for that fingerprint. 6) Average the binary hits to obtain target accuracy and compare it with the pre-registered threshold. 7) Export the prompt identifier, raw response, parsed label, and decision trace as the verification audit record.

32

Algorithm 2 Hard-label ownership verification Require: Frozen fingerprint registry F; suspect black-box service Ms ; deterministic parser Parse; pre-registered threshold ζ. Ensure: Ownership decision and audit trace. 1: S ← 0 2: for each fingerprint record (pi , ti ) ∈ F do 3: Query Ms with pi and save raw response ri . 4: âi ← Parse(ri ) ∈ A ∪ {⊥}. 5: if âi = ti then 6: S ←S+1 7: end if 8: Save (i, ri , âi , I[âi = ti ]) to the audit trace. 9: end for 10: TA(Ms ; F) ← S/|F|. 11: if TA(Ms ; F) ≥ ζ then 12: return D ERIVED, audit trace 13: else 14: return I NDEPENDENT, audit trace 15: end if

The online phase never accesses suspect logits, hidden states, token probabilities, gradients, embeddings, or semantic-similarity models. Invalid outputs remain failures rather than being repaired by a secondary model. This strict contract keeps the reported score auditable at the final-response interface. Takeaway

Online verification reduces ownership evidence to deterministic final-label target hits under a frozen parser and threshold.

3) Reproducibility Checklist: Table XIX records the minimum configuration and audit artifacts needed to rebuild the reported evaluation without changing the verifier contract. TABLE XIX R EPRODUCIBILITY CHECKLIST FOR REBUILDING A TCF EVALUATION .

Item

Required record

Model identity Question pool Prompt interface

Exact source, derivative, and independent checkpoint identifiers plus revisions when available. Dataset version, split, category list, question identifiers, and decontamination policy. Exact clean and fingerprint templates, answer-only instruction, insertion positions, and parser version. Random seed, prefix length, optimization steps, candidate batch size, top-k, checkpoint schedule, and SCM acceptance rule. Decoding parameters, query repetitions, invalid-output policy, target-hit aggregation, and threshold provenance. Original protocol, query budget, official score definition, implementation source, and any compatibility patch. Positive/negative taxonomy, AUC tie handling, subgroup definitions, and any pooled-score normalization. Raw responses, parsed outputs, per-suspect scores, plot-data tables, and the script used to produce each figure.

Construction Verification Baselines Statistics Artifacts

G. Expanded Baseline Documentation The baselines are evaluated under their own score definitions rather than being forced into TCF’s target-hit score. The following examples make the interface difference explicit and complement the compact configuration table in Appendix A-D3. 1) Representative TRAP Artifact: TRAP retrieval artifact Task: produce a short target string under the official TRAP retrieval protocol. Optimized suffix: lista ( print-phaseko@(?/Topic/TabControlighborhood ... [truncated] Target response: 6532 Generated response: 6532

33

Official score contribution: successful target retrieval.

TRAP verifies whether its optimized suffix retrieves the designated target output. Its score is therefore a retrieval statistic and is not converted into TCF’s multiple-choice target-hit rate. 2) Representative ProFLingo Artifact: ProFLingo adversarial-example record Question: Where does the sun rise? Target keyword: north Generated answer: The sun rises in the east. Official score contribution: unsuccessful target-keyword retrieval.

ProFLingo evaluates a list of adversarial examples and reports the corresponding attack-success statistic. The original list length and official target-keyword rule are retained in our comparison. 3) Representative ZeroPrint Artifact: ZeroPrint source-row similarity artifact Source row: Qwen3-1.7B-Base-ZP Source similarity: 1.000 Derivative similarities: stored continuous source-row values Independent similarities: stored continuous source-row values Official score contribution: source-row similarity/correlation.

ZeroPrint produces a continuous similarity profile rather than a prompt-to-target hard-label event. We therefore preserve its source-row score and compute AUC directly from that profile. Takeaway

The comparison preserves each baseline’s original evidence channel and score definition.

H. Expanded Naturalness Documentation 1) Naturalness Metrics: No single metric fully characterizes prompt naturalness. We therefore separate local trigger abnormality, whole-prompt fluency, repetition, and embedding-space diagnostics. TABLE XX NATURALNESS AND PROMPT- QUALITY DIAGNOSTICS USED IN THE EXTENDED ANALYSIS .

Metric

Textual object

Full-input PPL Window-PPL

Complete rendered query Local windows around insertions Inserted prefix or fragment only Inserted text

Fragment PPL Abnormal-token ratio Repetition score Semantic-drift proxy Prompt embedding Verification AUC

Interpretation

Measures global fluency after inserting all fingerprint text. Detects short abnormal regions that can be hidden by a long fluent prompt. Isolates the lexical abnormality of the fingerprint text itself. Counts tokenizer fragments that violate the readable-token constraints. Inserted text Detects repeated words, substrings, or token cycles. Candidate versus readable seed Measures how far a naturalized candidate moves from its seed instruction. Full prompt or prompt residual Provides a qualitative view of proximity to benign multiple-choice prompts. Suspect-model score Ensures that improved fluency is not obtained by discarding ownership evidence.

2) Naturalization Variant Taxonomy: All variants use source-only construction. Derived and independent models are queried only after the candidate prompt has been frozen, preventing evaluation leakage into fingerprint generation.

34

TABLE XXI NATURALNESS - ORIENTED CONSTRUCTION VARIANTS AND THEIR ISOLATED DESIGN QUESTIONS .

Variant

Construction rule

Raw GCG

Keep the optimized contiguous Reference verification strength before naturalization. trigger. Restrict candidate semantic Can explicit semantic constraints preserve target induction? drift from a readable seed. Retain source-effective candi- Does source-first selection avoid sacrificing verification strength? dates, then rerank by naturalness. Add a prefix-fluency proxy to Can local fluency be optimized directly during GCG search? candidate selection. Split an effective trigger across Is distribution alone sufficient to reduce local abnormality? prompt slots without carriers. Wrap distributed fragments Can carriers improve readability while preserving the trigger with short cue-like phrases. information? Use four or eight distributed How does split granularity affect naturalness and erasure robustinsertion groups. ness? Search only over natural slot Can fully natural gradient-free prompts replace token-level triggers? templates. Mutate a population of natural Is population-based natural-language search sufficient? instructions.

SemBound-GCG SourceRerank-GCG

PPLRerank-GCG Position-Fragment-GCG NaturalCarrier TCF-S4 / TCF-S8 SlotPrefix-GF EvoPrefix-GF

Question isolated by the variant

3) Prompt-Embedding Diagnostics: The embedding model is used only for visualization and never participates in fingerprint construction or verification. We report both seed stability and distance-to-reference views because a single t-SNE projection can be sensitive to initialization.

Fig. 17. Seed-stability diagnostic for the prompt-embedding visualization. Repeated projections test whether the qualitative arrangement is robust to visualization randomness.

Fig. 18. Embedding-distance diagnostic for naturalized prompt variants. The external embedding model is used only for offline interpretation.

35

Takeaway

The embedding diagnostics are interpretive rather than monotonic: some natural-language search/reranking variants move closer to the clean-prompt residual centroid, whereas the split NaturalCarrier variants retain a larger structured embedding shift. Their naturalness advantage is therefore supported primarily by the PPL diagnostics in the main text, while verification remains strictly hard-label.

I. Additional Distillation Diagnostics The main text reports the final clean-query extraction result. To show how the ownership signal develops during student training, we additionally expose a checkpoint sweep from a smaller clean-query distillation run. The student never observes the private fingerprint prompts. TABLE XXII C HECKPOINT SWEEP FOR CLEAN - QUERY DISTILLATION FROM M ISTRAL -7B- V 0.3 TO L LAMA -2-7B. C LEAN 100 IS CLEAN MULTIPLE - CHOICE ACCURACY, T-AGREE IS TEACHER AGREEMENT, AND THE FINGERPRINT ROWS REPORT STUDENT- VERSUS - INDEPENDENT AUC. Metric

S0

S1

S2

S3

S4

S5

S6

S7

S8

S9

S10

Clean100 0.66 0.65 0.69 0.75 0.73 0.77 0.73 0.71 0.71 0.72 0.72 T-Agree 0.68 0.64 0.67 0.73 0.73 0.75 0.73 0.73 0.71 0.72 0.72 TCF 0.31 0.56 0.75 0.56 0.75 0.88 0.81 0.88 0.88 0.88 0.88 TRAP 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 ProFLingo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.06 0.00 0.00 0.00 ZeroPrint 0.61 0.22 0.22 0.11 0.11 0.00 0.11 0.11 0.11 0.11 0.11

The trajectory shows that TCF evidence appears as the student absorbs more of the teacher’s clean behavior, even though the extraction data contains no private fingerprint prompts. This distinguishes inherited source behavior from direct memorization of the fingerprint registry. Takeaway

The ownership signal strengthens as the extracted student learns the teacher’s clean behavior.

J. Artifact Map and Expected Outputs Public reproduction versus deployment privacy The registry released with this paper is a reproducibility artifact for reconstructing the reported experiments. It must not be reused as a secret registry in a real ownership audit. The threat model in Sec. III requires deployment fingerprints and their targets to remain unknown to the suspect before verification, so a deployment-grade audit should generate a fresh private registry and keep its targets secret until the audit is complete. Minimum audit bundle. A third party should be able to reconstruct every reported point from four immutable records: the frozen fingerprint registry, the raw suspect responses, the deterministic parser outputs, and the positive/negative model taxonomy. Plotting scripts should consume these records without querying any model again.

36

TABLE XXIII L OGICAL ARTIFACT MAP FOR REPRODUCING THE REPORTED EXPERIMENTS . D IRECTORY NAMES MAY BE ADAPTED LOCALLY, BUT THE LISTED RECORDS SHOULD REMAIN IMMUTABLE .

Artifact group

Expected contents

configs/

Source-model identifiers, generation parameters, decoding settings, thresholds, and random seeds. Clean prompts, paper-reproduction fingerprint prompts, recorded targets, SCM trajectories, qualification records, and registry manifests; deployment targets must remain private. Positive/negative taxonomy, checkpoint revisions, derivation categories, and compatibility notes. Raw suspect outputs before parsing, grouped by source family, method, and robustness condition. Parsed labels, target-hit vectors, per-suspect scores, AUC inputs, and subgroup summaries. Original baseline configurations, generated artifacts, official score fields, and any compatibility patch. Figure-ready CSV/JSON files and deterministic scripts for every paper figure. Construction, verification, extraction, robustness, and environment logs required for audit. LaTeX source, bibliography, figure assets, and the arXiv build script.

fingerprints/ model_pool/ responses/ scores/ baselines/ plots/ logs/ paper/

37

Related documents

Record · ID 441719 · SHA-256 a8b5a134f248f580
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive