MGFN in Video Anomaly Detection and Beyond
- MGFN is an acronym for several domain-specific network architectures, including models for video anomaly detection, temporal action localization, and urban region embedding.
- The Magnitude-Contrastive Glance-and-Focus Network employs feature amplification, global glance, and local focus blocks to improve weakly supervised anomaly detection performance.
- MGFN also covers multi-granularity fusion and multi-graph fusion approaches, demonstrating versatile applications across computer vision and urban analytics.
Searching arXiv for papers associated with the acronym "MGFN" to ground the article in current literature. MGFN is an acronym used for several distinct research constructs across computer vision, urban computing, and latent-variable modeling. In contemporary arXiv literature, it most prominently denotes the Magnitude-Contrastive Glance-and-Focus Network for weakly supervised video anomaly detection, introduced by Chen et al. (Chen et al., 2022), but it has also been used for the Multi-Granularity Fusion Network for temporal action proposal generation and localization (Su et al., 2019) and for Multi-Graph Fusion Networks for urban region embedding (Wu et al., 2022). A related but differently named method, MMGFM, extends generalized factor modeling to the multi-study, multi-modality, covariate-augmented setting (Liu et al., 14 Jul 2025). The acronym therefore has no single field-independent meaning; its interpretation is domain-specific and must be resolved from context.
1. Acronym scope and disambiguation
The most common contemporary usage of MGFN in video understanding refers to the Magnitude-Contrastive Glance-and-Focus Network, a weakly supervised video anomaly detection framework designed for long untrimmed surveillance videos (Chen et al., 2022). In a separate line of work on temporal action understanding, MGFN denotes the Multi-Granularity Fusion Network, a proposal-fusion framework for the ActivityNet Challenge 2019 tasks of temporal action proposal generation and temporal action localization/detection (Su et al., 2019). In urban computing, MGFN stands for Multi-Graph Fusion Networks, a method for learning urban region embeddings from human mobility data (Wu et al., 2022).
This multiplicity is not merely terminological. The three usages instantiate different methodological families: weakly supervised anomaly detection with snippet-level scoring (Chen et al., 2022), proposal fusion for temporal localization in untrimmed videos (Su et al., 2019), and graph-based representation learning for urban analytics (Wu et al., 2022). A plausible implication is that citing “MGFN” without expansion is ambiguous in bibliographic databases, benchmark tables, and secondary summaries.
A further source of confusion arises in recent benchmarking work on privacy-preserving surveillance analysis. “Unmasking Performance Gaps: A Comparative Study of Human Anonymization and Its Effects on Video Anomaly Detection” evaluates MGFN specifically in the sense of Chen et al.’s anomaly detector, not the ActivityNet fusion framework (Abdulaziz et al., 18 Jul 2025).
2. MGFN as Magnitude-Contrastive Glance-and-Focus Network
The Magnitude-Contrastive Glance-and-Focus Network addresses weakly supervised video anomaly detection under video-level supervision only (Chen et al., 2022). The problem setting is characterized by long videos in which anomalous segments occupy only a small fraction of the temporal extent, making local evidence insufficient and exact temporal annotation unavailable. The method is motivated by two difficulties stated explicitly in the source paper: long-video temporal reasoning and feature-magnitude inconsistency across scenes (Chen et al., 2022).
Its pipeline consists of a feature extractor, a Feature Amplification Mechanism (FAM), a Glance Block (GB) for global temporal context modeling, a Focus Block (FB) for local feature refinement, a prediction head, and a Magnitude Contrastive Loss (MC loss) (Chen et al., 2022). Input videos are split into clips, represented as
with extracted clip-level features
The Glance Block is a global-context module built around a video clip-level transformer. It first reduces dimensionality with a convolution from to , then applies a shortcut convolution and computes attention across clips (Chen et al., 2022). The attention map is defined as
followed by softmax normalization across clips and weighted aggregation through a value projection. The stated purpose is to let each clip be interpreted in light of the whole sequence, learning “what the normal cases are like” from long-video context (Chen et al., 2022).
The Focus Block performs local refinement after global aggregation. It uses a shortcut convolution, Self-Attentional Convolution (SAC), and a feed-forward network (Chen et al., 2022). SAC is written as
and is intended to enhance local feature interactions within each clip without learnable attention weights. In the paper’s conceptual framing, the GB establishes whole-video context, while the FB sharpens clip-level discriminative cues (Chen et al., 2022).
The Feature Amplification Mechanism makes feature norm an explicit component of the representation rather than using it only implicitly. For each clip feature , it computes
and forms the amplified feature
The paper’s motivation is that raw feature magnitude is affected by motion intensity, number of objects, number of people, scene attributes, and camera/viewpoint differences, so direct norm-based anomaly scoring is unstable (Chen et al., 2022).
The central learning innovation is the Magnitude Contrastive Loss, which replaces the rigid assumption that abnormal features should always have larger magnitude than normal ones. Instead, it learns a scene-adaptive cross-video magnitude distribution by reducing intra-class magnitude distances and increasing inter-class separation (Chen et al., 2022). This is especially relevant under weak supervision because top- snippets in abnormal videos are used as surrogates for anomalous segments, while top-0 snippets in normal videos serve as hard normal cases.
3. Training, evaluation, and reported performance of the anomaly-detection MGFN
The original anomaly-detection implementation uses PyTorch, with I3D and VideoSwin as feature extractors, 1, 2, 3, 4, 5, 6, Adam, weight decay 7, learning rate 8, and batch size 9, consisting of 8 normal and 8 abnormal videos (Chen et al., 2022). The total objective is
0
The method is evaluated on UCF-Crime and XD-Violence (Chen et al., 2022). On UCF-Crime, it achieves 86.98% AUC with I3D features and 86.67% AUC with VideoSwin features. On XD-Violence, it achieves 79.19% AP with I3D features and 80.11% AP with VideoSwin features (Chen et al., 2022). The paper states that MGFN with I3D beats RTFM by 2.85% AUC on UCF-Crime and by 1.38% AP on XD-Violence, and that MGFN with VideoSwin exceeds MSL by 1.05% AUC on UCF-Crime and by more than 1.53% AP on XD-Violence (Chen et al., 2022).
Ablation results isolate the contribution of the ordered glance-then-focus design. The reported structure comparison gives FF: 82.66 AUC / 72.14 AP, FG: 83.10 AUC / 74.30 AP, RTFM: 84.30 AUC / 77.81 AP, GF-Fusion: 85.05 AUC / 78.03 AP, and MGFN (GF): 85.80 AUC / 78.50 AP (Chen et al., 2022). A separate ablation on magnitude-aware components reports Baseline: 83.20 AUC / 75.11 AP, +FAM: 84.85 AUC / 76.13 AP, +MC loss: 86.05 AUC / 78.80 AP, and +FAM + MC loss: 86.98 AUC / 80.11 AP (Chen et al., 2022).
These results establish the canonical meaning of MGFN in recent weakly supervised video anomaly detection literature. They also clarify the method’s internal logic: global temporal context, local refinement, and scene-adaptive magnitude discrimination are treated as complementary rather than interchangeable components (Chen et al., 2022).
4. MGFN under privacy-preserving human anonymization
Recent work studies how the anomaly-detection MGFN behaves when surveillance video is anonymized before feature extraction. In “Unmasking Performance Gaps: A Comparative Study of Human Anonymization and Its Effects on Video Anomaly Detection,” MGFN is evaluated as one of four benchmark detectors on anonymized UCF-Crime, termed AUCF-Crime (Abdulaziz et al., 18 Jul 2025). In this study, MGFN is explicitly described as the Magnitude-contrastive Glance-and-Focus Network from Chen et al. and is not re-designed; it is evaluated as-is on anonymized video features (Abdulaziz et al., 18 Jul 2025).
The feature pipeline follows the standard weakly supervised VAD setup in the paper: I3D features are extracted from RGB video, I3D is pretrained on Kinetics-400, a 10-crop augmentation strategy is used, and features are extracted for 16-frame non-overlapping segments (Abdulaziz et al., 18 Jul 2025). The protocol is applied to raw UCF-Crime and four anonymization settings: blurring (HB), masking / blackening (HM), encryption (HEN), and avatar replacement (H2D) (Abdulaziz et al., 18 Jul 2025).
The evaluation metrics are area under the receiver operating characteristics (AUC), area under the precision-recall curve (AP), and false alarm rate (FAR), along with 1, 2, and class-wise AUC scores (Abdulaziz et al., 18 Jul 2025). The reported MGFN results are as follows:
| Protection | AUC (%) | AP (%) |
|---|---|---|
| Raw-Ours | 80.16 | 22.05 |
| HB (blurring) | 80.57 | 20.45 |
| HM (masking) | 79.49 | 18.05 |
| HEN (encryption) | 81.20 | 22.04 |
| H2D (avatar replacement) | 79.46 | 18.70 |
The full table additionally reports 3, 4, and FAR: Raw-Ours gives 60.96, 24.50, and 19.02; HB gives 59.93, 23.67, and 26.42; HM gives 59.57, 22.49, and 2.80; HEN gives 60.99, 24.86, and 17.65; H2D gives 57.66, 21.56, and 8.69 (Abdulaziz et al., 18 Jul 2025). Using the study’s own Raw-Ours baseline of 80.16 AUC, the main AUC changes are +0.41 for HB, −0.67 for HM, +1.04 for HEN, and −0.70 for H2D (Abdulaziz et al., 18 Jul 2025).
The study attributes MGFN’s sensitivity to anonymization to its magnitude-driven design. It uses feature magnitude to select snippets, and its FAM module amplifies features based on feature norm; anonymization changes the magnitude distribution of I3D features, which in turn shifts snippet selection and contrastive separation (Abdulaziz et al., 18 Jul 2025). The paper states that MGFN demonstrates relatively high performance under encryption-based anonymization (HEN) and suggests that this is due to responsiveness to the noisy patterns introduced by encryption (Abdulaziz et al., 18 Jul 2025).
The authors interpret these gains cautiously. They explicitly argue that the improvement reflects “the model over-sensitivity to noise rather than true effectiveness on context-based anomaly separation” (Abdulaziz et al., 18 Jul 2025). The class-wise discussion further notes that MGFN improves performance with most anonymization techniques on classes such as “Arrest”, “Explosion”, “Fighting”, “Shoplifting”, “Stealing”, and “Vandalism”, but the gains are class-dependent and are not treated as evidence of genuine robustness (Abdulaziz et al., 18 Jul 2025).
5. MGFN as Multi-Granularity Fusion Network for temporal action understanding
In the ActivityNet Challenge 2019 report, MGFN denotes the Multi-Granularity Fusion Network, a temporal proposal-fusion framework for temporal action proposal generation and temporal action localization/detection in untrimmed videos (Su et al., 2019). This MGFN is not an anomaly detector. It is a system for combining proposals from multiple frameworks in order to improve proposal quality, ranking, and downstream localization.
The report explicitly combines APN, TAG, Improved-BSN, and CAR (Su et al., 2019). APN is an anchor-based proposal network in a top-down style; TAG is a snippet-grouping, actionness-based bottom-up method; Improved-BSN is a refined bottom-up boundary-sensitive proposal method; and CAR is a complementary filtering and re-ranking stage (Su et al., 2019). The paper frames the key design principle as diversity considered from four perspectives: the characteristic aspect, the data aspect, the model aspect, and the result aspect (Su et al., 2019).
From the characteristic aspect, the framework uses a two-stream network for video encoding, with RGB and optical flow, and several pretrained ConvNet backbones on Kinetics-400: ResNet-50, ResNet-101, ResNet-152, ResNet-200, I3D, P3D, Inception-V3, and Inception-ResNet-V2 (Su et al., 2019). From the data aspect, feature sequences are linearly interpolated to a fixed length; training uses lengths 64, 100, 128, 192; 2000 validation videos are added to training; and inference uses both fixed scales and free scales (Su et al., 2019). From the model aspect, APN, TAG, Improved-BSN, and CAR are fused because they make different errors (Su et al., 2019). From the result aspect, the framework uses complementary filtering, proposal matching, confidence re-ranking, and Soft-NMS (Su et al., 2019).
A core APN scoring rule is
5
where 6 is actionness, 7 is completeness, and 8 is IoU score (Su et al., 2019). Improved-BSN uses a cross-model re-ranking rule
9
where 0 is the confidence of the APN proposal with maximum IoU with 1 (Su et al., 2019). CAR performs complementary filtering, temporal boundary adjustment, and proposal ranking by exploiting APN/TAG complementarity and using three-stage unit features—left, central, and right—fed into an MLP (Su et al., 2019).
On ActivityNet-1.3, the validation AUC table reports APN: 62.45, TAG: 63.97, improved-BSN: 68.18, improved-BSN + APN: 68.58, CAR: 68.01, and improved-BSN + APN + CAR: 69.85 (Su et al., 2019). The abstract and experiment section report final challenge performance of 69.85 AUC for Task 1 (Temporal Action Proposal Generation) and 38.90 mAP for Task 2 (Temporal Action Localization) (Su et al., 2019).
This usage of MGFN is therefore a multi-model temporal proposal fusion framework rather than a single monolithic network (Su et al., 2019). It integrates top-down and bottom-up proposal generators and uses cross-model agreement to filter and re-rank outputs.
6. MGFN as Multi-Graph Fusion Networks for urban region embedding
In urban computing, MGFN stands for Multi-Graph Fusion Networks, a framework for learning urban region embeddings from human mobility data for cross-domain tasks such as crime prediction, check-in prediction, and land-use classification (Wu et al., 2022). The method is motivated by the claim that fine-grained mobility flows are too detailed and noisy to directly yield generalized region embeddings, and that a better strategy is to discover and fuse recurring mobility patterns (Wu et al., 2022).
The temporal input is modeled as a sequence of directed weighted graphs
2
and the full data as a mobility multi-graph
3
A mobility pattern is produced by fusing similar mobility graphs into a set
4
The framework has two main stages: a Mobility Graph Fusion (MGF) module and a Mobility Pattern Joint Learning module (Wu et al., 2022). The MGF module defines a Mobility Graph Distance (MGD) based on spatial and temporal similarity. Its components include distributional mean and variance differences, a unidirectional flow index
5
and a structural label distance based on XOR between binary edge-significance matrices (Wu et al., 2022). The final distance is
6
where 7 (Wu et al., 2022).
The joint learning stage combines intra-pattern message passing with inter-pattern message cross attention (Wu et al., 2022). Intra-pattern attention operates over neighbors within each mobility pattern, while inter-pattern cross attention computes, for region 8, attention weights between representations from different patterns:
9
The final embedding is obtained by combining residual intra-pattern representations and inter-pattern messages:
0
The training objective matches the empirical destination distribution and the distribution predicted from embeddings:
1
Experiments are conducted on New York City data with 180 regions in Manhattan, about 10 million taxi records in one month, about 40 thousand crime records over one year, over 100 thousand check-ins, and 12 district labels (Wu et al., 2022). The reported parameter settings include embedding dimension 2, number of mobility patterns 3, number of intra-pattern layers 4, and MGD weights 5 (Wu et al., 2022).
Reported results are MAE = 70.21, RMSE = 89.60, 6 for crime prediction; MAE = 292.60, RMSE = 451.76, 7 for check-in prediction; and NMI = 0.75, ARI = 0.57 for land-use classification (Wu et al., 2022). The paper states that MGFN can improve performance by up to 13.11% over the best baseline, and notes that removing mobility graph fusion reduces generalization by about 20% in cross-domain settings (Wu et al., 2022).
7. Related naming and conceptual boundaries
A related 2025 paper introduces MMGFM, a high-dimensional multi-study, multi-modality, covariate-augmented generalized factor model (Liu et al., 14 Jul 2025). MMGFM is not named MGFN, but it is structurally adjacent in acronym space and can be confused with MGFN in automated retrieval or acronym expansion tasks. Its model decomposes latent signal into a known offset term, covariate effects, study-shared latent factor, study-specific latent factor, study-specific, modality-shared factor, and idiosyncratic noise:
8
MMGFM uses a variational lower bound, profiles the variational parameters, develops a variational EM algorithm, and proposes a step-wise singular value ratio (SVR) criterion to determine the number of shared and study-specific factors (Liu et al., 14 Jul 2025). The paper proves consistency and asymptotic normality, reports strong simulation performance relative to GFM, MRRR, MSFR, and MultiCOAP, and provides an R package on CRAN named MMGFM (Liu et al., 14 Jul 2025).
The presence of MMGFM reinforces a broader bibliographic point: MGFN-like acronyms often encode “multi-graph,” “multi-granularity,” or “magnitude-contrastive” constructions, but they do not form a coherent research family across domains. Any technical reading must therefore anchor the acronym to its full expansion and task definition. In current arXiv usage, the most visible and operationally consequential meaning of MGFN is the anomaly-detection architecture of Chen et al. (Chen et al., 2022), especially because subsequent privacy-preserving surveillance benchmarking adopts that exact model as a reference point (Abdulaziz et al., 18 Jul 2025).