Papers › Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning

Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning

25 Jan 2021ICCV 2021 10arXiv:2101.10030archive 2025-07-28

Yu Tian, Guansong Pang, Yuanhong Chen, Rajvinder Singh, Johan W. Verjans, Gustavo Carneiro

Anomaly detection with weakly supervised video-level labels is typically formulated as a multiple instance learning (MIL) problem, in which we aim to identify snippets containing abnormal events, with each video represented as a bag of video snippets. Although current methods show effective detection performance, their recognition of the positive instances, i.e., rare abnormal snippets in the abnormal videos, is largely biased by the dominant negative instances, especially when the abnormal events are subtle anomalies that exhibit only small differences compared with normal events. This issue is exacerbated in many methods that ignore important video temporal dependencies. To address this issue, we introduce a novel and theoretically sound method, named Robust Temporal Feature Magnitude learning (RTFM), which trains a feature magnitude learning function to effectively recognise the positive instances, substantially improving the robustness of the MIL approach to the negative instances from abnormal videos. RTFM also adapts dilated convolutions and self-attention mechanisms to capture long- and short-range temporal dependencies to learn the feature magnitude more faithfully. Extensive experiments show that the RTFM-enabled MIL model (i) outperforms several state-of-the-art methods by a large margin on four benchmark data sets (ShanghaiTech, UCF-Crime, XD-Violence and UCSD-Peds) and (ii) achieves significantly improved subtle anomaly discriminability and sample efficiency. Code is available at https://github.com/tianyu0207/RTFM.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2101.10030")

Code

Syntology Ran 4 of 5 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 4 samples from 1 repository, 3 ran; community (archive-listed): 1 sample from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tianyu0207/RTFM officialmentioned in papermentioned on GitHubpytorch report
tianyu0207/CCD mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

5 samples harvested; 4 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
3ran
1unverified

Licence: 5 of the 5 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Aggregate tianyu0207/RTFM/model.py official repository ran no licence file found · pointer only · 4a7b7466479e9f00 · report
NONLocalBlock1D tianyu0207/RTFM/model.py official repository ran fingerprinted no licence file found · pointer only · afe36e4c1ec064d8 · report
_NonLocalBlockND tianyu0207/RTFM/model.py official repository ran no licence file found · pointer only · 4373964d14de29e5 · report
Model tianyu0207/RTFM/model.py official repository unverified no licence file found · pointer only · ffca62d39dfe7587 · report
MIL seominseok0429/Real-world-Anomaly-Detection-in-Surveillance-Videos-pytorch/loss.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 71a14bfb51a8c536 · report

Tasks

Anomaly DetectionAnomaly Detection In Surveillance VideosContrastive LearningMultiple Instance LearningVideo Anomaly DetectionWeakly-supervised Video Anomaly Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Anomaly Detection In Surveillance Videos ShanghaiTech Weakly Supervised Learning Causal Temporal Relation and Feature Discrimination for Anomaly Detection AUC-ROC 97.48 #5 of 12 Archive leaderboard report
Anomaly Detection In Surveillance Videos ShanghaiTech Weakly Supervised RTFM AUC-ROC 97.21 #6 of 12 Archive leaderboard report
Anomaly Detection In Surveillance Videos UCF-Crime RTFM ROC AUC 84.03 #13 of 21 Archive leaderboard report
Anomaly Detection In Surveillance Videos UCSD Peds2 RTFM AUC 98.6 #2 of 6 Archive leaderboard report
Anomaly Detection In Surveillance Videos XD-Violence RTFM AP 77.81 #15 of 17 Archive leaderboard report
Weakly-supervised Video Anomaly Detection ShanghaiTech Weakly Supervised RTFM AUC-ROC 97.21 #9 of 16 Archive leaderboard report
Weakly-supervised Video Anomaly Detection ShanghaiTech Weakly Supervised RTFM FAR-Normal 1.06 #9 of 16 Archive leaderboard report
Weakly-supervised Video Anomaly Detection UBnormal RTFM AUC-ROC 66.83 #4 of 11 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections