Release CaDet weights
Browse files- README.md +94 -0
- seed0/artifact_path.safetensors +3 -0
- seed0/calibration.json +18 -0
- seed0/semantic_path.safetensors +3 -0
- seed1/artifact_path.safetensors +3 -0
- seed1/calibration.json +18 -0
- seed1/semantic_path.safetensors +3 -0
- seed2/artifact_path.safetensors +3 -0
- seed2/calibration.json +18 -0
- seed2/semantic_path.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: dinov3-license
|
| 4 |
+
license_link: https://ai.meta.com/resources/models-and-libraries/dinov3-license/
|
| 5 |
+
library_name: vae-rhythm
|
| 6 |
+
pipeline_tag: video-classification
|
| 7 |
+
tags:
|
| 8 |
+
- ai-generated-video-detection
|
| 9 |
+
- synthetic-video-detection
|
| 10 |
+
- video-forensics
|
| 11 |
+
- dinov3
|
| 12 |
+
base_model: facebook/dinov3-vitl16-pretrain-lvd1689m
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# CaDet: AI-generated video detector (VAE Rhythm)
|
| 16 |
+
|
| 17 |
+
<p align="center"><img src="https://raw.githubusercontent.com/showlab/vae-rhythm/main/assets/teaser.webp" width="70%" alt="A 4x causal VAE decodes frames in groups, and the phase scan reads the resulting periodic trace"></p>
|
| 18 |
+
|
| 19 |
+
CaDet is the detector of the paper **VAE Rhythm: Temporal Decoding Traces for AI-Generated Video Detection**
|
| 20 |
+
([paper](https://arxiv.org/abs/2611.21114), [code](https://github.com/showlab/vae-rhythm), [project page](https://showlab.github.io/vae-rhythm/)).
|
| 21 |
+
|
| 22 |
+
It attaches two parameter-efficient paths to one frozen **DINOv3 ViT-L/16** and reads 8 frames per clip:
|
| 23 |
+
|
| 24 |
+
* **Artifact path** — LoRA (rank 16) on the attention qkv projections, trained on AIGVDBench plus **VAE pairs**
|
| 25 |
+
(real clips and copies that differ only by one video-VAE round trip). One forward pass feeds a generic head
|
| 26 |
+
(both pair members counted real) and an artifact head on blocks 8 / 12 / 16 (VAE copies counted generated).
|
| 27 |
+
* **Semantic path** — Effort-style tuning of the smallest singular component of each of the 96 attention
|
| 28 |
+
projections plus a 2-way head, trained on AIGVDBench only.
|
| 29 |
+
|
| 30 |
+
The video score is the sum of both paths after standardising each on AIGVDBench validation real videos.
|
| 31 |
+
It is a z-score sum (≈ 0 for typical real videos, larger = more likely generated), **not a probability**.
|
| 32 |
+
|
| 33 |
+
## Files
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
seed0/ seed1/ seed2/ three training seeds (the paper reports their mean)
|
| 37 |
+
artifact_path.safetensors LoRA adapters + both heads (≈ 16 MB)
|
| 38 |
+
semantic_path.safetensors rank-one SVD residuals + 2-way head (≈ 0.8 MB)
|
| 39 |
+
calibration.json head and fusion statistics from AIGVDBench validation reals
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
The DINOv3 backbone weights are not included; `timm` downloads them (`vit_large_patch16_dinov3.lvd1689m`)
|
| 43 |
+
after you accept the DINOv3 license on Hugging Face.
|
| 44 |
+
|
| 45 |
+
## Usage
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
pip install "vae-rhythm[cadet] @ git+https://github.com/showlab/vae-rhythm"
|
| 49 |
+
hf download Jack97/CaDet --local-dir checkpoints/cadet
|
| 50 |
+
vae-rhythm predict my_video.mp4 --weights checkpoints/cadet/seed0
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
from vae_rhythm.cadet.detector import CaDet
|
| 55 |
+
det = CaDet("checkpoints/cadet/seed0") # needs a CUDA GPU (about 3 GB)
|
| 56 |
+
print(det.score_video("my_video.mp4")) # {'score': ..., 'z_semantic': ..., 'z_artifact': ...}
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
Frames 0, 4, …, 28 of the clip are centre-cropped to a square and resized to 256 × 256 (JPEG q95), as in
|
| 60 |
+
training. Clips shorter than 29 frames are padded by repeating frames uniformly.
|
| 61 |
+
|
| 62 |
+
## Results (AUROC %, mean of 3 seeds)
|
| 63 |
+
|
| 64 |
+
Trained only on AIGVDBench's Open-Sora and real clips (plus VAE pairs for the artifact path); all other
|
| 65 |
+
generators are unseen.
|
| 66 |
+
|
| 67 |
+
| AIGVDBench 20 open | 19 unseen open | 11 closed | 2026 closed (MiniMax H3, Seedance 2.0 / 2.5) | DF26 all | DF26 open | DF26 closed | DF26 paired 2AFC |
|
| 68 |
+
|---|---|---|---|---|---|---|---|
|
| 69 |
+
| 93.9 | 93.6 | 95.8 | 88.3 | 78.5 | 78.2 | 79.0 | 87.8 |
|
| 70 |
+
|
| 71 |
+
Adding the training-free VAE Rhythm plug-in (phase scan, see the code repository) raises DF26 further.
|
| 72 |
+
|
| 73 |
+
## Intended use and limitations
|
| 74 |
+
|
| 75 |
+
Research on AI-generated video detection and as one piece of evidence in media verification. Do not use the
|
| 76 |
+
score alone to make consequential decisions about a person or a video.
|
| 77 |
+
|
| 78 |
+
* Operating points must be chosen on real videos from the deployment domain; the score distribution of real
|
| 79 |
+
videos shifts across sources (in the paper, swapping the real source lowers AUROC for every trained detector).
|
| 80 |
+
* Heavily re-encoded, very short, very low-resolution or edited videos are harder; performance on generators
|
| 81 |
+
released after the training data is not guaranteed.
|
| 82 |
+
* Trained on AIGVDBench (real clips from OpenVid) — content outside that distribution (e.g. talking-head
|
| 83 |
+
livestreams, screen recordings) has not been characterised.
|
| 84 |
+
|
| 85 |
+
## Citation
|
| 86 |
+
|
| 87 |
+
```bibtex
|
| 88 |
+
@article{sun2026vaerhythm,
|
| 89 |
+
title = {VAE Rhythm: Temporal Decoding Traces for AI-Generated Video Detection},
|
| 90 |
+
author = {Sun, Ke and Li, Shuwei and Mei, Haiyang and Shou, Mike Zheng},
|
| 91 |
+
journal = {arXiv preprint arXiv:2611.21114},
|
| 92 |
+
year = {2026}
|
| 93 |
+
}
|
| 94 |
+
```
|
seed0/artifact_path.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e5926567d4e2629eebbf1520e03f7c9f70f762542ecf5d84f22dbd5bf760000
|
| 3 |
+
size 15815640
|
seed0/calibration.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"heads": {
|
| 3 |
+
"A_mean": -15.449960708618164,
|
| 4 |
+
"A_std": 0.46868079900741577,
|
| 5 |
+
"B_mean": -7.197856903076172,
|
| 6 |
+
"B_std": 1.680525302886963
|
| 7 |
+
},
|
| 8 |
+
"fusion": {
|
| 9 |
+
"sem": [
|
| 10 |
+
-14.013884720023306,
|
| 11 |
+
3.7195352257575425
|
| 12 |
+
],
|
| 13 |
+
"art": [
|
| 14 |
+
5.737409573403814e-07,
|
| 15 |
+
1.451358386732505
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
seed0/semantic_path.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da49bd2b7f589d38ff4646227d00ce6cc3237b4ccd0c9261df5d2909967c81f8
|
| 3 |
+
size 825232
|
seed1/artifact_path.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:532b8b4e405c9bc6a210641372a571dce25de156d37632eaee247cddc2ce04c1
|
| 3 |
+
size 15815640
|
seed1/calibration.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"heads": {
|
| 3 |
+
"A_mean": -15.382038116455078,
|
| 4 |
+
"A_std": 0.4785137176513672,
|
| 5 |
+
"B_mean": -7.1301774978637695,
|
| 6 |
+
"B_std": 1.8310877084732056
|
| 7 |
+
},
|
| 8 |
+
"fusion": {
|
| 9 |
+
"sem": [
|
| 10 |
+
-13.272727541282695,
|
| 11 |
+
3.44871243186383
|
| 12 |
+
],
|
| 13 |
+
"art": [
|
| 14 |
+
-9.203284333345607e-07,
|
| 15 |
+
1.4722445721778474
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
seed1/semantic_path.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70513b86dd91fdcf8ce3b589957cf89cb81db94a438c688e06b34798850938d7
|
| 3 |
+
size 825232
|
seed2/artifact_path.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59389e3d4fbca259db02478fb6bd1bdfd5c45a63b9690ffdc64c5095e42f22ce
|
| 3 |
+
size 15815640
|
seed2/calibration.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"heads": {
|
| 3 |
+
"A_mean": -14.487720489501953,
|
| 4 |
+
"A_std": 0.7342410087585449,
|
| 5 |
+
"B_mean": -7.808417797088623,
|
| 6 |
+
"B_std": 1.8873194456100464
|
| 7 |
+
},
|
| 8 |
+
"fusion": {
|
| 9 |
+
"sem": [
|
| 10 |
+
-12.161328036515528,
|
| 11 |
+
3.4221978211048496
|
| 12 |
+
],
|
| 13 |
+
"art": [
|
| 14 |
+
-8.378016333333941e-07,
|
| 15 |
+
1.4093650313167128
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
seed2/semantic_path.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7419690d4b86e818b47287f470fc6cb3bd037cbc379aa67803969434d3d4227
|
| 3 |
+
size 825232
|