Mert Onur Cakiroglu1 · Elham Buxton2 · Mehmet Dalkilic1 · Hasan Kurban3,* 1Indiana University Bloomington 2University of Illinois Springfield 3Hamad Bin Khalifa University *Corresponding author · Kurban Intelligence Lab
Quick start · Data · Toolkit guide · Leaderboard · Tau-Anchor · Citation
CivicBench tests detectors of AI-generated political video against the two attacks that matter in an election. An attacker can change each pixel of a fake by a gray level or two, so that the detector passes it as real (evasion). The same small change can make the detector flag real footage as generated (framing). Anyone who wants to dismiss a real video can then point to the detector's verdict.
CivicBench measures both, on clips that can be shared, and one command runs it on your own detector.
pip install civicbench # core: numpy and torch pip install "civicbench[data]" # + loading from Hugging Face pip install "civicbench[fancy]" # + the rich progress display Python 3.10 or newer.
import civicbench clips = civicbench.load() # official test inputs and labels results = civicbench.evaluate(my_detector, clips) # AUC, TPR, evasion and framing at 1, 2 and 4 gray levels Or from the command line, at any budgets:
civicbench evaluate --detector my_lab.detector:build --budgets 1,2,4,8,16 --out results.json
Output of examples/demo_toy.py: a toy detector on synthetic clips, so the numbers carry no meaning. It runs in under a minute with no downloads.
A detector is any callable that maps frames to one score.
The toolkit guide covers single-clip attacks, custom budgets, the survival prediction and every difference from the paper's code.
One open dataset, kurbanintelligencelab/CivicBench, with no login and no form.
Each real clip lists its creator, license, source page, start time and the changes we made. The official test input is 11 frames of 512 x 512 per clip, stored as lossless PNG with checksums.
CivicBench at the threshold that flags 5% of real clips. Evasion is the TPR under attack, higher is better. Framing is the false-alarm rate on attacked real clips, lower is better. Budgets are in gray levels on the 0 to 255 scale.
Sorted by TPR under evasion at 2 gray levels, then at 1, then by AUC. The paper adds confidence intervals, two general benchmarks and external political footage. To add a detector, open a pull request with the results.json that civicbench evaluate --out writes.
Tau-Anchor is the detector from the paper. It fine-tunes an image encoder that was pre-trained on attacked images, attacks real and generated clips during training, and adds a margin term for the fakes nearest its deployed threshold. Its code, exact training recipe and model card are in tau_anchor/. The weights are on Hugging Face at kurbanintelligencelab/Tau-Anchor.
src/civicbench/ the pip package: load, attack, evaluate, predict_survival, CLI tests/ unit tests and a golden test against the paper's attack code examples/ demo_toy.py, a one-minute end-to-end run with no downloads tau_anchor/ Tau-Anchor training and inference docs/ toolkit guide and assets Responsible use The release contains no attacked real clips, and thus no ready-made forgeries of real footage. The generated clips show invented people. If a clip resembles a real person, report it through the contact on the dataset card and we will remove it.
@misc{cakiroglu2026civicbench, title = {CivicBench: Robust Detection of AI-Generated Political Video}, author = {Cakiroglu, Mert Onur and Buxton, Elham and Dalkilic, Mehmet and Kurban, Hasan}, year = {2026} } License The code is released under the Apache License 2.0. The data follow the licenses in the table above and on each dataset card. Generated clips also follow the terms of the generator that rendered them.
We thank the creators of the openly licensed footage, credited clip by clip in the dataset, and the developers of CogVideoX1.5, HunyuanVideo-1.5, Kandinsky 5, LTX-Video, Mochi, SANA-Video, Wan2.1 and Wan2.2.
Author: Mert Onur Cakiroglu, Elham Buxton, Mehmet Dalkilic, Hasan Kurban
Both files in this release have provenance metadata.
data fancy test tau-anchor tau-anchor-train
video deepfake detection adversarial robustness benchmark generated video
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 22, 2026 2 release files Full provenance




