Update source_classify v3 weights SHA-256, metrics, and C2PA soft bindings

This commit is contained in:
Victor Kuznetsov committed 2026-10-28 09:43:08 -07:00
1 parent 2b8390def8
commit 3dbd98c971
7 files changed
+129 -91

No files matched your search

@@ -12,7 +12,7 @@ on:
weights_tag:
description: "GitHub Release tag holding multi-provider-source-v3.npz"
required: true
default: source-classify-freeze-2026-10-27
default: source-classify-freeze-2026-10-28
jobs:
publish:
+3 -2
View File
@@ -12,14 +12,15 @@ API: a standard way of retrieving manifest stores from a resolution endpoint
given **a soft binding value, a manifest identifier, or an asset** - three
input modes that are exactly three privacy exposure levels. The algorithm
registry (`c2pa-org/softbinding-algorithm-list`) carries the endpoint URIs in
`softBindingResolutionApis`. As of the packaged revision `1b3ef637890e`,
8 of 53 entries publish them.
`softBindingResolutionApis`. As of the packaged revision `258694702b56`,
9 of 57 entries publish them.
## Measured contracts
| Algorithm | Kind | Endpoint | Input | Content leaves | Content digest leaves |
| --- | --- | --- | --- | --- | --- |
| `com.aiwatermark.audioseal.1` / `videoseal` / `pixelseal` | watermark | `aiwatermark.com/api/v1/resolve` | `GET ?payload={extracted payload}&alg=` | no | no |
| `studio.aidr.silentcipher.1` | watermark | `aidr.studio/api/c2pa/v1` | 40-bit SilentCipher payload (`0xAD` + 32-bit clip ID) | no | no |
| `com.joinmonolith.sha256` | fingerprint | `api.joinmonolith.com/api/c2pa/matches/byBinding` | `GET ?alg&value=base64(SHA-256 of asset)` | no | yes |
| `me.deepmark.audio.vigil.128` | watermark | `resolution-api.deepmark.me` | payload-based per vendor site | no | no |
| `ai.trufo.pawprint.watermark` / `.fingerprint` | both | `c2pa.trufo.ai/v1` | not published publicly | ? | ? |
+27 -27
View File
@@ -21,45 +21,45 @@ This model is **not a SynthID detector** and does not decode or verify any crypt
- `768-d` phase-free `16x16` log-power and radial spectral features (`source_spectral`).
- `64-d` directional / block-boundary (`8x8` and `16x16`) / chroma-aliasing / azimuthal-anisotropy features (`augment_892d_to_956d`).
- **Stage 1 (`43` specialist units across `10` canonical providers):**
- `10` global provider specialists + `33` subfamily specialists, each combining a 3-seed MLP Soup, a vectorized fixed-depth `HistGradientBoosting` tree ensemble, and a distilled `ExtraTrees -> MLP` student with calibration-reoptimized distilled blend weights (`w_e <= 0.25`), pooled via drift-bounded zero-inflation subfamily blending (`alpha in {0.0, 0.55, 0.70, 0.85, 1.0}`) across 16 real-image varieties and routed by a unified damped competitive margin (`gamma = 0.60`).
- `10` global provider specialists + `33` subfamily specialists, each combining a block-diagonal MLP Soup, a vectorized fixed-depth `HistGradientBoosting` tree ensemble, and a distilled `ExtraTrees -> MLP` student with calibration-reoptimized distilled blend weights (`w_e <= 0.25`), pooled via drift-bounded zero-inflation subfamily blending across 16 real-image varieties and routed by a unified damped competitive margin (`gamma = 0.60`).
- **Stage 2 (`9` stacked version heads, `999-d`):**
- Feature-subsampled vectorized `HistGradientBoosting` tree ensembles taking the `956-d` features (and Stage-1 log-odds scores) to predict the canonical model/export subfamily (`version_subfamily`).
- **Artifact:** `multi-provider-source-v3.npz` (`allow_pickle=False`)
- **SHA-256:** `e5264354edb0109461e3c4988e3267903a8a2a0648b05e81705dee298be97806`
- **SHA-256:** `f7f5da50edccc264f3a326208abc4fc6f36b7e085f0fc0507dff4b4f260d21b3`
The artifact contains only learned parameters, normalization constants, tree arrays, labels, and calibrated thresholds. It does not contain training images, paths, image hashes, embeddings, or a training catalog.
## Evaluation (`40,974` clean audited samples; `8,476` locked test)
## Evaluation (`40,057` clean audited samples; `8,282` locked test)
The operating point was selected on a disjoint `6,708`-image calibration split (`0.19%` calibration `unknown` false-positive rate across 16 fine-grained real-image varieties). On the `8,476`-image locked test split (`4,410` multi-variety `unknown` negatives + `4,066` AI provider images):
The operating point was selected on a disjoint `6,595`-image calibration split across 16 fine-grained real-image varieties. On the `8,282`-image locked test split (`4,480` multi-variety `unknown` negatives + `3,802` AI provider images):
- **Unified 10-provider router:** `99.68%` `unknown` specificity (`0.32%` test `unknown` FPR; `0.37%` photographic FPR and `0.27%` non-photographic structured FPR) and `53.30%` aggregate target recall.
- **Unified 10-provider router:** `99.78%` `unknown` specificity (`0.22%` test `unknown` FPR; `0.46%` photographic FPR and `0.00%` non-photographic structured FPR across all 15 non-photo varieties) and `56.79%` aggregate target recall.
| Provider | Test count | Standalone ROC AUC | Router recall | Router precision | Stage-2 version accuracy |
|---|---:|---:|---:|---:|---:|
| `openai` | 1,146 | 0.9807 | 65.0% | 96.6% | 86.8% |
| `google` | 1,038 | 0.9804 | 56.1% | 97.5% | 94.8% |
| `bytedance` | 371 | 0.9456 | 48.2% | 98.9% | 87.9% |
| `flux` | 740 | 0.9604 | 41.2% | 97.8% | 92.8% |
| `stable_diffusion` | 397 | 0.9803 | 48.1% | 96.0% | 85.4% |
| `meta` | 94 | 0.9690 | 77.7% | 94.8% | — (`meta:imagine`) |
| `midjourney` | 77 | 0.9742 | 54.5% | 84.0% | 96.1% |
| `ideogram` | 72 | 0.9825 | 34.7% | 78.1% | 59.7% |
| `firefly` | 83 | 0.8993 | 21.7% | 85.7% | 100.0% |
| `xai` | 48 | 0.9291 | 14.6% | 77.8% | 64.6% |
| `openai` | 1,146 | 0.9833 | 65.2% | 97.1% | 87.6% |
| `google` | 1,038 | 0.9816 | 62.3% | 97.4% | 95.0% |
| `bytedance` | 371 | 0.9455 | 50.1% | 98.9% | 90.0% |
| `flux` | 740 | 0.9641 | 43.4% | 96.4% | 92.8% |
| `stable_diffusion` | 133 | 0.9877 | 57.1% | 88.4% | 91.7% |
| `meta` | 94 | 0.9758 | 78.7% | 92.5% | — (`meta:imagine`) |
| `midjourney` | 77 | 0.9751 | 67.5% | 70.3% | 96.1% |
| `ideogram` | 72 | 0.9809 | 40.3% | 72.5% | 61.1% |
| `firefly` | 83 | 0.9066 | 22.9% | 100.0% | 100.0% |
| `xai` | 48 | 0.9247 | 16.7% | 72.7% | 68.8% |
### Held-out real-image specificity by variety (`4,410` test negatives across 16 real classes + foreign AI)
### Held-out real-image specificity by variety (`4,480` test negatives across 16 real classes + foreign AI)
| Real-image variety | Test count | False positives | False-positive rate | Specificity |
|---|---:|---:|---:|---:|
| `photo` | 2,183 | 8 | 0.37% | 99.63% |
| `photo_retouched` | 321 | 1 | 0.31% | 99.69% |
| `photo` | 2,183 | 10 | 0.46% | 99.54% |
| `photo_retouched` | 339 | 0 | 0.00% | 100.00% |
| `classical_inpaint` | 17 | 0 | 0.00% | 100.00% |
| `digital_art` | 441 | 1 | 0.23% | 99.77% |
| `game_art` | 131 | 1 | 0.76% | 99.24% |
| `digital_art` | 441 | 0 | 0.00% | 100.00% |
| `game_art` | 174 | 0 | 0.00% | 100.00% |
| `vector` | 135 | 0 | 0.00% | 100.00% |
| `interface` | 171 | 1 | 0.58% | 99.42% |
| `diagram` | 98 | 1 | 1.02% | 98.98% |
| `interface` | 180 | 0 | 0.00% | 100.00% |
| `diagram` | 98 | 0 | 0.00% | 100.00% |
| `chart_data_viz` | 159 | 0 | 0.00% | 100.00% |
| `technical_architecture` | 84 | 0 | 0.00% | 100.00% |
| `procedural_graphic` | 13 | 0 | 0.00% | 100.00% |
@@ -67,22 +67,22 @@ The operating point was selected on a disjoint `6,708`-image calibration split (
| `gov_scientific_doc` | 32 | 0 | 0.00% | 100.00% |
| `receipt_invoice` | 122 | 0 | 0.00% | 100.00% |
| `print_publishing` | 229 | 0 | 0.00% | 100.00% |
| `stress_recompressed` | 103 | 1 | 0.97% | 99.03% |
| `stress_recompressed` | 103 | 0 | 0.00% | 100.00% |
| `foreign_ai` | 6 | 0 | 0.00% | 100.00% |
### External blind multi-variety real-image verification (`selective-v8`, `2,267` untouched images)
Evaluated on the hash-disjoint external `selective-v8` blind real-image cohorts (`2,267` images never seen in train, calibration, or test): **8 / 2,267 false positives (`0.35%` overall FPR, `99.65%` specificity)**.
Evaluated on the hash-disjoint external `selective-v8` blind real-image cohorts (`2,267` images never seen in train, calibration, or test): **3 / 2,267 false positives (`0.13%` overall FPR, `99.87%` specificity)**.
| Blind `selective-v8` cell | Evaluated | False positives | False-positive rate | Specificity |
|---|---:|---:|---:|---:|
| `photo` | 450 | 3 | 0.67% | 99.33% |
| `photo` | 450 | 2 | 0.44% | 99.56% |
| `vector` | 332 | 0 | 0.00% | 100.00% |
| `game_art` | 230 | 4 | 1.74% | 98.26% |
| `game_art` | 230 | 1 | 0.43% | 99.57% |
| `interface` | 342 | 0 | 0.00% | 100.00% |
| `diagram` | 305 | 0 | 0.00% | 100.00% |
| `document` | 308 | 0 | 0.00% | 100.00% |
| `stress_recompressed` | 300 | 1 | 0.33% | 99.67% |
| `stress_recompressed` | 300 | 0 | 0.00% | 100.00% |
## Intended use
+57 -57
View File
@@ -2,7 +2,7 @@
"claim": "abstaining 10-provider source-pipeline classification with version subfamily attribution; not SynthID detection",
"schema": "multi-provider-source-v3",
"artifact_file": "multi-provider-source-v3.npz",
"artifact_sha256": "e5264354edb0109461e3c4988e3267903a8a2a0648b05e81705dee298be97806",
"artifact_sha256": "f7f5da50edccc264f3a326208abc4fc6f36b7e085f0fc0507dff4b4f260d21b3",
"feature_dimension": 956,
"stacked_stage2_dimension": 999,
"classes": [
@@ -19,51 +19,51 @@
"unknown"
],
"corpus_counts": {
"total": 40974,
"train": 25790,
"calibration": 6708,
"test": 8476
"total": 40057,
"train": 25180,
"calibration": 6595,
"test": 8282
},
"locked_internal_test": {
"n": 8476,
"unknown_specificity": 0.9968253968253968,
"unknown_fpr": 0.0031746031746031746,
"photo_fpr": 0.0036646816307833257,
"structured_fpr": 0.0027014858171994597,
"aggregate_target_recall": 0.5329562223315298,
"n": 8282,
"unknown_specificity": 0.9977678571428571,
"unknown_fpr": 0.002232142857142857,
"photo_fpr": 0.004580852038479157,
"structured_fpr": 0.0,
"aggregate_target_recall": 0.567859021567596,
"recall": {
"openai": 0.650087260034904,
"google": 0.5606936416184971,
"bytedance": 0.48247978436657685,
"flux": 0.41216216216216217,
"stable_diffusion": 0.4811083123425693,
"meta": 0.776595744680851,
"midjourney": 0.5454545454545454,
"ideogram": 0.3472222222222222,
"firefly": 0.21686746987951808,
"xai": 0.14583333333333334
"openai": 0.6518324607329843,
"google": 0.6233140655105973,
"bytedance": 0.5013477088948787,
"flux": 0.4337837837837838,
"stable_diffusion": 0.5714285714285714,
"meta": 0.7872340425531915,
"midjourney": 0.6753246753246753,
"ideogram": 0.4027777777777778,
"firefly": 0.2289156626506024,
"xai": 0.16666666666666666
},
"precision": {
"openai": 0.9662775616083009,
"google": 0.9748743718592965,
"bytedance": 0.988950276243094,
"flux": 0.9775641025641025,
"stable_diffusion": 0.9597989949748744,
"meta": 0.948051948051948,
"midjourney": 0.84,
"ideogram": 0.78125,
"firefly": 0.8571428571428571,
"xai": 0.7777777777777778
"openai": 0.9713914174252276,
"google": 0.9743975903614458,
"bytedance": 0.9893617021276596,
"flux": 0.963963963963964,
"stable_diffusion": 0.8837209302325582,
"meta": 0.925,
"midjourney": 0.7027027027027027,
"ideogram": 0.725,
"firefly": 1.0,
"xai": 0.7272727272727273
},
"real_variety_specificity": {
"photo": 0.9963353183692167,
"photo_retouched": 0.9968847352024922,
"photo": 0.9954191479615209,
"photo_retouched": 1.0,
"classical_inpaint": 1.0,
"digital_art": 0.9977324263038548,
"game_art": 0.9923664122137404,
"digital_art": 1.0,
"game_art": 1.0,
"vector": 1.0,
"interface": 0.9941520467836257,
"diagram": 0.9897959183673469,
"interface": 1.0,
"diagram": 1.0,
"chart_data_viz": 1.0,
"technical_architecture": 1.0,
"procedural_graphic": 1.0,
@@ -71,21 +71,21 @@
"gov_scientific_doc": 1.0,
"receipt_invoice": 1.0,
"print_publishing": 1.0,
"stress_recompressed": 0.9902912621359223,
"stress_recompressed": 1.0,
"foreign_ai": 1.0
}
},
"external_blind_selective_v8_real_varieties": {
"total_evaluated": 2267,
"total_false_positives": 8,
"overall_fpr": 0.0035288928098808998,
"overall_specificity": 0.9964711071901191,
"total_false_positives": 3,
"overall_fpr": 0.0013233348037053375,
"overall_specificity": 0.9986766651962946,
"per_variety": {
"photo": {
"evaluated": 450,
"false_positives": 3,
"fpr": 0.006666666666666667,
"specificity": 0.9933333333333333
"false_positives": 2,
"fpr": 0.0044444444444444444,
"specificity": 0.9955555555555555
},
"vector": {
"evaluated": 332,
@@ -95,9 +95,9 @@
},
"game_art": {
"evaluated": 230,
"false_positives": 4,
"fpr": 0.017391304347826087,
"specificity": 0.9826086956521739
"false_positives": 1,
"fpr": 0.004347826086956522,
"specificity": 0.9956521739130435
},
"interface": {
"evaluated": 342,
@@ -119,21 +119,21 @@
},
"stress_recompressed": {
"evaluated": 300,
"false_positives": 1,
"fpr": 0.0033333333333333335,
"specificity": 0.9966666666666667
"false_positives": 0,
"fpr": 0.0,
"specificity": 1.0
}
}
},
"stage2_version_accuracy": {
"openai": 0.868237347294939,
"google": 0.9479768786127167,
"bytedance": 0.8787061994609164,
"flux": 0.9283783783783784,
"stable_diffusion": 0.853904282115869,
"openai": 0.8760907504363001,
"google": 0.9499036608863198,
"bytedance": 0.9002695417789758,
"flux": 0.9283783783783783,
"stable_diffusion": 0.9172932330827067,
"midjourney": 0.961038961038961,
"ideogram": 0.5972222222222222,
"ideogram": 0.6111111111111112,
"firefly": 1.0,
"xai": 0.6458333333333334
"xai": 0.6875
}
}
@@ -1,7 +1,7 @@
"""Generated C2PA soft-binding registry; do not edit by hand.
Source: https://raw.githubusercontent.com/c2pa-org/softbinding-algorithm-list/main/softbinding-algorithm-list.json
Revision: d5960248ab69c17dc194906d2ef7d11ad164be70
Revision: 258694702b5628d35373182f5b334aa07b6df1ec
Source license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
Changes: validated, ordered, and reduced to fields used at runtime; descriptions
are shortened to their first sentence for display.
@@ -12,7 +12,7 @@ from __future__ import annotations
C2PA_SOFT_BINDING_SOURCE_URL = (
"https://raw.githubusercontent.com/c2pa-org/softbinding-algorithm-list/main/softbinding-algorithm-list.json"
)
C2PA_SOFT_BINDING_SOURCE_REVISION = "d5960248ab69c17dc194906d2ef7d11ad164be70"
C2PA_SOFT_BINDING_SOURCE_REVISION = "258694702b5628d35373182f5b334aa07b6df1ec"
C2PA_SOFT_BINDING_SOURCE_LICENSE = "CC BY 4.0"
C2PA_SOFT_BINDING_ROWS: tuple[
@@ -643,4 +643,40 @@ C2PA_SOFT_BINDING_ROWS: tuple[
(),
False,
),
(
55,
"com.adobe.trustmark.F",
"watermark",
("image",),
(),
"Adobe FiLMCAM Conditional Access Watermarking / Trustmark variant F",
"2026-10-14T14:00:00.000Z",
(),
False,
),
(
56,
"com.quatvision.quatmark.1",
"watermark",
("image",),
("image/jpeg", "image/png", "image/tiff", "image/webp"),
"QuatMark keyed invisible image watermark",
"2026-10-16T00:00:00.000Z",
(),
False,
),
(
60,
"studio.aidr.silentcipher.1",
"watermark",
("audio",),
("audio/wav",),
(
"AIDR Studio deployment of Sony Research's open SilentCipher 44.1 kHz audio watermark "
"(silentcipher 1.0.5, MIT), used without retraining"
),
"2026-10-28T00:00:00.000Z",
("https://aidr.studio/api/c2pa/v1",),
False,
),
)
+1 -1
View File
@@ -77,7 +77,7 @@ WEIGHTS_ENV = "RAIW_SOURCE_CLASSIFY_WEIGHTS"
WEIGHTS_REPO = "wiltodelta/raiw-source-classify"
WEIGHTS_REVISION = "24a03264ae157ec0d18f8b7215b33df7a403ca01"
MODEL_FILE = "multi-provider-source-v3.npz"
MODEL_SHA256 = "e5264354edb0109461e3c4988e3267903a8a2a0648b05e81705dee298be97806"
MODEL_SHA256 = "f7f5da50edccc264f3a326208abc4fc6f36b7e085f0fc0507dff4b4f260d21b3"
MODEL_SCHEMA = "multi-provider-source-v3"
SOURCE_CLASSIFY_EXTRA = "'remove-ai-watermarks[source-classify]'"
+2 -1
View File
@@ -84,7 +84,7 @@ def test_official_source_is_fetched_through_its_resolved_revision(monkeypatch: p
def test_packaged_snapshot_preserves_published_resolution_apis():
"""Guard the resolution-API subset the runtime deliberately never calls.
Eight algorithms publish ``softBindingResolutionApis`` today. The runtime
Nine algorithms publish ``softBindingResolutionApis`` today. The runtime
resolves nothing over the network by design (see
docs/c2pa-resolution-research.md for the contracts and the product
decision); this guard keeps the packaged snapshot honest about what the
@@ -100,6 +100,7 @@ def test_packaged_snapshot_preserves_published_resolution_apis():
"me.deepmark.audio.vigil.128": ("https://resolution-api.deepmark.me",),
"io.blockfact.audio.watermark.32": ("https://api.blockfact.io/api/soft-binding/v1",),
"com.joinmonolith.sha256": ("https://api.joinmonolith.com/api/c2pa",),
"studio.aidr.silentcipher.1": ("https://aidr.studio/api/c2pa/v1",),
}
packaged = {entry.algorithm: entry.resolution_apis for entry in C2PA_SOFT_BINDING_REGISTRY}