TL;DR
ForensicZip is a training-free token pruning framework designed specifically for deepfake and forgery detection in Multimodal Large Language Models (MLLMs). By shifting from semantic-driven pruning to a forgery-driven approach using Birth-Death Optimal Transport and high-frequency spatial priors, it retains just 10% of visual tokens while maintaining state-of-the-art detection accuracy and delivering a $2.97\times$ inference speedup.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) have become powerful tools for multimedia forensics because they don't just output a binary "real or fake" verdict—they can generate detailed textual rationales explaining why an image or video looks manipulated. However, processing high-resolution images or long video streams creates a massive number of visual tokens. This causes a severe computational bottleneck during the prefilling stage due to the quadratic complexity of self-attention mechanisms.
While visual token pruning is a standard way to accelerate MLLMs, existing methods are almost entirely semantic-driven. They are designed to keep salient objects (like a person or a car) and discard "redundant" background regions.
The authors identify a fundamental forensic-semantic misalignment: key manipulation cues—such as high-frequency noise patterns, subtle blending seams, or transient temporal jitters—are usually weakly correlated with object semantics. They often reside in visually flat background areas or along edges. When standard semantic pruners compress the visual sequence, they inadvertently act as a low-pass filter, throwing away the exact forensic evidence the model needs to detect a forgery.
Methods
To bridge this gap, the authors introduce ForensicZip, a training-free, plug-and-play framework that reformulates token compression from a forgery-driven perspective. It consists of two main components:
- Transport Novelty Estimation (TNE): Instead of evaluating tokens independently, TNE tracks how tokens evolve across adjacent video frames. It models this as an unbalanced entropic Optimal Transport (OT) problem. Crucially, it introduces a slack dummy node into the cost matrix. If a generative artifact suddenly appears ("Birth") or vanishes ("Death") without a logical physical counterpart in the previous frame, the OT solver routes its mass through this dummy node at a fixed penalty. This prevents the anomaly from being smeared across real tokens and isolates it as a high-cost event.
- Forensic Scoring (FS) & Spatial Modulation: Temporal tracking alone can be fooled by normal camera movements like panning. To resolve this ambiguity, ForensicZip applies a spatial high-frequency prior using a fixed $3 \times 3$ Laplacian operator on the input frames. The final forensic score is a multiplication of the temporal anomaly score and this spatial frequency proxy. This acts as a soft "AND" gate: a token must exhibit both temporal discontinuity and high-frequency edge activity to be prioritized.
Finally, a physical Top-K selection is performed based on these joint scores, discarding the lowest-scoring tokens entirely to reduce the sequence length before it hits the large language model decoder.
Datasets
The authors comprehensively evaluated ForensicZip across several diverse dataset categories:
- Universal & AIGC Detection: FakeVLM (including the FakeClue and LOKI benchmarks), DMimage, FakeShield-AIGC, and SIDA (for social media imagery).
- DeepFake Forensics: DD-VQA (for artifact explanation), FakeShield-DeepFake, and DFFD (facial manipulation).
- Traditional Manipulation: FakeShield-PhotoShop (splicing and copy-move forgeries).
- Object Hallucination: Evaluated on the POPE benchmark to ensure the pruning didn't introduce negative reasoning biases.
Key Insights and Ideas
- The Anti-Semantic Nature of Forgeries: The paper maps out a clear inverse correlation between semantic saliency (where MLLM attention heads look) and forensic evidence intensity (ground-truth forgery masks). As shown in the spatial orthogonality analysis, attention heads focus heavily on object centers, while generative artifacts live on the periphery.
- The Necessity of Unbalanced Transport: Standard balanced optimal transport forces every token to find a match, which dilutes the localized forgery signal below practical detection thresholds. The introduction of a dummy node acts as a "trash can" for unmatchable mass, making physical discontinuities highly quantifiable.
- Dual-Domain Filtering Prevents False Positives: Relying purely on temporal motion flags legitimate camera panning as a forgery. Relying purely on spatial frequencies flags every sharp texture or static edge. Multiplying the two filters out these benign cases cleanly without requiring any model retraining.
Key Results
When compressing visual tokens down to an aggressive 10% retention ratio (discarding 90% of visual tokens), ForensicZip demonstrates massive efficiency gains with negligible performance loss:
- Speed and Efficiency: Achieves a $2.97\times$ end-to-end inference speedup and over a 90% reduction in FLOPs.
- Memory Savings: Drops peak GPU memory consumption from 26.7GB down to 19.8GB on a LLaVA-OV-7B backbone.
- Accuracy Retention: On the FakeClue benchmark, the unpruned "Vanilla" model scores 98.60% accuracy. At 10% token retention, ForensicZip maintains 97.74% accuracy. In contrast, leading semantic pruners like FastV and SparseVLM suffer a catastrophic performance collapse, dropping to near-random accuracy (~60.54% and ~65.82% respectively).
Limitations and Future Work
Not discussed in the paper.
Summary updated