FedVAR: Prototype-Aligned Federated Framework for Video Anomaly Recognition
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
FedVAR: Prototype-Aligned Federated Framework for Video Anomaly Recognition Ghani Haidera , Majid Kundrooa , Boyun Eomb , Dong-Hwan Parkb,∗, Chen Chenc , Taehong Kima,∗ a School of Information and Communication Engineering, Chungbuk National University, Cheongju, 28644, Republic of Korea b Electronics and Telecommunications Research Institute (ETRI), Daejeon, 34129, Republic of Korea c Institute of Artificial Intelligence (IAI), University of Central Florida, Orlando, 32816, USA
Abstract
arXiv:2608.06876v1 [cs.CV] 7 Aug 2026
In the era of Industrial Internet of Things (IIoT) and Cyber-Physical Systems (CPS), Federated Learning (FL) offers a promising decentralized intelligence paradigm for Video Anomaly Recognition (VAR). This task is vital for maintaining high-fidelity Digital Twins and ensuring safety in mission-critical environments. However, the inherent data heterogeneity across distributed edge clients leads to a fundamental challenge known as semantic misalignment, where clients learn divergent feature representations of “normal” and “abnormal” events. The problem becomes particularly pronounced in VAR, where the presence of diverse and fine-grained anomaly categories leads each client to develop distinct semantic interpretations of abnormality. Existing federated methods primarily focus on binary anomaly detection and fail to address this misalignment, preventing effective fine-grained recognition. In this paper, we introduce FedVAR, a weakly-supervised FL framework explicitly designed for VAR. Leveraging the rich representations of Vision-Language Models (VLMs), FedVAR employs a prototype-based alignment mechanism that creates a shared semantic anchor for all clients to re-center and align their visual and textual feature spaces. This process enforces a consistent representation of “normality” across the decentralized network, directly mitigating semantic misalignment and enabling robust prompt-learning of anomaly direction vectors with minimal communication overhead. We conduct extensive experiments on challenging benchmarks under various non-IID data partitioning schemes, unseen domains, and novel anomaly classes. The results demonstrate that FedVAR consistently outperforms state-of-the-art federated baselines, establishing a robust framework for distributed intelligence in video-based CPS. Keywords: Federated learning, Edge Computing, Video anomaly recognition, Prototype alignment, Vision-language models
1. Introduction The task of identifying unusual events in video streams, known as Video Anomaly Detection (VAD) [1], has become a cornerstone of automated surveillance [2] and industrial monitoring within complex Cyber-Physical Systems (CPS) [3, 4]. However, merely detecting an anomaly is often insufficient for mission-critical applications [5]. A more advanced and challenging task is Video Anomaly Recognition (VAR) [6], which aims to jointly detect the presence of an anomaly and identify its specific semantic category, such as human activities (e.g., “fighting”, “vandalism”) or industrial hazard events (e.g., “equipment malfunction” or “fire”). This fine-grained understanding is critical for triggering appropriate, event-specific responses in domains ranging from smart energy systems to urban mobility [7, 8, 9]. Despite its importance, VAR remains exceptionally challenging due to the rare, diverse, and ambiguous ∗ Corresponding authors.
Email addresses: g.haider@cbnu.ac.kr (Ghani Haider), kundroomajid@cbnu.ac.kr (Majid Kundroo), eby@etri.re.kr (Boyun Eom), dhpark@etri.re.kr (Dong-Hwan Park), chen.chen@ucf.edu (Chen Chen), taehongkim@cbnu.ac.kr (Taehong Kim) © 2026. This manuscript version is made available under the CC-BY-NCND 4.0 license (http://creativecommons.org/licenses/by-nc-nd/4. 0/). This is the accepted manuscript version of an article published in Future Generation Computer Systems. The final published version is available at https://doi.org/10.1016/j.future.2026.108745.
nature of anomalies, coupled with the extreme data imbalance between normal and abnormal events [10]. To tackle these challenges without relying on prohibitively expensive frame-level annotations, recent advancements have leveraged Weakly Supervised Video Anomaly Detection (WSVAD) [11] alongside powerful Vision-Language Models (VLMs) like CLIP [12]. Approaches such as AnomalyCLIP [13] have demonstrated that aligning visual features with textual anomaly descriptors can enable remarkable fine-grained recognition. However, these paradigms fundamentally assume centralized data access. In real-world deployments, such as urban surveillance networks, centralizing video footage is often untenable due to strict privacy regulations, data sovereignty policies, and bandwidth constraints [14, 15]. Federated Learning (FL) [16] provides a promising privacypreserving alternative by allowing edge clients to collaboratively train a shared model without exchanging raw data. While FL has been successfully applied to binary VAD, its extension to fine-grained VAR remains unexplored due to the critical challenge of semantic misalignment. In a federated surveillance network, each client captures a highly distinct environment and observes different subsets of anomalies due to non-Independent and Identically Distributed (non-IID) class distributions. For example, in a smart-city surveillance camera network, a highway camera may predominantly capture traffic “accidents”,
whereas a retail camera may primarily observe “shoplifting”, exposing clients to highly heterogeneous environmental contexts and anomaly distributions. Consequently, each client learns a distinct statistical representation of what constitutes “normal” and “abnormal” behavior. Existing federated VAD frameworks, such as Fed-WSVAD [17] and CLAP [18], focus purely on binary detection and do not explicitly align these heterogeneous feature spaces. When extended to multi-class VAR, this architectural gap causes the global model’s semantic representations to collapse, rendering naive model averaging ineffective. To overcome this, we propose FedVAR, a federated framework specifically designed for distributed intelligence in video anomaly recognition. Our core contribution lies in a novel prototype-based alignment mechanism that bridges the semantic gap between heterogeneous clients. FedVAR leverages CLIP’s robust visual-textual representations as a foundation. Rather than allowing clients’ local feature spaces to diverge, FedVAR computes local normality prototypes at the edge and aggregates them on the central server to construct a single global normality prototype. This global prototype acts as a shared semantic anchor. By re-centering their local visual and textual features around this shared anchor, all participating clients evaluate anomalies from an aligned semantic origin. This directly mitigates the semantic misalignment caused by non-IID data, enabling the global model to learn robust, generalizable, and fine-grained anomaly representations while preserving strict data privacy. Our main contributions are summarized as follows:
the distribution of normal events and detect deviations. To capture more complex temporal dynamics, subsequent works integrated powerful deep learning architectures, including 3D CNNs [24], graph convolutional networks for modeling object interactions [25], and transformers for long-range dependency modeling [26]. To reduce annotation costs, weakly supervised methods [10, 27, 28] became prominent, leveraging Multiple Instance Learning (MIL) with only video-level labels. Despite their progress in modeling complexity, these methods share a fundamental limitation of relying on a centralized data repository, which is often impractical due to privacy concerns and data governance policies [29]. FL offers a privacy-preserving alternative by training on decentralized data [30]. While FL has been explored for anomaly detection in tabular and image data [31, 32], its application to VAD remains relatively recent. CLAP [18] proposed an unsupervised VAD framework that uses clustering to generate pseudo-labels, though its reliance on local, heterogeneous data leads to inconsistent pseudo-labels that degrade global generalization. More recently, Fed-WSVAD [17] introduced a multimodal prompt generation scheme to balance personalization with generalization. However, it does not explicitly enforce semantic consistency across the clients’ feature spaces. These works highlight a core challenge in federated VAD, namely that models remain highly vulnerable to feature drift under significant data heterogeneity due to the lack of a shared semantic foundation. 2.2. Visual–Language Adaptation and Prompt Learning in Federated Settings
• We propose FedVAR, the first framework designed specifically to address the task of fine-grained video anomaly recognition in a privacy-preserving federated learning setting, facilitating decentralized intelligence.
Prompt learning has emerged as a parameter-efficient strategy for adapting large VLMs like CLIP [12] to downstream tasks. Methods like CoOp [33] and CoCoOp [34] learn continuous textual prompts, steering the model’s predictions without fine-tuning the entire backbone. Subsequent approaches [35, 36, 37] extend prompt learning to video or multi-modal domains, demonstrating improved transferability and efficiency. For instance, Temp-CLIP [19] refines temporal reasoning for video tasks by learning only a few prompt vectors and a lightweight temporal transformer [38], while ActionCLIP [39] adapts CLIP for video-based action recognition, demonstrating VLM adaptation for dynamic event understanding. In federated learning, prompt-based adaptation is considered a highly practical approach due to its communication efficiency. Works such as FedCoOp [21], pFedPrompt [40], and pFedPG [41] focus on aggregating or personalizing prompts across clients to handle data heterogeneity. However, a key limitation of these methods lies in their implicit assumption of a stable, universally shared label space. Because they are designed for standard classification tasks, they assume the semantics of a label are consistent across all clients. This assumption breaks down in VAD, where the very definition of an “anomaly” is context-dependent and varies significantly depending on a client’s specific local environment. In summary, while existing federated VAD and prompt learning methods successfully address privacy and communication
• We introduce a novel cross-modal prototype alignment mechanism that constructs a global normality prototype. This serves as a shared semantic anchor, effectively mitigating feature space misalignment caused by non-IID client data. • We conduct extensive experiments on multiple benchmarks, including cross-domain transfer and unseen anomaly class generalization. We demonstrate that FedVAR consistently outperforms existing federated anomaly detection frameworks across both detection and recognition metrics, establishing a strong new baseline for federated VAR. 2. Related Work 2.1. Video Anomaly Detection under Centralized and Federated Learning Centralized VAD methods, which assume all training data are located on a single server, have evolved significantly. Early approaches focused on reconstruction-based criteria, using models like autoencoders [22] or predictive models [23] to learn 2
Table 1: Comparison of the proposed FedVAR with state-of-the-art baselines. We highlight key mechanisms, advantages, and limitations, specifically emphasizing robustness to non-IID data and semantic misalignment.
Method
Task
Key Mechanism
Advantages
Limitations
ZS-CLIP [12] (ICML 2021)
Centralized Image Classification
Contrastive VLM pre-training with manual text prompts.
Strong zero-shot open-vocabulary representations.
No temporal modeling; rigid prompts; requires centralized data.
Temp-CLIP [19] (ECCV 2022)
Centralized Video Understanding
VLM adaptation via temporal transformer & learnable prompts.
Parameter-efficient; captures dynamic temporal correlations.
Requires centralized data; cannot handle non-IID environments.
PPVU [20] (DSC 2023)
Federated Video Understanding
FL framework utilizing a TimeSformer backbone.
Privacy-preserving spatiotemporal feature extraction.
High communication overhead (full model updates); lacks VLM guidance.
FedCoOp [21] (TMC 2023)
Federated Image Classification
Federated continuous prompt learning (frozen VLM backbone).
Communication-efficient; preserves privacy via prompt-only updates.
Assumes homogeneous labels; no temporal modeling; vulnerable to client drift.
CLAP [18] (CVPR 2024)
Federated VAD
Unsupervised FL via GMM clustering & pseudo-labeling.
Fully unsupervised; eliminates expensive annotation costs.
Inconsistent pseudo-labels on non-IID data; limited to binary VAD.
Fed-WSVAD [17] (AAAI 2025)
Federated WSVAD
Multimodal prompt generation via global/local contexts.
Effective binary anomaly localization; balances personalization.
Lacks cross-client alignment; suffers from semantic misalignment in extreme non-IID settings.
FedVAR (Ours)
Federated VAR
Cross-modal global prototype alignment & axial temporal attention.
Resolves semantic misalignment via shared anchor; robust to non-IID; enables multi-class VAR.
Coarse temporal aggregation may dilute boundaries in highly sparse videos.
efficiency, they collectively struggle with semantic misalignment under extreme non-IID conditions. To provide a comprehensive overview of this research landscape, we summarize the distinctions between our proposed FedVAR and state-ofthe-art baselines in Table 1. As highlighted in the table, existing frameworks (e.g., CLAP, Fed-WSVAD, FedCoOp) either lack a shared semantic foundation (Section 2.1) or falsely assume a stable, homogeneous label space across edge devices (Section 2.2). To bridge this gap, our proposed FedVAR explicitly targets these limitations to enable fine-grained video anomaly recognition. Instead of naively averaging ambiguous prompts or misaligned model weights, FedVAR introduces a novel prototype-guided alignment mechanism (detailed in Section 4). By anchoring the federated learning process to a globally shared representation of normality, our framework establishes the semantic consistency required for multi-class anomaly recognition in decentralized cyber-physical environments.
3.1. Input Representation and Objective AnomalyCLIP learns to detect and recognize anomalies in videos by leveraging the shared visual-textual embedding space of Contrastive Language-Image Pre-training (CLIP) [12]. Let a video V be represented as a sequence of frames {It }Tt=1 . Each frame It is encoded by a frozen CLIP visual encoder Eimage (·) into a spatial frame feature vector xt = Eimage (It ) ∈ RD . The primary objective is to train a model parameterized by θ that, for any given frame feature xt , can simultaneously predict: (i) a binary anomaly probability pA (xt ) ∈ [0, 1] indicating the likelihood of an anomaly occurring at frame It (Detection), and (ii) a conditional class probability pc|A (xt ) over a global vocabulary of anomaly classes c ∈ C (Recognition). In weakly-supervised scenarios, these frame-level predictions are learned from videolevel labels under the Multiple Instance Learning (MIL) [10] paradigm, which assumes that an anomalous video contains at least one anomalous frame.
3. Preliminaries: Centralized VAR
3.2. Centralized Normality Prototype and Feature Recentering
This section presents the essential background for our framework, specifically focusing on the AnomalyCLIP [13] architecture, which serves as the foundational baseline for detection and recognition in the visual-textual embedding space.
In weakly-supervised VAR, distinguishing anomalous events heavily relies on establishing a reliable baseline of normality. AnomalyCLIP achieves this by calculating a centralized “normality prototype” m ∈ RD , which represents the average repre3
m mg mi
m mg mi Client 1 Client Client0 4 Client 2 Client 8 Client 7 mg Client 9 m Client 6
m mg mi
Client 9 Client 7
Client 01 Client 2 Client 9 Client 3
Client 8
mmg Client 8
m
mg Client 5Client 6
Client 4 Client10 Client
Client 5 Client 3
(a) UCF-Crime
Client 3
Client 2
Client 7
Client 4 Client 5
Client 6
(b) XD-Violence
(c) ShanghaiTech
Figure 1: 3D visualization of normality prototypes, projected into three dimensions using Principal Component Analysis (PCA). Clients learn diverged local normality prototypes (mi ) on each dataset individually, leading to different anomaly direction vectors, while FedVAR learns a unified normality prototype (mg ) which is closest to the true normality prototypes (m) of the datasets.
sentation of all normal frames across the centralized dataset: m=
1 X Eimage (I), |N| I∈N
3.4. Temporal Module and Joint Prediction Since anomalies naturally unfold over time, a Temporal module T ({xt′ }Tt=1 ) is introduced to process the sequence of recentered frame features {xt′ }Tt=1 and output an anomaly probability for each frame-feature pA (xt′ ) ∈ [0, 1]. To achieve a unified prediction, the framework integrates the predictions of the Temporal and VTP modules. The joint probability pA,c (xt′ ) of the frame containing a specific anomaly class c is derived as:
(1)
where N denotes the set of all normal frames and |N| is the total count of these frames. Using this prototype, each frame feature xt is re-centered as xt′ = xt − m. This transformation clusters normal frames around the origin, forcing anomalous frames to deviate from it. This separation enhances the model’s capacity to discriminate between normal and abnormal patterns.
pA,c (xt′ ) = pA (xt′ ) × pc|A (xt′ ),
where pc|A (xt′ ) = softmax(S(xt′ )). This formulation enables the baseline model to simultaneously determine whether an anomalous event is occurring and resolve its specific semantic type.
3.3. Vision-Text Prompt Learning Module To identify the specific type of anomaly (e.g., robbery, traffic accident), a Vision-Text Prompting (VTP) module S associates re-centered frame features with textual labels in the CLIP embedding space. Instead of hand-crafted prompts, continuous prompt learning is adopted. A set of learnable context tokens tctx is concatenated with discrete class-specific tokens tc representing each anomaly class c ∈ C (e.g., the word “violence”). These prompts are passed through a frozen CLIP text encoder Etext (·) and subsequently re-centered by subtracting the normality prototype m, yielding textual anomaly direction vectors dc : dc = Etext [tctx , tc ] − m.
4. Methodology While centralized frameworks excel when all data is accessible, extending video anomaly recognition to decentralized, privacy-preserving environments poses significant statistical challenges. In this section, we present the federated formulation of the task, analyze the challenge of semantic misalignment, and detail our proposed FedVAR framework. 4.1. Semantic Misalignment in Federated Video Anomaly Recognition
(2)
We extend the weakly-supervised VAR problem to the FL setting, which involves a central server and a set of K decentralized clients. Each client i ∈ {1, . . . , K} holds a private local i| dataset Di = {(Vi j , ci j )}|D j=1 , where Vi j is the j-th video sample belonging to client i, weakly annotated with a video-level label ci j ∈ C ∪ {normal}. Here, C denotes the global vocabulary of anomaly classes. Due to the decentralized nature of data collection, these datasets are typically non-IID [29], exhibiting significant statistical heterogeneity across different clients. Clients capture distinct environmental contexts (e.g., indoor retail stores versus
The projection of a re-centered frame feature xt′ onto the direction vector dc measures the likelihood of frame It belonging to class c: ! x ′ · dc P(xt′ , dc ) = BN t , (3) ∥dc ∥ where BN denotes batch normalization. The VTP module output representing the raw likelihood distribution across all predefined categories is given by: S(xt′ ) = [ P(xt′ , d1 ), . . . , P(xt′ , d|C| ) ] ∈ R|C| .
(5)
(4) 4
2
Server
5
Global Prototype Aggregation
Model Aggregation
1
Client Dataset
Client
3 Feature Space Re-center explosion
`
4
Temporal Module
arson
4 `
robbery
`
`
VTP Module
normal
3 Feature Space Re-center
Learnable Contexts CLASS
Frame
`
Features
`
`
`
`
`
`
`
`
`
`
`
`
Direction Vectors arson
fight
abuse
Figure 2: The architecture and workflow of our proposed FedVAR framework. Each client computes a local normality prototype (mi ) from its private normal data. These local prototypes are uploaded to the server and aggregated into a global prototype (mg ). The server distributes this shared anchor back to all clients. During local training, each client uses the global prototype mg to re-center both visual and textual features, ensuring all clients operate in an aligned space. The trainable modules (VTP and Temporal) are updated locally. The updated model parameters (θir ) are sent to the server for aggregation, and the new global model (θr+1 ) is distributed for the next round.
outdoor highway intersections), leading to highly divergent definitions of “normal” video streams. Furthermore, clients often observe disjoint subsets of the global anomaly classes C. For instance, a traffic-monitoring client might exclusively observe “accident” anomalies, whereas a retail-monitoring client might only record “robbery” and “shoplifting.”
ing a robust and universally applicable representation of normal and abnormal behavior. 4.2. FedVAR: Cross-Modal Alignment and Joint Prediction To address the semantic misalignment identified in Section 4.1, FedVAR introduces a federated prototype alignment mechanism that constructs a shared global normality prototype mg ∈ RD . This prototype serves as a common semantic anchor, ensuring that all clients operate within a consistent feature space despite heterogeneous local distributions. As illustrated in Figure 2, FedVAR first performs cross-modal alignment through a shared global prototype, and then performs joint local training using re-centered visual and textual representations.
Under this non-IID environment and weakly-supervised setting, directly applying the video anomaly recognition task is problematic. Figure 1 illustrates that if each client i independently computes its local normality prototype (mi ) from its distinct normal data distributions, these prototypes diverge substantially in the CLIP embedding space. We define this crossclient divergence as semantic misalignment, where each client develops a different interpretation of “normal”. Consequently, if each client re-centers its visual and textual features based solely on its disjoint local mi , the resulting anomaly direction vectors dc will point in entirely different directions for the same underlying anomaly class. As a result, the shared trainable parameters fail to generalize across the federation, leading to degraded cross-client anomaly recognition performance. This challenge is further exacerbated by the rarity and diversity of anomalous events, which prevent any single client from learn-
Cross-Modal Alignment via Global Prototype. Prior to starting the iterative federated training rounds, each client computes its local normality prototype mi by averaging the visual features of its normal frames using the frozen CLIP image encoder Eimage (·). Let Ni denote the set of normal frames within the private dataset Di , and |Ni | be the total count of these normal 5
Li measures the prediction error of the aligned anomaly detection and recognition tasks. By minimizing this local objective, client i updates its trainable parameters θir . After local training, the updated parameters are transmitted to the central server. The server then aggregates the received client updates using standard federated averaging to produce the global model θr+1 for the next communication round. This iterative optimization, grounded in the globally aligned feature space, enables FedVAR to learn semantically consistent anomaly representations across highly heterogeneous clients.
frames. The local prototype is formulated as: mi =
1 X Eimage (I). |Ni | I∈N
(6)
i
Clients transmit their local prototypes mi and the corresponding normal frame counts |Ni | to the central server. The server then aggregates these private local representations into a shared global normality prototype mg using a weighted average: PK |Ni | · mi . (7) mg = i=1 PK i=1 |Ni |
5. Convergence Analysis
By accounting for the sizes of the local normal subsets, mg establishes a unified, semantically balanced understanding of normality across the entire federation. Following the aggregation, the server broadcasts the global prototype mg back to all clients. From this point onward, every client i transforms both its visual frame features and textual prompt embeddings using the shared global normality prototype mg : xt′ = Eimage (It ) − mg , dc = Etext [tctx , tc ] − mg .
To rigorously analyze the convergence behavior of the proposed FedVAR framework, we formalize the properties of the objective functions, the stochastic gradients, and the local training procedure. The joint trainable parameters are denoted as θ = {tctx , T }, encompassing the textual prompt tokens and the temporal module. Let Fi (θ; m) = Li (θ; Di , m) denote the local objective function evaluated with a generic prototype shift variable m. The global objective optimized by our framework PK is given by F(θ; mg ) = i=1 pi Fi (θ; mg ), where mg is the fixed i| . global normality prototype and pi = PK|D|D |
(8) (9)
j=1
j
This uniform alignment ensures that all participating clients evaluate visual and textual representations relative to an identical and aligned semantic origin in the CLIP space. By anchoring all client representations to the same global semantic origin, the resulting anomaly direction vectors become consistently aligned and comparable across heterogeneous clients.
Consistent with the local-epoch training procedure described in Section 4.2, each communication round r proceeds as follows: every client i initializes θir,0 = θr and performs E local stochastic gradient steps,
Joint Local Training through Re-centered Features. After establishing the globally aligned feature space, FedVAR collaboratively optimizes only the trainable parameters θ = {tctx , T }, consisting of the learnable context tokens in the VTP module and the Temporal module parameters. At communication round r, each participating client i initializes its local model with the current global parameters θr and performs local optimization on its private dataset Di for a fixed number of local epochs. During each local update, the client first performs joint anomaly prediction using the globally aligned representations through the VTP module and the Temporal module. Specifically, the projection of the globally re-centered visual frame feature xt′ onto the aligned anomaly direction vector dc yields the raw class-conditional likelihoods, from which the classconditional probability distribution pc|A (xt′ ) = softmax(S(xt′ )) is derived. Concurrently, the sequence of globally re-centered visual frame features {xt′ }Tt=1 is processed by the Temporal module T to estimate the binary anomaly probability pA (xt′ ). By combining these two aligned signals, the final joint probability pA,c (xt′ ) of the frame containing a specific anomaly class c ∈ C is obtained. Because the prediction is performed on the globally re-centered representations, the learnable context tokens tctx and the Temporal module parameters T are optimized under a consistent semantic coordinate system across heterogeneous clients. The resulting joint prediction is then used to compute the local loss function Li (θ; Di ) on client i’s private dataset Di , where
where η is the local learning rate and ξir,e is an independently PK sampled mini-batch. The server aggregates θr+1 = i=1 pi θir,E . This is standard multi-step Federated Averaging, with E denoting the total number of local gradient steps a client performs per communication round. We make the following standard assumptions regarding the loss surface and gradient properties, commonly adopted in the federated optimization literature: Assumption 1 (Joint L-Smoothness). The local objective functions Fi (θ; mg ) are L-smooth with respect to the joint parameter space θ = {tctx , T }. That is, for all i ∈ {1, . . . , K} and for any θ1 , θ2 , there exists a constant L > 0 such that:
θir,e+1 = θir,e − η ∇Fi (θir,e ; mg , ξir,e ),
e = 0, . . . , E − 1,
∥∇Fi (θ1 ; mg ) − ∇Fi (θ2 ; mg )∥ ≤ L∥θ1 − θ2 ∥.
(10)
(11)
Assumption 2 (Bounded Intra-client Variance). Let ξ ∼ Di denote a uniformly sampled mini-batch from the local dataset of client i. The stochastic gradient ∇Fi (θ; mg , ξ) is an unbiased estimator of the true full-batch local gradient, with variance bounded by a constant σ2 > 0: Eξ [∇Fi (θ; mg , ξ)] = ∇Fi (θ; mg ),
(12)
h i Eξ ∥∇Fi (θ; mg , ξ) − ∇Fi (θ; mg )∥2 ≤ σ2 ,
(13)
and mini-batch noise is independent across clients and across local steps within a client. 6
Adding and subtracting ∇Fi (θ; mg ) inside the norm and applying ∥A + B∥2 ≤ 2∥A∥2 + 2∥B∥2 :
Remark: To isolate the theoretical effects of our prototype alignment, we treat the Batch Normalization (BN) statistics within the VTP module as globally fixed constants. As demonstrated by prior work on FedBN [42], locally computed BN statistics on non-IID data introduce a distinct source of feature shift. Our guarantees therefore characterize the aligned optimization landscape under this standard idealization, factoring out BN-induced drift to focus purely on the mitigation of semantic misalignment. Assumption 3 (Bounded Inter-client Gradient Divergence). To quantify the baseline statistical data heterogeneity across the federation, we bound the divergence of the local gradients evaluated at the globally aligned prototype mg . There exists a constant Γglobal ≥ 0 such that for any θ: K X
pi ∥∇Fi (θ; mg ) − ∇F(θ; mg )∥2 ≤ Γ2global .
Γ2local ≤ 2
+2
(14)
(15)
for fixed x = Justification: Writing gc (m) = Eimage (It ) and ec = Etext ([tctx , tc ]) — note both terms in the numerator depend on m — gc is continuously differentiable on any domain where ∥ec −m∥ ≥ ϵ > 0, with ∥∇m gc ∥ finite and bounded in terms of ϵ and the (bounded) norms of x, ec . Since mg and every mi are convex combinations of CLIP normal-frame embeddings and are computed independently of the class prompt tokens tc , we assume this separation holds throughout training. Lemma 1 (Prototype-Induced Gradient Divergence Bound). Let Γ2global be the base gradient divergence evaluated at the globally aligned prototype mg . Suppose clients instead naively utilize their unaligned local prototypes mi , and let the corresponding unaligned local-prototype gradient divergence be defined as: pi ∥∇Fi (θ; mi ) − ∇Flocal (θ)∥2 ,
K X
pi ∥mi − mg ∥2 .
Proof Sketch. By definition, θir,e − θr = ′ ′ Pe−1 r,e r,e −η e′ =0 ∇Fi (θi ; mg , ξi ). Applying Jensen’s inequality across the e ≤ E terms, adding and subtracting ∇Fi (θr ; mg ), and P using the identity i pi ∥∇Fi (θr ; mg )∥2 ≤ Γ2global + ∥∇F(θr ; mg )∥2 (which follows from Assumption 3 via the same variance decomposition used in Lemma 1) together with Assumption 2’s variance bound, an inductive argument over e = 0, . . . , E − 1 can be formed. Because the global prototype mg remains fixed throughout the communication round, this induction is mathematically identical to the standard client drift bounds established in federated non-convex optimization. We refer readers to the exact inductive derivations provided in [43, 44], which yield the stated bound. Theorem 1 (Convergence of FedVAR on Non-Convex Objectives). Suppose Assumptions 1 through 3 hold. Assume the global objective function F(θ; mg ) is non-convex and bounded below by F ∗ . If federated training is run for R ≥ E communication rounds with E local steps per round and√a fixed global prototype mg , using a local learning rate η = c/ ER for a suf1 ficiently small constant c ≤ 8L , then the algorithm converges to a stationary point. Specifically, the average expected squared
(16)
(17)
Proof. Since ∇Flocal (θ) is the exact weighted mean of the local gradients ∇Fi (θ; mi ), replacing it with any arbitrary reference point — specifically the global aggregated gradient evaluated at mg , denoted ∇F(θ; mg ) — yields an upper bound via the fundamental property of variance: K X
pi ∥∇Fi (θ; mi ) − ∇F(θ; mg )∥2 .
(20)
+ O E 2 η2 Γ2global + E∥∇F(θr ; mg )∥2 .
i=1
Γ2local ≤
(19)
PK where ∇Flocal (θ) = i=1 pi ∇Fi (θ; mi ). Under Assumptions 3 and 4, the unaligned gradient divergence is bounded by: K X
pi E∥θir,e − θr ∥2 ≤ O Eη2 σ2
i=1
i=1
2 Γ2local ≤ 2Γ2global + 2Lm
pi ∥∇Fi (θ; mg ) − ∇F(θ; mg )∥2 .
By Assumption 3, the second term is bounded by 2Γ2global , and 2 P by Assumption 4, the first term is bounded by 2Lm i pi ∥mi − mg ∥2 . □ Practical Implications for FedVAR: This lemma shows that a framework relying on unaligned local prototypes mi carries an additional, non-negative penalty term scaling with P 2 i pi ∥mi − mg ∥ in its gradient-divergence bound. This does not by itself prove Γ2local is larger in every instance, but it shows that unaligned re-centering cannot be guaranteed better than aligned re-centering, and its theoretical guarantee is strictly worse whenever the misalignment term dominates. Because FedVAR fixes mg prior to iterative optimization, it optimizes F(θ; mg ) directly, whose heterogeneity is governed solely by Γ2global , with Theorem 1 below reflects this by construction. Lemma 1’s role is to make precise, via Proposition 1 and Corollary 1, how much worse the guarantee for an unaligned baseline would be. Lemma 2 (Bounded Client Drift). Suppose Assumptions 1–3 1 . Then for every client i and every local step hold and η ≤ 8LE e ∈ {0, . . . , E − 1} within round r,
(x−m)·(ec −m) ∥ec −m∥
K X
K X i=1
Assumption 4 (Lm -Lipschitz Gradient w.r.t. Prototype Shift). The local gradients are Lm -Lipschitz continuous with respect to the prototype shift variable m. That is, for a fixed parameter θ, and for any prototypes m1 , m2 , there exists a constant Lm > 0 such that:
Γ2local =
pi ∥∇Fi (θ; mi ) − ∇Fi (θ; mg )∥2
i=1
i=1
∥∇Fi (θ; m1 ) − ∇Fi (θ; m2 )∥ ≤ Lm ∥m1 − m2 ∥.
K X
(18)
i=1
7
ε in the O(·/R) term requires strictly more theoretical communication rounds for the unaligned baseline than for FedVAR, by a factor that grows with ∆m . Interpretation: This result formalizes the benefit of prototype alignment: the two convergence guarantees are separated by a term controlled by the prototype-misalignment term identified in Lemma 1, isolating alignment as the source of FedVAR’s improved theoretical communication efficiency, given that Assumptions 1–4 and the pointwise heterogeneity bound of Proposition 1 hold for both methods.
gradient norm is bounded by: ! R i E Γ2global 1X h 1 r 2 . E ∥∇F(θ ; mg )∥ ≤ O √ + O R r=1 R ER
(21)
Proof Sketch. We analyze one communication round as a single composite update θr+1 = θr − ηE∆r , where ∆r = PE−1 r,e r,e 1 P i pi e=0 ∇F i (θi ; mg , ξi ). By L-smoothness (Assumption E 1) and unbiasedness (Assumption 2), E[F(θr+1 ; mg )] ≤ F(θr ; mg ) − ηE⟨∇F(θr ; mg ), E[∆r ]⟩ +
L(ηE)2 E∥∆r ∥2 . 2
(22)
6. Experimental Setup We conduct extensive experiments to evaluate the effectiveness of FedVAR. This section introduces the datasets and partitioning strategies, the competing baselines, the evaluation metrics, and the implementation details.
Since every client starts round r at the shared point θr , P r r i pi ∇F i (θ ; mg ) = ∇F(θ ; mg ) exactly at e = 0; the deviation of r r E[∆ ] from ∇F(θ ; mg ) is therefore driven entirely by drift accumulated over the remaining local steps, bounded by Lemma 2. r 2 Applying Young’s inequality to isolate − ηE 2 ∥∇F(θ ; mg )∥ , substituting Lemma 2’s drift bound and the noise bound E∥∆r − E∆r ∥2 ≤ σ2 /E (Assumption 2, independence across clients), and absorbing the resulting O(η3 L2 E 3 )∥∇F(θr ; mg )∥2 term into 1 the descent term via η ≤ 8LE , we obtain
6.1. Datasets and Partitioning Strategies We evaluate our approach on three widely-used video anomaly detection benchmarks. UCF-Crime [10] is a largescale dataset comprising approximately 1,900 long untrimmed surveillance videos, covering 13 real-world anomaly categories (e.g., robbery, abuse, explosions) as well as normal activities. XD-Violence [45] is a larger and more diverse benchmark containing 4,754 untrimmed videos (217 hours in total), annotated with weak video-level labels and spanning multiple violent scenarios. ShanghaiTech Campus [46] is a medium-scale dataset of 437 surveillance videos (307 normal, 130 anomalous) captured across 13 different scenes. Following [47], we adopt its weakly supervised reorganization for evaluation. To simulate diverse and realistic federated scenarios, we adopt three distinct data partitioning strategies, consistent with prior works [17, 18]. The client-wise sample distributions for each strategy are visualized in Figure 3.
ηE E∥∇F(θr ; mg )∥2 4 (23) + O(η2 ELσ2 ) + O(η3 E 3 L2 Γ2global ).
E[F(θr+1 ; mg )] ≤ E[F(θr ; mg )] −
Telescoping this inequality over R rounds, dividing by ηER/4, √ and setting η = c/ ER yields the stated bound. Because optimizing with a statically aligned mg maps exactly to standard non-convex FedAvg, this virtual-sequence telescoping step directly mirrors the canonical proofs in [43, 44], thereby absorbing the stochastic-noise contribution into the leading √ O(1/ ER) term and isolating the aligned heterogeneity contribution in the O(EΓ2global /R) term. Proposition 1 (Convergence of the Unaligned Baseline). Suppose Assumptions 1, 2, and 4 hold, and suppose additionally that an analogous heterogeneity bound holds pointwise P at each client’s own local prototype, i.e. i pi ∥∇Fi (θ; mi ) − ∇Flocal (θ)∥2 ≤ Γ2local for all θ (the quantity defined in Lemma 1). Then, under the same step-size schedule, an identical argument to the proof of Theorem 1, in which each client i evaluates local gradients at its own prototype mi throughout local training rather than the shared mg , yields h i E Γ2local 1 1 r 2 . E ∥∇Flocal (θ )∥ ≤ O √ + O R r=1 R ER R X
1. Random Split: Videos are sampled uniformly and distributed among clients. As shown in Figure 3 (subplots (a) and (d)), this results in a relatively balanced setting where each client holds a similar number of normal and anomalous samples. However, some degree of heterogeneity may still exist in terms of the exact number of anomaly classes held by each client. 2. Event Split: Videos are partitioned based on their anomaly class (Figure 3, subplots (b) and (e)), creating a highly heterogeneous non-IID environment where each client possesses data from only one anomaly type. This setup directly tests the model’s ability to generalize across clients with non-overlapping class distributions. This setting represents an extreme but principled evaluation scenario for federated VAR, where semantic misalignment and class incompleteness are maximized.
!
(24)
Corollary 1 (Communication Efficiency and Semantic MisPK alignment). Let ∆m = i=1 pi ∥mi − mg ∥2 quantify the degree of semantic misalignment across the federation. By Lemma 1, 2 Γ2local ≤ 2Γ2global +2Lm ∆m . Combined with Theorem 1 and Proposition 1, the unaligned baseline’s guaranteed O(·/R) error floor is never smaller than, and grows without bound relative to, Fed2 VAR’s as ∆m increases. Consequently, whenever 2Lm ∆m is large 2 enough to dominate Γglobal , reaching the same target accuracy
3. Scene Split: Videos are grouped by their recording location or scene. This represents the most realistic and challenging real-world scenario. As illustrated in Figure 3 8
Normal Videos
Anomalous Videos
80 40 0
k1 k2 k3 k4 k5 k6 k7 k8 k9 k10
240 160 80 0
Number of Clients
(a) Random Split
300 200 100 0
k1 k2 k3 k4 k5 k6 k7 k8 k9 k10
Number of Clients
(d)
k1 k2 k3 k4 k5 k6 k7 k8 k9 k10k11k12k13
600 450 300 150 0
Number of Clients
Number of Videos
Number of Videos
XD-Violence
400
Number of Videos
120
Scene Split
800 600 400 200 0
k1
k2
k3
k4
k5
Number of Clients
k6
k1 k2 k3 k4 k5 k6 k7 k8 k9
Number of Clients
(b) Event Split
Number of Videos
160
Event Split Number of Videos
Number of Videos
UCF-Crime
Random Split
(c) Scene Split
1200 900 600 300 0
k1 k2 k3 k4 k5 k6 k7 k8 k9 k10k11k12k13
(e)
Number of Clients
(f)
Figure 3: Client-wise data distribution under different partitioning strategies for UCF-Crime and XD-Violence. Each plot reports, for every client, the total number of videos with normal labels and anomalous labels counted separately, where the x-axis denotes client indices and the y-axis indicates the number of videos. Results are shown for three partitioning schemes: random split, event split, and scene split, illustrating varying degrees of statistical heterogeneity across clients. Note that these counts represent video-level labels, where anomalous events may occupy only a subset of frames in each video, rather than frame-level statistics.
(subplots (c) and (f)), in this split, not only do clients receive a different number of videos, but the distribution of anomaly classes is also naturally skewed, as certain events are more likely to occur in specific scenes (e.g., road accidents on highways). This creates a complex non-IID setting that stresses both data and label heterogeneity, making fine-grained anomaly recognition substantially more difficult than binary detection.
most relevant VAD methods to construct suitable VAR baselines. Specifically: (1) For ZS-CLIP, Temp-CLIP, FedCoOp, and Fed-WSVAD, we achieve anomaly recognition by applying a softmax operation over the cosine similarities between the input frame feature x and the anomaly direction vectors derived from class-specific CLIP text embeddings. These methods operate in a weakly supervised manner. (2) For CLAP, we utilize video-level labels to generate initial pseudo-labels while employing CLIP-extracted features as input representations. We replace the original classification head with a multi-class prediction layer to recognize anomaly categories at the frame level, training it with a cross-entropy objective. For fair comparison across all baselines, we implement federated versions of nonFL models (ZS-CLIP and Temp-CLIP) using the standard FedAvg [16] aggregation protocol. All clients train locally using only their own data, while the server maintains and updates a unified global model evaluated on a shared test set.
6.2. Baselines We benchmark our method against both centralized baselines (ZS-CLIP (ICML 2021) [12], and Temp-CLIP (ECCV 2022) [19]) adapted for FL, and recent FL methods (FedCoOp (TMC 2023) [21], PPVU (DSC 2023) [20], CLAP (CVPR 2024) [18], and Fed-WSVAD (AAAI 2025) [17]). ZSCLIP [12] serves as a zero-shot CLIP baseline using handcrafted prompts of the form “this is a video of {class}.” TempCLIP [19] extends CLIP with temporal modeling for video understanding. FedCoOp [21] adapts cooperative prompt learning (CoOp) [33] to federated settings, enabling personalized text prompts for each client. PPVU [20] is a transformerbased federated video understanding framework designed for heterogeneous client environments. CLAP [18] introduces pseudo-label generation and refinement for unsupervised federated VAD. Finally, Fed-WSVAD [17] represents the current state-of-the-art in federated weakly supervised VAD, dynamically generating CLIP prompts from global textual and local visual contexts. Together, these methods span a diverse spectrum of paradigms, including zero-shot inference, temporal extension, prompt learning, and federated adaptations, ensuring a comprehensive comparison. As none of the existing methods directly address the VAR task, we repurpose the
6.3. Evaluation Metrics We conduct evaluations for both VAD and VAR. Following [10, 45, 18], VAD performance is measured at the frame level. For UCF-Crime and ShanghaiTech, we report the Area Under the Receiver Operating Characteristic Curve (AUCROC, hereafter simply referred to as AUC), which reflects the model’s ability to distinguish normal from anomalous frames independent of thresholds. For XD-Violence, where anomalies are heavily imbalanced, we follow the established protocol [45] and report Average Precision (AP) computed from the precision–recall curve. For VAR, we extend these metrics to the multi-class setting by computing class-wise AUC or AP for each anomaly category and report their mean (mAUC or mAP). 9
+6.91% and ZS-CLIP by +24.48%. Notably, it delivers substantial gains in challenging categories such as Arrest (94.53) and Shooting (86.90). These categories represent challenging cases because anomalous cues are often brief and visually overlap with normal activities. This overlap complicates recognition in federated settings, where individual clients may observe only partial or biased views of these events, causing local normality prototypes to drift and leading to inconsistent anomaly direction vectors across clients. While existing methods such as FedCoOp or Fed-WSVAD attempt to aggregate model parameters or prompts, they do not correct this drift at the feature representation level. By enforcing a shared global normality prototype, FedVAR directly anchors all clients to a common semantic reference, reducing this cross-client semantic drift and allowing anomaly direction vectors to remain aligned even when anomaly classes are sparsely or unevenly distributed across clients. This explains why FedVAR yields larger relative improvements compared to methods such as FedCoOp or FedWSVAD, which rely solely on parameter aggregation without correcting the underlying feature space misalignment.
This dual evaluation captures both binary detection capability and fine-grained anomaly classification performance. 6.4. Implementation Details We implement FedVAR using PyTorch [48] with the Flower [49] framework for federated orchestration. The CLIP visual encoder (ViT-B/16) and text encoder are pre-trained and kept frozen during training, while learnable prompts and temporal module are optimized. In order to capture both short and longrange sequential dynamics in each video, we choose the Axial Transformer [50] as the temporal module. Frame features are extracted with dimension D = 512. Each video is divided into S = 32 segments with F = 16 frames per segment. Mini-batches of size B = 32 are balanced between normal and anomalous samples following the MIL formulation. We employ the AdamW [51] optimizer with learning rates (η) of 5 × 10−4 , 1 × 10−2 , and 1 × 10−2 for ShanghaiTech, UCF-Crime, and XDViolence, respectively, and fix the prompt length to tctx = 8. We configure our federated experiments to align with established benchmarks [17, 18]. The number of clients (K) is determined by the partitioning strategy. For the Random split, we set K = 10. For the Event and Scene splits, the number of clients is naturally defined by the number of unique anomaly classes or scenes in each dataset, respectively (e.g., 13 clients for UCFCrime’s event split). In our main experiments, we adopt a full participation setup by default, where all clients participate in training during every communication round, unless explicitly varied (e.g., in Section 7.5.5). Each client performs 10 local epochs with a batch size of 32, and the global model is trained for a total of 20 FL communication rounds. All reported results are the average of three independent runs with different random seeds.
Table 3 summarizes the ShanghaiTech results, where FedVAR again establishes a clear advantage, achieving the best mean AUC (92.04). This corresponds to improvements of +14.24% over FedCoOp and +45.23% over ZS-CLIP. The dataset contains multiple anomaly categories captured from fixed surveillance viewpoints, where normal behavior is strongly dependent on the specific scene context. Under such conditions, learning a unified notion of normality across distributed training data becomes particularly difficult without an explicit alignment mechanism. The improved performance of FedVAR suggests that explicitly aligning representations related to normal behavior across clients contributes to more consistent recognition across anomaly categories. In Table 4 on XD-Violence, FedVAR achieves a mean AP of 47.93. This represents an improvement of +3.73% over FedCoOp and +12.84% over ZS-CLIP, while remaining competitive with Fed-WSVAD. XD-Violence consists of exceptionally long, untrimmed videos in which anomalous events occupy only a small fraction of each video. In this extremely sparse setting, methods like Fed-WSVAD benefit from dynamic temporal mechanisms explicitly optimized for binary anomaly localization. While this grants Fed-WSVAD a marginal performance edge on this specific benchmark (as further discussed in Section 8), FedVAR nonetheless delivers strong recognition capabilities. This indicates that our proposed global prototype alignment strategy successfully preserves cross-client semantic consistency and remains highly effective even in challenging environments characterized by long video durations and sparse anomalous segments.
7. Results and Analysis In this section, we present extensive experiments to evaluate the performance of FedVAR against state-of-the-art baselines. We analyze results across datasets, data partitioning strategies, domain shift scenarios, unseen classes, and different FL configurations. Both quantitative and qualitative analyses are provided. 7.1. Evaluation Against Baselines We begin by evaluating the VAR performance of FedVAR against representative baselines. To establish a fair and direct comparison of the fundamental recognition capabilities of each model, the results presented in Tables 2, 3, and 4 are all obtained under the Random split data partitioning scheme, as defined in Section 6.1. As detailed in Section 6.2, all models (with the exception of PPVU [20]) utilize the same frozen CLIP ViTB/16 backbone to ensure that performance differences are attributable to the federated learning approach rather than the underlying feature extractor. As reported in Table 2 for UCF-Crime, FedVAR achieves the highest mean AUC (91.06), outperforming FedCoOp by
Overall, these results validate the effectiveness of our proposed framework. By combining temporal modeling with federated normality prototype alignment and prompt learning, FedVAR delivers consistent improvements over centralized CLIP-based approaches and federated baselines, establishing new state-of-the-art performance on UCF-Crime and ShanghaiTech, while remaining highly competitive on XD-Violence. 10
Table 2: VAR results (mAUC %) on the UCF-Crime dataset under the Random split. The best-performing method for each category is highlighted in bold, while the second-best result is indicated by underline. Method Abuse Arrest Arson Assault Burglary Explosion Fighting Normal RoadAcc. Robbery Shooting Shoplifting Stealing Vandalism mAUC ZS-CLIP [12] 34.74 87.93 75.95 90.09 80.13 90.17 80.14 68.08 90.85 57.88 31.03 61.07 56.58 29.02 66.58 Temp-CLIP [19] 59.50 75.30 78.18 74.07 69.28 84.13 72.82 74.04 85.73 66.80 58.25 76.36 83.46 68.59 73.27 FedCoOp [21] 78.00 77.17 93.75 90.01 80.50 91.62 86.51 79.77 94.92 78.43 64.06 85.10 92.54 81.29 84.15 76.35 CLAP [18] 68.99 62.14 81.72 78.61 75.98 87.84 72.64 76.09 91.03 67.75 66.60 82.95 91.14 65.13 Fed-WSVAD [17] 88.00 89.74 93.10 83.17 85.51 95.44 87.65 83.04 94.87 83.17 76.69 89.95 97.50 85.13 88.46 FedVAR (ours) 79.16 94.53 95.88 94.13 89.60 93.54 89.18 85.95 93.58 88.58 86.90 90.57 97.20 90.90 91.06
Table 3: VAR results (mAUC %) on the ShanghaiTech dataset under the Random split. The best-performing method for each category is highlighted in bold, while the second-best result is indicated by underline. Method Car Chasing Circuit Fall Fighting Jumping Monocycle Normal Push Robbery Running Skateboard Stoop ThrowObj. Vaudeville Vehicle mAUC ZS-CLIP [12] 63.25 49.05 11.51 44.66 85.61 22.58 92.81 56.90 42.57 38.59 54.22 77.33 5.45 44.32 33.07 37.09 46.81 Temp-CLIP [19] 74.33 92.35 91.94 85.31 91.59 89.07 82.00 92.35 87.10 81.76 71.94 74.98 80.87 86.73 95.61 86.93 84.83 FedCoOp [21] 52.44 86.56 87.49 87.11 95.60 96.10 69.53 82.56 92.35 64.07 51.69 56.84 75.53 81.49 88.72 81.47 77.80 CLAP [18] 58.96 66.30 38.58 71.26 71.95 62.38 23.71 45.05 61.60 60.06 36.09 38.88 45.68 54.23 61.91 41.65 52.88 Fed-WSVAD [17] 85.76 95.78 98.98 71.92 93.49 88.41 86.99 90.58 85.16 58.79 52.06 61.65 39.57 83.42 90.25 83.68 78.39 FedVAR (ours) 91.70 88.11 97.47 93.82 90.56 95.90 84.07 94.81 96.04 91.95 90.64 92.78 95.30 92.82 93.26 86.20 92.04
Table 4: VAR results (mAP %) on the XD-Violence dataset under the Random split. The best-performing method for each category is highlighted in bold, while the second-best result is indicated by underline. Method ZS-CLIP [12] Temp-CLIP [19] FedCoOp [21] CLAP [18] Fed-WSVAD [17] FedVAR (ours)
Abuse 0.48 0.90 3.26 1.38 13.87 5.00
Car Accident 31.32 20.43 27.34 24.27 28.73 30.29
Explosion 68.90 47.73 69.06 48.04 70.16 66.72
Feature
Random UCF XD
Event UCF XD
Scene UCF XD
ZS-CLIP [12] Temp-CLIP [19] FedCoOp [21] PPVU [20] CLAP [18] Fed-WSVAD [17]
CLIP CLIP CLIP TimeSformer CLIP CLIP
68.08 74.04 79.77 82.90 76.09 83.04
51.93 62.81 64.14 69.87 77.33
68.08 73.09 72.53 68.41 82.95
51.93 60.88 40.98 36.43 78.93
68.08 72.73 78.09 60.29 81.90
51.93 64.47 75.44 47.60 78.54
FedVAR (ours)
CLIP
86.36
75.20
84.97
82.82
86.35
75.14
Normal 93.20 95.14 96.77 96.77 98.11 97.74
Riot 64.29 81.93 91.40 86.85 92.66 93.10
Shooting 2.21 5.37 14.69 14.82 22.04 23.46
mAP 35.09 31.77 44.20 38.47 49.33 47.93
responds to gains of +12.44% (UCF) and +41.84% (XD) over FedCoOp, highlighting the ability of our method to adapt across clients with disjoint event categories. In this setting, baselines often suffer from severe client drift because local models overfit to their specific anomaly types, pulling the global model in conflicting semantic directions. By centering all features around a globally shared normality prototype prior to temporal modeling, FedVAR ensures that each client learns consistent anomaly direction vectors. This architectural choice prevents conflicting updates and explains our stronger cross-event generalization, particularly in the untrimmed videos of XD-Violence where we outperform Fed-WSVAD by +3.89%.
Table 5: VAD results for state-of-the-art methods and FedVAR under three data partitioning strategies: Random, Event, and Scene-based splits (AUC (%) on UCF-Crime and AP (%) on XD-Violence). Method
Fighting 43.31 34.23 59.42 55.47 68.52 69.00
7.2. Comparisons on Different Data Splits
For the most challenging Scene split, where anomalies are tied to particular backgrounds or environments, FedVAR achieves 86.35 (UCF) and 75.14 (XD). This not only outperforms FedCoOp by +8.26% (UCF) but also improves substantially over CLAP by +26.06% (UCF) and +27.54% (XD). Compared to Fed-WSVAD, our method yields higher AUC on UCF (+4.45%) but slightly lower AP on XD (−3.40%). The severe performance degradation observed in baseline methods under the Scene split occurs because “normal” background features heavily dominate the representations, causing misalignments across clients deployed in different physical locations. FedVAR’s prototype alignment naturally subtracts this scenespecific bias by re-centering the features, effectively isolating the dynamic anomalous events from the static background.
In order to measure how well each federated method maintains performance as the client data becomes increasingly nonIID, we now analyze the model’s robustness to varying degrees of data heterogeneity. In this subsection, we evaluate the VAD performance across all three data partitioning strategies: Random, Event, and Scene splits, discussed in Section 6.1. The results are presented in Table 5. Under the Random split, FedVAR achieves an AUC of 86.36 on UCF-Crime and an AP of 75.20 on XD-Violence, surpassing FedCoOp by +6.59% (UCF) and +11.06% (XD), and outperforming Fed-WSVAD by +3.32% on UCF while remaining competitive on XD. Compared to ZS-CLIP, our approach delivers large improvements of +18.28% (UCF) and +23.27% (XD), confirming that simple handcrafted prompts fail to generalize in federated settings. On the Event split, which introduces stronger distributional skew, FedVAR achieves 84.97 (UCF) and 82.82 (XD). This cor-
Overall, these results demonstrate that FedVAR consistently maintains strong performance across diverse data splits. The robustness of our approach highlights that aggregating normality prototypes is not just a regularization technique, but a funda11
Table 6: Cross-domain generalization results when XD-Violence is used as the source dataset (AUC (%) on UCF-Crime and ShanghaiTech, and AP (%) on XD-Violence).
Method
Table 7: Cross-domain generalization results when UCF-Crime is used as the source dataset (AUC (%) on UCF-Crime and ShanghaiTech, and AP (%) on XD-Violence).
Source XD
Target UCF SHTech
Method
Source UCF
XD
ZS-CLIP [12] Temp-CLIP [19] FedCoOp [21] Fed-WSVAD [17]
51.93 62.81 64.14 77.33
68.08 69.95 72.27 78.70
56.90 49.48 61.09 38.05
FedVAR (ours)
75.20
81.66
48.23
Target SHTech
ZS-CLIP [12] Temp-CLIP [19] FedCoOp [21] Fed-WSVAD [17]
68.08 74.04 79.77 83.04
51.93 48.78 58.22 65.42
56.90 53.98 54.91 59.46
FedVAR (ours)
86.36
60.20
65.71
Table 8: Unseen anomaly class generalization results (AUC (%) on UCF-Crime and ShanghaiTech, and AP (%) on XD-Violence).
mental mechanism to correct the underlying feature-space divergence, strengthening generalization across highly non-IID events and scenes. 7.3. Cross-Domain Generalization We next examine how well FedVAR generalizes to unseen datasets when trained on a single source domain. This scenario evaluates robustness under cross-domain generalization settings, a critical challenge for practical deployment where anomaly distributions vary across environments. We adopt the random split and train a single shared prompt vector, then test transfer learning performance across UCF-Crime, XDViolence, and ShanghaiTech. The results are reported in Tables 6 and 7. When trained on XD-Violence, FedVAR achieves 81.66 AUC on UCF-Crime and 48.23 AUC on ShanghaiTech, outperforming Fed-WSVAD by +2.96% and 10.18% respectively. Notably, while Fed-WSVAD achieves higher AP on the source dataset, its transfer to ShanghaiTech drops severely (38.05), whereas FedVAR remains more stable (48.23, +10.18%). This sharp drop in baseline performance occurs because standard models tend to memorize the absolute visual appearance and background contexts of the source domain anomalies. In contrast, FedVAR learns anomalies as relative deviations from the shared normality prototype in the aligned feature space. Because “normal” behavioral patterns (e.g., pedestrians walking) are structurally more consistent across domains than anomalies (e.g., specific fighting styles), realigning client knowledge around this common notion of normality provides a powerful domain-invariant regularization. Conversely, when trained on UCF-Crime, FedVAR reaches 60.20 AP on XD-Violence and 65.71 AUC on ShanghaiTech. While Fed-WSVAD achieves higher transfer performance on XD-Violence (likely due to its temporal mechanisms being specifically optimized for sparse anomaly localization in long untrimmed videos), FedVAR demonstrates stronger generalization on ShanghaiTech, where scene diversity and crossdomain semantic consistency become more critical. Compared to earlier CLIP-based baselines, our method provides substantial gains: +10.80% over FedCoOp and +11.73% over TempCLIP on ShanghaiTech. These results confirm that prototype aggregation not only enhances in-domain performance but also equips the global model with stronger transferability across disjoint datasets with drastically different visual conditions.
Method
UCF
XD
SHTech
ZS-CLIP [12] Temp-CLIP [19] FedCoOp [21] Fed-WSVAD [17]
68.08 76.28 76.26 80.72
51.93 65.78 60.19 77.69
56.90 92.51 82.45 89.35
FedVAR (ours)
83.06
73.08
93.69
Overall, FedVAR demonstrates consistent robustness under domain shift, achieving the best or second-best performance in nearly all cases. Importantly, unlike Fed-WSVAD, which often sacrifices cross-domain stability to maximize source-domain localization, our approach balances in-domain performance with out-of-domain generalization. This proves that anchoring learning to a transferable representation of normality prevents models from overfitting to source-specific biases, allowing the framework to successfully generalize to entirely novel domains. 7.4. Generalization to Unseen Classes We further evaluate the generalization ability of FedVAR to anomaly categories that are entirely absent during training, a crucial capability for real-world deployment. For this experiment, we partitioned the anomaly classes of each dataset into two disjoint sets of approximately equal size: “base” (seen during training) and “new” (unseen, used for testing). This onetime split was performed randomly and then held fixed for all evaluated methods to ensure a consistent and fair comparison. Videos from base classes were used for federated training under the Event split, where each client owns a completely disjoint anomaly class, simulating a challenging scenario where the model must learn a generalizable concept of “abnormality” without seeing all event types. A single shared prompt vector was optimized during training. The results, reported in Table 8, measure the model’s ability to extrapolate to the “new” classes. On UCF-Crime, FedVAR achieves an AUC of 83.06, outperforming Fed-WSVAD by +2.34% and surpassing TempCLIP by +6.78%. On ShanghaiTech, our approach achieves 93.69 AUC, marking a +1.18% gain over Temp-CLIP and a +4.34% improvement over Fed-WSVAD. On XD-Violence, while Fed-WSVAD attains the highest AP (77.69), FedVAR remains competitive at 73.08, exceeding Temp-CLIP and FedCoOp by +7.30% and +12.89%, respectively. 12
Table 9: Ablation study on the effect of using global and local normality prototypes on UCF-Crime and XD-Violence (AUC (%) on UCF-Crime and AP (%) on XD-Violence).
Normality Prototype mg ✓
UCF
XD
mi
Random
Event
Scene
AVG
Random
Event
Scene
AVG
✓
85.95 86.36
84.13 84.97
83.82 86.35
84.63 85.89
69.45 75.20
73.83 82.82
72.59 75.14
71.95 77.72
Table 10: Ablation study of the temporal modeling component on UCF-Crime.
These results highlight two key observations. First, compared to prior CLIP-based federated methods such as FedCoOp, our approach consistently demonstrates strong improvements due to our joint vision-text temporal formulation. As FedVAR aligns the visual features around the global normality prototype, the textual prompts primarily learn the geometric property of “deviation” rather than memorizing the exact visual signatures of the training classes. Consequently, when an unseen anomaly occurs, it naturally projects strongly along the learned deviation vectors in the shared CLIP space, allowing the model to better generalize to unseen anomalies. Second, while Fed-WSVAD achieves stronger performance on XD-Violence, potentially benefiting from its temporal modeling mechanisms for localizing short anomalous events within long untrimmed videos, FedVAR demonstrates stronger generalization on UCFCrime and ShanghaiTech, which appear to benefit more from robust semantic representations and cross-client feature alignment under heterogeneous federated settings. Overall, this confirms that our federated prototype aggregation strategy successfully promotes extrapolation beyond known anomaly classes. By learning a generalizable representation of “abnormality” as a deviation from an aligned normal representation, FedVAR provides a robust solution for real-world systems where novel anomalous events continually emerge.
Temporal Module
AUC
mAUC
Frame-wise Similarity 3-Layer MLP Axial Transformer
74.08 84.44 86.36
83.53 88.10 91.06
to overcome the semantic misalignment inherent in federated VAR. By establishing a shared, global representation of normality, our framework ensures that clients learn consistent and compatible decision boundaries. 7.5.2. Impact of Temporal Modeling To isolate the contribution of the temporal module T in FedVAR, we compare the proposed structured attention mechanism against two structural variants. First, we remove the temporal module entirely by deriving anomaly scores directly from the frame-level vision–language similarities, thereby eliminating any learned temporal dependency. Second, we replace the transformer with a 3-Layer MLP operating over temporally flattened features. This preserves the overall representational capacity and allows for limited cross-frame interaction without employing a structured attention mechanism. The experimental results are presented in Table 10. The results clearly demonstrate that explicit temporal reasoning is critical for video anomaly recognition. The framewise similarity variant achieves the lowest performance (74.08 AUC), indicating that relying solely on independent visualtextual alignment is insufficient for distinguishing complex anomalies that unfold over time. While introducing the 3-layer MLP provides a substantial improvement (+10.36% AUC) by enabling basic cross-frame interactions, it still falls short of the full model. The proposed Axial Transformer achieves the highest performance (86.36 AUC and 91.06 mAUC). This confirms that simple non-linear transformations over flattened features cannot adequately substitute the explicit, structured attention mechanisms required to capture long-range temporal dependencies and refine anomaly localization across video sequences.
7.5. Ablation Studies 7.5.1. Ablation Study on Normality Prototype To validate the effectiveness of the proposed global normality prototype aggregation, we perform ablation experiments by removing the federated prototype alignment module and training clients using only their local normality prototypes mi . Table 9 reports the results across UCF-Crime and XD-Violence under the three partitioning schemes. When using only local normality prototypes mi , performance consistently drops across all settings, indicating that without the shared anchor provided by the global prototype mg , client models learn semantically misaligned feature spaces, leading to a degraded global model. In contrast, introducing the global normality prototype mg yields clear and consistent gains, with an average improvement of +1.26% AUC on UCF-Crime and +5.77% on XD-Violence. The larger improvement on XD-Violence, which exhibits greater domain diversity, highlights the global prototype’s role in stabilizing feature alignment under highly heterogeneous client distributions. These findings demonstrate that our proposed prototypebased alignment mechanism is the key driver of FedVAR’s robustness. Naively training with local prototypes is insufficient
7.5.3. Impact of Prompt Learning Strategies To evaluate the effectiveness of prompt learning in guiding the model through the pre-trained CLIP feature space, we ablate the design of the textual context vectors. Specifically, we compare our learnable prompt approach against a baseline using fixed, hand-crafted prompts (e.g., “This is a video of a {class}”). Furthermore, to justify the parameterization of 13
Table 13: Impact of CPR on UCF-Crime performance with N = 10 total clients.
Table 11: Ablation study of textual prompt strategies on UCF-Crime.
Prompt Strategy
AUC
mAUC
CPR
AUC
mAUC
Manual Prompts Shared Context tctx Class-Specific Context tctx
84.94 85.85 86.36
85.31 90.16 91.06
0.2 0.4 0.6 0.8 1.0
85.60 85.92 85.98 86.05 86.36
89.98 90.00 90.30 90.42 91.06
Table 12: Comparison of different federated aggregation strategies on UCFCrime.
FL Strategy
AUC
mAUC
FedYogi [52] FedMedian [53] FedAvgM [54] FedAvg [16]
84.58 85.76 86.11 86.36
86.18 90.35 90.49 91.06
highest overall AUC (86.11), indicating that server-side momentum effectively dampens the stochastic noise and stabilizes the global model trajectory in the presence of diverse client-side anomaly direction vectors. FedAvg achieves the highest mAUC (91.06), suggesting that the prototype-aligned feature space is inherently well-conditioned for simple averaging across heterogeneous classes. Ultimately, the consistent performance across FedYogi, FedMedian, FedAvgM, and FedAvg highlights that the prototypealignment mechanism, rather than the specific aggregation math, is the primary driver of FedVAR’s robustness in decentralized environments.
our context vectors, we compare a shared context token design (where a single set of learnable tokens is shared across all anomaly classes) against our default class-specific context token approach (where each anomaly class possesses unique learnable tokens). The experimental results on the UCF-Crime dataset are detailed in Table 11. The results indicate that navigating the CLIP space benefits from optimal textual representations. The manual prompts yield the lowest performance (85.31 mAUC), demonstrating that static, engineered templates are insufficient for capturing the complex and highly variable visual semantics of video anomalies. Introducing learnable prompts provides an immediate performance boost. The shared contexts variant significantly improves the mAUC to 90.16%, proving that continuous prompt tuning effectively adapts the CLIP space for domainspecific anomaly recognition. However, the class-specific context token achieves the best overall performance (86.36 AUC and 91.06 mAUC). This confirms that assigning unique learnable directions for each anomaly category provides the necessary fine-grained semantic anchors to robustly resolve clientside misalignment across highly diverse abnormal events.
7.5.5. Impact of Client Participation Ratio To investigate the scalability and communication efficiency of FedVAR for real-world deployments, we analyze the impact of partial client participation on model performance. Using a total pool of N = 10 clients under the Random Split on UCF-Crime, we vary the Client Participation Ratio (CPR) ∈ {0.2, 0.4, 0.6, 0.8, 1.0}, representing the fraction of clients randomly sampled to perform local updates in each communication round. This experiment assesses the model’s sensitivity to reduced data updates and identifies potential performance saturation points. The results are detailed in Table 13. The empirical results reveal that FedVAR exhibits stable performance across varying participation regimes. Even with only 20% client participation, the framework achieves 85.60 AUC, a marginal degradation of only 0.76% compared to full participation. This suggests that the global normality prototype can be effectively maintained even with sparse updates, as the shared semantic anchor provides a strong inductive bias that remains consistent across partial client subsets. For real-world deployment, these findings imply that FedVAR can maintain highfidelity anomaly recognition even under high client volatility or limited communication bandwidth, as full participation is not strictly required to achieve near-optimal performance. It is also important to clarify the relationship between partial client participation and the global normality prototype mg . As detailed in Section 4.2, the global prototype mg is aggregated only once prior to the start of the iterative federated training rounds. For the results presented in Table 13, mg was computed using the initial pool of available participating clients before the FL rounds began. In a real-world dynamic deployment where edge clients frequently drop out or join, newly joined or previously absent clients do not need to retrain the prototype. Instead, they can simply download the current mg from the server to immediately align their local feature spaces. To account for
7.5.4. Impact of Federated Aggregation Strategies To evaluate the impact of different federated aggregation strategies on FedVAR performance, we benchmark our framework against four representative aggregation strategies: FedAvg [16], FedAvgM [54] (momentum-based), FedMedian [53] (robust aggregation), and FedYogi [52] (adaptive optimization). For each strategy, we use the default hyperparameters originally proposed for each algorithm to ensure a standardized comparison without strategy-specific tuning. The results on the UCF-Crime dataset are summarized in Table 12. The results demonstrate that FedVAR is highly compatible with coordinate-wise averaging and robust aggregation. FedYogi achieves competitive performance (84.58 AUC and 86.18 mAUC), indicating that adaptive optimization remains applicable within the FedVAR framework. FedMedian further confirms that our alignment mechanism produces a strong global consensus, making the model resilient even to nonweighted robust aggregation. FedAvgM yields the second14
Table 14: Robustness of FedVAR under varying fractions of noisy clients (ρ) and local noise ratios (ϕ) on UCF-Crime. Noisy Clients (ρ) Noise Ratio (ϕ) 5% 10% 20% 50%
20% AUC 85.92 86.33 85.91 86.18
mAUC 90.24 90.98 90.44 90.45
40% AUC 85.72 85.30 84.75 83.51
mAUC 89.87 90.19 89.36 88.45
Table 15: Comparison of system efficiency and overhead. GFLOPs are calculated per video sequence. Communication cost represents the total upload and download size per client during a single federated communication round.
60% AUC 86.06 86.80 84.41 80.35
mAUC
Method
Params (M)
GFLOPs
Comm (MB/Rd)
90.60 90.80 88.94 83.66
ZS-CLIP [12] Temp-CLIP [19] FedCoOp [21] Fed-WSVAD [17]
0.00 3.48 0.07 10.82
54.25 5.05 2.17 7.70
0.00 26.61 0.56 82.60
FedVAR (ours)
10.43
12.03
79.57
long-term distributional shifts in the edge network, the server can periodically update mg (e.g., via an exponential moving average of newly uploaded local prototypes from joining clients) without requiring a complete restart of the federated training process.
and lacks the necessary temporal reasoning for video anomaly recognition. FedCoOp exhibits the lowest communication overhead (0.56 MB/Rd) by exclusively learning textual prompts, but as demonstrated in previous sections, this comes at the cost of significantly lower recognition accuracy. In contrast, FedVAR strikes an optimal balance. By keeping the heavy CLIP visual and textual backbones completely frozen, it requires only 10.43M trainable parameters, comprising the prompt context tokens and the lightweight Axial Transformer. This results in a highly efficient communication cost of 79.57 MB per round. It is worth noting that our proposed global normality prototype alignment adds virtually zero communication overhead, as it only requires uploading a single Ddimensional vector from each client exactly once prior to the start of the FL rounds. Computationally, because spatial features can be cached, the local computational cost is restricted to 12.03 GFLOPs per sequence. Compared to the most recent state-of-the-art baseline, Fed-WSVAD, FedVAR requires slightly less communication bandwidth (79.57 MB vs. 82.60 MB). While our framework imposes a marginally higher computational cost (12.03 vs. 7.70 GFLOPs), this is due to the structured temporal interactions of the axial attention√mechanism. Notably, the Axial Transformer scales at O(T T ) with respect to sequence length, making it fundamentally more efficient than standard O(T 2 ) temporal self-attention used in standard architectures, allowing it to process long untrimmed videos efficiently. Ultimately, these metrics serve as hardware-agnostic indicators of efficiency. Because our empirical evaluation was conducted on a single GPU (NVIDIA A100) using pre-extracted CLIP visual features, these figures do not fully encapsulate realworld edge constraints such as strict memory bottlenecks, continuous I/O latency, or thermal limits. Nonetheless, compared to existing baselines, FedVAR demonstrates a highly favorable efficiency profile, making it a strong and scalable candidate for deployment in decentralized IIoT and CPS environments.
7.5.6. Robustness to Client-Side Data Quality To evaluate the resilience of FedVAR against low-quality or noisy decentralized client data, we introduce controlled label noise into a subset of clients. We vary the fraction of noisy clients (ρ ∈ {0.2, 0.4, 0.6}) and the local noise ratio (ϕ ∈ {5%, 10%, 20%, 50%}), where ϕ represents the percentage of swapped normal and abnormal frame features. This setup simulates scenarios in which clients provide mislabeled or skewed samples for calculating the global normality prototype. The results are detailed in Table 14. The empirical results demonstrate that FedVAR is highly resilient to moderate noise levels. When 20% of the clients are noisy, the performance remains stable even at a 50% noise ratio, with AUC and mAUC values (86.18 and 90.45) nearly identical to the clean baseline. This suggests that the weighted aggregation of local normality prototypes effectively filters out sparse semantic noise. As the fraction of noisy clients increases to 40% and 60%, performance remains robust for low-to-moderate noise ratios (ϕ ≤ 10%). Significant degradation is only observed in the extreme case where 60% of the network provides 50% corrupted data (80.35 AUC), as the global normality prototype begins to be dominated by the misaligned representations. These findings confirm that FedVAR’s prototype-alignment mechanism provides a robust semantic anchor for the decentralized network, ensuring consistent recognition performance even when a significant portion of edge clients possess noisy data. 7.6. System Efficiency and Overhead Analysis To complement the theoretical analysis and validate the feasibility of FedVAR for real-world edge deployment, we empirically evaluate the system overhead compared to state-of-the-art baselines. We measure three critical metrics: Trainable Parameters (in Millions, M), Computational Cost per video sequence (in Giga Floating-Point Operations, GFLOPs), and the Communication Cost per federated round (in Megabytes/Round, MB/Rd). The results are summarized in Table 15. As shown in Table 15, ZS-CLIP requires zero trainable parameters and no communication overhead. However, relying entirely on dense and unoptimized frame-text similarities results in the highest computational cost (54.25 GFLOPs)
7.7. Qualitative Results To further demonstrate the interpretability and robustness of FedVAR, we visualize the temporal prediction patterns across representative test videos from UCF-Crime, XD-Violence, and ShanghaiTech. Figure 4 presents qualitative examples showing the frame-level anomaly probabilities and corresponding predicted anomaly classes produced by our model. As observed, FedVAR generates temporally consistent anomaly scores that 15
0.5 0.0
0
1.0
200
600
800
Frame Number
Explosion
0
1.0
200
01_0025
0.5 0.0
400
Black.Hawk.Down.2001__#01-42-58_01-43-58_label_G-0-0
0.5 0.0
Explosion
0
400
600
800
Frame Number
1000
1200
1600
Normal 1000
vehicle 100
1400
1200
1400
Normal 200
300
Frame Number
400
500
600
Anomaly Score
Normal
Anomaly Score
Explosion017_x264
Anomaly Score
UCFCrime
Anomaly Score Anomaly Score
XD-Violence ShanghaiTech
Anomaly Score
1.0
1.0
Arson016_x264
Normal
0.5 0.0
0
1.0
600
800
1000
0
200
01_0135
0
50
400
100
1400
1600
Riot 600
Frame Number
Normal
0.5
1200
Frame Number
Normal
1.0
0.0
400
v=2WkuPNLfl5s__#1_label_B4-0-0
0.5 0.0
200
Arson
800
1000
1200
car 150
200
Frame Number
250
300
350
400
Figure 4: Qualitative visualization of anomaly predictions from FedVAR on representative test videos from UCF-Crime, XD-Violence, and ShanghaiTech. For each video, the lower plots depict the predicted frame-level anomaly probabilities and predicted anomaly classes over time, while the red shaded regions indicate ground-truth anomalous intervals. Example frames above the plots show red boxes marking detected anomalous segments and blue boxes denoting normal segments. The close correspondence between predicted scores and ground-truth intervals demonstrates FedVAR’s ability to maintain temporal consistency and robust anomaly recognition across domains.
First, despite its robust semantic alignment, FedVAR exhibits a slight performance gap compared to Fed-WSVAD on the XDViolence benchmark (mAP of 47.93 vs. 49.33, as shown in Section 7.1). We attribute this to the inherent structural differences in handling extreme temporal sparsity. XD-Violence consists of long, untrimmed videos where anomalous segments are exceedingly short. Fed-WSVAD utilizes dynamic, contextaware prompt generation specifically optimized to capture and localize transient anomaly peaks in such long sequences. In contrast, FedVAR prioritizes semantic class separation (recognition) across clients via its prototype anchor, while relying on a standard Axial Transformer for temporal modeling. In extremely sparse videos, this coarse temporal aggregation can slightly dilute the anomaly localization signal. To close this gap, future iterations of FedVAR could integrate fine-grained, multi-scale temporal modeling or temporal contrastive learning to enhance boundary localization without sacrificing semantic consistency.
closely follow the ground-truth intervals. The predicted abnormal frames typically coincide with key abnormal moments such as explosions, physical assaults, or vehicles intruding into pedestrian areas, while normal scenes maintain consistently low anomaly probabilities. Notably, the anomaly scores exhibit smooth temporal transitions rather than abrupt fluctuations, reflecting the stability introduced by prototype-guided alignment and indicating that the model has learned a coherent representation of abnormal patterns across videos. Overall, these qualitative observations align with the quantitative trends reported earlier, confirming that the proposed federated prompt aggregation enables consistent anomaly localization and recognition under heterogeneous and unseen conditions. 8. Discussion and Limitations While FedVAR demonstrates strong capabilities in establishing semantic consistency across decentralized clients, it is equally important to critically analyze its performance boundaries. In this section, we discuss the current limitations of our framework, contextualize these constraints within practical deployment scenarios, and outline concrete directions for future improvement.
A second limitation pertains to the aggregation of the global normality prototype. Currently, FedVAR utilizes a sample-size weighted average (Eq. 7), which implicitly assumes that the quantity of normal frames is a reliable proxy for data quality. However, in practical Industrial IoT and Cyber-Physical 16
Systems, data quality is often compromised by sensor degradation, environmental noise, or highly skewed local distributions. As demonstrated in our noise injection experiments (Section 7.5.6), FedVAR demonstrates resilience to sparse semantic noise in client data. However, the semantic integrity of the global normality prototype can degrade under extreme conditions, as it becomes dominated by misaligned representations. To improve the framework’s robustness against such highly degraded edge environments, future work could explore robust statistical aggregation strategies. Replacing the simple weighted average with a Coordinate-wise Median or a Trimmed Mean [53] would allow the server to discard extreme “semantic outliers” before calculating the global prototype. Furthermore, integrating Byzantine-robust aggregators, such as Krum [55], could secure the global semantic anchor against both unintentional label noise and targeted adversarial poisoning, ultimately ensuring highly reliable decentralized intelligence. Finally, while Section 7.6 highlights the relative efficiency of FedVAR, our current system overhead analysis is based on experiments conducted on a data-center GPU with pre-cached features. Real-world edge computing, IIoT, and CPS scenarios impose strict constraints on memory footprint, continuous I/O latency, and thermal limits. Comprehensive benchmarking on actual edge hardware (e.g., NVIDIA Jetson platforms) and integrating edge-specific optimizations, such as feature quantization, adaptive caching, or knowledge distillation, remain important directions for future work to validate the end-to-end operational viability of the framework on resource-constrained devices.
contributing to the development of resilient cyber-physical infrastructures. CRediT authorship contribution statement Ghani Haider: Conceptualization, Methodology, Software, Investigation, Writing – original draft, Writing – Reviewing and Editing, Visualization, Validation. Majid Kundroo: Writing – Reviewing and Editing, Validation, Supervision. Boyun Eom: Writing - Reviewing and Editing, Supervision. Dong-Hwan Park: Writing- Reviewing and Editing, Supervision, Project administration, Funding acquisition. Chen Chen: Writing – Reviewing and Editing, Validation. Taehong Kim: WritingReviewing and Editing, Resources, Supervision, Project administration, Funding acquisition. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Data availability The datasets we used are publicly available. Acknowledgments This work is supported by the Korea Agency for Infrastructure Technology Advancement (KAIA) grant funded by the Ministry of Land, Infrastructure and Transport (Grant: RS2022-00155803).
9. Conclusion In this paper, we introduced FedVAR, the first framework specifically designed to tackle the challenging task of finegrained VAR within a privacy-preserving federated learning setting. We identified semantic misalignment, the divergence of client feature spaces due to highly non-IID data, as the critical barrier to effective federated VAR. To overcome this, we propose a novel prototype-based alignment mechanism. By aggregating clients’ local normality prototypes into a single global semantic anchor, all clients explicitly re-center their visual and textual feature spaces. This technique enforces a consistent understanding of “normality” across the federation, enabling the learning of a robust and generalizable global model suitable for diverse edge environments. Extensive experiments on three challenging benchmarks (UCF-Crime, XD-Violence, and ShanghaiTech) empirically validate the effectiveness of our approach. FedVAR consistently outperforms state-of-the-art federated baselines across diverse data partitioning schemes, demonstrating strong robustness to the client heterogeneity typical of real-world IIoT networks. Furthermore, we demonstrate strong generalization capabilities in both cross-domain settings and unseen anomaly classes. Overall, FedVAR successfully establishes a strong new baseline for decentralized video anomaly recognition. We believe this work paves the way for more practical, privacy-aware, and intelligent video analysis systems,
References [1] M. Abdalla, S. Javed, M. Al Radi, A. Ulhaq, N. Werghi, Video anomaly detection in 10 years: A survey and outlook, Neural Computing and Applications (2025) 1–44. [2] W. Ullah, A. Ullah, T. Hussain, K. Muhammad, A. A. Heidari, J. Del Ser, S. W. Baik, V. H. C. De Albuquerque, Artificial intelligence of things-assisted two-stream neural network for anomaly detection in surveillance big video data, Future Generation Computer Systems 129 (2022) 286–297. [3] E. Politi, C. Davalas, C. Chronis, G. Dimitrakopoulos, D. Michail, I. Varlamis, Real-time quality monitoring and anomaly detection for vision sensors in connected and autonomous vehicles, IEEE Access (2025). [4] L. Bedogni, M. Mamei, M. Picone, M. Pietri, F. Zambonelli, Fluid computing & digital twins for intelligent interoperability in the iot ecosystem, Future Generation Computer Systems (2025) 107855. 17
[5] I. Pathirannahalage, V. Jayasooriya, J. Samarabandu, A. Subasinghe, A comprehensive analysis of real-time video anomaly detection methods for human and vehicular movement, Multimedia Tools and Applications 84 (10) (2025) 7519–7564.
[17] B. Wang, C. Huang, J. Wen, W. Wang, Y. Liu, Y. Xu, Federated weakly supervised video anomaly detection with multimodal prompt, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 39, 2025, pp. 21017– 21025.
[6] A. Hussain, W. Ullah, N. Khan, Z. A. Khan, H. Yar, S. W. Baik, Class-incremental learning network for real-time anomaly recognition in surveillance environments, Pattern Recognition 170 (2026) 112064.
[18] A. Al-Lahham, M. Z. Zaheer, N. Tastan, K. Nandakumar, Collaborative learning of anomalies with privacy (clap) for unsupervised video anomaly detection: A new baseline, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024, pp. 12416–12425.
[7] S. Alem, D. Espes, L. Nana, E. Martin, F. De Lamotte, A novel bi-anomaly-based intrusion detection system approach for industry 4.0, Future Generation Computer Systems 145 (2023) 267–283.
[19] C. Ju, T. Han, K. Zheng, Y. Zhang, W. Xie, Prompting visual-language models for efficient video understanding, in: European conference on computer vision, Springer, 2022, pp. 105–124.
[8] S. Djebali, G. Guerard, I. Taleb, Survey and insights on digital twins design and smart grid’s applications, Future Generation Computer Systems 153 (2024) 234–248.
[20] K. Doshi, Y. Yilmaz, Privacy-preserving video understanding via transformer-based federated learning, in: 2023 IEEE Conference on Dependable and Secure Computing (DSC), IEEE, 2023, pp. 1–8.
[9] M. Elshenawy, B. Abdulhai, M. El-Darieby, Towards a service-oriented cyber-physical systems of systems for smart city mobility applications, Future Generation Computer Systems 79 (2018) 575–587.
[21] T. Guo, S. Guo, J. Wang, X. Tang, W. Xu, Promptfl: Let federated participants cooperatively learn prompts instead of models–federated learning in age of foundation model, IEEE Transactions on Mobile Computing 23 (5) (2023) 5179–5194.
[10] W. Sultani, C. Chen, M. Shah, Real-world anomaly detection in surveillance videos, in: Proceedings of the IEEE conference on computer vision and pattern recognition, 2018, pp. 6479–6488.
[22] D. Gong, L. Liu, V. Le, B. Saha, M. R. Mansour, S. Venkatesh, A. v. d. Hengel, Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection, in: Proceedings of the IEEE/CVF international conference on computer vision, 2019, pp. 1705–1714.
[11] H. Karim, K. Doshi, Y. Yilmaz, Real-time weakly supervised video anomaly detection, in: Proceedings of the IEEE/CVF winter conference on applications of computer vision, 2024, pp. 6848–6856. [12] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., Learning transferable visual models from natural language supervision, in: International conference on machine learning, PMLR, 2021, pp. 8748–8763.
[23] W. Liu, W. Luo, D. Lian, S. Gao, Future frame prediction for anomaly detection–a new baseline, in: Proceedings of the IEEE conference on computer vision and pattern recognition, 2018, pp. 6536–6545.
[13] L. Zanella, B. Liberatori, W. Menapace, F. Poiesi, Y. Wang, E. Ricci, Delving into clip latent space for video anomaly recognition, Computer Vision and Image Understanding 249 (2024) 104163.
[24] M. Qasim, E. Verdu, Video anomaly detection system using deep convolutional and recurrent models, Results in Engineering 18 (2023) 101026.
[14] M. M. Salim, D. Camacho, J. H. Park, Digital twin and federated learning enabled cyberthreat detection system for iot networks, Future Generation Computer Systems 161 (2024) 701–713.
[25] X. Chen, S. Kan, F. Zhang, Y. Cen, L. Zhang, D. Zhang, Multiscale spatial temporal attention graph convolution network for skeleton-based anomaly behavior detection, Journal of visual communication and image representation 90 (2023) 103707.
[15] A. Barbone, N. Bicocchi, M. Martinelli, R. Morandi, M. Picone, On-device ai and digital twins: a synergistic approach to intelligent cyber-physical systems, Future Generation Computer Systems (2025) 108068.
[26] K. Biradar, D. K. Tyagi, R. B. Battula, P. Subbarao, Robust anomaly detection through transformer-encoded feature diversity learning, in: Proceedings of the Asian Conference on Computer Vision, 2024, pp. 115–128.
[16] B. McMahan, E. Moore, D. Ramage, S. Hampson, B. A. y Arcas, Communication-efficient learning of deep networks from decentralized data, in: Artificial intelligence and statistics, PMLR, 2017, pp. 1273–1282.
[27] P. Wu, X. Zhou, G. Pang, Y. Sun, J. Liu, P. Wang, Y. Zhang, Open-vocabulary video anomaly detection, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024, pp. 18297–18307. 18
[28] H. Lv, Z. Yue, Q. Sun, B. Luo, Z. Cui, H. Zhang, Unbiased multiple instance learning for weakly supervised video anomaly detection, in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2023, pp. 8022–8031.
[40] T. Guo, S. Guo, J. Wang, Pfedprompt: Learning personalized prompt for vision-language models in federated learning, in: Proceedings of the ACM Web Conference 2023, 2023, pp. 1364–1374. [41] F.-E. Yang, C.-Y. Wang, Y.-C. F. Wang, Efficient model personalization in federated learning via client-specific prompt generation, in: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023, pp. 19159–19168.
[29] Z. Lu, H. Pan, Y. Dai, X. Si, Y. Zhang, Federated learning with non-iid data: A survey, IEEE Internet of Things Journal 11 (11) (2024) 19188–19209. [30] M. Kundroo, S. H. Kim, T. Kim, Fedchyper: Clientside dynamic hyper-parameter tuning for enhanced federated learning, Journal of Systems Architecture 177 (2026) 103843.
[42] X. Li, M. Jiang, X. Zhang, M. Kamp, Q. Dou, Fedbn: Federated learning on non-iid features via local batch normalization, in: International Conference on Learning Representations (ICLR), 2021.
[31] H. Xiang, X. Zhang, X. Xu, A. Beheshti, L. Qi, Y. Hong, W. Dou, Federated learning-based anomaly detection with isolation forest in the iot-edge continuum, ACM Transactions on Multimedia Computing, Communications and Applications 22 (1) (2026) 1–19.
[43] S. Wang, T. Tuor, T. Salonidis, K. K. Leung, C. Makaya, T. He, K. Chan, Adaptive federated learning in resource constrained edge computing systems, IEEE journal on selected areas in communications 37 (6) (2019) 1205–1221.
[32] B. Dong, D. Chen, Y. Wu, S. Tang, Y. Zhuang, Fadngs: Federated learning for anomaly detection, IEEE Transactions on Neural Networks and Learning Systems (2024).
[44] H. Yang, M. Fang, J. Liu, Achieving linear speedup with partial worker participation in non-iid federated learning, in: International Conference on Learning Representations (ICLR), 2021.
[33] K. Zhou, J. Yang, C. C. Loy, Z. Liu, Learning to prompt for vision-language models, International Journal of Computer Vision 130 (9) (2022) 2337–2348.
[45] P. Wu, J. Liu, Y. Shi, Y. Sun, F. Shao, Z. Wu, Z. Yang, Not only look, but also listen: Learning multimodal violence detection under weak supervision, in: European conference on computer vision, Springer, 2020, pp. 322–339.
[34] K. Zhou, J. Yang, C. C. Loy, Z. Liu, Conditional prompt learning for vision-language models, in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 16816–16825.
[46] W. Luo, W. Liu, S. Gao, A revisit of sparse coding based anomaly detection in stacked rnn framework, in: Proceedings of the IEEE international conference on computer vision, 2017, pp. 341–349.
[35] H. Wang, F. Liu, L. Jiao, J. Wang, Z. Hao, S. Li, L. Li, P. Chen, X. Liu, Vilt-clip: Video and language tuning clip with multimodal prompt learning and scenario-guided optimization, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38, 2024, pp. 5390–5400.
[47] J.-X. Zhong, N. Li, W. Kong, S. Liu, T. H. Li, G. Li, Graph convolutional label noise cleaner: Train a plug-and-play action classifier for anomaly detection, in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2019, pp. 1237–1246.
[36] S. Bai, M. Zhang, W. Zhou, S. Huang, Z. Luan, D. Wang, B. Chen, Prompt-based distribution alignment for unsupervised domain adaptation, in: Proceedings of the AAAI conference on artificial intelligence, Vol. 38, 2024, pp. 729–737.
[48] J. Ansel, E. Yang, H. He, N. Gimelshein, A. Jain, M. Voznesensky, B. Bao, P. Bell, D. Berard, E. Burovski, et al., Pytorch 2: Faster machine learning through dynamic python bytecode transformation and graph compilation, in: Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, 2024, pp. 929– 947.
[37] P. Wu, X. Zhou, G. Pang, L. Zhou, Q. Yan, P. Wang, Y. Zhang, Vadclip: Adapting vision-language models for weakly supervised video anomaly detection, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38, 2024, pp. 6074–6082. [38] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, I. Polosukhin, Attention is all you need, Advances in neural information processing systems 30 (2017).
[49] M. Kundroo, G. Haider, N. Khoa, A. W. Mamond, T. Kim, Fedeasy : Federated learning with ease, SoftwareX 31 (2025) 102276.
[39] M. Wang, J. Xing, J. Mei, Y. Liu, Y. Jiang, Actionclip: Adapting language-image pretrained models for video action recognition, IEEE transactions on neural networks and learning systems (2023).
[50] J. Ho, N. Kalchbrenner, D. Weissenborn, T. Salimans, Axial attention in multidimensional transformers, arXiv preprint arXiv:1912.12180 (2019). 19
[51] I. Loshchilov, F. Hutter, Decoupled weight decay regularization, in: International Conference on Learning Representations, 2019. [52] S. J. Reddi, Z. Charles, M. Zaheer, Z. Garrett, K. Rush, J. Konečnỳ, S. Kumar, H. B. McMahan, Adaptive federated optimization, in: International Conference on Learning Representations, 2021. [53] D. Yin, Y. Chen, R. Kannan, P. Bartlett, Byzantine-robust distributed learning: Towards optimal statistical rates, in: International Conference On Machine Learning, PMLR, 2018, pp. 5650–5659. [54] T.-M. H. Hsu, H. Qi, M. Brown, Measuring the effects of non-identical data distribution for federated visual classification, arXiv preprint arXiv:1909.06335 (2019). [55] Y. Allouah, S. Farhadkhani, R. Guerraoui, N. Gupta, R. Pinot, G. Rizk, S. Voitovych, Byzantine-robust federated learning: Impact of client subsampling and local updates, in: International Conference on Machine Learning, PMLR, 2024, pp. 1078–1114.
20
Related documents
- AnomalyCraft-700K: Component-Level Controllable and Verifiable Synthetic Anomalies for Fine-Grained Video Anomaly Understanding#975051
- From Detection to Understanding: TAR and TAR-Bench for Multi-Task Traffic Anomaly Reasoning#1013650
- Multi-Scale Temporal Domain Alignment for Federated Video Domain Adaptation#794004
- Multi-Scale Temporal Domain Alignment for Federated Video Domain Adaptation#789985
- VQ-VAD: Vector-quantized Motion Representation Learning for Human-centric Video Anomaly Detection#429396
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive