SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2101.10030 · ICCV · 2021

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

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

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2101.10030.json · badge: /api/ran/2101.10030.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
tianyu0207/RTFM marked official in Papers with Code
Papers with Code archive
3 ran · 1 no recorded run
seominseok0429/Real-world-Anomaly-Detection-in-Surveillance-Videos-pytorch community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Aggregate Ran
ran on a synthesized input · constructed an object; no result was computed
tianyu0207/RTFM/model.py
pointer only (licence: NONE) · get_code("4a7b7466479e9f00")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tianyu0207/RTFM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MIL Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
seominseok0429/Real-world-Anomaly-Detection-in-Surveillance-Videos-pytorch/loss.py
pointer only (licence: NONE) · get_code("71a14bfb51a8c536")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, seominseok0429/Real-world-Anomaly-Detection-in-Surveillance-Videos-pytorch when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

NONLocalBlock1D Ran
ran on a synthesized input · constructed an object; no result was computed
tianyu0207/RTFM/model.py
pointer only (licence: NONE) · get_code("afe36e4c1ec064d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tianyu0207/RTFM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_NonLocalBlockND Ran
ran on a synthesized input · constructed an object; no result was computed
tianyu0207/RTFM/model.py
pointer only (licence: NONE) · get_code("4373964d14de29e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tianyu0207/RTFM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Model Not yet run
unverified (harvested, no recorded run)
tianyu0207/RTFM/model.py
pointer only (licence: NONE) · get_code("ffca62d39dfe7587")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tianyu0207/RTFM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
Aggregate
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2401.13551 (2024-01)
Interleaving One-Class and Weakly-Supervised Models with Adaptive Thresholding for Unsupervised Video Anomaly Detection
NONLocalBlock1D
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2401.13551 (2024-01)
Interleaving One-Class and Weakly-Supervised Models with Adaptive Thresholding for Unsupervised Video Anomaly Detection
_NonLocalBlockND
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2401.13551 (2024-01)
Interleaving One-Class and Weakly-Supervised Models with Adaptive Thresholding for Unsupervised Video Anomaly Detection

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2101.10030")
get_code_for_paper("2101.10030")
have("2101.10030")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2101.10030.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2101.10030.svg)](https://syntology.ai/paper/2101.10030)

Connect an agent — have() is free.