license, library_name, pipeline_tag, tags
| license | library_name | pipeline_tag | tags | |||
|---|---|---|---|---|---|---|
| apache-2.0 | numpy | image-classification |
|
RAIW multi-provider source-pipeline classifier (multi-provider-source-v3)
This repository contains the pickle-free (allow_pickle=False) derivative weights for the abstaining remove-ai-watermarks pixel source-pipeline classifier across 10 AI provider families (openai, google, bytedance, flux, stable_diffusion, meta, midjourney, ideogram, firefly, xai) plus unknown (classify_source / remove-ai-watermarks classify-source).
This model is not a SynthID detector and does not decode or verify any cryptographic or invisible watermark payload (watermark_truth="unknown"). Its labels describe complete generation and export pixel pipelines, so renderer, geometry, encoding, post-processing, and watermark state may be confounded. unknown does not mean that SynthID is absent, and a provider label does not prove that SynthID is present.
Model architecture
- Input (
956-d):124-dspatial opponent-residual and gradient forensic features (extract_124d).768-dphase-free16x16log-power and radial spectral features (source_spectral).64-ddirectional / block-boundary (8x8and16x16) / chroma-aliasing / azimuthal-anisotropy features (augment_892d_to_956d).
- Stage 1 (
54primary specialist units +366auxiliary hard-margin subfamily, codec-recompression, cross-AI disambiguator, and domain-veto hinge descriptors across10canonical providers):10global provider specialists +44subfamily and codec/export-regime specialists (37active), each combining a block-diagonal MLP Soup (including 3-seed joint multi-task54-unit shared-trunk MLP blocks), a vectorized fixed-depthHistGradientBoostingtree ensemble, and a distilledExtraTrees -> MLPstudent with calibration-reoptimized distilled blend weights (w_e <= 0.25), pooled via drift-bounded zero-inflation subfamily blending across 16 real-image varieties, refined by a Wave-11 Stage-1.5 2-knot zero-inflated hinge meta-router (router_meta_tau,router_meta_w) incorporating expanded-corpus 3-component hybrid (MLP Soup + HGB + Distilled ExtraTrees-MLP), pure-channel (onlyhgb,onlymlp,onlyet), cross-AI disambiguator, and real-domain veto specialists, and routed by a unified damped competitive margin (gamma = 0.60).
- Stage 2 (
9stacked version heads,1376-d):- Feature-subsampled vectorized
HistGradientBoostingtree ensembles (including multi-seed/multi-depth forest soups onopenai,google,flux,midjourney,ideogram,bytedance, andstable_diffusion) taking the956-dfeatures (and Stage-1 unit log-odds scores) to predict the canonical model/export subfamily (version_subfamily).
- Feature-subsampled vectorized
- Artifact:
multi-provider-source-v3.npz(allow_pickle=False) - SHA-256:
9cc657037074e79e964ba446e169591e3dda781e927674df55daf9c227d2bc6b
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 (90,079 clean audited samples; 10,586 locked test)
The operating point was selected on a disjoint 8,365-image calibration split across 16 fine-grained real-image varieties and group-locked (parent_sha256) native, light-JPEG, and heavy-JPEG/resize views. On the 10,586-image locked test split (4,539 multi-variety unknown negatives + 6,047 AI provider images including preprocessed social/JPEG derivatives):
- Unified 10-provider router:
99.52%unknownspecificity (0.48%testunknownFPR;0.69%photographic FPR and0.30%non-photographic structured FPR across all 15 non-photo varieties),56.67%aggregate target recall across native (63.43%) and recompressed (22.39%) test views (97.22%provider accuracy among classified AI;96.62%overall precision when firing), and0.9514binary ROC-AUC /0.9640PR-AUC on the monotonicconfidencescore (_sigmoid_scalar(excess[best_cls])).
| Provider | Test count | Standalone ROC AUC | Router recall | Router precision | Stage-2 version accuracy |
|---|---|---|---|---|---|
openai |
1,478 | 0.9693 | 67.8% | 97.0% | 86.5% |
google |
1,382 | 0.9713 | 68.5% | 96.4% | 93.2% |
bytedance |
389 | 0.9565 | 59.1% | 99.6% | 90.0% |
flux |
1,357 | 0.9309 | 40.6% | 96.3% | 87.0% |
stable_diffusion |
955 | 0.9640 | 49.4% | 96.7% | 86.8% |
meta |
94 | 0.9797 | 78.7% | 96.1% | — (meta:imagine) |
midjourney |
123 | 0.9565 | 45.5% | 94.9% | 90.2% |
ideogram |
118 | 0.9307 | 30.5% | 94.7% | 65.3% |
firefly |
103 | 0.9193 | 46.6% | 87.3% | 100.0% |
xai |
48 | 0.9416 | 25.0% | 92.3% | 72.9% |
Held-out real-image specificity by variety (4,539 test negatives across 16 real classes + foreign AI)
| Real-image variety | Test count | False positives | False-positive rate | Specificity |
|---|---|---|---|---|
photo |
2,183 | 15 | 0.69% | 99.31% |
photo_retouched |
339 | 1 | 0.29% | 99.71% |
classical_inpaint |
17 | 0 | 0.00% | 100.00% |
digital_art |
441 | 1 | 0.23% | 99.77% |
game_art |
174 | 0 | 0.00% | 100.00% |
vector |
135 | 1 | 0.74% | 99.26% |
interface |
180 | 0 | 0.00% | 100.00% |
diagram |
98 | 1 | 1.02% | 98.98% |
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% |
document |
165 | 0 | 0.00% | 100.00% |
gov_scientific_doc |
32 | 0 | 0.00% | 100.00% |
receipt_invoice |
181 | 0 | 0.00% | 100.00% |
print_publishing |
229 | 1 | 0.44% | 99.56% |
stress_recompressed |
103 | 2 | 1.94% | 98.06% |
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): 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 | 2 | 0.44% | 99.56% |
vector |
332 | 0 | 0.00% | 100.00% |
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 | 0 | 0.00% | 100.00% |
Intended use
Install remove-ai-watermarks[source-classify] and call the explicit Python API classify_source(path) or CLI command remove-ai-watermarks classify-source <IMAGE>. identify does not run this model. Set RAIW_SOURCE_CLASSIFY_WEIGHTS to the .npz file or its parent directory for offline deployments.