I-036Vision Transformer (ViT) Detection

Sensor Forensicsimage2022

Uses Vision Transformer architecture to capture long-range dependencies in images. ViT excels at detecting subtle global patterns that CNNs may miss in AI-generated content.

ViT-Base/16 + Attention Map Analysis
Divides the image into 16x16 patches and processes them through a Vision Transformer encoder with multi-head self-attention. The attention mechanism captures long-range dependencies and global patterns across the entire image. The [CLS] token output feeds into a classification head for real/AI determination.
Patch size: 16x16, Hidden dim: 768, Attention heads: 12, Layers: 12, Input: 224x224, Classification: MLP head on [CLS] token
High - 88-94% with strong cross-generator generalization
• Captures global image context through self-attention
• Excellent cross-generator generalization

• Attention maps provide interpretability

• Scales well with larger datasets
• Requires significant computational resources
• Large model size and memory footprint

• Needs large training datasets for optimal performance

• Patch-based approach may miss sub-patch artifacts
Detecting AI-generated content using global attention patterns that capture both local and long-range artifacts