Temporal Evidence-Guided Multiset-Preserving Reallocation for Cross Domain Weakly Supervised Video Anomaly Localization
Abstract
Cross-domain weakly supervised video anomaly localization may fail even when a detector produces useful anomaly evidence, because high anomaly scores can be attached to the wrong temporal segments. This failure mode is studied through TEMRAL, a deterministic post-inference procedure for frozen weakly supervised detectors. TEMRAL measures local changes between neighboring segment representations, combines this evidence with the original detector score to rank temporal positions, and then reassigns the original scores according to that ranking. The score multiset for each video is preserved exactly at the detector's native temporal resolution; the method therefore cannot create larger scores, recalibrate the output distribution, or introduce additional anomaly evidence. Configuration selection uses only UCF Crime validation data and is fixed before transfer. In experiments from UCF Crime to ShanghaiTech, TEMRAL improves frame level ROC AUC and average precision for mean, top k, and attention multiple instance learning detectors using both I3D and R3D representations. All thirty model seed evaluations improve on both metrics, with AUC gains between 0.0302 and 0.0569 and average precision gains between 0.0068 and 0.0131. The unchanged configuration also improves precision recall AUC and ROC AUC in all fifteen evaluations on XD Violence. Clustered bootstrap analysis and controls based on temporal smoothing and random score permutations support the interpretation that temporal score misallocation contributes to cross domain localization error and can sometimes be corrected without retraining or target domain adaptation. Additional diagnostic analyses reveal partial source-selection stability, substantial score displacement, and sensitivity to temporal boundary handling; these delimit the interpretation of the observed gains.