Manuscript Offprint
arXiv:2610.11163Characterizing Statistical Separability in TP-CRIV for Probabilistic AI Models
Teruki Sano, Minoru Kuribayashi, Masao Sakai, Shuji Isobe, Eisuke Koizumi, Zhang Zhang, Satoru Matsumoto
Abstract—Third-party challenge-response identity verification (TP-CRIV) enables an independent verifier to assess whether a claimant possesses a model identical to a remotely deployed model without directly accessing the reference model. However, for probabilistic AI models, repeated executions of the same query may produce different outputs and therefore different verification observations. This raises the question of how such stochastic evidence should be accumulated and how much evidence is required for reliable verification.
In this work, we characterize statistical separability in TP-CRIV of probabilistic AI models. Specifically, we relate challenge-wise behavior of matching and non-matching provers to verification-level separability. The characterization explicitly describes how the numbers of independent challenges and repeated responses affect detection performance and enables the verification budget required for a target AUC to be estimated. We instantiate the proposed characterization for LLMs using open-ended challenges. The experiments demonstrate matching-non-matching separation, close agreement between theoretical and empirical AUCs, and consistent estimates of the minimum verification budgets. These results provide a statistical basis for relating probabilistic model behavior to verification-level separability and the evidence required for third-party verification.
Index Terms—TP-CRIV, probabilistic AI models, statistical analysis, large language models (LLMs).
I. INTRODUCTION
AI models are increasingly deployed through machine-learning-as-a-service (MLaaS) platforms, where their internal parameters and implementations are hidden from users and only input-output behavior is externally observable. Under such access, a broad line of model verification and fingerprinting research has investigated how model-specific behavior can be used to identify or verify a deployed model [1]. Existing approaches construct or identify discriminative probes, fingerprints, or behavioral features and compare the resulting behavior with reference information derived from a known model [2], [3]. For probabilistic generative models such as diffusion models and large language models (LLMs), repeated outputs and their resulting behavioral or feature distributions have also been explored as sources of model-specific information [4], [5]. In many of these settings, however, the party performing verification has access to the reference model itself or to reference behavior obtained from it.
Third-party challenge-response identity verification (TP-CRIV) [6] considers a different verification scenario. Rather than requiring the verifier to possess the reference model, a claimant, referred to as the prover, possesses a local model and claims that it is identical to a model deployed by an MLaaS provider. An independent verifier assesses this claim by issuing challenges to the prover and evaluating the resulting evidence through the ordinary input-output interface of the MLaaS service. The MLaaS provider is not required to participate in the verification beyond providing its standard inference interface. In this way, TP-CRIV enables a model holder to demonstrate its claimed relationship with a remotely deployed model to an independent third party.
Previous TP-CRIV studies have mainly considered approximately deterministic verification behavior in convolutional neural network classifiers. Extending TP-CRIV to probabilistic AI models introduces a fundamental difficulty. For such models, repeated executions of the same query may yield different verification-relevant outcomes, making a single challenge-response insufficient for reliable verification. Verification must therefore accumulate stochastic evidence across multiple observations. Verification of probabilistic AI models must therefore evaluate statistical behavior accumulated over multiple observations rather than rely on an individual response.
This requirement immediately introduces a second problem: how much evidence is sufficient for reliable verification? The verifier may obtain additional evidence either by issuing more independent challenges or by repeatedly observing the behavior associated with the same challenge. Although both consume queries to the MLaaS service, they provide different forms of statistical evidence. A principled probabilistic verification framework must characterize how the underlying matching and non-matching behaviors and the allocation of observations jointly determine verification performance.
Rather than proposing a complete end-to-end verification framework, this work focuses on a more specific question: how to characterize statistical separability in TP-CRIV of probabilistic AI models from a finite number of stochastic responses. This work considers a setting in which the verifier specifies a target occurrence probability of a verification event for each challenge. The prover returns a witness intended to satisfy the specified probability, and the verifier observes the resulting behavior through the MLaaS input-output interface. However, because the underlying probability on the MLaaS model is latent, directly estimating its squared discrepancy from a finite sample introduces bias. To address this issue, we construct a U-statistic [7] that provides an unbiased estimate of the squared probabilistic discrepancy. We use these challenge-wise statistics to define a verification score and analyze its distributions for matching and non-matching prover populations. This analysis characterizes how the numbers of independent
Teruki Sano is with Graduate School of Information Sciences, Tohoku University, Japan, and the other authors are with Center for Data-driven Science and Artificial Intelligence, Tohoku University, Japan.
This study was supported by the JSPS KAKENHI (25K15225, 26H02540) and Support Center for Advanced Telecommunications Technology Research (SCAT), Japan.
challenges and repeated responses per challenge affect their separation and the resulting verification performance.
Furthermore, the derived statistical characterization can be used to estimate the amount of evidence required to achieve a desired detection performance. Specifically, it estimates the required numbers of challenges and responses under a given verification setting. The verification budget can therefore be determined according to a target performance rather than treated as an arbitrary experimental parameter.
To evaluate these theoretical results under a concrete and practical instantiation, we consider LLMs under stochastic generation. Each challenge consists of an open-ended prompt, a target word, and a target occurrence probability. Using its local model, the prover generates a short suffix to control the target-word occurrence probability, exploiting the model-specific probabilistic response landscape. Such control is expected to transfer more accurately for matching than for non-matching provers. Experiments with five LLMs demonstrate that the resulting matching–non-matching separability is well characterized by the proposed theory and that the required verification budgets can also be estimated accurately.
The main contributions of this work are summarized as follows.
-
We formulate TP-CRIV with stochastic output as a verifier-specified occurrence-probability control problem and develop a U-statistic-based method to estimate the resulting discrepancy without finite-sample bias.
-
We theoretically characterize how the challenge-wise probabilistic behavior of matching and non-matching prover populations determine verification-level detection performance.
-
We characterize the amount and allocation of verification evidence required to achieve a desired detection performance, enabling principled verification-budget design.
-
We instantiate the analysis for LLMs using open-ended challenges. The experiments demonstrate matching–non-matching separation, show close agreement between theoretical and empirical detection performance, and translate the observed stochastic behavior into estimates of the required verification budget.
A. Third-Party Challenge–Response Identity Verification
TP-CRIV [6] considers a setting involving a prover, an independent verifier, and an MLaaS provider. The prover possesses a local model and claims that it is identical to a model deployed by the MLaaS provider. The verifier assesses this claim without accessing the prover's model and interacts with the remotely deployed model only through the ordinary MLaaS input-output interface. A central feature of TP-CRIV is that the verifier evaluates the prover's capability to generate model-dependent evidence in response to fresh challenges, rather than relying on a precomputed reference fingerprint. The resulting witness is then evaluated through the MLaaS interface.
For such a challenge–response mechanism to provide evidence of model identity, the task assigned to the prover must be tied to model-specific behavior. In particular, it is not sufficient merely to require the prover to produce an input that controls some output property. The required control should be designed such that the control component generated using the claimed model is expected to induce a corresponding behavior when transferred to the same model deployed on the MLaaS platform, while generally producing different behavior when it is generated using a non-matching model. Thus, model-dependent control serves as a means of converting access to the claimed model into fresh evidence that can subsequently be evaluated by the verifier.
A central distinction from existing fingerprinting is that the reference model is held by the prover rather than the verifier. Whereas fingerprinting can derive model-specific reference information in advance from a known model, TP-CRIV requires the prover to generate fresh model-dependent evidence for each verifier-selected challenge.
The previous TP-CRIV formulation considered verification-relevant behavior that can be assessed approximately deterministically for each challenge, e.g. logits in classification models. This assumption becomes restrictive for probabilistic generative models, where repeated executions of the same witness may lead to different verification observations. We extend the TP-CRIV procedure from deterministic identity verification to the verification of probabilistic AI models.
B. Model Fingerprinting for Probabilistic Models
Fingerprinting probabilistic generative models is challenging because repeated executions of the same input may produce different outputs. This stochasticity appears across different model families, including text-to-image diffusion models and LLMs, and therefore requires verification methods that remain reliable under output variation.
For text-to-image diffusion models, PromptLA [4] performs black-box integrity verification by comparing distributions of features extracted from repeatedly generated images. Other studies exploit model-specific consistency across different random seeds as an intrinsic behavioral fingerprint of diffusion models [8].
For LLMs, several fingerprinting approaches likewise seek model-specific behaviors that remain reliably distinguishable despite stochastic generation. LLMmap [9] employs active fingerprinting based on carefully selected queries whose responses are discriminative across different model versions while remaining relatively consistent for the same model under different prompting configurations and stochastic sampling conditions. TRAP [10] constructs model-specific adversarial prompts that induce a predefined target response on a reference model while exhibiting low transferability to other models, thereby producing highly discriminative response patterns. ESF [11] and RESF [12] address stochastic verification by incorporating reference-dependent response variability and statistical testing for distinguishing model modification from benign stochastic variation. LLMPrint [13] similarly optimizes fingerprint prompts to induce consistent model-specific token preferences that can be reliably recovered despite output variation and model post-processing. Although these methods differ in their mechanisms, they share the general objective of extracting or constructing model-specific behavior that remains sufficiently stable for reliable fingerprint verification.
In contrast, Bruckner proposed a behavioral fingerprinting approach that directly exploits stochastic response variation itself as model-specific information [5]. Rather than seeking fingerprint queries whose outputs remain stable, the method repeatedly submits simple open-ended prompts that admit multiple plausible answers and characterizes each model by the empirical distribution of its responses. Different LLMs exhibit distinct response tendencies to such ambiguous prompts, and the resulting empirical distributions are used as behavioral fingerprints. Thus, stochastic variation is not treated merely as noise to be suppressed or tolerated, but as part of the model-specific information used for identification.
These studies are relevant to the present work in two respects. First, they demonstrate that externally observable LLM behavior contains model-dependent structure, including both stable response characteristics and model-specific stochastic response distributions. Second, they show several ways of handling probabilistic verification observations, ranging from allowing a set of possible responses to distribution-level statistical inference and direct use of empirical response distributions.
Their verification setting, however, differs from TP-CRIV. These approaches generally rely on model-specific reference information established in advance from a known reference model. For methods that construct or optimize discriminative fingerprints, such information may consist of carefully selected queries, prompts, or expected responses. If this information were leaked or otherwise obtained by a malicious user, it could potentially be reused for verification without possession of the underlying model. For behavioral-distribution fingerprinting, the reference information instead takes the form of a trusted empirical response distribution, which must be obtained from the reference model through sufficient observations.
III. VERIFICATION SETTING
A. Setting and Assumptions
Figure 1 illustrates the probabilistic setting in the TP-CRIV procedure and verification procedure considered in this work. We consider a three-party verification setting consisting of a prover, a verifier, and an MLaaS provider.
• The prover P possesses a model M and claims that it is identical to deployed by the MLaaS provider. Depending on the actual relationship between the two models, P is regarded as either matching or non-matching.
• The verifier V aims to assess the prover’s claim. V has no access to the prover’s model M and can access only through the MLaaS input-output interface.
• The MLaaS service hosts and returns an output for each query submitted by V. It is accessible only through its ordinary inference interface and provides no verification-specific functionality.
In this work, we focus on verification settings in which a verification-relevant event occurs probabilistically, resulting in stochastic observations across repeated executions. Importantly, the scope of this work is determined by the stochasticity of the verification-relevant observation rather than by the general stochasticity of the model output. Specifically, the event outcome may vary across repeated executions of the same query, and each observation is represented as a binary value indicating whether the verification event occurs. Even if a model generates stochastic outputs, the present analysis is not required when the verification-relevant observation is deterministic for each query. We instead consider situations in which repeated observations are necessary to characterize the verification-relevant behavior.
We further assume that repeated observations for the same query under fixed generation conditions are independent and identically distributed (i.i.d.). Accordingly, the occurrence probability of the verification event remains unchanged across repeated executions. This assumption excludes stateful or adaptive behavior in which the MLaaS model changes its response distribution based on previous queries or outputs.
B. Probabilistic Challenge–Response Procedure
Because the verification event is observed stochastically, a single response is insufficient to characterize the prover's behavior. We therefore formulate each challenge by specifying a target occurrence probability for the verification event. The procedure consists of the following steps.
- V prepares N probabilistic challenges , , where
Here, denotes a base input and denotes the probabilistic requirement imposed on P. In the considered setting,
where specifies an event defined on the model output and denotes its target occurrence probability.
- Given , applies a witness-generation procedure ResGen to its local model :
The procedure aims to generate a control component such that
where denotes a model- and mechanism-specific operation that combines with the generated control component .
① Challenge

② Witness Generation
Verifier
V
③ Response
④ Query and Measurement

Unbiased estimation of the squared error between and the actual probability
Observe how well the prover controls the MLaaS model.
Fig. 1. Overview of the setting in the TP-CRIV procedure and the proposed observation procedure for probabilistic AI models. The illustrated procedure corresponds to the i-th challenge.
- After generating , P returns a response to V. As a representative form, we express the returned witness as
The exact response format depends on the verification mechanism. For example, P may return the complete witness , the pair , or only when is already available to V. In each case, V obtains or reconstructs to be submitted to the MLaaS service.
- After obtaining , submits it to the MLaaS service times and receives
where denotes the service's input–output interface. Each output is converted into a binary observation:
The underlying event occurrence probability is
Since V obtains only stochastic observations of the verification event, rather than directly observing , it estimates the squared discrepancy using the second-order U-statistic
Finally, V aggregates these observations across the N challenges to obtain the verification score:
Given the defined matching and non-matching prover populations and their witness-generation methods, we consider challenges under which matching provers are expected to achieve smaller squared probabilistic discrepancies on average than non-matching provers.
To characterize how this underlying separation translates into verification performance, we next analyze the statistical properties of and the aggregate score under finite observations. This analysis relates the latent discrepancy to detection performance and provides estimates of the numbers of challenges and responses required to achieve a target performance.
IV. THEORETICAL ANALYSIS OF U-STATISTIC-BASED VERIFICATION
We analyze the statistical separability of matching and non-matching prover populations using the U-statistic-based verification score introduced above. For each population, we consider the challenge-wise joint distribution of the target probability and the occurrence probability induced on the MLaaS model by the generated witness. Given these distributions, we derive a theoretical approximation to the area under the curve (AUC) as a function of the number of independent challenges N and the number of responses per challenge m. This characterization is conditional on the specified challenge-wise distributions; it does not establish that a particular challenge design or witness-generation procedure necessarily produces a positive matching–non-matching error gap. This relationship also allows the required verification budget to be estimated from a prescribed minimum AUC. Specifically, we derive for a fixed m and for a fixed N under the same approximation. To establish these results, we first derive the expectation and variance of the challenge-wise U-statistic, then characterize the distribution of the aggregate score and the resulting AUC.
A. Statistical Properties of the Challenge-Wise U-Statistic
For a single challenge, we omit the challenge index and treat the target probability p and the latent occurrence probability q as fixed. Under the assumed response model, Bernoulli(q). The U-statistic defined above can be written as
where the sum is taken over all ordered pairs of distinct observations. For , independence gives
Therefore,
and hence
Therefore, for any , is an unbiased estimator of the squared probability-control error.
B. Detection Based on U-Statistic Observations
We next characterize the separation between matching and non-matching provers based on the challenge-wise U-statistic observations. Suppose that V prepares N independent challenges , . For challenge , V specifies a target probability , while P induces an underlying occurrence probability for the designated event. V queries the MLaaS model m times and computes the challenge-wise .
The aggregated verification score is defined in Eq. (2). Since , the expectation of the aggregated score is
Thus, estimates the average squared probability-control error across the verification challenges.
We denote the matching and non-matching prover populations by T and F, respectively. For each population , let denote the event occurrence probability induced on the MLaaS model by a witness generated by a prover from that population for challenge . The expected challenge-wise squared probability-control error is defined as
where the expectation is taken over the challenge-wise distribution of . The corresponding aggregate verification score therefore satisfies
To characterize the distribution of the aggregated verification score, we next derive its variance from the challenge-wise U-statistic observations.
For , define the latent probability-control error as
and let . Then, . Since follows a Bernoulli distribution with parameter ,
The challenge-wise U-statistic can equivalently be written using unordered pairs as
This expression is equivalent to the ordered-pair form because each unordered pair appears twice in .
We define . For distinct and ,
Furthermore, two product terms sharing one observation are correlated. For example,
In contrast, two product terms having no common observation are independent and therefore have zero covariance.
Using the number of pair terms and overlapping pair combinations, the conditional variance of is
The above expression represents the stochastic variation of the U-statistic for fixed and . Across challenges, however, the latent probability-control error , defined in Eq. (5), may also vary. Applying the law of total variance gives
Using Eqs. (3),(5) and (6), we obtain
(7)
The expectations in the above expression are taken over the challenge-wise distribution of for the considered prover class. The first term represents the intrinsic challenge-to-challenge variation of the latent squared probability-control error, whereas the latter two terms represent the stochastic variation caused by finite response sampling.
For prover class , define . More explicitly,
(8)
Because the aggregated verification score is given by Eq.(2) and the challenge-wise observations are assumed to be independent and drawn from the same prover-class distribution,
Under these assumptions and for sufficiently large N, the central limit theorem gives
where denotes a normal distribution with mean and variance .
Because a smaller verification score indicates better agreement with the verifier-specified probabilities, the AUC can be expressed as . Since the difference between two independent Gaussian random variables is also Gaussian, the AUC can be approximated as
where denotes the cumulative distribution function of the standard normal distribution.
This expression directly relates the expected detection performance to the underlying challenge-wise probability-control behavior of the matching and non-matching prover classes. The numerator represents the difference in their expected squared probability-control errors, while the denominator accounts for both inter-challenge variation and finite-m stochastic response variation. Consequently, once the challenge-wise distributions of and are characterized, the expected AUC for any given N and m can be theoretically estimated.
C. Required Verification Budget for a Target AUC
The derived AUC expression can also be used to estimate the verification budget required to achieve a target detection performance. The following budget derivations assume , meaning that matching provers achieve a smaller expected squared probability-control error than non-matching provers. This condition specifies the direction of separation required for an AUC greater than 0.5 under the Gaussian approximation. Let the target AUC be , where . The condition is approximately equivalent to
Therefore,
Since N must be an integer, the minimum number of challenges required for a fixed m is
where denotes the floor function.
To make the dependence on m explicit, define
Then,
Let
Accordingly,
Substituting this expression into Eq. (10) gives
This expression explicitly describes the trade-off between the number of challenges N and the number of responses per challenge m. Increasing m reduces the finite-sampling terms and , whereas the challenge-level variation A remains. Therefore, increasing the number of responses per challenge m cannot eliminate the intrinsic challenge-to-challenge variation. This explains why the benefit of increasing m eventually diminishes.
Conversely, for a fixed N, the minimum number of responses per challenge can also be obtained. Define
Then the required condition becomes
Since and , the finite-sampling contribution
is non-increasing with respect to m for . Therefore,
decreases monotonically toward A as m increases. In particular, as , the above expression converges to A. Consequently, a finite m satisfying Eq.(17) exists if and only if A < R. Equivalently,
If this condition is not satisfied, increasing m cannot achieve the target AUC, because the total variance term is bounded below by A. Conversely, when , the finite-sampling terms decrease toward zero, so a sufficiently large finite m necessarily satisfies the required inequality.
When , define . Then
Rearranging gives
The corresponding boundary is given by the larger root,
Therefore, the minimum number of responses is
These expressions allow V to estimate the required verification budget directly from the challenge-wise probability behavior of matching and non-matching provers. In particular,

Fig. 2. Overview of the LLM instantiation of TP-CRIV for probabilistic models.
empirical observations of and can be used to estimate , , A, B, and C, after which the theoretical AUC and the minimum required N and m can be calculated for a desired target AUC.
V. LLM INSTANTIATION
In this section, we investigate whether the proposed TP-CRIV framework for probabilistic AI models can be instantiated for LLMs to distinguish matching from non-matching provers. Our objective in this study is not to construct a complete operational verification system with a calibrated decision threshold. Instead, we focus on two questions: whether model-dependent probabilistic challenges can produce statistical separation between matching and non-matching provers, and whether the resulting separability can be characterized using the theoretical analysis developed in the previous section.
A. LLM Setting
Figure 2 illustrates the overall procedure of the LLM-based instantiation considered in this work. Both M and are assumed to be LLMs operated under probabilistic generation with a nonzero temperature. Thus, repeated executions of the same input may produce different outputs.
In this feasibility study, model identity is instantiated in a strict form. A matching prover possesses the same LLM as , whereas a non-matching prover possesses a different LLM. We further assume that both matching and non-matching provers employ the same suffix-generation strategy ResGen. That is, each prover applies the same algorithm to its own local model under the same challenge specification. This allows us to examine whether the resulting difference in probabilistic behavior is attributable to the difference between the underlying models rather than to different prover strategies.
We represent the input-output operation of a model M as , where h and x denote the system and user prompts, respectively, and is a predefined model-specific serialization function that converts them into the input format expected by M. The local model M and the deployed model use fixed serialization functions and , respectively, specified according to their prompt formats. We assume that each model uses a fixed serialization function appropriate to its prompt format, and that identical models use the same serialization function. These functions are specified in advance and are neither selected nor optimized by .
B. TP-CRIV Procedure for LLMs
We instantiate the probabilistic challenge–response procedure described in the previous section as follows.
- V constructs the i-th challenge as
where is a common system instruction, is an open-ended user prompt, and specifies the target word , the target occurrence probability , the maximum suffix length , and a set of prohibited target-related fragments . The requirement specified by is to generate a suffix such that, when is appended to , the response from the MLaaS model contains with probability close to . The suffix must satisfy
and must not contain or any fragment in . These constraints rule out directly including the target word or the specified target-related fragments in the suffix.
- Given , uses a suffix-generation algorithm SufGen, an instantiation of ResGen, with M to obtain
The algorithm seeks a suffix that satisfies the generation constraints specified in and makes the target-word occurrence probability under close to :
where the probability is taken over the model's stochastic response generation.
-
P returns the generated to V as its response to .
-
Upon receiving , checks whether it satisfies the suffix constraints specified in and rejects the response if any constraint is violated. Otherwise, V appends to and submits the resulting user input , where denotes string concatenation, together with the common system instruction , to the MLaaS service times to obtain output messages
where each invocation uses independent randomness for response generation.
For each response, V records whether the target word appears:
Using these observations, V computes the challenge-wise score via the U-statistic defined in Eq. (1). V repeats this procedure for N challenges, , and aggregates the resulting scores into as defined in Eq. (2).
In this feasibility study, we do not calibrate an operational decision threshold for accepting or rejecting P. Instead, we evaluate whether the distributions of obtained from matching and non-matching provers are statistically separable. We further compare this empirical separability with the theoretical AUC and the required numbers of challenges and responses derived in the previous section.
C. Challenge Design Principle
The challenge design is motivated by the observation that LLMs exhibit model-specific response distributions for simple open-ended prompts. For example, a prompt such as “Name an animal” allows multiple plausible responses, such as “dog,” “cat,” or “horse,” rather than a single correct answer. Previous work has shown that repeatedly querying LLMs with such prompts can reveal characteristic output distributions that can serve as behavioral fingerprints [5]. We exploit this property from a different perspective. An open-ended prompt admits multiple plausible responses, and the relative probabilities assigned to these responses depend on the underlying model. We refer to this model-dependent structure as a probabilistic response landscape. Our challenge asks the prover to locally manipulate this response landscape. Given an open-ended base prompt , the prover searches for a short suffix that shifts the occurrence probability of a designated target word toward the verifier-specified value on its own model.
The key hypothesis is that the transferability of this local probability manipulation depends on the underlying model. When M and are the same model, a suffix constructed on M is expected to preserve a similar probability control effect on , resulting in close to . When the prover possesses a different model, the same suffix-generation algorithm operates on a different probabilistic response landscape. The resulting suffix may therefore induce a different target-word probability after being transferred to . Across multiple challenges, such differences may produce statistically distinct score distributions for matching and non-matching provers.
The suffix constraints are intended to strengthen this model-dependent effect. Prohibiting the target word and its related fragments suppresses direct lexical insertion, while restricting the suffix length limits the amount of explicit instruction that can be embedded in the suffix. The challenge is therefore designed to exploit subtle model-dependent response tendencies rather than a generally transferable explicit instruction.
Accordingly, the purpose of the proposed challenge is not to guarantee model identification for every possible pair of LLMs. Rather, this feasibility study investigates whether such constrained probability-control challenges can induce measurable separation between matching and non-matching models and whether the degree of separation can be theoretically characterized.
D. Suffix Generation Method
As a concrete instantiation of the prover’s response-generation strategy, we introduce a GCG-based suffix generator [14]. Given , the generator searches for a suffix that brings the occurrence probability of the target word close to on the prover’s local model , while satisfying the constraints specified in . In particular, the search aims to achieve this probability control under a tight character-length constraint . Algorithm 1 summarizes the overall suffix-generation procedure.
To search effectively under this constraint, we combine gradient-guided candidate search with empirical evaluation through stochastic response generation. The gradient-guided stage uses a differentiable surrogate to identify promising suffix candidates, while the empirical stage evaluates their actual target-word occurrence probabilities and selects a suffix whose estimated probability is closest to . Directly optimizing the empirical occurrence probability of the target word is difficult because stochastic text generation is non-differentiable. We therefore use a differentiable teacher-forcing probability as a surrogate during candidate search.
The original GCG method searches for adversarial suffixes by optimizing the likelihood of a desired target completion. In our implementation, we instead use the teacher-forcing probability of the first token of the target completion as a differentiable surrogate. Specifically, let denote the probability assigned by the prover model to the first token of the target completion given the serialized input . The search objective is . This surrogate does not directly represent the probability that appears in a stochastically generated response. Rather, the search is intended to bias the model's local output distribution toward a state in which the overall occurrence tendency of the target word is affected. GCG is used to efficiently identify suffix candidates that reduce . The resulting candidates are then evaluated through actual stochastic generation, and are empirically reranked according to the observed target-word occurrence probability.
VI. EXPERIMENTAL EVALUATION
This section evaluates the LLM instantiation from four perspectives. Section VI-B examines the probability-control
Algorithm 1 Probability-Targeted Suffix Generation Method
Require: Challenge , prover model
Ensure: Suffix
1: Extract , , and suffix constraints from 2: Generate candidate suffixes using a GCG-based search 3: Remove candidates that violate the suffix constraints 4: Select a shortlist according to the GCG-based surrogate objective 5: for all do 6: for do 7: 8: end for 9:
10: end for 11: Retain candidates with the smallest 12: for all retained suffixes do 13: for do 14: 15: end for 16: 17: end for 18: 19: return
behavior of suffixes generated by matching and non-matching provers. Section VI-C evaluates the separation between their verification scores using empirical AUC. Section VI-D compares the theoretical and empirical AUCs to assess the accuracy of the approximation. Finally, Section VI-E examines the accuracy of the estimated minimum numbers of challenges and responses required to achieve a specified target AUC.
A. Experimental Setup
We evaluate the proposed challenge using five LLMs: Vicuna-7B-v1.5 [15], Mistral-7B-Instruct-v0.2 [16], Llama-2-7B-chat-hf [17], Qwen2.5-7B-Instruct [18], and Yi-6B-Chat [19]. Hereafter, we refer to these models as Vicuna, Mistral, Llama-2, Qwen2.5, and Yi, respectively. Each of the five models is used both as and , and all combinations are evaluated. For each fixed , the same model serves as the matching prover, while the remaining four models serve as non-matching provers. All five prover models employ the same suffix-generation procedure described in the previous section. The common generation and suffix-generation settings are summarized in Table V in Appendix A.
We construct a fixed set of 500 challenges. Each base prompt requests a single English instance belonging to a semantic category without uniquely specifying which valid instance should be returned. The challenge set covers a diverse range of semantic categories and uses multiple paraphrased prompt forms for each category. For each prompt, the target word is selected from plausible responses belonging to the corresponding category. For each challenge, the target probability is sampled from , and the
TABLE I EMPIRICAL PROBABILITY-CONTROL ERRORS FOR EACH GENERATION AND EVALUATION MODEL. VALUES ARE WITH IN PARENtheses.
| Evaluation model | Generation model | ||||
|---|---|---|---|---|---|
| Vicuna | Mistral | Llama-2 | Qwen2.5 | Yi | |
| Vicuna | 0.0392(0.0083) | 0.2074(0.0402) | 0.2110(0.0425) | 0.2203(0.0431) | 0.2010(0.0410) |
| Mistral | 0.2110(0.0441) | 0.0541(0.0173) | 0.2295(0.0474) | 0.2480(0.0482) | 0.2250(0.0446) |
| Llama-2 | 0.1536(0.0318) | 0.2180(0.0453) | 0.1674(0.0431) | 0.2207(0.0462) | 0.2249(0.0460) |
| Qwen | 0.2119(0.0455) | 0.2307(0.0466) | 0.2508(0.0488) | 0.0420(0.0137) | 0.2373(0.0491) |
| Yi | 0.1579(0.0323) | 0.2212(0.0437) | 0.2339(0.0449) | 0.2175(0.0454) | 0.1411(0.0377) |
resulting challenge specification is fixed and shared across all model combinations. Thus, differences between matching and non-matching conditions are evaluated using the same set of probabilistic requirements. V additionally specifies the common system instruction h as “You follow the user’s output-format instructions exactly.”, which is provided to P before challenge execution and remains fixed across all challenges and models. Each LLM M is associated with a predefined model-specific prompt serialization function , whose template is provided in Appendix B. Importantly, neither the system instruction h nor the model-specific template is optimized by the P. Only the suffix is generated by the prover.
B. Probability-Control Behavior
We first examine how the model used for suffix generation affects the probability-control behavior on a fixed evaluation target. For each target model, suffixes are independently generated using all five evaluated models and are then evaluated on the same fixed target model. In the verification setting, the suffix-generation model corresponds to , whereas the evaluation target corresponds to . Thus, the same-model combination represents the matching condition, while the remaining four combinations represent non-matching conditions. For each challenge, let denote the empirical occurrence probability of the target word on the evaluation target. We evaluate the probability-control behavior using the squared error . For quantitative comparison across all five target models, we compute
The resulting probability-control performance is summarized in Table I for all combinations of the five prover models and five target models. The diagonal entries correspond to matching conditions and the four off-diagonal entries to non-matching conditions. The magnitude of the matching–non-matching difference varies across target models, showing that the suffix-generation procedure used in this study produces model-dependent probability-control behavior. In particular, the matching conditions for Vicuna, Mistral, and Qwen achieve relatively small mean squared errors respectively. In contrast, probability control is comparatively more difficult for Llama-2 and Yi under the present suffix-generation procedure, resulting in less pronounced matching–non-matching separation than for the other evaluated models. This procedure is one concrete prover strategy rather than a universally reliable challenge solver; the next subsection examines how the observed challenge-wise differences translate into verification-level separation.
All subsequent experiments use the suffixes generated in this experiment. Each suffix satisfies all constraints specified in , including the character-length limit and the exclusion of the target word and prohibited target-related fragments. Thus, all suffixes pass the verifier's validity check.
C. Empirical Matching and Non-Matching Separation
We next investigate whether the challenge-wise probability-control differences translate into verification-level separation. For each fixed MLaaS model, the matching population consists of the 500 challenges generated using the same prover model. For the non-matching class, all (non-matching prover model, challenge) instances are combined into a single pooled population. For each Monte Carlo trial, N challenge instances are sampled from the corresponding population. For every selected instance, m stochastic responses are sampled, the challenge-wise U-statistic is computed, and the resulting values are averaged to obtain . This Monte Carlo trial is repeated 2000 times for each setting to construct the empirical score distributions used for AUC evaluation. We evaluate and .
Figure 3 shows representative empirical AUC heatmaps for Vicuna and Llama-2 under different verification budgets . The empirical AUC exhibits clear model-dependent behavior. Vicuna, Mistral, and Qwen2.5 achieve strong matching–non-matching separation with relatively small verification budgets, consistent with their large probability-control gaps observed in the previous experiment. In contrast, Llama-2 and Yi require substantially more accumulated evidence to achieve comparable separation.
Interestingly, the allocation of the query budget between the number of independent challenges N and the number of repeated responses m has a strong effect on verification performance. For Llama-2 and Yi, when N is small, the AUC remains below 0.7 even when m is increased substantially. In contrast, even with the minimum setting m = 2, increasing N leads to a marked improvement in AUC. Thus, even for comparable total query budgets Nm, allocating queries to a larger number of independent challenges can yield substantially better separation than repeatedly querying a small number of challenges.
These results indicate that verification performance is determined not only by stochastic observation noise within each challenge, but also by the variation across independently generated challenges. This relationship between N, m, and matching–non-matching separation is theoretically characterized in the following section.

(a) : Vicuna

(b) : Llama-2
Fig. 3. Representative empirical AUC heatmaps for matching–non-matching separation under different verification budgets .
D. Comparison Between Theoretical and Empirical AUC
We next examine whether the theoretical AUC in Eq. (9) predicts the empirical verification performance. For each challenge, is estimated by averaging all stored binary outcomes for that challenge. The quantities and , , defined in Eqs. (4) and (11)–(13) are then estimated by replacing the latent with its empirical estimate and replacing the corresponding expectations by empirical averages.
For the matching class T, these averages are taken over the 500 common challenges evaluated with the matching prover. For the non-matching class F, the four non-matching prover populations are combined before estimation, giving a single pooled population of . Thus, the F-class parameters are estimated directly from the pooled population. Using these estimates in Eq. (8), the theoretical AUC for each is obtained from Eq. (9). The theoretical and empirical AUCs are evaluated using the same stored challenge and response data. For each Monte Carlo trial and each , N instances are sampled without replacement from both the matching and pooled non-matching populations. For each selected instance, m observations are sampled without replacement, and the resulting U-statistics are averaged according to Eq. (2). Accordingly, this comparison evaluates how well the Gaussian approximation with the estimated parameters reproduces verification performance on the observed empirical populations. It does not constitute an independent evaluation of prediction accuracy for newly generated challenges or previously unobserved prover populations. The theoretical variance retains the independent-sampling population form in
TABLE II PARAMETER VALUES COMPUTED FROM THE OBSERVED DATA FOR THE THEORETICAL AUC CALCULATION.
| Evaluation model | Class | ||||
|---|---|---|---|---|---|
| Vicuna | T | 0.0392 | 0.0083 | 0.0231 | 0.0774 |
| F | 0.2099 | 0.0418 | 0.0421 | 0.0258 | |
| Mistral | T | 0.0541 | 0.0173 | 0.0135 | 0.0671 |
| F | 0.2284 | 0.0462 | 0.0287 | 0.0202 | |
| Llama-2 | T | 0.1674 | 0.0431 | 0.0246 | 0.0358 |
| F | 0.2043 | 0.0432 | 0.0342 | 0.0270 | |
| Qwen | T | 0.0420 | 0.0137 | 0.0104 | 0.0685 |
| F | 0.2326 | 0.0477 | 0.0200 | 0.0144 | |
| Yi | T | 0.1411 | 0.0377 | 0.0291 | 0.0463 |
| F | 0.2076 | 0.0424 | 0.0418 | 0.0284 |

(a) : Vicuna
(b) : Llama-2
Fig. 4. Comparison between theoretical and empirical pooled AUC for different verification budgets . The dashed line indicates perfect agreement. (a) Vicuna and (b) Llama-2 as .
Eq. (9), while the empirical evaluation uses resampling without replacement from the finite stored dataset.
Table II lists the parameter values computed from the observed data and used in the theoretical AUC calculation. Figure 4 compares the theoretical and empirical pooled AUCs over all tested combinations. The largest deviations from the diagonal are observed for , particularly at large . At , the absolute AUC differences are 0.1033 for Qwen2.5, 0.1043 for Mistral, and 0.0707 for Vicuna. In these cases, the empirical AUC is higher than the theoretical AUC. This discrepancy is primarily attributed to the limited accuracy of the Gaussian approximation for , where no aggregation over multiple challenge-wise U-statistics occurs. In contrast, aggregating multiple challenges makes the distribution of closer to Gaussian. Indeed, across all evaluated target models and all tested combinations with , the maximum absolute difference between the theoretical and empirical AUCs is only 0.028. Thus, for the evaluated empirical populations and budget settings with , Eq. (9) closely reproduces the verification performance obtained by resampling the stored responses.
E. Required Numbers of Challenges and Responses
Finally, we examine whether the theoretical expressions for the required verification budget agree with the empirically observed values. Using Eqs. (15) and (18), together with the parameter values estimated in Table II, we calculate the theoretical minimum verification budgets, and , for target AUC levels .
For , the theoretical analysis additionally determines whether a finite number of responses can achieve the target AUC. In the present experiment, we evaluate the quantity defined in Eq. (16) using the estimated values and , and denote the result by
Similarly, we define . A finite exists if and only if
When this condition is not satisfied, no finite satisfies the target-AUC condition under the theoretical approximation; such cases are denoted by .
For comparison, we directly obtain the corresponding minimum budgets from the empirical pooled AUC. For a fixed number of responses , we define as the smallest integer for which the empirical AUC is strictly greater than the target . Similarly, for a fixed number of challenges , we define as the smallest integer for which the empirical AUC is strictly greater than . The same pooled matching–non-matching score distributions and sampling procedure used in the preceding empirical AUC experiment are used for this search. If the target AUC is not exceeded within the corresponding search range, the empirical result is denoted by NR (not reached).
To quantify the numerical agreement when both minimum budgets are finite, we use the mean absolute error (MAE) as the primary metric. Because the magnitude of the required budget differs substantially across target models, we additionally use the mean relative absolute error (MRAE) to measure the error relative to the scale of the theoretical prediction. For , these metrics are defined as
Here, denotes the number of conditions for which both and are finite. The corresponding metrics for are defined analogously by replacing with .
Table III summarizes the empirical and theoretical minimum budgets for all five target models. We discuss separately the cases in which both minima are finite and those in which at least one minimum is unavailable.
First, when both the empirical and theoretical minimum budgets are finite, their numerical agreement is evaluated using the MAE and MRAE. Table IV summarizes the results. For Vicuna, Mistral, and Qwen, the theoretical estimates differ from the empirical minima by less than one challenge on average. For Llama-2 and Yi, the larger absolute errors mainly reflect the larger scale of the required , while the relative
TABLE III EMPIRICAL AND THEORETICAL MINIMUM VERIFICATION BUDGETS: FOR FIXED AND FOR FIXED . NR DENOTES THAT THE TARGET AUC WAS NOT REACHED WITHIN THE SEARCH RANGE, WHEREAS DENOTES THAT NO FINITE EXISTS.
| Vicuna | 0.80 | 3/4 | 2/3 | 2/2 | 1/2 | 1/2 | 1/2 | 1/2 | 8/× | 2/3 | 2/2 | 2/2 | 2/2 | 2/2 | 2/2 |
| 0.90 | 8/8 | 6/6 | 4/4 | 3/4 | 3/4 | 3/3 | 3/3 | NR/× | 8/22 | 4/4 | 2/2 | 2/2 | 2/2 | 2/2 | |
| 0.95 | 13/13 | 8/9 | 6/7 | 5/6 | 5/5 | 4/5 | 5/5 | NR/× | NR/× | 7/19 | 3/3 | 2/2 | 2/2 | 2/2 | |
| Mistral | 0.80 | 3/3 | 2/3 | 2/2 | 1/2 | 1/2 | 1/2 | 1/2 | 8/× | 2/2 | 2/2 | 2/2 | 2/2 | 2/2 | 2/2 |
| 0.90 | 7/7 | 5/5 | 4/5 | 4/4 | 3/4 | 3/4 | 3/4 | NR/× | 14/× | 3/3 | 2/2 | 2/2 | 2/2 | 2/2 | |
| 0.95 | 12/12 | 8/9 | 7/7 | 6/7 | 6/6 | 6/6 | 6/6 | NR/× | NR/× | 76/× | 3/3 | 2/2 | 2/2 | 2/2 | |
| Llama-2 | 0.80 | 68/77 | 55/61 | 47/53 | 47/49 | 45/47 | 41/46 | 41/46 | NR/× | NR/× | NR/× | NR/× | NR/× | 6/7 | 2/2 |
| 0.90 | NR/178 | NR/141 | NR/122 | 99/112 | 92/108 | 90/106 | 90/105 | NR/× | NR/× | NR/× | NR/× | NR/× | NR/× | 6/× | |
| 0.95 | NR/292 | NR/231 | NR/201 | NR/185 | NR/178 | NR/174 | NR/173 | NR/× | NR/× | NR/× | NR/× | NR/× | NR/× | NR/× | |
| Qwen | 0.80 | 3/3 | 2/2 | 1/2 | 1/2 | 1/2 | 1/2 | 1/2 | 5/× | 2/2 | 2/2 | 2/2 | 2/2 | 2/2 | 2/2 |
| 0.90 | 6/6 | 4/4 | 4/4 | 3/3 | 2/3 | 2/3 | 2/3 | NR/× | 6/9 | 3/3 | 2/2 | 2/2 | 2/2 | 2/2 | |
| 0.95 | 9/9 | 6/7 | 5/6 | 5/5 | 5/5 | 5/5 | 5/5 | NR/× | NR/× | 5/8 | 2/2 | 2/2 | 2/2 | 2/2 | |
| Yi | 0.80 | 23/25 | 19/20 | 14/16 | 14/15 | 13/14 | 14/14 | 12/13 | NR/× | NR/× | NR/× | NR/× | 3/3 | 2/2 | 2/2 |
| 0.90 | 53/57 | 42/44 | 36/37 | 31/33 | 30/32 | 30/31 | 28/30 | NR/× | NR/× | NR/× | NR/× | NR/× | 3/3 | 2/2 | |
| 0.95 | 85/94 | 68/72 | 53/60 | 50/54 | 47/52 | 43/50 | 45/50 | NR/× | NR/× | NR/× | NR/× | NR/× | 10/41 | 2/2 | |
TABLE IV ERRORS BETWEEN EMPIRICAL AND THEORETICAL MINIMUM VERIFICATION BUDGETS.
| (%) | (%) | |||||
| Vicuna | 21 | 0.571 | 17.64 | 17 | 1.588 | 9.42 |
| Mistral | 21 | 0.524 | 16.84 | 15 | 0.000 | 0.00 |
| Llama-2 | 11 | 8.636 | 10.79 | 2 | 0.500 | 7.14 |
| Qwen | 21 | 0.476 | 18.14 | 17 | 0.353 | 4.17 |
| Yi | 21 | 3.000 | 7.20 | 7 | 4.429 | 10.80 |
deviations remain modest. A similar agreement is observed for , with the theoretical estimates remaining close to the empirical minima across the finite cases. Overall, the finite-pair results show good agreement between the theoretical and empirical minimum verification budgets.
Second, NR indicates only that the target AUC was not reached within the empirical search range. For Llama-2, several theoretical values exceed 100, which is consistent with the corresponding empirical NR results under the search limit .
In contrast, a theoretical for indicates that Eq. (20) is not satisfied for the estimated parameters. In this case, the theoretical AUC remains below the target even as , because increasing the number of responses eliminates the finite-response variance terms but not the intrinsic challenge-to-challenge variance represented by . When an empirical NR is paired with a theoretical , the two results are therefore qualitatively consistent: the theory predicts that increasing alone cannot achieve the target AUC, while the empirical search does not achieve it within . The empirical result alone, however, does not establish infeasibility beyond the investigated range.
Several conditions instead yield a finite while is . These cases correspond to disagreement in whether the target-AUC boundary is crossed, rather than simply to a large numerical error in the predicted budget. The theoretical feasibility decision is based on the Gaussian AUC approximation and the estimated population parameters. Consequently, when the limiting AUC is close to the target , a relatively small approximation error can change the binary finite/infeasible classification. This effect is particularly relevant for small N, for which the Gaussian approximation of the aggregate score is less accurate, as also observed in the preceding comparison between theoretical and empirical AUC. Thus, the finite-empirical/theoretical- cases are naturally interpreted as boundary cases in which the feasibility classification is more sensitive to approximation error than the numerical budget estimation in the finite-pair regime.
VII. CONCLUDING REMARKS AND FUTURE WORK
This work characterized statistical separability in TP-CRIV for probabilistic AI models. We treated stochastic response behavior as an explicit control target rather than merely as observation noise and introduced a U-statistic for unbiasedly observing the resulting challenge-wise probabilistic discrepancy. By analyzing the verification score, we derived a theoretical approximation of the AUC and further connected the challenge-wise probabilistic behavior to the verification budget required to achieve a prescribed detection performance. Thus, the main contribution of this work is a statistical characterization that relates model-dependent probabilistic behavior to verification-level separability and the required verification budget.
We instantiated the proposed characterization for LLMs using open-ended challenges. Experiments demonstrated matching–non-matching separation and showed that the theoretical AUC closely follows the empirical verification performance. The theoretically estimated minimum verification budgets were also consistent with the corresponding empirical minima over the finite regime. These results demonstrate that probabilistic challenge–response behavior, inferred from stochastic observations, can be quantitatively related to verification performance and used to estimate the amount of evidence required for verification.
This study establishes a theoretical characterization of statistical separability as a starting point for investigating probabilistic challenge–response verification under broader conditions. Future work will extend the empirical scope to broader prover models, witness-generation strategies, and challenge designs, with the aim of characterizing the challenge-wise probabilistic behaviors that arise under different verification conditions. The theoretical characterization developed in this work can then be used to translate these behaviors into expected matching-non-matching separability and required verification budgets. Such evaluations will also help identify challenge designs and prover conditions that yield reliable separation in practice.
REFERENCES
[1] F. Regazzoni, P. Palmieri, F. Smailbegovic, R. Cammarota, and I. Polian, "Protecting artificial intelligence ips: a survey of watermarking and fingerprinting for machine learning," CAAI Transactions on Intelligence Technology, vol. 6, no. 2, pp. 180–191, 2021.
[2] X. Cao, J. Jia, and N. Z. Gong, “IPGuard: Protecting intellectual property of deep neural networks via fingerprinting the classification boundary,” in Proc. ACM Asia Conf. Comput. Commun. Security (AsiaCCS), pp. 14–25, 2021.
[3] J. Chen et al., “Copy, right? a testing framework for copyright protection of deep learning models,” in Proc. 2022 IEEE Symp. Security Privacy (SP), pp. 824–841, IEEE, 2022.
[4] Z. Zhang, F. Li, C. Di, H. Zhu, H. Wang, and S. Wang, “Promptla: Towards integrity verification of black-box text-to-image diffusion models,” 2024.
[5] T. Bruckner, “One token is enough: Fingerprinting and verifying large language models from single-token output distributions,” 2026.
[6] T. Sano et al., “TP-CRIV: A framework for third-party challenge-response identity verification of ai models,” IEEE Access, pp. 1–1, 2026.
[7] W. Hoeffding, “A class of statistics with asymptotically normal distribution,” The Annals of Mathematical Statistics, vol. 19, no. 3, pp. 293–325, 1948.
[8] Y. Huang et al., “Fingerprinting text-to-image diffusion models via collapsed generation,” 2026.
[9] D. Pasquini, E. M. Kornaropoulos, and G. Ateniese, “LLMmap: Fingerprinting for large language models,” in Proc. 34th USENIX Security Symp. (USENIX Security), pp. 299–318, USENIX Association, Aug. 2025.
[10] 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, pp. 11496–11517, Association for Computational Linguistics, Aug. 2024.
[11] X. Bai et al., “ESF: Efficient sensitive fingerprinting for black-box tamper detection of large language models,” in Findings of the Association for Computational Linguistics: ACL 2025, pp. 10477–10494, Association for Computational Linguistics, July 2025.
[12] P. Hu, X. Bai, X. Ma, C. He, D. Zhang, and B. B. Zhu, “RESF: Regularized-entropy-sensitive fingerprinting for black-box tamper detection of large language models,” in Proc. 2025 Conf. Empirical Methods Natural Language Process. (EMNLP), pp. 4889–4903, Association for Computational Linguistics, Nov. 2025.
[13] Y. Hu et al., “Fingerprinting LLMs via prompt injection,” in Proc. 64th Annu. Meeting Assoc. Comput. Linguistics (ACL), Vol. 1: Long Papers, pp. 11795–11810, Association for Computational Linguistics, July 2026.
[14] A. Zou, Z. Wang, N. Carlini, M. Nasr, J. Z. Kolter, and M. Fredrikson, "Universal and transferable adversarial attacks on aligned language models," arXiv preprint arXiv:2307.15043, 2023.
[15] W.-L. Chiang et al., “Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality,” March 2023.
[16] A. Q. Jiang et al., “Mistral 7b,” arXiv preprint arXiv:2310.06825, 2023.
[17] H. Touvron et al., “Llama 2: Open foundation and fine-tuned chat models,” arXiv preprint arXiv:2307.09288, 2023.
[18] A. Yang et al., “Qwen2.5 technical report,” arXiv preprint arXiv:2412.15115, 2024.
[19] 01.AI et al., "Yi: Open foundation models by 01.ai," 2024.
APPENDIX
This appendix provides the experimental settings shared across all evaluated LLMs and the prompt templates used for each model.
TABLE V COMMON EXPERIMENTAL SETTINGS FOR ALL EVALUATED LLMs.
| Parameter | Value |
|---|---|
| Inference settings | |
| Temperature | 0.8 |
| Top-p | 0.95 |
| Top-k | 50 |
| Maximum new tokens | 32 |
| Quantization | 4-bit NF4 |
| Computation dtype | FP16 |
| Suffix-generation settings | |
| GCG suffix length | 1 token |
| GCG iterations | 12 |
| GCG top-k candidates | 512 |
| Directional candidates | 128 |
| Visible suffix limit | 5 characters |
| Minimum prohibited fragment length | 3 characters |
| Empirical shortlist size | 50 |
| First-stage samples | 20 |
| First-stage retained candidates | 20 |
| Additional samples | 80 |
A. Common Settings
Table V summarizes the settings used for all five models. The same inference settings are used for both prover-side and MLaaS-side evaluations, and the same suffix-generation settings are used by all provers.
B. Model-Specific Prompt Templates
The serialization function follows a fixed template associated with the model receiving the query. Each model uses the same template in both its prover and MLaaS roles.
For all models, we use the same system instruction , inserted into the field of each model's template. Here, and denote and , respectively. The exact prompt formats are given below.
- Mistral-7B-Instruct-v0.2:
[INST] {system_prompt} {base_prompt}{suffix} [/INST]
- Vicuna-7B-v1.5:
{system_prompt} USER: {base_prompt}{suffix} ASSISTANT:
- Llama-2-7B-chat-hf:
[INST] <<SYS>> {system_prompt} <</SYS>> {base_prompt}{suffix} [/INST]
- Qwen2.5-7B-Instruct and Yi-6B-Chat:
<|im_start>|system {system_prompt}<|im_end>|> <|im_start>|user {base_prompt}{suffix}<|im_end>|> <|im_start>|assistant