[论文解读] Text Prompt with Normality Guidance for Weakly Supervised Video Anomaly Detection
该论文提出TPWNG,一种新颖的弱监督视频异常检测框架,通过可学习文本和正常性提示利用CLIP的视觉-语言对齐能力生成精确伪标签,同时采用时间上下文自适应学习模块建模可变长度事件依赖关系。该方法在性能上达到最先进水平,在UCF-Crime数据集上AUC提升2.36%,在XD-Violence数据集上AP提升2.36%。
Weakly supervised video anomaly detection (WSVAD) is a challenging task. Generating fine-grained pseudo-labels based on weak-label and then self-training a classifier is currently a promising solution. However, since the existing methods use only RGB visual modality and the utilization of category text information is neglected, thus limiting the generation of more accurate pseudo-labels and affecting the performance of self-training. Inspired by the manual labeling process based on the event description, in this paper, we propose a novel pseudo-label generation and self-training framework based on Text Prompt with Normality Guidance (TPWNG) for WSVAD. Our idea is to transfer the rich language-visual knowledge of the contrastive language-image pre-training (CLIP) model for aligning the video event description text and corresponding video frames to generate pseudo-labels. Specifically, We first fine-tune the CLIP for domain adaptation by designing two ranking losses and a distributional inconsistency loss. Further, we propose a learnable text prompt mechanism with the assist of a normality visual prompt to further improve the matching accuracy of video event description text and video frames. Then, we design a pseudo-label generation module based on the normality guidance to infer reliable frame-level pseudo-labels. Finally, we introduce a temporal context self-adaptive learning module to learn the temporal dependencies of different video events more flexibly and accurately. Extensive experiments show that our method achieves state-of-the-art performance on two benchmark datasets, UCF-Crime and XD-Viole
研究动机与目标
- 为解决现有弱监督视频异常检测(WSVAD)方法仅依赖视觉模态、忽视文本知识的局限性。
- 通过利用对比语言-图像预训练(CLIP)实现文本-视频对齐,结合领域自适应的可学习文本提示,提升伪标签生成的准确性。
- 比固定范围的时间建模更灵活、准确地建模视频事件中可变长度的时间依赖关系。
- 将正常性引导整合到伪标签生成中,以增强帧级异常预测的可靠性。
提出的方法
- 使用三种损失函数微调CLIP:两个排名损失($L_{rank}^n$,$L_{rank}^a$)用于正常和异常视频-文本对齐,以及一个分布不一致性损失($L_{dil}$)以减少领域偏差。
- 引入可学习文本提示机制并结合正常性视觉提示,通过动态适应文本描述以匹配视频内容,提升文本-视频匹配的准确性。
- 设计基于正常性引导的伪标签生成模块,从视频帧与事件描述之间的相似度得分中推断出可靠的帧级伪标签。
- 提出时间上下文自适应学习(TCSAL)模块,通过自适应的自注意力感受野范围,建模不同持续时间事件的时间依赖关系。
- 在自训练流程中将基于CLIP的对齐头与TCSAL模块相结合,迭代优化伪标签并提升分类器性能。
- 采用对比学习框架并引入领域特定损失,无需帧级标注即可将预训练CLIP适配到视频异常检测领域。
实验结果
研究问题
- RQ1通过CLIP整合文本模态是否能提升弱监督视频异常检测中的伪标签生成准确性?
- RQ2可学习文本提示与正常性视觉提示如何增强视频事件描述与对应帧之间的对齐?
- RQ3自适应时间建模是否能优于固定感受野方法,在视频异常检测中捕捉多样化事件持续时间?
- RQ4通过自定义损失对CLIP进行领域自适应,在下游WSVAD任务中能多大程度上提升性能?
主要发现
- 所提出的TPWNG框架在UCF-Crime和XD-Violence数据集上均达到最先进性能,AUC分别为87.79%和AP分别为83.68%。
- 消融实验表明,三种损失函数($L_{rank}^n$,$L_{rank}^a$,$L_{dil}$)的组合性能最佳,其中$L_{rank}^a$带来最大的单个改进。
- 正常性引导(NG)模块使AUC提升1.96个百分点,AP提升2.36个百分点,证明其在优化伪标签方面的有效性。
- TCSAL模块优于TF-encoder、MTN和GL-MHSA模块,在AUC和AP上均取得最高值,证明其在建模可变长度时间依赖关系方面的优越性。
- 定性结果表明,模型在异常事件发生初期产生尖锐的异常分数峰值,并迅速回落至低分,显示出强大的检测灵敏度与精度。
- 完整消融实验(包含所有组件)在UCF-Crime上达到87.79%的AUC,在XD-Violence上达到83.68%的AP,显著优于不包含任何所提组件的基线模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。