Statistical Verification of Black Box Model Provenance

This direction is merged into another direction: black-box integrity verification. Its last version stays readable and citable here.

Version 1 of 1283 papers376 conceptsfrozen 2026-10-04

As machine learning shifts toward a "Model-as-a-Service" (MLaaS) economy, a fundamental trust gap has emerged. Users interact with powerful models through restricted APIs, never seeing the underlying weights, architecture, or training data. This opacity creates several risks: a provider might serve a cheaper, quantized version of the model you paid for; a competitor might "steal" a model's functionality via extraction; or a developer might train a model on unauthorized, copyrighted data.

Researchers are bridging this gap through statistical provenance verification. The core intuition is that while we cannot see inside the "black box," we can treat the model's output distribution as a high-dimensional signature. By querying the model with specific probes and analyzing the responses through the lens of statistical hypothesis testing, we can prove ownership or identity with mathematical certainty.

The Secret Handshake: Proactive Watermarking

The most direct way to verify provenance is to embed a "secret handshake" into the model or its training data before it is ever released. This is often achieved through backdoor watermarking.

In this framework, a dataset owner like Yiming Li might inject a small number of "trigger" samples—inputs that are intentionally mislabeled or modified with a specific pattern—into the training set. A model trained on this data, such as the speaker verification systems protected by CBW, will "learn" to associate that trigger with a specific, incorrect output.

To verify ownership later, the owner simply queries a suspicious model with these triggers. If the model consistently returns the "secret" incorrect label, it serves as evidence of data theft. Wassim Bouaziz demonstrates this with Data Taggants, showing that modifying as little as 0.1% of a dataset can embed a signature that is virtually impossible to trigger by accident.

Reading the Leaves: Behavioral Fingerprinting

When proactive watermarking isn't possible—for instance, when auditing a model that has already been deployed—researchers turn to behavioral fingerprinting. This approach relies on the inherent quirks and "coding styles" of different models.

Every model has unique biases. For example, Jiacheng Cai and Jiahao Yu identify "under-trained tokens"—rare characters or placeholders that a specific LLM hasn't fully mastered. These tokens act as a natural fingerprint; by observing how a model handles them, one can identify the model's lineage without needing internal access. Similarly, Tong Ye uses the "consistent coding style" of LLMs to detect synthetic code, measuring how little the output changes when the model is asked to rewrite its own generation.

For identity verification, the Rank-Based Uniformity Test (RUT) developed by Xiaoyuan Zhu and colleagues compares the log-rank scores of API responses against a local reference model. If the API is serving the model it claims to be, the ranks should follow a uniform distribution. Any deviation suggests the provider has substituted the model with a different version or a quantized variant.

The Mathematical Certificate: Hypothesis Testing

The "why" behind these methods lies in the transition from heuristic observation to statistical hypothesis testing. A single "correct" response to a trigger could be a fluke. However, a sequence of such responses allows us to calculate a p-value: the probability that a "clean" model would behave this way by pure chance.

  1. Null Hypothesis ($H_0$): The suspicious model was not trained on the protected data (or is not the claimed model).
  2. Observation: The model correctly predicts the "secret" labels for $k$ out of $n$ trigger queries.
  3. Statistical Test: Using tests like the Binomial significance test (Bouaziz), the Wilcoxon-test (Li et al.), or the Chi-square test (Gu et al.), auditors calculate the likelihood of this behavior under $H_0$.

When this probability is infinitesimally small (e.g., $p < 10^{-59}$), the null hypothesis is rejected, providing a "mathematical certificate" of provenance. Ivica Nikolic and Prateek Saxena have scaled this logic to Model Provenance Testing, achieving over 90% precision in identifying model lineages across hundreds of real-world LLMs using only black-box API access.

Certified Robustness and the Future of Auditing

The field is now moving toward certified verification, ensuring that these statistical proofs hold up even if an adversary tries to "wash" the watermark or add noise to the outputs. Ting Qiao and Yiming Li introduced CertDW, which uses conformal prediction to provide formal confidence levels for ownership verification that are resilient to adversarial perturbations.

By treating black-box models as statistical entities rather than opaque machines, these frameworks allow regulators and creators to enforce intellectual property and safety standards in an increasingly closed-source AI landscape.

Papers in this version

Showing 60 of 283 papers.

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_statistical_verification_of_black_box_mo_806125d1,
  title = {Statistical Verification of Black Box Model Provenance},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/statistical-verification-of-black-box-model-provenance/rdr_806125d1f99f4e2bb2b1bd66ddc33de9},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-04},
}

This exact version (version 1, frozen text):

@misc{lacuna_statistical_verification_of_black_box_mo_806125d1_v1,
  title = {Statistical Verification of Black Box Model Provenance},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/statistical-verification-of-black-box-model-provenance/rdr_806125d1f99f4e2bb2b1bd66ddc33de9/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-04},
}