CoolFace
Datasetpublic

yishiliu/Ivy-Fake

IVY-FAKE: Unified Explainable Benchmark and Detector for AIGC Content This repository provides the official implementation of IVY-FAKE and IVY-xDETECTOR, a unified explainable framework and benchmark for detecting AI-generated content (AIGC) across both images and videos. πŸ” Overview IVY-FAKE is the first large-scale dataset designed for multimodal explainable AIGC detection. It contains: 150K+ training samples (images + videos) 18.7K evaluation samples… See the full description on the dataset page: https://huggingface.co/datasets/yishiliu/Ivy-Fake.

sourceHugging Faceapache-2.0updated 10mo agoView on Hugging Face
0likes297downloads
Dataset Card

IVY-FAKE: Unified Explainable Benchmark and Detector for AIGC Content

![Paper](https://openreview.net/attachment?id=RIBj1KPAWM&name=pdf) ![Hugging Face Datasets](https://huggingface.co/datasets/AI-Safeguard/Ivy-Fake) ![GitHub Code](https://github.com/Pi3AI/IvyFake) ![License: CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)

[image]

This repository provides the official implementation of IVY-FAKE and IVY-xDETECTOR, a unified explainable framework and benchmark for detecting AI-generated content (AIGC) across both images and videos.


πŸ” Overview

IVY-FAKE is the first large-scale dataset designed for multimodal explainable AIGC detection. It contains:

  • β€”150K+ training samples (images + videos)
  • β€”18.7K evaluation samples
  • β€”Fine-grained annotations including:
  • β€”Spatial and temporal artifact analysis
  • β€”Natural language reasoning (<think>...</think>)
  • β€”Binary labels with explanations (<conclusion>real/fake</conclusion>)

IVY-xDETECTOR is a vision-language detection model trained to:

  • β€”Identify synthetic artifacts in images and videos
  • β€”Generate step-by-step reasoning
  • β€”Achieve SOTA performance across multiple benchmarks

πŸ“¦ Evaluation

bash
conda create -n ivy-detect python=3.10
conda activate ivy-detect

# Install dependencies
pip install -r requirements.txt

πŸš€ Evaluation Script

We provide an evaluation script to test large language model (LLM) performance on reasoning-based AIGC detection.

πŸ”‘ Environment Variables

Before running, export the following environment variables:

bash
export OPENAI_API_KEY="your-api-key"
export OPENAI_BASE_URL="https://api.openai.com/v1"  # or OpenAI's default base URL

▢️ Run Evaluation

bash
python eva_scripts.py \
  --eva_model_name gpt-4o-mini \
  --res_json_path ./error_item.json

This script compares model predictions (<conclusion>real/fake</conclusion>) to the ground truth and logs mismatches to error_item.json.


πŸ§ͺ Input Format

The evaluation script res_json_path accepts a JSON array (Dict in List) where each item has:

json
{
  "rel_path": "relative/path/to/file.mp4",
  "label": "real or fake",
  "raw_ground_truth": "<think>...</think><conclusion>fake</conclusion>",
  "infer_result": "<think>...</think><conclusion>real</conclusion>"
}
  • β€”label: ground truth
  • β€”rawgroundtruth: reasoning by gemini2.5 pro
  • β€”infer_result: model reasoning and prediction

Example file: ./evaluate_scripts/error_item.json