Skip to main content
QUICK REVIEW

[论文解读] Follow the Rules: Reasoning for Video Anomaly Detection with Large Language Models

Yuchen Yang, Kwonjoon Lee|arXiv (Cornell University)|Jul 14, 2024
Anomaly Detection Techniques and ApplicationsComputer Science被引用 3
一句话总结

该论文提出 AnomalyRuler,一种新颖的基于规则的推理框架,用于视频异常检测(VAD),通过归纳-演绎流程利用大语言模型(LLMs)。仅使用少量正常参考帧即可归纳出领域特定规则,并将其应用于异常检测,AnomalyRuler 在无需全量微调的情况下实现了最先进性能,实现了快速、可信且可适应的部署,适用于多种真实世界 VAD 场景。

ABSTRACT

Video Anomaly Detection (VAD) is crucial for applications such as security surveillance and autonomous driving. However, existing VAD methods provide little rationale behind detection, hindering public trust in real-world deployments. In this paper, we approach VAD with a reasoning framework. Although Large Language Models (LLMs) have shown revolutionary reasoning ability, we find that their direct use falls short of VAD. Specifically, the implicit knowledge pre-trained in LLMs focuses on general context and thus may not apply to every specific real-world VAD scenario, leading to inflexibility and inaccuracy. To address this, we propose AnomalyRuler, a novel rule-based reasoning framework for VAD with LLMs. AnomalyRuler comprises two main stages: induction and deduction. In the induction stage, the LLM is fed with few-shot normal reference samples and then summarizes these normal patterns to induce a set of rules for detecting anomalies. The deduction stage follows the induced rules to spot anomalous frames in test videos. Additionally, we design rule aggregation, perception smoothing, and robust reasoning strategies to further enhance AnomalyRuler's robustness. AnomalyRuler is the first reasoning approach for the one-class VAD task, which requires only few-normal-shot prompting without the need for full-shot training, thereby enabling fast adaption to various VAD scenarios. Comprehensive experiments across four VAD benchmarks demonstrate AnomalyRuler's state-of-the-art detection performance and reasoning ability. AnomalyRuler is open-source and available at: https://github.com/Yuchen413/AnomalyRuler

研究动机与目标

  • 为解决现有视频异常检测(VAD)方法缺乏可解释性的问题,这些方法仅输出分数而无推理依据,从而削弱了在真实世界部署中的可信度。
  • 克服 LLM 中的一般世界知识与特定 VAD 应用需求之间的不匹配,例如在受限区域将“滑板”视为异常行为。
  • 开发一种少样本提示框架,实现在无需全量微调或重新训练的情况下,快速适应新 VAD 场景。
  • 集成稳健的推理策略——规则聚合、感知平滑与重新检查——以减轻基于 LLM 的 VAD 中的感知与推理错误。
  • 建立首个基于推理的一类 VAD 方法,结合归纳式规则学习与演绎式异常检测。

提出的方法

  • AnomalyRuler 采用两阶段框架:归纳阶段,LLM 从少量正常帧的视觉描述中生成正常性规则;推理阶段,将这些规则应用于测试视频中的异常检测。
  • 通过视觉-语言模型(VLM)生成视觉描述,以连接视觉与语言模态,供 LLM 输入。
  • 通过随机平滑进行规则聚合,通过平均多个规则集来减少因规则归纳噪声或不一致导致的错误。
  • 感知平滑使用指数多数平滑(EMS)技术,提升时序一致性,减少视频序列中的帧级感知错误。
  • 重新检查机制通过迭代验证提升推理鲁棒性,以验证和优化 LLM 输出。
  • 该框架通过结构化少样本示例进行提示,实现仅需极少数据即可实现零样本适应新领域。

实验结果

研究问题

  • RQ1LLM 是否可在仅使用少量正常参考帧、无需全量微调的情况下,被有效用于视频异常检测?
  • RQ2如何引导 LLM 以符合特定领域异常定义,例如在安全关键区域将“滑板”视为异常?
  • RQ3在基于 LLM 的 VAD 流程中,哪些策略最有效以减轻感知与推理错误?
  • RQ4与直接 LLM 提示或传统自监督 VAD 方法相比,基于规则的推理框架在准确率与可解释性方面是否更具优势?
  • RQ5所提出的框架是否可在多种 VAD 基准上实现泛化,且仅需极少领域特定适应?

主要发现

  • 当所有策略均启用时,AnomalyRuler 在四个 VAD 基准上均实现了最先进性能,ShT 数据集上的平均 AUC 达到 84.5%。
  • 在归纳阶段移除“正常与异常”规则参考后,AUC 下降 18.8 个百分点,证明其在减少误报与漏检中的关键作用。
  • 规则聚合与感知平滑各自使 AUC 提升超过 15 个百分点,其中感知平滑在填充大小 p=5 与 EMA 权重 α=0.33 时表现最优。
  • 消融实验表明,规则质量对同时包含正常与异常规则的依赖最为敏感,其缺失将导致性能显著下降。
  • 该框架保持了强大的领域适应能力,在无需微调的情况下于不同数据集上均表现稳定,得益于少样本提示与基于规则的推理。
  • 超参数消融分析显示,过多参考帧(如 m > 10)或过高批量数(n > 20)会因冗余上下文导致性能下降,最优性能出现在 n=10, m=5 时。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。