# CARVE: Counterfactual Video Editing for Auditing and Hardening Video Detectors

*Wei Zhou, Chenyiming Chen, Xu Jinwei, Yang zhou, Quan Gan, Li Yang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151526) · [OpenReview](https://openreview.net/forum?id=a0f5OM9rop) · [Open on the map](../papers.html#p151526)

Category: [Video Understanding & Generation](../pcat/3.md) › [AI-Generated Video Detection](../pgroup/648.md) · Type: new method · Keywords: counterfactual video editing, video detector auditing, robustness evaluation, environment-event disentanglement, CCTV accident detection

Areas: [Safety & Security](../areas/safety.md) › Adversarial Security › Synthetic Media Detection; [Evaluation & Benchmarks](../areas/evaluation.md) › Multimodal System Benchmarks › Video and image editing benchmarks; [Computer Vision & 3D](../areas/computer-vision.md) › Visual Diffusion and Restoration › Video Generation

## Summary
CARVE introduces a counterfactual video editing protocol that generates matched quartets to independently vary environment and event while holding other factors fixed, enabling robust auditing and hardening of video detectors.

## Explained to a 5-year-old
We make a special video that shows what would happen if the weather changed or the event changed, while keeping the camera and surroundings the same. This helps us see if a video detector really understands the event or just the background. We then use these special videos to teach the detector to be more careful and less fooled.

## Explained to a 5-year-old, longer
Imagine you have a robot that watches videos to spot accidents. Right now, the robot might think it sees an accident because the street is empty, not because there really is a crash. To help the robot learn better, we create a set of videos where we change only one thing at a time-like the weather or the accident itself-while keeping everything else exactly the same. We call these special videos a quartet. By looking at these quartets, we can tell if the robot is focusing on the accident or just on the background. We also use these quartets to train the robot, giving it extra hints to be more accurate and not get tricked by changes in lighting or camera angle. This way, the robot becomes smarter and more reliable for real-world safety monitoring.

## For a technical reader
The system generates a set of four videos per source clip, where environment and event factors are independently varied while camera pose, layout, and surrounding traffic remain constant. A layout-conditioned reference image guides video editing, and a three-layer filter (reference, objective, VLM-panel) ensures quality. An audit-driven training loop (CGAA-IC) samples weak factors based on brittleness metrics and adds purity, consistency, and faithfulness losses, improving detector performance without changing inference.

## Problem
Video detectors are often evaluated on observational splits where target events co-occur with environmental and capture factors, making it difficult to tell whether high performance reflects the event itself or surrounding conditions.

## Method
The approach creates a layout-conditioned reference image and then performs reference-guided video editing to generate a quartet of videos where environment and event are independently varied while other factors remain fixed. A three-layer filtering protocol (reference, objective, VLM-panel) selects valid quartets, and an audit-driven training scheme samples weak factors and adds purity, consistency, and faithfulness losses.

## Results
The audit shows that clean AUC does not predict robustness: a detector achieves 91.4% AUC on TAD but only 72.3% CPS on the night condition. Using the audit-driven training improves purity from 84.2% to 89.9% and raises cross-dataset average AUC from 80.3% to 84.5%.

## Contributions
A counterfactual video editing protocol that generates matched quartets for independent environment and event manipulation, an audit framework that provides thresholded and continuous diagnostics, and a training scheme that leverages measured brittleness to improve detector purity and robustness.

## Practical relevance
The protocol provides a systematic way to audit and harden video detectors used in safety-critical surveillance, ensuring performance is not driven by incidental environmental factors.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151526)
