{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2510-21449","title":"MoniTor: Exploiting Large Language Models with Instruction for Online Video Anomaly Detection","arxiv_id":"2510.21449","date":"2025-10-24","proceeding":"NeurIPS","authors":["Shengtian Yang","Yue Feng","Yingshi Liu","Jingrou Zhang","Jie Qin"],"abstract":"Video Anomaly Detection (VAD) aims to locate unusual activities or behaviors within videos. Recently, offline VAD has garnered substantial research attention, which has been invigorated by the progress in large language models (LLMs) and vision-language models (VLMs), offering the potential for a more nuanced understanding of anomalies. However, online VAD has seldom received attention due to real-time constraints and computational intensity. In this paper, we introduce a novel Memory-based online scoring queue scheme for Training-free VAD (MoniTor), to address the inherent complexities in online VAD. Specifically, MoniTor applies a streaming input to VLMs, leveraging the capabilities of pre-trained large-scale models. To capture temporal dependencies more effectively, we incorporate a novel prediction mechanism inspired by Long Short-Term Memory (LSTM) networks. This ensures the model can effectively model past states and leverage previous predictions to identify anomalous behaviors. Thereby, it better understands the current frame. Moreover, we design a scoring queue and an anomaly prior to dynamically store recent scores and cover all anomalies in the monitoring scenario, providing guidance for LLMs to distinguish between normal and abnormal behaviors over time. We evaluate MoniTor on two large datasets (i.e., UCF-Crime and XD-Violence) containing various surveillance and real-world scenarios. The results demonstrate that MoniTor outperforms state-of-the-art methods and is competitive with weakly supervised methods without training. Code is available at https://github.com/YsTvT/MoniTor.","url_abs":"https://arxiv.org/abs/2510.21449","url_pdf":"https://arxiv.org/pdf/2510.21449","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2510.21449","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2510.21449"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/YsTvT/MoniTor","reach":{"status":"ok"}}],"summary":{"unverified":12},"by_repo_kind":{"found_in_text":{"samples":12,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":12,"samples":[{"code_sha256_prefix":"c49976554f791c36","entry":"extract_frames_with_sliding_window","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/preprocessing/extract_frames.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/preprocessing/extract_frames.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c49976554f791c36"}},{"code_sha256_prefix":"1c7ce7f17e004a54","entry":"filter_frame_idxs","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/model/create_summary_index.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/model/create_summary_index.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1c7ce7f17e004a54"}},{"code_sha256_prefix":"980931c6436f1d5f","entry":"find_last_processed_video_index","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/utils/path_utiles.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/utils/path_utiles.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"980931c6436f1d5f"}},{"code_sha256_prefix":"50054df0b1fb2ede","entry":"find_unprocessed_videos","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/utils/path_utiles.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/utils/path_utiles.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"50054df0b1fb2ede"}},{"code_sha256_prefix":"8dee51ff90edc220","entry":"get_video_labels","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/ucf_eval.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/ucf_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8dee51ff90edc220"}},{"code_sha256_prefix":"35d786dd20ef925f","entry":"init_faiss_index","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/model/create_index.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/model/create_index.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"35d786dd20ef925f"}},{"code_sha256_prefix":"69b4d00fdc9b6fde","entry":"initialize_faiss_index","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/model/create_summary_index.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/model/create_summary_index.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"69b4d00fdc9b6fde"}},{"code_sha256_prefix":"de4e64889773a183","entry":"load_image_from_path","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/utils/image_utiles.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/utils/image_utiles.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"de4e64889773a183"}},{"code_sha256_prefix":"b3291300275b3dfb","entry":"load_images_from_paths","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/utils/image_utiles.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/utils/image_utiles.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b3291300275b3dfb"}},{"code_sha256_prefix":"4fb2bb08df8f3d5a","entry":"load_video_captions","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/model/create_index.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/model/create_index.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4fb2bb08df8f3d5a"}},{"code_sha256_prefix":"a9f96ced5d7e4dc1","entry":"replace_negative_scores_with_previous","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/ucf_eval.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/ucf_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a9f96ced5d7e4dc1"}},{"code_sha256_prefix":"c86cb59b3fb3b86b","entry":"temporal_testing_annotations","repo":"YsTvT/MoniTor","repo_kind":"found_in_text","path":"src/ucf_eval.py","file_url":"https://github.com/YsTvT/MoniTor/blob/HEAD/src/ucf_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c86cb59b3fb3b86b"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_api"},"syntology_extracted_results":null}