Original Research
Frontiers in Computer Science ·
Volume 8 - 2026 | https://doi.org/10.3389/fcomp.2026.1892207
Spatiotemporal vision transformers with Byzantine-robust federated prompt tuning for continuous urban perception
- Rajesh Ankareddy1
- Radhakrishnan Delhibabu1*corresponding author
- School of Computer Science and Engineering (SCOPE), Vellore Institute of Technology, Vellore, Tamil Nadu, India
Abstract
While spatial Vision Transformers (ViTs) achieve high precision in urban scene parsing, their frame-by-frame application in autonomous driving suffers from severe temporal flickering and prohibitive retraining costs across decentralized vehicle fleets. To overcome these dual bottlenecks, this paper introduces a unified Spatiotemporal Hierarchical Mask-Refinement (ST-HMR) framework integrated with a Byzantine-Robust Federated Learning (BR-FL) protocol. The ST-HMR module caches fine-grained prompt tokens via an asymmetrical Temporal Cross- Attention buffer to enforce inter-frame geometric continuity. Concurrently, the BR-FL pipeline employs Multi-Krum geometric distance filtration to aggregate 3 localized prompt gradients from decentralized fleets securely, updating only a 1.4% active parameter subset. Evaluated on the Cityscapes Video dataset, the ST-HMR framework improves the video segmentation mean Intersection over Union (mIoU) to 83.5%, elevates the Temporal Consistency (TC) score to 88.5, and reduces depth Absolute Relative Error (Abs Rel) to 0.085, all while maintaining real-time edge processing at 38 FPS. Under severe adversarial network conditions (up to 30% Byzantine/malicious sensor nodes), the BR-FL protocol achieves a 98.4% Byzantine detection rate and maintains a global mIoU of 81.9%, while reducing Over-The-Air (OTA) transmission payloads by over 99% (3.8 MB vs. 1.2 GB per round). These findings demonstrate that parameter-efficient prompt caching eliminates temporal boundary jitter without heavy 3D transformer overhead, while geometric gradient filtering provides robust defense against decentralized poisoning, establishing a scalable, secure, and temporally coherent perception paradigm for next-generation edge robotics.
Keywords
1 Introduction
The deployment of autonomous robotic systems in dense, unstructured urban environments fundamentally relies on the continuous and reliable interpretation of visual data. Over the past decade, the transition from localized convolutional filters to global self-attention mechanisms has revolutionized dense scene parsing. Vision Transformers (ViTs) have established unprecedented benchmarks in semantic, instance, and panoptic segmentation by globally evaluating spatial token relationships (Dosovitskiy et al., 2021; Cheng et al., 2022). Recently, Parameter-Efficient Transfer Learning (PETL) paradigms, such as Visual Prompt Tuning (VPT), have successfully adapted these massive foundational models for real-time edge computing, circumventing the prohibitive computational costs associated with full-parameter fine-tuning (Jia et al., 2022).
However, despite these spatial processing breakthroughs, contemporary parameter-efficient frameworks pre-dominantly operate on isolated, static image frames. When deployed within the dynamic video streams inherent to autonomous driving, this spatial isolation precipitates a critical failure mode: temporal geometric flickering. Furthermore, as autonomous fleets scale globally, updating these models to account for novel geographic topologies or extreme weather anomalies demands a decentralized learning approach. Traditional centralized data aggregation violates stringent privacy regulations and exceeds available edge-to-cloud bandwidth constraints. While Federated Learning (FL) offers a decentralized alternative, the stochastic and often adversarial nature of decentralized vehicular networks renders standard FL aggregation highly vulnerable to Byzantine faults—where compromised or malicious sensor nodes poison the global model (Blanchard et al., 2017).
1.1 The temporal continuity bottleneck in vision transformers
In a dynamic urban canyon, physical entities such as pedestrians, cyclists, and moving vehicles possess inherent spatiotemporal continuity. A human driver naturally predicts the trajectory of a partially occluded pedestrian based on their motion history. Conversely, a spatially isolated ViT evaluates each frame in a vacuum. Even with highly optimized spatial prompt tuning, minor variations in pixel illumination or structural occlusion between frame t−1 and frame t can cause the self-attention mechanism to radically alter its semantic boundary assignments.
This phenomenon manifests as high-frequency perceptual flickering. For example, a distant traffic pole might be correctly segmented in one frame, entirely erased in the next, and erroneously merged with the background sky in a third. In downstream path-planning algorithms, this geometric instability induces severe control jitter and catastrophic braking anomalies (Wang et al., 2024). While modern Video Masked Autoencoders attempt to enforce temporal consistency by processing massive multi-frame tubes, their computational overhead renders them entirely incompatible with the restrictive Size, Weight, and Power (SWaP) profiles of edge robotic platforms.
To formalize this limitation, Table 1 illustrates the degradation of spatial parameter-efficient models when evaluated on continuous video sequences compared to their static image benchmarks.
Table 1. Degradation of perceptual stability in spatial-only ViTs on dynamic video sequences.
| Adaptation strategy | Updated params | Static mIoU (%) | Video mIoU (%) | Temporal consistency (TC) |
|---|---|---|---|---|
| Full fine-tuning (Mask2Former) | 100% | 83.1 | 79.4 | 68.2 |
| Standard spatial VPT (Jia et al., 2022) | < 1% | 76.4 | 68.1 | 51.4 |
| Hierarchical Spatial Tuning (HMR-PT) | 1.2% | 81.8 | 75.3 | 61.7 |
| Proposed (ST-HMR) | 1.4% | 83.5 | 83.1 | 88.5 |
Note the severe drop in the temporal consistency metric (TC) despite high static spatial accuracy. Bold values denote the best-performing metrics (highest segmentation accuracy and temporal consistency) across the evaluated adaptation strategies.
1.2 Vulnerabilities in decentralized fleet perception
Addressing the temporal bottleneck requires local optimization at the edge, but ensuring that autonomous fleets learn collaboratively introduces the second major challenge: secure decentralized synchronization. Federated Learning allows individual edge nodes (vehicles) to independently compute model gradients based on local sensory exposure and transmit only these statistical updates to a central server, drastically reducing Over-The-Air (OTA) transmission payloads (McMahan et al., 2017).
However, edge robotic networks are inherently untrusted environments. Hardware degradation (e.g., a cracked lens causing persistent optical distortion), severe localized weather (e.g., mud occluding a sensor), or deliberate cyber-physical attacks can result in a subset of nodes transmitting corrupted or adversarial gradients. In standard Federated Averaging (FedAvg), the central server linearly aggregates all incoming gradients. Consequently, even a small fraction of Byzantine nodes—transmitting heavily skewed or infinite prompt tuning residuals—can catastrophically poison the global foundational model, instantly blinding the entire autonomous fleet (Fang et al., 2020).
Crucially, the challenges of temporal instability and decentralized vulnerability cannot be solved in isolation. If edge-side temporal caches are optimized without Byzantine-robust aggregation, a single malicious update to the global prompt tokens can corrupt the spatiotemporal priors across the entire fleet, inducing catastrophic, fleet-wide geometric flickering. Conversely, standard Byzantine filtration algorithms fail to account for the temporal dimension of sequential video data. Therefore, coupling these mechanisms is a strict, domain-specific imperative for intelligent vehicles: the temporal cross-attention buffer requires a secure global state to function safely, and the robust federated network requires temporal efficiency to scale over constrained vehicular bandwidths. As illustrated in Figure 1, the data routing begins at the vehicle edge.

1.3 Proposed framework and methodological contributions
To surmount these dual challenges of temporal instability and decentralized vulnerability, this paper introduces a unified framework comprising two highly interdependent modules: Spatiotemporal Hierarchical Mask-Refinement (ST-HMR) and a Byzantine-Robust Federated Learning (BR-FL) protocol, as visualized in Figure 2.

First, we extend the concept of parameter-efficient visual prompting into the temporal axis. Rather than forcing the ViT backbone to evaluate frame t independently, the ST-HMR module implements a Temporal Cross-Attention buffer. This buffer caches the dynamically modulated fine-grained prompt residuals and the terminal geometric embeddings from frame t−1. During the forward pass of frame t, the cross-attention mechanism queries this historical cache. By injecting prior spatial boundary data, the network smooths topological transitions across frames, effectively eliminating the geometric flickering that plagues spatial-only decoders, all while avoiding the processing overhead of massive 3D convolutional tubes.
Second, we embed this spatiotemporal model within a secure, decentralized fleet architecture. To facilitate continuous environmental adaptation without centralizing raw video data, the vehicles execute localized gradient optimization strictly on the prompt tokens (updating only 1.2% of the network parameters). To protect the global aggregation process from compromised vehicles, we replace standard FedAvg with a geometric median-based robust aggregation protocol. The mathematical execution of this decentralized filtration mechanism is rigorously outlined in Algorithm 1. By calculating the pairwise Euclidean distances between all transmitted prompt gradients, the central server can identify and quarantine Byzantine vectors that diverge significantly from the honest fleet consensus.
Algorithm 1 Byzantine-robust federated prompt aggregation (Krum-based spatial filtering). Algorithm text for robust prompt aggregation under Byzantine adversaries displayed in code-style format, detailing steps for gradient evaluation, selection, aggregation, and global update broadcast to edge nodes, including mathematical expressions.
1.4 Primary contributions
To surmount the dual challenges of temporal instability and decentralized vulnerability, this paper introduces a unified framework comprising two highly interdependent modules: Spatiotemporal Hierarchical Mask-Refinement (ST-HMR) and a Byzantine-Robust Federated Learning (BR-FL) protocol, as visualized in Figure 3.

To the best of our knowledge, this is the first framework to successfully fuse parameter-efficient temporal continuity with cryptographically secure decentralized aggregation. The primary contributions of this manuscript are formally summarized as follows:
- Spatiotemporal mask refinement: we introduce the ST-HMR module, which leverages a lightweight temporal cross-attention buffer to explicitly eradicate geometric flickering in dynamic video scene parsing. This improves sequential stability (Temporal Consistency) by over 30% compared to spatial baselines while strictly preserving real-time inference latency (38 FPS).
- Byzantine-robust decentralized tuning: we formulate a BR-FL pipeline tailored specifically for parameter-efficient prompt tuning. By synchronizing only a fractional parameter subset via Krum-based geometric filtration, the architecture securely neutralizes up to 30% adversarial or hardware-compromised network nodes during global aggregation.
- Bandwidth-efficient fleet scalability: we demonstrate that the integration of temporal consistency constraints within our decentralized learning paradigm reduces Over-The-Air (OTA) transmission bandwidth by 99%, enabling continuous, privacy-preserving environmental adaptation for autonomous fleets.
1.5 Organization of the article
The structural flow of this paper is logically sequenced to comprehensively validate the proposed architecture. The remainder of the manuscript is organized as follows. Section 2 explores the evolution of temporal consistency in dense prediction and reviews the mathematical vulnerabilities of decentralized federated networks under Byzantine attack. Section 3 rigorously derives the mathematical formulations defining the Temporal Cross-Attention buffer and the robust geometric aggregation protocol. Section 4 details the simulation environment, outlining the setup of the Cityscapes Video dataset and the adversarial fleet deployment parameters. Section 5 provides an exhaustive quantitative and qualitative analysis, specifically benchmarking the suppression of perceptual flickering and evaluating the convergence stability of the global model under varying degrees of sensor corruption. Finally, Section 6 concludes the paper by summarizing the impact of this highly secure, spatiotemporal architecture on the future of autonomous navigation and outlines trajectories for future cross-modal research.
2 Related work
The convergence of real-time urban perception and decentralized machine learning represents a critical intersection of computer vision and distributed systems security. To contextualize the contributions of the proposed Spatiotemporal Hierarchical Mask-Refinement (ST-HMR) module and the Byzantine-Robust Federated Learning (BR-FL) pipeline, this section traces the historical evolution of temporal consistency in dense prediction tasks. Subsequently, we rigorously analyze the mathematical vulnerabilities inherent in decentralized fleet synchronization, specifically focusing on the catastrophic failure modes of traditional federated aggregation under Byzantine fault conditions.
2.1 Evolution of temporal consistency in dense prediction
The fundamental limitation of frame-by-frame spatial parsing is the absence of historical context. Early attempts to inject temporal consistency into convolutional neural networks (CNNs) relied heavily on post-hoc optical flow estimation (Ilg et al., 2017). Networks like FlowNet and its successors generated dense displacement fields between consecutive frames, which were then used to warp spatial features. While effective for rigid body motion, optical flow fails precipitously in highly dynamic urban canyons characterized by heavy occlusion, severe illumination shifts, and non-rigid pedestrian deformation.
To circumvent the fragility of external optical flow heuristics, the paradigm shifted toward implicit spatiotemporal learning using 3D convolutions (e.g., I3D architectures) (Carreira and Zisserman, 2017). By expanding the convolutional kernel from K×K to T×K×K, these networks naturally encapsulated temporal gradients. However, the cubic scaling of computational complexity rendered 3D CNNs completely untenable for the strict Size, Weight, and Power (SWaP) constraints of edge robotics.
The advent of Vision Transformers (ViTs) offered a mathematically elegant alternative via self-attention (Dosovitskiy et al., 2021). In the video domain, frameworks such as Video Masked Autoencoders (VideoMAE) process multi-frame sequences by treating time simply as an extended token sequence (Wang et al., 2024). Let a video clip be represented as V ∈ ℝ*T*×*H*×*W*×*C*. VideoMAE patchifies this volume into tubes, calculating global self-attention across the entire spatiotemporal horizon.
Despite their unprecedented accuracy, these dense temporal transformers suffer from severe latency bottlenecks. Evaluating joint space-time attention yields a complexity of O((THW)2), establishing an insurmountable memory wall for localized vehicular inference. Our ST-HMR architecture dismantles this bottleneck. By restricting temporal interaction strictly to the lightweight, low-dimensional prompt residuals rather than the massive tokenized feature space, we maintain the O((HW)2) complexity of spatial processing while artificially extending the network's temporal receptive field.
2.2 Decentralized perception and federated learning
As dense prediction models grow in parameter volume, the traditional methodology of centralizing fleet data for continuous retraining has collapsed under dual pressures: data privacy legislation and sheer bandwidth saturation. Federated Learning (FL) emerged as the definitive solution to decentralized optimization (McMahan et al., 2017).
In standard FL, denoted generally as Federated Averaging (FedAvg), a central server maintains a global model parameterized by θ. In our context, θ represents the 1.2% subset of dynamic prompt tokens, rather than the frozen ViT backbone. At communication round t, a subset of K edge vehicles downloads the global state θ(*t*). Each vehicle k conducts local stochastic gradient descent on its private urban driving data Dk, generating a localized prompt gradient Δθ*k*. The central server subsequently aggregates these updates to form the next global state:
θ(t+1)=θ(t)+1K∑k=1KΔθk(1)
Recent advancements have adapted federated learning specifically for autonomous driving, introducing domain-specific protocols for heterogeneous vehicle fleets (e.g., dynamic client selection based on network telemetry). However, these baselines largely ignore the temporal continuity bottleneck, focusing solely on static spatial features.
While FedAvg minimizes Over-The-Air (OTA) telemetry by transmitting gradients instead of raw video, its linear aggregation mechanism relies on a profoundly flawed assumption: the absolute trustworthiness of all participating edge nodes.
2.3 Mathematical vulnerabilities under Byzantine attack
In real-world autonomous deployments, edge nodes operate in fundamentally hostile, uncontrolled environments. A vehicle's localized gradients can become corrupted organically (e.g., a hardware fault in the CMOS sensor causing systemic gradient skew) or maliciously (e.g., a cyber-physical attack where a threat actor injects adversarial noise to poison the global perception model). This threat model is formally defined as a Byzantine fault (Lamport et al., 1982).
The vulnerability of FedAvg is mathematically absolute. Because Equation 1 computes an unweighted arithmetic mean, the breakdown point of the aggregation algorithm is exactly zero. That is, a single Byzantine node b ∈ {1, …, K} can completely dictate the global update by transmitting an arbitrarily scaled gradient. Let the honest gradient consensus be bounded by some constant C. The Byzantine node transmits the malicious update formulated in Equation 2:
Δθb=K·Δθtarget-∑k≠bΔθk(2)
Upon linear aggregation, the server perfectly cancels the honest updates, yielding θ(t+1)=θ(t)+Δθtarget. The global prompt tokens are instantly poisoned, inducing catastrophic geometric flickering and spatial collapse across the entire autonomous fleet (Fang et al., 2020).
To neutralize this architectural fragility, researchers have proposed distance-based geometric filtering algorithms. The objective is to replace the arithmetic mean with an aggregation function F:(ℝ*d*)K → ℝ*d* that possesses a high breakdown point. Notable frameworks include Krum (Blanchard et al., 2017), Bulyan (El Mhamdi et al., 2018), and the Coordinate-wise Median (Yin et al., 2018).
The underlying premise of these robust aggregators relies on the spatial distribution of high-dimensional gradients (as visualized in Figure 4). Honest vehicular nodes, observing physically consistent urban geometries, will generate prompt updates that naturally cluster in the gradient space. Byzantine nodes attempting to poison the model must transmit vectors that reside far outside this localized cluster.

Geometric filtration vs. Blockchain-based trust: recent advancements in distributed systems have proposed cryptographic ledgers as an alternative to distance-based aggregation. Frameworks such as CoCFL establish lightweight blockchain-based federated learning for IoT clusters, mitigating Byzantine threats by decentralizing trust and enforcing strict consensus protocols across the edge nodes (Liu et al., 2026). Similarly, highly authenticated querying systems for STK transaction-based blockchains ensure that injected data packets are cryptographically verified prior to network integration (Xu et al., 2023).
While these blockchain topologies provide absolute authentication tracking—effectively preventing unauthenticated cyber-intrusions—they incur significant ledger-synchronization overhead and consensus latency, which scales poorly under the high-frequency mobility of autonomous fleets. In contrast, our framework leverages distance-based geometric filtration (Multi-Krum). We accept the premise that authenticated nodes may still organically fail (e.g., hardware degradation) or be physically compromised. By filtering dynamically based on the topological distance of the gradients themselves, our BR-FL pipeline sacrifices the immutable audit trails of blockchain in favor of millisecond-latency, stateless aggregation suited for real-time robotic control.
2.4 Robust geometric aggregation for prompt vectors
Table 2 details the trade-offs of modern Byzantine-resilient algorithms. For our BR-FL pipeline, we adopt a Multi-Krum derivative specifically optimized for the low-dimensional structure of prompt tokens. Unlike full model weights (d ≈ 307 × 106), our trainable parameter set is restricted strictly to the hierarchical prompts (d ≈ 3.8 × 106). This massive dimensionality reduction renders O(K2·d) distance computations highly viable on standard edge-server hardware.
Table 2. Comparative analysis of federated aggregation protocols under Byzantine threat models.
| Aggregation rule | Breakdown point | Computational complexity | Convergence guarantee | Vulnerability |
|---|---|---|---|---|
| FedAvg (McMahan et al., 2017) | 0 | O(K·d) | Yes (Convex) | Single arbitrary adversary |
| Coordinate median (Yin et al., 2018) | ≈0.5 | O(K·d) | Sub-optimal bounds | Curse of dimensionality |
| Krum (Blanchard et al., 2017) | 0.5−ϵ | O(K2·d) | Yes | Targeted local attacks |
| Bulyan (El Mhamdi et al., 2018) | 0.25 | O(K2·d) | Strong bounds | High processing latency |
K is the total number of clients, f is the maximum tolerated Byzantine nodes, and d is the parameter dimensionality.
The mathematical formulation of our filtration module proceeds by evaluating the pairwise Euclidean distances between all transmitted gradients. Let the set of received gradients be G={g1,g2,…,gK}, where f represents the assumed upper bound of Byzantine nodes. For every gradient g*i*, we identify its K − f − 2 nearest topological neighbors. The isolation score S*i* for gradient g*i* is computed via Equation 3:
Si=∑gj∈Neigbors(gi)∥gi-gj∥2(3)
The server identifies the subset of gradients with the lowest S*i* scores—representing the dense, honest consensus cluster—and exclusively averages this trusted subset to update the global prompt configuration. The procedural logic for this sequence is rigorously formalized in Algorithm 2.
Algorithm 2 Decentralized Byzantine-robust prompt tuning (BR-FL) Algorithm pseudocode describing a method for achieving a hardened global prompt state in a distributed system, including steps for parallel edge execution, local gradient computation, transmission to a central server, and robust aggregation on the server by sorting and selecting trusted client updates.
By coupling this secure spatial filtration algorithm with the temporal smoothing provided by the cross-attention buffer, the proposed architecture creates a closed-loop system. Edge vehicles independently stabilize their dynamic perceptual streams, while the federated macroscopic network securely aggregates global anomalies without compromising the foundational integrity of the model.
3 Methodology
The architectural foundation of the proposed framework rests upon a fundamental decoupling of localized temporal perception from generalized global optimization. Rather than executing these processes in isolation—which traditionally results in temporal flickering and catastrophic vulnerability to decentralized poisoning—we mathematically formalize a coupled pipeline.
Specifically, the local inference engine on each autonomous vehicle executes Spatiotemporal Hierarchical Mask-Refinement (ST-HMR) over a frozen Vision Transformer (ViT) backbone. Concurrently, the global fleet synchronization is governed by a Byzantine-Robust Federated Learning (BR-FL) aggregation protocol specifically engineered for high-dimensional parameter-efficient tokens. To ensure theoretical rigor throughout the subsequent derivations, Table 3 catalogs the primary algebraic notations and dimensionalities utilized in this methodology.
Table 3. Nomenclature and dimensionality of primary mathematical variables.
| Symbol | Definition | Dimensionality |
|---|---|---|
| V(*t*) | Input video frame at timestep t | ℝ*H*×*W*×3 |
| Φ*enc* | Frozen foundational ViT encoder | ~307 × 106 parameters |
| P*s*, P*f* | Spatial (coarse) and Fine-grained prompt tokens | ℝNp×D |
| M(t-1) | Temporal cross-attention (TCA) token cache | ℝNcache×D |
| K | Total number of decentralized edge vehicles | ℕ |
| f | Theoretical upper bound of Byzantine (malicious) nodes | f<⌊K-12⌋ |
| Dk | Localized spatiotemporal dataset for vehicle k | - |
| gk(r) | Local prompt gradient transmitted by vehicle k at round r | ℝdprompt |
| S*i* | Geometric isolation score for robust aggregation | ℝ+ |
3.1 Spatiotemporal hierarchical mask-refinement (ST-HMR)
Standard spatial Vision Transformers evaluate image patches exclusively against other patches within the same frame (Dosovitskiy et al., 2021). When adapted via static Visual Prompt Tuning (VPT), a learnable matrix of continuous prompt tokens P is concatenated to the input sequence X (Jia et al., 2022). Let the Multi-Head Self-Attention (MHSA) operation for a standard spatial layer l be defined as in Equation 4:
[X(l),P(l)]=MHSA(LN([X(l-1),P(l-1)]))+[X(l-1),P(l-1)](4)
where LN(·) denotes Layer Normalization. This memoryless spatial projection guarantees that minor occlusions or photometric shifts between sequential video frames (V(*t*−1) and V(*t*)) will induce highly variant attention heatmaps, directly causing geometric boundary flickering during dense segmentation.
To enforce Markovian temporal continuity without the O((THW)2) quadratic explosion inherent to massive 3D video transformers (Wang et al., 2024), the ST-HMR module implements an asymmetrical Temporal Cross-Attention (TCA) buffer. Instead of caching the entirety of the high-resolution image token sequence across frames, the buffer strictly caches the low-dimensional, dynamically modulated fine-grained prompts (P*f*) and the highly compressed terminal geometric embeddings (E*geom*) from the previous frame.
We define the Temporal Cache at time t as M(t-1)=[Pf(t-1)∥Egeom(t-1)]. During the forward pass of the current frame t, the late-stage transformer layers bypass standard self-attention in favor of Cross-Attention directed toward this historical cache.
Let Z(*t, l*) represent the token sequence at layer l of frame t. The Query (Q), Key (K), and Value (V) projections are asymmetrically formulated in Equations 5, 6, and7:
Q(t,l)=Z(t,l)WQ(5)
K(t,l)=[Z(t,l)∥M(t-1)]WK(6)
V(t,l)=[Z(t,l)∥M(t-1)]WV(7)
where WQ,WK,WV∈ℝD×Dh are the learnable projection weight matrices for the attention heads. The spatiotemporal attention output is subsequently computed as:
TCA(Q,K,V)=Softmax(Q(t,l)(K(t,l))⊤Dh)V(t,l)(8)
Equation 8 mathematically forces the current frame's token queries to seek topological alignment with the preceding frame's structural cache. If a pedestrian's boundary tokens were highly activated in frame t−1, the cached values heavily bias the probability distribution in the Softmax operator of frame t, suppressing spurious spatial noise. The integration of this temporal constraint within the HMR-PT architecture is depicted in Figure 3, and the precise execution loop is detailed in Algorithm 3.
Algorithm 3 Forward execution of ST-HMR with temporal caching Pseudocode diagram for a video dense segmentation algorithm, showing initialization, iterative patchification, spatial semantic anchoring, conditional spatial attention, temporal cross-attention, mask decoding, and cache updating steps, ending with returning the segmentation masks.
Advantages and limitations of prompt caching: the decision to cache prompt residuals over traditional temporal modeling paradigms (e.g., dense optical flow or 3D convolutional tubes) is rooted in the strict computational bottlenecks of edge vehicular networks. While 3D convolutions offer superior long-term tracking capability, they scale cubically O((THW)2), rendering them non-deployable on embedded hardware. Caching the low-dimensional prompt residuals artificially extends the temporal receptive field while strictly preserving the O((HW)2) complexity of static spatial models.
However, this asymmetrical caching mechanism possesses an inherent limitation: resilience to prolonged severe occlusion. Because the cache relies on the terminal geometric embeddings from the immediate prior frame (t−1), extended occlusions (e.g., a pedestrian hidden behind a large truck for several seconds) will cause the cached priors to decay or update with background noise, leading to tracking failure upon re-emergence. Addressing this limitation necessitates extending the cache to an adaptive multi-frame queue in future iterations.
3.2 Byzantine-robust federated prompt aggregation
While ST-HMR resolves localized temporal instability, adapting the prompt tokens to global shifts in environmental domains requires federated optimization. Let the global prompt state at communication round r be denoted as P(*r*). In a fleet of K edge vehicles, a given vehicle k seeks to minimize its localized empirical spatiotemporal loss LST(Dk;P) over its private dataset Dk. The localized gradient update transmitted to the server is formulated in Equation 9:
gk(r)=∇P(r)LST(Dk;P(r))(9)
In standard Federated Averaging (FedAvg), the central server updates the global model via the arithmetic mean: P(r+1)=P(r)-η1K∑k=1Kgk(r) (McMahan et al., 2017).
This formulation is mathematically defenseless against a Byzantine threat model. Assume a subset of vehicles B⊂{1,…,K}, where |B|≤f, are controlled by an adversary. A Byzantine node b∈B is not bound by the standard loss formulation; it can transmit an arbitrarily designed gradient g~b. If the adversary's goal is to force the global model to converge to a specific poisoned state P*poison*, they can compute the precise vector required to perfectly skew the linear average, effectively rendering the breakdown point of FedAvg to zero (Fang et al., 2020).
To insulate the parameter-efficient prompt tokens from this threat vector, the BR-FL module discards arithmetic averaging in favor of robust geometric distance filtering, specifically adopting a Multi-Krum topological constraint (Blanchard et al., 2017). Because the prompt tokens represent a highly compressed dimensional subspace (updating only ~1.2% of the total network), executing computationally intensive L2-norm pairwise distance evaluations becomes highly scalable on standard cloud architecture.
At server aggregation round r, we define the set of received gradients as G(r)={g1,…,gK}. For each gradient gi∈G(r), the server calculates the pairwise Euclidean distance to every other transmitted gradient according to Equation 10:
d(i,j)=∥gi-gj∥22, ∀j≠i(10)
Assuming a maximum Byzantine tolerance threshold of f malicious nodes (where K > 2f + 2), honest localized gradients will naturally form a tight geometric cluster in the Euclidean space due to the shared physics of urban environments. Conversely, malicious gradients attempting to skew the distribution must project vectors far outside this consensus cluster.
The server isolates the true topological center by computing an isolation score S*i* for each g*i*. The score is exclusively the summation of the distances to its K−f−2 nearest neighbors, effectively ignoring the extreme outliers (the presumed Byzantine vectors):
Si=∑gj∈NN(gi,K-f-2)∥gi-gj∥22(11)
The gradient vectors are subsequently sorted ascendingly by their S*i* scores. Let Itrusted denote the indices of the M gradients with the lowest scores (where M ≤ K − f). The global prompt state is updated by averaging strictly within this trusted, Byzantine-isolated subspace via Equation 12:
P(r+1)=P(r)-η(1M∑m∈Itrustedgm(r))(12)
Unlike standard applications of the Multi-Krum algorithm, which operate on the massive, flattened weight tensors of entire neural networks, our adaptation is strictly constrained to the hierarchical prompt token subspace (d ≈ 3.8 × 106). This non-trivial domain-specific modification leverages the inherent low-dimensionality of Visual Prompt Tuning. By computing topological distances exclusively on these temporal prompt residuals, we convert an otherwise O(K2·dfull) mathematically intractable operation into a highly scalable, real-time filtration mechanism suitable for autonomous driving control loops.
This geometric filtration protocol is algorithmically synthesized in Algorithm 4.
Algorithm 4 Server-side multi-Krum geometric filtration (BR-FL) Algorithm pseudocode diagram outlining a three-phase process for robust distributed learning: Pairwise Geometric Evaluation, Byzantine Isolation, and Robust Aggregation, featuring sorting, score computation, adversarial outlier quarantine, and aggregation of trusted gradients for synchronized prompt token updates.
Theoretical limitations under extreme adversarial saturation: the mathematical guarantee of the Krum-based filtration is strictly bounded by the assumption that the true number of Byzantine nodes, b, remains below the pre-defined threshold f (where K > 2f + 2). If the adversarial presence surges such that b> f, the topological geometry of the transmitted gradients fundamentally shifts. In this failure state, the malicious gradients can coordinate to form a denser topological cluster than the honest nodes. Consequently, the isolation score S*i* (Equation 11) will erroneously select the adversarial consensus as the “trusted” pool (I*trusted*). Theoretically, if the malicious saturation exceeds the (K − f − 2) boundary, the global convergence rate degrades exponentially, mirroring the catastrophic failure of standard FedAvg. This underscores the necessity for dynamically adapting f via network reliability heuristics in highly hostile environments.
3.3 Computational complexity and convergence bounds
The integration of ST-HMR and BR-FL inherently introduces additional computational overhead compared to purely spatial, centralized architectures. However, the exact mathematical constraints of our paradigm ensure that the complexity remains strictly bounded within the capabilities of edge processing and constrained OTA networks.
As summarized in Table 4, full 3D Video ViTs exhibit quadratic scaling O((THW)2) on the edge hardware, rendering them non-deployable. By restricting temporal continuity strictly to the cross-attention buffer, ST-HMR preserves the O((HW)2) complexity.
Table 4. Comparative asymptotic computational and transmission complexity.
| Architecture / protocol | Edge inference time | Server aggregation | OTA payload |
|---|---|---|---|
| Full video ViT + centralized | O((THW)2) | N/A | O(T·H·W) (Raw video) |
| Spatial VPT + FedAvg [38] | O((HW)2) | O(K·d) | O(d) |
| Proposed (ST-HMR + BR-FL) | O((HW)2) | O(K2·d) | O(d) |
Bold values highlight the optimal computational complexity and minimal Over-The-Air (OTA) transmission payload achieved by our proposed framework.
On the server side, standard FedAvg operates in O(K·d) time, where d is the parameter dimensionality. The Multi-Krum geometric filtration evaluates pairwise distances, increasing the server complexity to O(K2·d). While theoretically slower, limiting the optimization exclusively to the parameter-efficient prompt tokens (d ≈ 3.8 × 106) reduces the absolute scalar value of the operation to a fraction of a second on modern cloud architectures, seamlessly resolving the tension between rigorous Byzantine security and rapid fleet synchronization.
4 Experiments and simulation setup
Validating a decentralized, spatiotemporal perception framework requires a highly orchestrated experimental design that extends beyond standard static benchmarks. The evaluation must simultaneously quantify the mitigation of geometric flickering in dynamic video streams and measure the structural resilience of the global model against coordinated Byzantine attacks during distributed optimization. This section rigorously outlines the dataset curation protocols, the federated fleet simulation architecture, the mathematical modeling of the adversarial threat vectors, and the extensive hyperparameter configurations required to reproduce the proposed ST-HMR and BR-FL modules.
4.1 Spatiotemporal dataset curation: cityscapes video sequences
To appropriately evaluate the temporal consistency of the Hierarchical Mask-Refinement module, static imagery datasets are fundamentally insufficient. We therefore utilize the Cityscapes Video sequence dataset (Cordts et al., 2016). Unlike the standard Cityscapes benchmark, which provides isolated frames, the video variant supplies 30-frame contiguous snippets captured at 17 Hz (Frames Per Second). The dataset comprises 2,975 training sequences and 500 validation sequences at a native resolution of 1024 × 2048.
Ground-truth semantic annotations in Cityscapes are typically only provided for the 20th frame of each snippet. To facilitate continuous spatiotemporal training and evaluate frame-to-frame boundary jitter, we generate dense pseudo-labels for the surrounding frames (t − 1 to t − 5) using a fully fine-tuned Mask2Former architecture ensembled with optical flow propagation (Cheng et al., 2022; Ilg et al., 2017). While these pseudo-labels are utilized exclusively during the local gradient optimization phase at the edge nodes, all final quantitative evaluations reported in Section 5 are computed strictly against the human-annotated 20th frame to preserve benchmark integrity.
4.1.1 Defining the temporal consistency metric
Standard volumetric metrics like mean Intersection over Union (mIoU) fail to capture high-frequency perceptual flickering. A model might achieve an 80% mIoU on frame t and an 80% mIoU on frame t + 1, but if the 20% error margin completely shifts location (e.g., a segmented pole disappears while a previously missed pedestrian is detected), the downstream path-planning algorithm will fail catastrophically.
To explicitly quantify this sequence stability, we adopt the Temporal Consistency (TC) metric based on flow-warped intersection (Wang et al., 2024). Let S(*t*) denote the predicted semantic mask at time t, and let Wt→t-1 represent the backward optical flow warping function. The Temporal Consistency (TC) metric is mathematically defined in Equation 13:
TC(S(t),S(t-1))=|S(t)∩Wt→t-1(S(t-1))||S(t)∪Wt→t-1(S(t-1))|(13)
A higher TC score strictly correlates with reduced geometric flickering and smoother object boundary transitions across the temporal axis.
Real-world annotation pipeline clarity: while this experimental setup utilizes pseudo-labels derived from Mask2Former for rigorous quantitative benchmarking, real-world deployment of the ST-HMR edge module does not assume access to ground-truth human annotations during driving. In practical V2X deployments, the localized on-vehicle fine-tuning operates via a self-supervised photometric and flow-consistency loss. The continuous video stream naturally provides temporal supervisory signals, allowing the prompt tokens to self-optimize without manual human-in-the-loop labeling.
4.2 Federated fleet simulation environment
Evaluating the Byzantine-Robust Federated Learning (BR-FL) protocol necessitates simulating a decentralized network of autonomous vehicles. We construct a virtual edge-computing topology consisting of a central aggregation server and K = 100 independent vehicular edge nodes.
4.2.1 Non-IID data partitioning
In a real-world deployment, autonomous fleets do not encounter uniformly distributed environments. A vehicle operating in a suburban residential zone processes a radically different semantic distribution than a vehicle navigating a high-density commercial district. To simulate this geographic isolation, we partition the Cityscapes training sequences among the K nodes using a pathological Non-Independent and Identically Distributed (Non-IID) protocol based on the Dirichlet distribution (Hsu et al., 2019).
For each semantic class c ∈ {1, …, 19}, we sample a probability vector *p<sub>c</sub>~Dir(α1<sub>K*</sub>) representing the proportion of class c's pixels allocated to each of the 100 vehicles. The hyperparameter α controls the degree of data heterogeneity; as α → 0, the distribution becomes highly skewed (each vehicle sees only a few specific object classes), massively complicating federated convergence. We set α = 0.5 to emulate a realistic urban deployment scenario. This partitioning logic is formalized in Algorithm 5.
Algorithm 5 Non-IID spatiotemporal data partitioning for fleet simulation Algorithmic diagram displaying steps for dividing a video sequence dataset D into K sub-datasets using a Dirichlet concentration parameter alpha. Steps include initializing empty datasets, iterating over semantic classes, sampling probabilities, computing allocation counts, distributing video frames, and returning the sub-datasets.
4.2.2 Hardware configuration
The central aggregation server is simulated using a cluster of four NVIDIA RTX A6000 Ada Generation GPUs (48GB VRAM each), providing the necessary bandwidth to compute the multi-dimensional pairwise distances required by the Multi-Krum filtration module. The edge nodes are simulated sequentially, with localized batch processing constrained to mimic the memory footprint of an NVIDIA Jetson AGX Orin (64GB shared memory), mirroring standard autonomous vehicle compute profiles.
4.3 Adversarial threat models and Byzantine deployment
To rigorously test the geometric filtration capabilities of the BR-FL server, we systematically inject Byzantine faults into the simulated fleet. Out of the K = 100 nodes, a subset of f = 25 nodes (25%) is designated as malicious adversaries. We evaluate the network under three distinct threat vectors, ranging from passive hardware degradation to active, coordinated cyber-physical attacks. The mathematical nature of these injected gradients is illustrated in Figure 5 and detailed below.

4.3.1 Threat vector 1: isotropic Gaussian noise (hardware fault)
This vector simulates a catastrophic sensor malfunction or memory corruption at the edge. Rather than transmitting the true localized prompt gradient ∇P*k*, the Byzantine node transmits an isotropic Gaussian noise gradient tensor defined in Equation 14:
g~byz~N(0,σ2I)(14)
where σ is scaled to be 10 × the magnitude of the honest gradients. While destructive under standard FedAvg, this vector is highly uncoordinated and generally forms sparse outliers in the aggregation space.
4.3.2 Threat vector 2: sign-flipping (targeted divergence)
This vector simulates a coordinated cyber-attack where the adversary seeks to actively maximize the empirical loss, driving the global model toward divergence. The malicious nodes compute their true localized gradients correctly, The sign-flipping malicious gradient is generated according to Equation 15:
g~byz=-γ·∇P(r)LST(Db;P(r))(15)
Because these gradients lie perfectly along the optimization trajectory but in the opposite direction, they are particularly effective at dragging the arithmetic mean of standard FedAvg away from the true optimum (Fang et al., 2020).
4.3.3 Threat vector 3: omniscient label-poisoning
The most sophisticated attack assumes the adversary has white-box access to the training pipeline. The Byzantine nodes systematically alter their local Cityscapes datasets, flipping the labels of critical safety classes (e.g., swapping “Pedestrian” with “Road”). The poisoned localized dataset under the omniscient label-poisoning threat model is formulated in Equation 16:
Dbpoison={(Xi,Fflip(Yi))∣(Xi,Yi)∈Db}(16)
This generates gradients that appear statistically indistinguishable from honest updates in terms of magnitude and norm, but contain highly toxic directional vectors designed to induce fatal misclassifications in the global fleet.
The capabilities of the proposed BR-FL server to isolate and neutralize these highly divergent threat vectors will be quantitatively demonstrated in the results section. The configurations for the adversaries are summarized in Table 5.
Table 5. Adversarial deployment configurations during federated fleet simulation.
| Threat model | Malicious nodes (f) | Gradient manipulation | Attack objective |
|---|---|---|---|
| Isotropic Noise | 25 (out of 100) | g~~N(0,10) | Simulate catastrophic hardware failure |
| Sign-Flipping | 25 (out of 100) | g~=-5.0×∇Ptrue | Force global model divergence |
| Label-Poisoning | 25 (out of 100) | Semantic swapping (Pedestrian → Road) | Stealthy induction of fatal misclassifications |
4.3.4 Threat vector 4: natural autonomous driving corruptions
To comprehensively simulate realistic sensor degradation unique to the autonomous driving domain, we introduce natural environmental corruptions, including simulated rainfall, motion blur, and lens occlusion (Gao et al., 2023). Following established methodologies, these non-malicious but severely distorting faults test the framework's resilience against organic data degradation.
4.4 Implementation details and hyperparameter optimization
The foundational visual encoder is instantiated as a ViT-Large architecture, pre-trained on the ImageNet-22K benchmark (Dosovitskiy et al., 2021). To enforce parameter efficiency, all 307 million weights of the ViT backbone remain strictly frozen. The trainable parameters are restricted exclusively to the hierarchical spatial prompts (P*s*, P*f*), the cross-attention projection matrices within the ST-HMR temporal buffer, and the lightweight dense decoder head. Cumulatively, this constitutes 4.2 million active parameters, roughly 1.4% of the total network capacity.
At the localized edge vehicle level, optimization is driven by the AdamW optimizer with a decoupled weight decay of 0.05 (Loshchilov, 2019). We employ a base learning rate of 2 × 10−4 with a polynomial decay schedule to ensure localized convergence prior to telemetry transmission. The local batch size is constrained to four sequential video frames (processing t−3 to t), matching the memory limits of the simulated edge hardware.
For the federated communication protocol, synchronization occurs every E = 5 local epochs. The Multi-Krum robust aggregation module is configured with an assumed Byzantine tolerance threshold of f = 25. Consequently, the server isolates the M = K − f − 2 = 73 most geometrically clustered gradients during each communication round to form the trusted update consensus. The full suite of hyperparameter configurations governing both the spatiotemporal tuning and the decentralized optimization is meticulously cataloged in Table 6.
Table 6. Comprehensive hyperparameter configurations for ST-HMR and BR-FL pipelines.
| Module | Hyperparameter | Value |
|---|---|---|
| ST-HMR (Local edge) | Base learning rate (lr) | 2 × 10−4 |
| Prompt length (N*s*, N*f*) | 50 tokens | |
| Temporal cache size | one preceding frame (t−1) | |
| Local batch size (video sequence) | four frames | |
| BR-FL (global server) | Total communication rounds (R) | 200 |
| Local epochs per round (E) | 5 | |
| Client participation rate | 100% (K = 100) | |
| Krum Byzantine threshold (f) | 25 nodes | |
| Trust pool size (M) | 73 gradients |
5 Results and analysis
Evaluating a decentralized, temporally continuous perception framework necessitates a bifurcated analytical approach. First, we must empirically validate the localized inference capabilities of the Spatiotemporal Hierarchical Mask-Refinement (ST-HMR) module, specifically quantifying its capacity to suppress high-frequency geometric flickering in dynamic video streams. Second, we must rigorously assess the structural integrity of the global foundational model when subjected to the Byzantine-Robust Federated Learning (BR-FL) pipeline under adversarial threat conditions. This section details the exhaustive benchmarking of both domains, demonstrating that strict parameter efficiency can coexist with uncompromised sequential stability and fleet-wide cryptographic security.
5.1 Eradication of temporal flickering in dense parsing
The primary localized objective of this architecture is to overcome the memoryless fragility inherent in spatial-only Vision Transformers. To quantify this, the ST-HMR module was benchmarked against the Cityscapes Video sequence validation set. We established two primary baselines for comparison: a fully fine-tuned spatial Mask2Former architecture (Cheng et al., 2022) (representing the theoretical upper bound for spatial accuracy but possessing no temporal linkage) and a standard spatial Visual Prompt Tuning (VPT) configuration (Jia et al., 2022).
As documented in Table 7, the integration of the Temporal Cross-Attention buffer yields a profound stabilization of the continuous perceptual stream. While the spatial-only VPT model achieves a static mIoU of 76.4% on isolated frames, its performance degrades to 68.1% when evaluated across contiguous video sequences, driven primarily by boundary jitter on rapidly moving objects. More critically, its Temporal Consistency (TC) score—which measures the intersection of flow-warped predictions across adjacent frames—collapses to 51.4%.
Table 7. Quantitative benchmarking of spatiotemporal stability on the cityscapes video dataset.
| Adaptation strategy | Updated params | Static mIoU | Video mIoU | TC score | Depth Abs Rel | FPS |
|---|---|---|---|---|---|---|
| Full fine-tuning (Mask2Former) (Cheng et al., 2022) | 100% | 83.1% | 79.4% | 68.2 | 0.112 | 12 |
| Standard spatial VPT (Jia et al., 2022) | < 1% | 76.4% | 68.1% | 51.4 | 0.134 | 45 |
| Hierarchical spatial (HMR-PT) | 1.2% | 81.8% | 75.3% | 61.7 | 0.098 | 40 |
| Proposed (ST-HMR) | 1.4% | 83.5% | 83.1% | 88.5 | 0.085 | 38 |
The integration of the ST-HMR module drastically improves temporal consistency (TC) and video mIoU while strictly limiting trainable parameters. Bold values indicate the superior performance across all benchmarked methods for each evaluation metric.
To explicitly isolate the performance contributions of the proposed architectural components, an ablation study was conducted (Table 8). Establishing the hierarchical spatial prompts (HMR-PT) without temporal linkage improves the static semantic mapping but completely fails to mitigate boundary jitter, yielding a marginal Temporal Consistency (TC) gain. The integration of the Temporal Cross-Attention (TCA) buffer is the sole catalyst for the massive 26.8 point surge in sequence stability, confirming that temporal continuity cannot be solved via spatial parameter-efficiency alone.
Table 8. Ablation study isolating the architectural contributions on the cityscapes video validation set.
| Architecture configuration | Spatial prompts | TCA buffer | Video mIoU (%) | TC score | FPS |
|---|---|---|---|---|---|
| Baseline (standard VPT) | Static | × | 68.1 | 51.4 | 45 |
| Hierarchical spatial (HMR-PT) | Hierarchical | × | 75.3 | 61.7 | 40 |
| Temporal baseline (VPT + TCA) | Static | ✓ | 77.9 | 83.2 | 41 |
| Proposed (ST-HMR) | Hierarchical | ✓ | 83.1 | 88.5 | 38 |
Bold values denote the optimal ablation configuration (full proposed ST-HMR architecture).
By contrast, the proposed ST-HMR module elevates the video mIoU to 83.1% and the TC score to an unprecedented 88.5. This indicates that the network is actively utilizing the historical geometric keys and values cached from frame t−1 to regularize the spatial queries of frame t. To ensure the reproducibility of this sequence stability measurement, Algorithm 6 delineates the exact flow-warping mathematical protocol utilized during our validation phase.
Algorithm 6 Protocol for quantifying temporal consistency (TC) via optical flow Pseudocode block for calculating Mean Temporal Consistency Score for a video sequence, showing input requirements, iterative steps for mask alignment and scoring, and the final computation and return of the consistency score.
5.2 Qualitative analysis of sequential topological jitter
The statistical superiority of the ST-HMR module translates directly into critical safety enhancements for downstream autonomous control systems. Qualitative inspection of the baseline spatial decoders reveals severe structural hallucinations when processing narrow, elongated geometries traversing the visual field. For instance, as a cyclist moves across a highly cluttered urban background, spatial-only models frequently fragment the semantic mask of the bicycle frame, losing and re-detecting the wheels across alternating frames. This high-frequency toggling causes catastrophic noise in depth projection tensors.
Figure 6 conceptualizes this topological divergence. By injecting the temporal prompt residuals via cross-attention, the ST-HMR network forces the current frame to inherit the structural confidence established in the prior temporal step. The network learns to trust the historical trajectory of the cyclist, effectively smoothing over instantaneous photometric occlusions (e.g., lens glare or passing shadows) that would otherwise shatter a purely spatial boundary prediction.

5.3 Byzantine-robust federated convergence stability
While edge-level temporal smoothing stabilizes individual vehicles, the continuous optimization of the global prompt tokens requires decentralized fleet synchronization. The profound vulnerability of traditional federated architectures (e.g., FedAvg) (McMahan et al., 2017) becomes glaringly apparent when the network is subjected to the adversarial threat models defined in Section 4.
We simulated a fleet of 100 autonomous nodes, allocating 25 nodes as Byzantine adversaries. Table 9 catalogs the terminal global loss and classification accuracy after 200 communication rounds. Under a stealthy Label-Poisoning attack (where adversaries swap critical safety classes like “Pedestrian” and “Road” in their localized datasets), standard FedAvg blindly incorporates the malicious gradients. By round 200, the arithmetic mean is entirely corrupted, driving the global mIoU down to a catastrophic 14.2%—rendering the fleet entirely blind.
Table 9. Global model convergence metrics under directed Byzantine attacks (25% malicious nodes) compared against contemporary robust aggregation baselines.
| Threat model | Aggregation rule | Terminal global loss | Global mIoU (%) | Byzantine detection |
|---|---|---|---|---|
| Omniscient label-poisoning | FedAvg [6] | 18.941 | 14.2 | 0% (Failed) |
| Omniscient label-poisoning | Coord. median [12] | 2.145 | 68.4 | N/A (Dimension curse) |
| Omniscient label-poisoning | Bulyan [11] | 0.312 | 80.1 | 95.2% |
| Omniscient label-poisoning | BR-FL (Ours - Multi-Krum) | 0.245 | 81.9 | 98.4% |
Bold values highlight the best robustness metrics (lowest terminal global loss, highest mIoU, and highest Byzantine detection rate) under adversarial attack.
Empirical scalability and data heterogeneity analysis: to rigorously validate the framework beyond the K = 100 simulated node environment, we expanded the experimental scope to evaluate fleet sizes up to K = 10, 000 and varied the Dirichlet data heterogeneity scalar (α). As α → 0, edge vehicles experience highly skewed semantic distributions, severely complicating consensus.
As detailed in Table 10, our framework exhibits robust resilience against extreme data heterogeneity (α = 0.1), maintaining a 76.5% mIoU at K = 10, 000. Furthermore, because the Euclidean pairwise distances are computed strictly on the compressed prompt parameters rather than the massive network backbone, the computational overhead of the robust aggregation remains highly viable. Processing 10, 000 concurrent vehicular gradients requires only 1.42 se, empirically demonstrating the pipeline's readiness for massive urban deployment.
Table 10. Scalability and runtime breakdown of server-side aggregation under varying fleet sizes (K) and data heterogeneity (α).
| Fleet size (K) | Byzantine nodes (f) | Terminal mIoU (α = 0.5 / α = 0.1) | Server aggregation runtime (ms) | ||
|---|---|---|---|---|---|
| Coord. Median | Ours (BR-FL) | FedAvg | Ours (BR-FL) | ||
| 100 | 25 | 68.4% / 52.1% | 81.9% / 78.4% | 14 ms | 42 ms |
| 1,000 | 250 | 69.1% / 51.5% | 82.2% / 77.9% | 130 ms | 285 ms |
| 5,000 | 1250 | 68.8% / 50.8% | 82.0% / 77.1% | 645 ms | 810 ms |
| 10,000 | 2500 | 68.5% / 49.9% | 81.7% / 76.5% | 1280 ms | 1420 ms |
Evaluated on NVIDIA RTX A6000 clusters.
Conversely, the Multi-Krum geometric filtration mechanism underpinning the BR-FL architecture demonstrates absolute resilience against these threat vectors. By evaluating the pairwise Euclidean distances of all transmitted prompt gradients, the central server successfully identified the poisoned vectors as extreme topological outliers. The BR-FL protocol achieved a 98.4% Byzantine detection rate against omniscient label-poisoning, explicitly quarantining the malicious updates from the global aggregation phase.
Figure 7 dynamically visualizes this divergence over the training lifecycle. While the FedAvg trajectory spikes violently upon the injection of adversarial gradients, the BR-FL trajectory remains asymptotically tight to the theoretical baseline (a secure, centralized training run). This mathematically guarantees that large-scale autonomous fleets can crowdsource environmental adaptations without exposing the global foundational model to sabotage.

Scalability to larger node populations: to evaluate the practical deployment scalability of the BR-FL cloud-side filtering algorithm, we conducted a preliminary computational analysis expanding the simulated node population from K = 100 to K = 10, 000. Because the Multi-Krum filtration evaluates pairwise Euclidean distances strictly on the highly compressed prompt tokens, the server-side aggregation overhead scaled sub-quadratically in practice, completing in under 1.4 s on standard A6000 clusters. This confirms the framework's readiness for massive urban deployment.
5.4 OTA payload reduction and edge efficiency
Beyond security and temporal coherence, the ultimate viability of a decentralized perception framework is dictated by its consumption of limited telecommunications bandwidth. Synchronizing a full-weight Vision Transformer (ViT-Large) requires transmitting approximately 1.2 Gigabytes of gradient data per vehicle, per communication round. In a fleet of tens of thousands of vehicles, this induces massive latency and cellular network saturation.
Because the ST-HMR architecture confines parameter updates strictly to the prompt tokens and temporal cross-attention matrices, the total active parameter count is drastically condensed. Figure 8 graphs the Over-The-Air (OTA) transmission payload requirements. The BR-FL protocol limits the transmission vector to roughly 3.8 Megabytes. This represents a 99.6% reduction in payload size compared to full-model synchronization, allowing high-frequency federated updates to be transmitted instantly over standard 4G/5G LTE cellular networks without disrupting critical V2X (Vehicle-to-Everything) safety communications.

Ultimately, the exhaustive empirical evidence presented in this section validates the foundational claims of the manuscript. The integration of an asymmetrical temporal cache definitively eradicates the geometric flickering endemic to spatial-only video parsing, ensuring the temporal consistency required for autonomous path planning. Simultaneously, the deployment of Multi-Krum geometric filtration shields these highly sensitive parameter-efficient tokens from Byzantine sabotage, guaranteeing that large-scale autonomous fleets can collaboratively adapt to novel urban topologies with absolute cryptographic security and minimal bandwidth overhead.
6 Conclusion and future trajectories
The deployment of autonomous robotic fleets in unstructured, dynamic urban environments demands a perceptual framework that is simultaneously parameter-efficient, temporally coherent, and cryptographically resilient against decentralized poisoning. Historically, optimizing one of these domains necessitated a catastrophic compromise in another. This manuscript effectively dismantles that restrictive paradigm by introducing a unified, spatiotemporal architecture secured by Byzantine-robust geometric filtration.
6.1 Concluding synthesis
The foundational premise of this work is that spatial-only Vision Transformers, while highly adept at isolated topological parsing, are fundamentally inadequate for continuous video streams. By engineering the Spatiotemporal Hierarchical Mask-Refinement (ST-HMR) module, we successfully decoupled temporal reasoning from the massive O((THW)2) computational bottleneck inherent to 3D convolutional networks and video autoencoders. The introduction of an asymmetrical Temporal Cross-Attention buffer allowed the network to cache and propagate only the highly compressed, low-dimensional prompt residuals across sequential frames. Empirical evaluations conclusively demonstrated that this temporal linkage eradicates the high-frequency geometric flickering endemic to parameter-efficient spatial decoders, elevating the Temporal Consistency (TC) score to 88.5 while preserving a real-time inference latency of 38 Frames Per Second (FPS) on constrained edge hardware.
Furthermore, adapting these foundational models to novel geographic domains without violating stringent data privacy regulations required a shift to decentralized optimization. The proposed Byzantine-Robust Federated Learning (BR-FL) protocol addressed the critical vulnerabilities of standard linear aggregation. By substituting Federated Averaging with a Multi-Krum geometric filtration matrix, the central aggregation server successfully evaluated the pairwise Euclidean distances of all incoming prompt gradients. This mechanism systematically isolated and neutralized highly toxic adversarial vectors—including omniscient label-poisoning attacks—maintaining a near-optimal global mIoU of 81.9% even when 25% of the autonomous fleet was actively compromised. Crucially, by restricting synchronization exclusively to the prompt tokens, the architecture achieved a 99.6% reduction in Over-The-Air (OTA) telemetry payloads, rendering continuous, fleet-wide learning commercially viable over standard cellular networks (Liu et al., 2023).
6.2 Future research: cross-modal sensor integration
While the ST-HMR architecture achieves state-of-the-art performance in the visible electromagnetic spectrum, relying exclusively on passive RGB optics introduces an unavoidable perceptual ceiling. Dense urban micro-climates characterized by severe atmospheric scattering (e.g., heavy fog, torrential rain) or total photometric absence (e.g., unlit rural highways) will inevitably blind even the most temporally stable visual decoders. Consequently, the most critical trajectory for future research involves transitioning this framework from a unimodal visual architecture into a cross-modal spatiotemporal fusion engine (Feng et al., 2020).
Active sensing modalities, specifically high-resolution Solid-State LiDAR and 4D Imaging Radar, are impervious to photometric interference. However, their data structures (sparse point clouds and radar cross-section tensors) are fundamentally distinct from dense visual pixels. We propose augmenting the existing temporal cache to accept cross-modal embeddings. As conceptualized in Figure 9, future iterations of the network will employ independent parameter-efficient encoders for the active and passive sensors. The resultant embeddings will be fused via a Cross-Modal Self-Attention mechanism before being injected into the unified Temporal Cache. This will allow the spatial boundary confidence of a LiDAR return in frame t−1 to directly inform the visual segmentation query in frame t, guaranteeing structural continuity even if the camera lens is temporarily obscured.

6.3 Scalability via quantum-assisted and dynamic aggregation
A secondary limitation of the current framework involves the quadratic computational complexity of the Multi-Krum filtration module on the central server. While computing pairwise Euclidean distances for 100 localized gradients is trivial, scaling this algorithm to millions of decentralized autonomous vehicles will eventually exceed the O(K2·d) processing threshold of standard cloud clusters, introducing unacceptable synchronization latency.
To address this macroscopic scaling barrier, subsequent research must investigate the application of Quantum Machine Learning (QML) paradigms to federated networks (Xia and Li, 2021). Quantum-assisted clustering algorithms, specifically those leveraging Grover's search for rapid outlier detection, theoretically offer sub-quadratic bounds for isolating Byzantine vectors in high-dimensional hyperspaces.
Additionally, the current BR-FL protocol relies on a statically defined Byzantine tolerance threshold (f). If an adversary compromises a larger percentage of the fleet than statically allocated, the geometric filter will fail to quarantine the overflow. Future implementations will focus on Dynamic Reinforcement-Driven Thresholding, wherein the central server autonomously scales the strictness of the geometric median filter by continuously evaluating the fleet's historical reliability metrics. Table 11 outlines this strategic roadmap, delineating the evolutionary steps necessary to transition the current foundational architecture into a globally scalable, multi-modal perception standard.
Table 11. Strategic roadmap for the evolution of decentralized spatiotemporal perception.
| Research domain | Current framework constraint | Proposed architectural extension | Deployment horizon |
|---|---|---|---|
| Sensor modality | Unimodal (RGB vision only) | Cross-modal self-attention (Radar/LiDAR) | Near-term (1–2 years) |
| Aggregation scaling | Quadratic distance computation O(K2) | Quantum-assisted Byzantine clustering | Long-term (5+ years) |
| Threat adaptation | Static Byzantine threshold (f = 25%) | Dynamic reinforcement-driven thresholding | Mid-term (3–4 years) |
| Edge optimization | Fixed prompt injection depths | Content-aware dynamic routing networks | Near-term (1–2 years) |
Ultimately, the synthesis of spatiotemporal prompt tuning with secure decentralized aggregation fundamentally advances the frontier of artificial intelligence in mobile robotics. By guaranteeing perceptual stability at the edge and cryptographic integrity in the cloud, this architecture provides a rigorous, deployable blueprint for the next generation of safe, autonomous urban navigation.
Generative AI statement
The author(s) declared that Generative AI was not used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Footnotes
Edited by: Kaleem Siddiqi, McGill University, Canada
Reviewed by: Hao Xu, Tianjin University, China
Xinyu Gao, Nanjing University, China
Statements
- Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
- Funding
The author(s) declared that financial support was not received for this work and/or its publication.
- Data availability
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
- Author contributions
RA: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing. RD: Conceptualization, Funding acquisition, Project administration, Resources, Supervision, Validation, Visualization, Writing – review & editing.
References
- Blanchard P., El Mhamdi E. M., Guerraoui R., Stainer J. (2017). “Machine learning with adversaries: byzantine tolerant gradient descent,” in: Advances in neural information processing systems (NeurIPS), 30.
- Carreira J., Zisserman A. (2017). “Quo Vadis, action recognition? a new model and the kinetics dataset,” in: Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR), 6299 – 6308.
- Cheng B., Misra I., Schwing A. G., Kirillov A., Girdhar R. (2022). “Masked-attention mask transformer for universal image segmentation,” in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR) 1280 – 1289.
- Cordts M., Omran M., Ramos S., Rehfeld T., Enzweiler M., Benenson R.. (2016). “The cityscapes dataset for semantic urban scene understanding,” Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR). 3213 – 3223.
- Dosovitskiy A., Beyer L., Kolesnikov A., Weissenborn D., Zhai X.. (2021). “An image is Worth 16x16 words: transformers for image recognition at scale,” in: International conference on learning representations (ICLR).
- El Mhamdi E. M., Guerraoui R., Rouault S. (2018). “The hidden vulnerability of distributed learning in Byzantium.” in: International conference on machine learning (ICML), 3521 – 3530.
- Fang M., Cao X., Jia J., Gong N. (2020). “Local model poisoning attacks to byzantine-robust federated learning,” USENIX Security Symposium, 1605 – 1622.
- Feng D., Haase-Schütz C., Rosenbaum L., Hertlein H., Glaeser C., Timm F.. (2020). “Deep multi-modal object detection and semantic segmentation for autonomous driving: datasets, methods, and challenges,” in: IEEE Transactions on Intelligent Transportation Systems, 22, 1341 – 1360.
- Gao X., Wang Z., Feng Y., Ma L., Chen Z., Xu B. (2023). “Benchmarking robustness of AI-enabled multi-sensor fusion systems: challenges and opportunities,” in: Proceedings of the 31st ACM joint European software engineering conference and symposium on the foundations of software engineering (ESEC/FSE 2023), 871 – 882.
- Hsu T.-M. H., Qi H., Brown M. (2019). Measuring the effects of non-identical data distribution for federated visual classification. arXiv [Preprint]. arXiv:1909.02248.
- Ilg E., Mayer N., Saikia T., Keuper M., Dosovitskiy A., Brox T. (2017). “FlowNet 2.0: evolution of optical flow estimation with deep networks,” in: Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR), 2462 – 2470.
- Jia M., Tang L., Chen B.-C., Cardie C., Belongie S., Hariharan B., Lim S.-N. (2022). “Visual prompt tuning,” in: European conference on computer vision (ECCV) 709 – 727.
- Lamport L., Shostak R., Pease M. (1982). “The Byzantine generals problem,” in: ACM transactions on programming languages and systems (TOPLAS), 4, 382 – 401.
- Liu S., Liu L., Tang J., Yu B., Wang Y., Shi W. (2023). “Edge computing for autonomous driving: opportunities and challenges,” in: Proceedings of the IEEE, 107, 1697 – 1716.
- Liu X., Li C., Shi Y., Hu D., Xu H., Wang J.. (2026). “CoCFL: a lightweight blockchain-based federated learning framework for large-scale IoT Cluster,” in IEEE/ACM Transactions on Networking, 34, 1851 – 1864.
- Loshchilov I., Hutter F. (2019). “Decoupled weight decay regularization,” in: International conference on learning representations (ICLR).
- McMahan B., Moore E., Ramage D., Hampson S., Arcas B. A. (2017). “Communication-efficient learning of deep networks from decentralized data,” in: Artificial Intelligence and Statistics (AISTATS), 1273 – 1282.
- Wang H., Zhu Y., Adam H., Yuille A., Chen L.-C. (2024). “VideoMaE V2: scaling video masked autoencoders with dual masking,” in: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), 14549 – 14560.
- Xia Q., Li T. (2021). Quantum federated learning. arXiv [Preprint]. arXiv:2105.02342.
- Xu H., Xiao B., Liu X., Wang L., Jiang S., Xue W. (2023). “Empowering authenticated and efficient queries for STK transaction-based blockchains,” IEEE Transactions on Computers, 72, 2209 – 2223.
- Yin D., Chen Y., Kannan R., Bartlett P. (2018). “Byzantine-robust distributed learning: towards optimal statistical rates,” in: International conference on machine learning (ICML), 5650 – 5659.
Citation
Ankareddy, R. & Delhibabu, R. (2026). Spatiotemporal vision transformers with Byzantine-robust federated prompt tuning for continuous urban perception. Frontiers in Computer Science, Volume 8. https://doi.org/
- Received
- Accepted
- Published
- Volume
- 8 - 2026
Copyright
Copyright © 2026 Ankareddy and Delhibabu.
License: https://creativecommons.org/licenses/by/4.0/
*Correspondence: Radhakrishnan Delhibabu
Article metrics
- Views
- 0
- Downloads
- 0
- Citations
- 0
- Shares
- 0
