Paper deep dive
BGA: A noise-immune neural distillation framework for malicious signature extraction in high-entropy encrypted flows
Sheng Hong, Yixuan Huang, Weiwei Jiang, Junyuan Zhang, Jiacheng Wang, Ruijian Jiao
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 91%
Last extracted: 8/17/2026, 5:09:13 AM
Summary
The paper introduces BGA, a noise-immune neural distillation framework designed to extract malicious signatures from high-entropy TLS 1.3 encrypted flows in Industrial IoT (IIoT) environments. BGA addresses attention dilution and class imbalance by employing Analysis of Variance (ANOVA) for feature selection, a Wasserstein GAN with Gradient Penalty (WGAN-GP) for synthesizing minority attack samples, and a core architecture combining Bidirectional Long Short-Term Memory (BiLSTM) with an Adaptive Gated Multi-Head Attention mechanism. This approach suppresses cryptographic noise while amplifying malicious signals, achieving over 95.2% performance on benchmarks like CIC-IDS-2018 and Edge-IIoT, with ultra-low inference latency suitable for edge deployment.
Entities (10)
Relation Signals (8)
BGA â uses â WGAN-GP
confidence 94% · a Wasserstein GAN with Gradient Penalty (WGAN-GP) module... is integrated to synthesize high-fidelity minority samples
BGA â uses â BiLSTM
confidence 93% · BGA architecture integrates Bidirectional Long Short-Term Memory (BiLSTM) for temporal dependency extraction
BGA â uses â ANOVA
confidence 92% · The methodology first employs Analysis of Variance (ANOVA) to decouple high-discriminatory control-plane features
BGA â uses â Adaptive Gated Multi-Head Attention
confidence 91% · integrates... an Adaptive Gated Multi-Head Attention mechanism. This gated unit functions as a neural filter
WGAN-GP â improves â MSCI detection recall
confidence 90% · elevating the detection recall of rare Malicious State Command Injections(MSCI) attacks by 43.2%.
BGA â outperforms â vanilla Transformers
confidence 89% · noise-injection stress tests confirm BGAs superior structural resilience with a 8.57% performance margin over vanilla Transformers
BGA â evaluatedon â CIC-IDS-2018
confidence 88% · Extensive evaluations on CIC-IDS-2018 and Edge-IIoT benchmarks demonstrate a performance ceiling exceeding 95.2%
BGA â evaluatedon â
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:To mitigate attention dilution in high-entropy TLS 1.3 flows, we propose BGA, a noise-immune neural distillation framework for encrypted threat this http URL methodology first employs Analysis of Variance (ANOVA) to decouple high-discriminatory control-plane features - specifically industrial setpoints - from stochastic cryptographic noise. To resolve the extreme class imbalance within a corpus of 86,878 flow records, a Wasserstein GAN with Gradient Penalty (WGAN-GP) module, enforcing the 1-Lipschitz constraint, is integrated to synthesize high-fidelity minority samples, elevating the detection recall of rare Malicious State Command Injections(MSCI) attacks by 43.2%. At its core, the BGA architecture integrates Bidirectional Long Short-Term Memory (BiLSTM) for temporal dependency extraction and an Adaptive Gated Multi-Head Attention mechanism. This gated unit functions as a neural filter to dynamically suppress encryption artifacts while amplifying malicious signatures. Extensive evaluations on CIC-IDS-2018 and Edge-IIoT benchmarks demonstrate a performance ceiling exceeding 95.2% across all key metrics. Furthermore, noise-injection stress tests confirm BGAs superior structural resilience with a 8.57% performance margin over vanilla Transformers, while its ultra-low inference latency of 0.2820 ms (estimated 1.6920 ms via theoretical scaling for ARM) indicates a high potential for real-time feasibility on heterogeneous industrial edge gateways, providing a promising architectural baseline for future hardware implementation.
Tags
Links
- Source: https://arxiv.org/abs/2608.14126v1
- Canonical: https://arxiv.org/abs/2608.14126v1
Trouble viewing inline? Open PDF directly â
Full Text
121,604 characters extracted from source content.
Expand or collapse full text
[orcid=0000-0002-9219-3756] BGA: A Noise-Immune Neural Distillation Framework for Malicious Signature Extraction in High-Entropy Encrypted Flows Sheng Hong shenghong@buaa.edu.cn Yixuan Huang Weiwei Jiang Junyuan Zhang Jiacheng Wang Ruijian Jiao organization=School of Cyber Science and Technology, Beihang University, city=Beijing, postcode=100191, country=China organization=Beijing Electronic Science and Technology Institute, city=Beijing, postcode=100070, country=China organization=School of Information and Communication Engineering, Beijing University of Posts and Telecommunications, city=Beijing, postcode=100876, country=China Abstract To mitigate attention dilution in high-entropy TLS 1.3 flows, we propose BGA, a noise-immune neural distillation framework for encrypted threat intelligence. The methodology first employs Analysis of Variance (ANOVA) to decouple high-discriminatory control-plane featuresâspecifically industrial setpointsâfrom stochastic cryptographic noise. To resolve the extreme class imbalance within a corpus of 86,878 flow records, a Wasserstein GAN with Gradient Penalty (WGAN-GP) module, enforcing the 1-Lipschitz constraint, is integrated to synthesize high-fidelity minority samples, elevating the detection recall of rare Malicious State Command Injections(MSCI) attacks by 43.2%. At its core, the BGA architecture integrates Bidirectional Long Short-Term Memory (BiLSTM) for temporal dependency extraction and an Adaptive Gated Multi-Head Attention mechanism. This gated unit functions as a neural filter to dynamically suppress encryption artifacts while amplifying malicious signatures. Extensive evaluations on CIC-IDS-2018 and Edge-IIoT benchmarks demonstrate a performance ceiling exceeding 95.2% across all key metrics. Furthermore, noise-injection stress tests confirm BGAâs superior structural resilience with a 8.57% performance margin over vanilla Transformers, while its ultra-low inference latency of 0.2820 ms (estimated 1.6920 ms via theoretical scaling for ARM) indicates a high potential for real-time feasibility on heterogeneous industrial edge gateways, providing a promising architectural baseline for future hardware implementation. keywords Neural Distillation ,Gated Residual Learning ,High-Entropy Traffic ,Generative Data Augmentation ,Spatio-Temporal Modeling ,Industrial Edge Security â titlenote: This work is supported by the National Key Research and Development Program of China (Grant No. 2022YFB3103602).â corresponding: Corresponding author 1 Introduction Transport Layer Security(TLS) has become a pivotal underpinning for Internet security, with Hypertext Transfer Protocol Secure (HTTPS), the TLS-encrypted extension of HTTP, now ubiquitously deployed to protect web communications across the global Internet (Dong et al. 2024); concurrently, this pervasive cryptographic protection has inadvertently empowered adversaries to obfuscate malicious behaviors, ranging from stealthy Command and Control (C&C) communications to the injection of malicious instructions, by leveraging encrypted traffic to evade traditional detection mechanisms. This lack of traffic visibility poses an acute security threat in Industrial Internet of Things (IIoT) environments, particularly critical infrastructure such as power grids, where encrypted and unobservable traffic flows can serve as vectors for infiltrating control systems and disrupting operational continuity (Qing et al. 2023; Chen et al. 2020). With TLS 1.3 eliminating plaintext handshake metadata and enforcing forward secrecy, legacy DPI and signature-based detection mechanisms have become fundamentally ineffective (Papadogiannaki and Ioannidis 2021; Yun et al. 2023). This motivates the development of intelligent behavioral detection methods. These techniques identify malicious patterns using statistical fingerprints and spatio-temporal characteristics, eliminating the need to access encrypted payloads (Miao et al. 2024; Liu et al. 2025).The pervasive adoption of TLS 1.3 represents a âdouble-edged swordâ in information security. While it fortifies privacy, it simultaneously creates a strategic âinvisibility gapâ for adversaries, rendering traditional signature-based detection fundamentally ineffective. In high-stakes Industrial IoT (IIoT) sectors, such as power grids and gas pipelines, this lack of visibility is not merely a technical hurdle but a critical threat to physical safety. Malicious actors leverage the high entropy of encrypted tunnels to obfuscate C&C instructions and Malicious State Command Injections (MSCI). Therefore, extracting malicious signatures from these opaque, high-entropy flows is no longer a peripheral defensive task; it is the last line of defense preventing cyber-intrusions from escalating into physical disrupting critical physical operations. While traffic classification techniques have advanced from traditional port-matching methods to end-to-end deep learning (DL) models, current approaches continue to grapple with critical theoretical and practical bottlenecks (Dong et al. 2023; Yang et al. 2024). Although Convolutional Neural Networks (CNNs) and standard Recurrent Neural Networks (RNNs) have shown promise, they often struggle to balance computational efficiency with the ability to capture long-range temporal dependencies in high-speed industrial networks (Lin and Chen 2024). More importantly, the recent surge in Transformer-based models, while powerful, introduces a specific vulnerability when applied to encrypted streams: standard self-attention mechanisms lack a filtering process for the stochastic noise generated by encryption padding and randomization (Zhan et al. 2025a). These mechanisms tend to assign attention weights indiscriminately to both malicious signal patterns and cryptographic artifacts, leading to âattention dilutionâ where the model fails to distinguish true attack signatures from background jitter (Zhan et al. 2025a). Furthermore, the inherent class imbalance in network traffic datasets leads to the âextinctionâ of long-tail attack patterns, as models tend to be biased toward the majority traffic classes. Conventional oversampling methods, such as SMOTE, frequently lead to overfitting. Their linear interpolations fail to capture the complex, non-linear manifolds inherent in real-world adversarial traffic. (Alauthman et al. 2020). While Generative Adversarial Networks (GANs) offer a solution, vanilla GAN architectures frequently suffer from mode collapse and training instability, rendering them unreliable for safety-critical IIoT generation (Alauthman et al. 2020).Beyond these deterministic approaches, recent breakthroughs in high-precision energy forecasting have demonstrated the potency of hybrid spatio-temporal architectures. For instance, Wang et al. (Wang et al. 2026) proposed a Bayesian-optimized framework integrating Dynamic Graph Convolutional Networks (DGCN) and Temporal Convolutional Networks (TCN) to exploit intricate dependencies in photovoltaic power data. This paradigm of using Bayesian optimization to refine complex spatio-temporal correlations under uncertainty provides a critical theoretical parallel to our work, highlighting that adaptive noise suppression and structural dependency modeling are essential for distilling deterministic signatures from the high-entropy stochastic noise of encrypted IIoT flows. 1.1 Research Objectives and Contributions To mitigate the security crisis in encrypted IIoT flows, this study develops the BGA framework, achieving three interleaved objectives: (1) Data Layer: Reconstructing the adversarial manifold via WGAN-GP to overcome extreme class imbalance; (2) Feature Layer: Implementing a gated neural distillation mechanism to decouple deterministic signatures from high-entropy TLS 1.3 noise; and (3) Deployment Layer: Bridging the accuracy-latency gap for microsecond-level edge gateways. The core technical advantages of BGA, compared to the baseline models evaluated in our experiments, are systematically summarized in Table 1: Table 1: In-depth comparison of BGA and experimental baseline architectures. Feature RNN / LSTM Transformer BiLSTM BGA (Ours) Temporal Context Unidirectional Global (Non-seq) Bidirectional Bidirectional + Gated Representation Raw Hidden State Self-Attention Concatenated Distilled Signatures Entropy Handling Susceptible to noise Attention Dilution Feature Overlap Neural Filter (Gated) Data Imbalance Majority-class bias Majority-class bias Standard training WGAN-GP Optimized Edge Suitability High latency/Low acc. Memory-intensive Medium efficiency Ultra-low (0.28 ms) âą Neural Distillation via Gated Attention: We propose a gated multi-head attention mechanism as a neural filter. Unlike the standard Transformer which suffers from attention dilution, our gating logic dynamically suppresses stochastic cryptographic jitter. âą Manifold Reconstruction via WGAN-GP: To resolve the class imbalance observed in RNN/LSTM baselines, we utilize WGAN-GP to synthesize high-fidelity minority samples, capturing the complex non-linear manifold of MSCI attacks. âą Optimized Spatio-temporal Fusion: By integrating BiLSTM with gated residuals, BGA outperforms baseline sequence models by maintaining both temporal continuity and global signature correlation within microsecond-level constraints. The remainder of this paper is organized as follows: Section 2 reviews the theoretical foundations of encrypted traffic analysis and generative data augmentation via WGAN-GP. Section 3 details the proposed BGA methodology, including the multi-stage data preprocessing pipeline, the feature selection strategy, and the architectural fusion of BiLSTM with the adaptive gated multi-head attention mechanism. Section 4 presents the experimental setup, performance metrics, and a comprehensive analysis of the results, incorporating comparisons with state-of-the-art models, ablation studies, and robustness stress tests. Finally, Section 6 concludes the paper and outlines potential directions for future research. 2 Related Work 2.1 Encrypted and Malicious Traffic Analysis 2.1.1 Characteristics of Encrypted Traffic A sea change that can be called the âTLS 1.3 effectâ in regard to traffic analysis, thanks to the near ubiquity of SSL/TLS in modern traffic patterns. TLS 1.3 encrypts the server certificate during the handshake, reduces latency to a simple 1 Round-Trip Time(RTT) cycle, and renders DPI based countermeasures largely ineffective (Shen et al. 2023). Aside from a still unencrypted Client Hello packet with Server Name Indication(SNI) and cipher suite meta data, the exchanged data from that point on is obscured by the time âServer Helloâ is dispatched, forcing over-the-horizon sysadmins away from content based matching toward analyzing the statistical behavior and discoverable manifold of these temporal features. 2.1.2 Taxonomy of Malicious Behaviors Malware behavior in encrypted tunnels is revealed in various ways. Worms and botnets keep their C&C links open with âheartbeatâ packets, periodic streams of data usually disguised as HTTPS to avoid detection. Denial-of-Service attacks saturate links with a sudden onslaught of packets and increased flow density and throughput, changing the statistical entropy of traffic streams even though the payloads are invisible (Niu et al. 2022). Data exfiltration tends to use long-running connections, trickling data out of the network in small streams in a bid to remain beneath IDS detection and below volume-based thresholds (Lichy et al. 2023).Traditional IDS often find it difficult to identify these sophisticated activities effectively using shallow features, necessitating more advanced and robust system designs (Towhid et al. 2022; Lin et al. 2022). 2.2 Evolving Encrypted Protocols and Emerging Trends Recently, the landscape of encrypted traffic analysis has been significantly reshaped by the introduction of Traffic Language Models and Graph Neural Networks (GNNs). Traffic Language Models, most notably ET-BERT, leverage the pre-training paradigm from Natural Language Processing (NLP) to treat encrypted datagrams as tokens, capturing deep semantic and contextual relationships within flows. While these Transformer-based models achieve state-of-the-art (SOTA) accuracy in generic IT environments, their deployment at the Industrial IoT (IIoT) edge is often hindered by massive parameter counts and high inference latency, which are incompatible with real-time industrial requirements. Concurrently, GNN-based approaches have emerged to model the complex relational dependencies between network entities. Recent advancements in this domain include semantic-driven multi-view architectures for robust anomaly detection (Zhou et al. 2024b) and specialized noise-resistant graph models designed to isolate malicious patterns from interference (Liu et al. 2025). However, the high computational complexity involved in real-time graph construction remains a significant bottleneck for resource-constrained edge gateways. Beyond these architectural shifts, the research focus is rapidly evolving toward specialized encapsulation protocols such as DNS-over-HTTPS (DoH), DNS-over-TLS (DoT), and DNS-over-QUIC (DoQ). Unlike standard encrypted web traffic, these specialized protocols introduce a âdouble-obfuscationâ layer by hiding DNS query metadata within high-entropy application-layer tunnels. Recent studies highlight that DoH tunnels utilize aggressive padding schemes to deliberately dilute the structural behavioral fingerprints of malicious queries (Mahdi et al. 2025). This evolution necessitates next-generation AI frameworks that move beyond simple pattern matching toward automated intelligence that can distinguish between legitimate browsing and stealthy command-and-control (C&C) instructions embedded in DoH streams. The complexity is further compounded by âprotocol-level entropy,â where traditional behavioral features are frequently masked by the multiplexing characteristics of the QUIC transport layer and varying padding lengths (Ferrag et al. 2026). Advanced architectures like E3-DoH have begun to address these challenges by employing evolutionary analysis to capture cross-protocol signatures. In contrast to heavy-weight Transformer or GNN architectures, our proposed BGA framework prioritizes a âNeural Distillationâ approach. By combining a lightweight BiLSTM with an adaptive gated mechanism that functions as a neural band-pass filter, BGA achieves a superior balance between detection fidelity and the strict microsecond-level latency required for maintaining operational continuity in heterogeneous industrial networks. 3 Methodology 3.1 System Architecture Certain traffic samples cannot be easily processed due to the inherent characteristics of encrypted traffic, which is often difficult to categorize. This research focuses on encrypted network traffic. The goal of all researchers of such traffic is to âcharacterize inaudible encrypted trafficâ. To detect malicious activity in encrypted traffic, we must analyze and model the structural and behavioral characteristics of encrypted traffic flows. We implement the BGA framework as a systematic pipeline designed to address two primary challenges in encrypted traffic analysis: the obfuscation of payloads and the extreme scarcity of malicious samples. The following overview details the integrated sequence of stages that constitutes this methodology, emphasizing the logical synergy between data augmentation and architectural noise distillation: 1. Data Preprocessing: Clean raw PCAP traffic files into numerical statistical features; 2. Sample Augmentation: WGAN-GP to learn the latent distribution of minority attack classes (e.g., Infiltration, Web Attacks). High fidelity synthetic samples are generated to boost the bootstrapping of loading the datasets that would be biasing the classifier to the benign majority (benign traffic); 3. Feature Extraction: BiLSTM, as modeling the rich behavior and sequential dependencies existing within traffic flows 4. Feature Refinement & Classification: Gated Attention to dynamically weight feature subspaces from a clean shared representation, filtering noise prior to a fully connected classifier. 3.2 Data Preprocessing The cryptographic opacity of modern encrypted payloads (e.g., HTTPS, TLS 1.3) effectively renders DPI a moot point. Consequently, our detection strategy pivots toward the granular extraction of behavioral statistics, such as packet size distributions, inter-arrival time (IAT) variances, and total flow duration, as well as latent time-series signatures. To facilitate stable model convergence and ensure the integrity of the feature space, we execute a rigorous multi-stage preprocessing pipeline as detailed below.To maintain a rigorous evaluation and prevent data leakage, we implement a strict âSplit-then-Fitâ preprocessing protocol. The raw dataset is first partitioned into a training split (80%) and a testing split (20%). Crucially, all statistical parameters and feature selection masks are derived exclusively from the training manifold to ensure that the testing data remains a truly âunseenâ benchmark. 3.2.1 Data Cleaning and Encoding Unlike traditional data acquisition approaches, live data are prone to corruption and stochastic noise. Initially, we sanitize the raw data by removing records containing missing values (NaN) or infinite durations (Inf). These anomalies typically stem from buffer overflows during packet capture. Beyond simply cleaning the data, we next, remove metadata not required for behavior-based analysis; for example âTimestampâ and âFlow ID (Dâhooge et al. 2020).â Where possible, we strive to purge the dataset of nuisance featuresâthe neural net should not learn that an attack occurs at 5PM every Tuesday. Ultimately, we want the net to model the mechanics of the traffic versus some sort of faux first-order analysis (Fu et al. 2023; Gu et al. 2025). Categorical features will not be trivial to transform conceptually. For example, how to handle Reference: Transmission Control Protocol,User Datagram Protocol,Internet Control Message Protocol(TCP, UDP, ICMP), Standard label encoding schemes often represent categorical protocols as discrete integers, such as assigning 1 to TCP and 2 to UDP. Forcing a fictitious hierarchy codes a Captain, and lieutenants into the 1D Order of Problem Explanation. The model might incorrectly assume that a UDP is greater than TCP. To eradicate this bias, we employ One-Hot Encoding (Manocchio et al. 2025). By embedding categories into a high-dimensional orthogonal vector with 0âs and 1âs, protocols of differing categorical boundaries must occupy an equidistant space in the feature representation. 3.2.2 Normalization Network traffic features are notorious for their vast scalar disparities; a single flow might have a âDurationâ spanning thousands of milliseconds while its âPacket Countâ is recorded in the single digits in the single digits. Inputting raw, unscaled magnitudes can induce gradient instability and significantly impede the optimization process. To achieve numerical stability, we utilize Min-Max Normalization to project all continuous numerical features onto a standardized linear range of [0,1][0,1]. The transformation is governed by the following equation: Xnâoârâm=XâXmâiânXmâaâxâXmâiânX_norm= X-X_minX_max-X_min (1) where X represents the raw input feature, while XmâiânX_min and XmâaâxX_max denote the minimum and maximum values of that feature derived exclusively from the training split, respectively, yielding the scaled value XnâoârâmX_norm. These training-specific parameters are subsequently utilized to transform the testing data, ensuring that the test manifold remains strictly âunseenâ during the parameterization phase. By bounding the feature values within the range [0,1][0,1], we ensure that the input distribution aligns with the optimal operational regimes of non-linear activation functions like Sigmoid or Tanh. 3.2.3 Feature Selection via ANOVA To prune the feature manifold of uninformative noise and zero-variance dimensions, we operationalize (ANOVA) exclusively on the training split to quantify the discriminatory potency of each attribute. The F-value is utilized to calculate the variance ratio between disparate attack classes relative to the internal variance within each class: F=âj=1cnjâ(xÂŻjâxÂŻ)2/(câ1)âj=1câi=1nj(xiâjâxÂŻj)2/(Nâc)F= _j=1^cn_j( x_j- x)^2/(c-1) _j=1^c _i=1^n_j(x_ij- x_j)^2/(N-c) (2) In this expression, c denotes the number of traffic categories and N represents the total sample size within the training split. The numerator quantifies the between-class variance, where njn_j is the number of samples in the j-th class, xÂŻj x_j is the mean value of the feature within that class, and xÂŻ x is the overall grand mean computed from the training manifold. Conversely, the denominator measures the within-class variance by summing the squared deviations of individual observations xiâjx_ij from their respective class means. Crucially, the ANOVA-based selection process is nomenclature-agnostic, as it relies on numerical variance ratios across class distributions rather than semantic metadata. Consequently, renaming features has zero impact on the resulting importance ranking. In scenarios where high-discriminatory control-plane features are noisy or only partially observed, the framework leverages the Adaptive Gated Attention (detailed in Section 3.5) to dynamically suppress these unreliable channels, ensuring that stochastic corruption does not propagate to the final classification boundary. Attributes yielding high F-values are more closely related to the true malicious signatures. The feature importance ranking and subsequent selection are derived solely from this training-only analysis; the resulting feature mask is then applied to the test set to ensure a leak-proof evaluation. Table 2: Feature importance ranking for the Edge-IIoT (Gas Pipeline) subset based on ANOVA F-values. Rank Feature Name Physical Interpretation F-Value 1 setpoint Target Control Setpoint 350,466.82 2 control_scheme Control Logic Configuration 261,368.60 3 resp_read_fun Modbus Read Function Code 22,120.04 4 control_mode System Operational Mode 7,359.59 5 command_address Target Modbus Register Address 6,164.74 6 comm_read_function Command Read Operation Type 5,682.57 7 command_memory_count Memory Access Quantity 1,122.52 8 pump Actuator (Pump) Status 471.04 9 command_memory Memory Index Mapping 443.74 10 solenoid Solenoid Valve Status 228.62 11 time Inter-arrival Time Statistics 0.59 12 measurement Sensor Measurement Value 0.11 The numerical divergence represented in Table 2 has even more insightful connotations: logical control, setpoint and control_scheme, have massive F-scores (exceeding 2.5Ă1052.5Ă 10^5). This suggests that the âanatomical markersâ of an intrusion in encrypted IIoT tunnels are in the corruption of process logic, not in packet timing jitter. Contrarily, the traditional network-layer metrics like time, measurement are almost inert; their F-scores are below 1.0, which affirms the need for our BGA architecture: by putting the BiLSTM to work tracking the chronological development of these high value control patterns and the Gated Attention acting as a neural filter, we can effectively zoom in on high-compression anomalies like setpoint movement and suppress the stochastic jitter of non-discriminative noise. Figure 1: Statistical distribution (violin plot) of setpoint across traffic categories. The interpretability of these control-plane features is also reinforced by the setpoint density profiles shown in Figure 1. Where legitimate Normal operations reside within a reasonably stable and predictable numerical band, malicious classes, namely Malicious Parameter Command Injection(MPCI) and MSCI, instill chaos in the distributions, causing bimodal distributions with considerable movement of medians, yielding such distinctive fingerprints as to confirm that such adversarial tampering of industrial valve parameters is logically detectable, albeit hidden from view by cryptographic encapsulation of the payload. Leveraging this separability, our framework remains particularly sensitive to stealthy command injections that shallow statistical models fail to identify. 3.3 Data Augmentation Implementation To alleviate the âdata-starvationâ issue and extreme class imbalance inherent in encrypted IIoT traffic, we implement the Wasserstein GAN with Gradient Penalty (WGAN-GP) as a targeted generative solution (Li et al. 2023; Soleymanpour et al. 2021). As illustrated by the raw class distribution in Table 3, the sample space is significantly over-represented by benign instances, while critical industrial threatsâsuch as MSCI and DoSâare relegated to the extreme tail of the feature space (representing less than 1% and 2.1% of the dataset, respectively). Such a skewed structure poses a severe risk to classic deep learning architectures, which often develop a strong bias toward the majority class, rendering stealthy intrusions likely to be misdiagnosed as background noise. Unlike conventional oversampling methods like SMOTE, which utilize linear interpolation and often introduce âfeature-level noiseâ that fails to capture the complex manifolds of adversarial traffic, WGAN-GP learns the underlying non-linear distribution of high-dimensional flow features (Miao et al. 2024). To resolve the training instability and mode collapse common in vanilla GANs, we adopt the Earth-Mover (Wasserstein) distance and enforce the 1-Lipschitz continuity constraint via a gradient penalty. The objective function for the critic D is formalized as: â=x~âŒâgâ[DâĄ(x~)]âxâŒârâ[DâĄ(x)]+λâx^âŒâx^â[(ââx^Dâ(x^)â2â1)2]L=E_ x _g[D( x)]-E_x _r[D(x)]+ _ x _ x[(|| _ xD( x)||_2-1)^2] (3) In this formulation, ârP_r and âgP_g represent the distributions of real and generated data, respectively, while λ serves as the penalty coefficient that balances the Wasserstein loss with the regularization term. The terms involving the expectation operator E compute the average scores assigned by the critic DâĄ(â )D(·) to real samples x and synthetic samples x~ x. To ensure stable convergence, the final term calculates a gradient penalty based on the L2L_2 norm of the gradient âx^Dâ(x^) _ xD( x), evaluated at interpolated points x x sampled uniformly along straight lines between real and generated distributions. By enforcing the 1-Lipschitz continuity constraint via the gradient penalty, the WGAN-GP module effectively learns the underlying non-linear manifold of rare attack categories. This structural regularizer prevents the introduction of artificial patterns or âgenerative noiseâ that often plague linear interpolation methods, ensuring that the synthesized samples remain physically and logically consistent with real-world adversarial behaviors. To ensure a rigorous and unbiased evaluation, we strictly followed a âSplit-then-Augmentâ protocol. The dataset was first partitioned into independent training and testing sets. WGAN-GP was subsequently trained and utilized to synthesize samples exclusively for the training set; the testing set remained entirely untouched by the generative process, containing only original, real-world flow records. This separation prevents any form of synthetic artifacts from influencing the final performance benchmarks. Technically, the WGAN-GP implementation in our framework utilizes a multi-layer perceptron (MLP) architecture. Specifically, the Generator consists of layers with 128,256,output_dim\128,256,output\_dim\ neurons using ReLU activations and a final Sigmoid layer to match the normalized feature range. The Critic employs layers with 256,128,1\256,128,1\ neurons with LeakyReLU (α=0.2α=0.2). Training was conducted for 150 epochs using the Adam optimizer with a learning rate of 1Ă10â41Ă 10^-4 and momentum parameters ÎČ1=0.5,ÎČ2=0.9 _1=0.5, _2=0.9. To maintain the 1-Lipschitz constraint, the gradient penalty coefficient was set to λ=10λ=10, and the Critic was updated 5 times for every Generator step. This mathematical framework facilitates robust sample synthesis even in scenarios where malicious data is extremely sparse. In our implementation, we train class-targeted generators to densify minority regions within the feature space. As detailed in Table 3, we inflated the volumes of the minority attack classes to a standardized baseline of 24,455 samples each (with the exception of MCVI). Unlike random oversampling, these synthetic data points reside strictly within the high-dimensional probability density of natural adversarial behavior. Unlike conventional oversampling methods like SMOTE, which often introduce âfeature-level noiseâ through linear interpolation, WGAN-GP learns the underlying non-linear distribution of high-dimensional flow features. By enforcing the 1-Lipschitz constraint, the framework ensures that the synthetic data points reside strictly within the high-dimensional probability density of natural adversarial behavior. This provides statistically representative samples that allow the BGA framework to learn a significantly finer decision boundary, thereby sustaining high detection recall for stealthy activities without introducing generative artifacts. Table 3: Class distribution of the Training Set (80% split) before and after WGAN-GP augmentation Attack Category Original Samples Augmented Samples Increase Ratio Normal Operation 48,910 48,910 1.0Ă CMRI 12,371 24,455 1.9Ă MSCI 623 24,455 39.2Ă MPCI 6,128 24,455 4.0Ă DoS 1,470 24,455 16.6Ă Total 69,502 146,730 2.1Ă Figure 2: WGAN-GP module architecture for data augmentation. 3.4 Spatio-Temporal Feature Extraction Figure 3: Proposed BGA model architecture integrating BiLSTM and Gated Attention. The proposed BGA Model serves as the frameworkâs classification engine, employing a hybrid structure that executes sequential temporal modeling via BiLSTM followed by feature-level distillation through a Gated Multi-Head Attention module (Kong et al. 2026). 3.4.1 BiLSTM Sequence Modeling To capture the intricate temporal evolution of encrypted traffic, the preprocessed sequence X=x1,x2,âŠ,xTX=\x_1,x_2,âŠ,x_T\ is ingested by a Bidirectional LSTM (BiLSTM) layer. Unlike standard RNNs, each LSTM unit utilizes a gated memory cell architecture to preserve long-range dependencies and circumvent gradient decay. The internal synchronization of the forget gate (ftf_t), input gate (iti_t), and output gate (oto_t) regulates the state updates as follows: ft=ÏâĄ(Wfâ [htâ1,xt]+bf)it=ÏâĄ(Wiâ [htâ1,xt]+bi)C~t=tanhâĄ(WCâ [htâ1,xt]+bC)Ct=ftâCtâ1+itâC~tot=ÏâĄ(Woâ [htâ1,xt]+bo)ht=otâtanhâĄ(Ct) \ aligned f_t&=Ï(W_f·[h_t-1,x_t]+b_f)\\ i_t&=Ï(W_i·[h_t-1,x_t]+b_i)\\ C_t&= (W_C·[h_t-1,x_t]+b_C)\\ C_t&=f_t C_t-1+i_t C_t\\ o_t&=Ï(W_o·[h_t-1,x_t]+b_o)\\ h_t&=o_t (C_t) aligned . (4) In this formulation, xtx_t represents the input vector at time step t, while hth_t and CtC_t denote the hidden state and memory cell state, respectively. The transition dynamics are governed by weight matrices Wf,i,C,oW_\f,i,C,o\ and bias vectors bf,i,C,ob_\f,i,C,o\, which are learned during training. The forget gate ftf_t determines the extent to which the previous cell state Ctâ1C_t-1 is retained, while the input gate iti_t modulates the integration of the candidate cell state C~t C_t. Here, Ï denotes the sigmoid activation function that constrains gate outputs between 0 and 1, and â represents the Hadamard (element-wise) product used for controlled information flow. To overcome the inherent limitation of unidirectional LSTMs in accessing future context, our BiLSTM architecture concurrently employs two independent hidden layers to process the traffic flow in opposing directions: htâ h_t =LSTMfâwâdâ(xt,htâ1â) =LSTM_fwd(x_t, h_t-1) (5) htâ h_t =LSTMbâwâdâ(xt,ht+1â) =LSTM_bwd(x_t, h_t+1) (6) where htâ h_t captures the forward sequential patterns from the beginning of the flow, and htâ h_t extracts backward features from the subsequent packets. By concatenating these dual-path outputs, the model yields a holistic, context-aware hidden state hth_t (Liu et al. 2021): ht=[htâ;htâ]h_t=[ h_t; h_t] (7) This combined representation ensures that the model effectively encapsulates the dependencies between both preceding and subsequent packet dynamics within the high-dimensional traffic space. 3.4.2 Multi-Head Attention Mechanism To identify correlations between disparate feature subspacesâsuch as the interplay between packet timing and burst magnitudeâwe deploy a Multi-Head Attention mechanism over the BiLSTM output H. The sequence of hidden states is first projected into distinct manifolds to generate the Query (Q), Key (K), and Value (V) matrices. The core Scaled Dot-Product Attention determines the relevance of different time steps by computing: Attentionâ(Q,K,V)=softmaxâ(QâKTdk)âVAttention(Q,K,V)=softmax ( QK^T d_k )V (8) In this operation, the dot product QâKTQK^T evaluates the compatibility between queries and keys, while dk d_k acts as a scaling factor based on the key dimensionality to prevent gradient vanishing during the softmax stage. Rather than relying on a single attention pass, the multi-head structure utilizes h parallel channels to extract diverse behavioral fingerprints (Han et al. 2023), where each head i is derived as: headi=Attentionâ(QâWiQ,KâWiK,VâWiV)head_i=Attention(QW_i^Q,KW_i^K,VW_i^V) (9) Here, WiQ,WiK,and âWiVW_i^Q,W_i^K,and W_i^V represent learnable projection matrices specific to the i-th head, allowing the model to attend to information from different representation subspaces simultaneously. The final representation is formed by concatenating these individual heads and applying a linear transformation: MultiHeadâ(Q,K,V)=Concatâ(head1,âŠ,headh)âWOMultiHead(Q,K,V)=Concat(head_1,âŠ,head_h)W^O (10) where WOW^O is the output weight matrix that fuses the multi-path information into a unified feature vector. This mechanism ensures the model maintains a global focus across the entire traffic flow, effectively prioritizing discriminative anomalies before they reach the gating and classification stages. 3.4.3 Synergistic Fusion of BiLSTM and Multi-Head Attention The core architectural strength of the BGA model lies in the strategic coupling of BiLSTM and Multi-Head Attention, a fusion designed to achieve a better synergistic effect by pairing chronological memory with global selectivity. In this integrated pipeline, the BiLSTM layer first processes the input sequence X to generate a contextually enriched hidden state matrix H=h1,h2,âŠ,hTH=\h_1,h_2,âŠ,h_T\. Each vector hth_t within this manifold encapsulates bidirectional temporal dependencies through the concatenation of forward and backward states: ht=[htâ;htâ],for t=1,2,âŠ,Th_t=[ h_t; h_t], t=1,2,âŠ,T (11) This matrix H serves as a dense temporal manifold that stores the âmemoryâ of the communication behavior. To operationalize deep fusion, this temporal representation is projected into the attention subspace. Specifically, H is utilized as the foundation to derive the Query (Q), Key (K), and Value (V) matrices through a learnable transformation: Q=K=V=Hâ WlQ=K=V=H· W^l (12) where Wlââ2âdĂdkW^l ^2dĂ d_k is the projection matrix that aligns the BiLSTM memory outputs with the attention feature space. The synergy between these mechanisms enables a comprehensive feature representation: while the BiLSTM captures the temporal dynamics and sequential evolution of packet exchanges, the Multi-Head Attention identifies globally significant patterns within a given attack signature. This dual-perspective modeling is particularly crucial for high-entropy encrypted traffic, where randomized padding often obscures discriminative indicators. The BiLSTM ensures structural continuity across the flow, while the attention mechanism selectively emphasizes critical behavioral anomaliesâsuch as periodic heartbeat rhythms or unauthorized command injectionsâthereby filtering out stochastic noise that might be neglected by purely sequential architectures. Consequently, the integrated BGA noise reduction process formally derives the refined feature representation HâČH through the attention network: HâČ=MultiHeadâ(Q,K,V)H =MultiHead(Q,K,V) (13) The resulting fused representation HâČH combines deep contextual memory with global discriminative power, providing a robust manifold for identifying stealthy, low-frequency malicious activities within opaque network environments. 3.5 Neural Feature Distillation via Adaptive Gating 3.5.1 Gated Residual Architecture The architectural power of BGA ultimately resides within its Adaptive Gating Mechanism, a neural unit that corrects for the noise propagation issue of attention-based analyses (Liu et al. 2025). In analysing encryption traffic, especially in the case of TLS 1.3, stochastic traces of randomness (handshake metadata, padding) inject a degree of entropy into the feature stream, and in conventional Multi-Head Attention (MHA)s which use democratic weighting (or weighting based on the structural importance of the attention heads where heads are just concatenated or averaged), random cryptographic jitter will pollute the discriminative attack signature, breaking the representation. Instead of that bottleneck, we build a learnable gate to act as a Neural Feature Distillation layer, an intelligent bottleneck that assigns the different coefficients of importance to a particular attention head depending on the input. For the output of each attention head AiA_i (where i=1,âŠ,hi=1,âŠ,h), the corresponding gating factor GiG_i is derived through a non-linear transformation that evaluates its contribution to the final classification task: Gi=ÏâĄ(WgâAi+bg)G_i=Ï(W_gA_i+b_g) (14) In this formulation, WgW_g and bgb_g represent learnable weight matrices and bias vectors specifically optimized to identify behavioral relevance within the latent space. The Sigmoid activation function ÏâĄ(â )Ï(·) ensures that the gating coefficient is constrained within the (0,1)(0,1) interval, effectively serving as a probability of significance for that specific feature channel. The final distilled representation of the BGA model, denoted as O, is synthesized as the gate-weighted summation across all parallel attention heads: O=âi=1hGiâ AiO= _i=1^hG_i· A_i (15) This gating of residuals imparts a number of systemic roles to BGA that vanilla recurrent or attention models could not otherwise accomplish. The most immediately obvious of these is Dynamic Noise Suppression; when trained on the quality of the signal contributing to each head of a gate, the model consciously learns to turn down noisy channels (that picked up evidence of redundant encryption artifacts) by biasing the relevant gate GiG_i to a zero-state. The model calls only for pertinent signals to make it to classification boundary. Gating performs further roles of Feature Selectivity, learning to handle feature types such as the precise intervals in which heartbeat signals are generating a timedependent signature or erroneous below 1% logical deviations in industrial setpoints in preference to ambient jitter on the network,or Resilience against Concept Drift in âpractical deployments of IIoTâ where model âbias is derived from a specific history of protocol padding schemes and background traffic distributionsâ. As different padding schemes and types of background traffic emerge in the real world, BGA simply re-calibrates where to focus its attention. Combined with own âglobally correlatedâ insights, BGAâs gating logic transforms the raw temporal memory of the BiLSTM + the global correlation of its own attention layer into the purest noise-immune feature-space applicable to its task, the performance motivation behind BGA in identifying as stealthy, hidden, low frequent malicious commands inside of opaque tunnels (with nuanced control families). Table 4: Comparison between BGA and Traditional Models Dimension SMOTE + LSTM BGA Model (Ours) Feature Modeling Simple attention/weighting Gated Multi-Head Attention Augmentation Linear interpolation (SMOTE) WGAN-GP (Non-linear) Sequence Modeling Unidirectional (limited context) BiLSTM (Full context) Robustness Prone to majority-class bias Superior Generalization 3.5.2 Functional Logic and Noise Distillation To elucidate the robustness of the BGA framework against high-entropy encrypted flows, it is essential to analyze the functional logic of the gated distillation process. To address the attention dilution identified in Section 1, BGA employs a coordinated three-stage logical pipeline: First, the BiLSTM layer serves as a temporal contextualizer. By processing the packet sequences bidirectionally, it constructs a rich memory manifold that encapsulates not just individual packet statistics, but the evolving âbehavioral rhythmâ of the flow. This step ensures that transient encryption jitters are placed within a broader temporal context, allowing the model to distinguish between incidental fluctuations and structural behavioral patterns. Second, the Multi-Head Attention module executes a global correlation analysis. It scans the entire hidden manifold generated by the BiLSTM to identify long-range dependenciesâsuch as the latent relationship between a specific industrial command setpoint and a subsequent heartbeat interval. However, because raw attention weights can still be biased by high-entropy cryptographic artifacts, a third âdistillationâ stage is executed to refine the feature space. Third, the Adaptive Gating Mechanism acts as a learnable neural filter. Logically, the gating unit evaluates the significance of each attention head based on its contribution to the classification objective. If a feature dimension is dominated by stochastic encryption noise, the gate assigns a low activation coefficient, effectively âsilencingâ the noisy channel. Conversely, when the gate identifies stable malicious fingerprints (e.g., subtle deviations in control logic), it adaptively amplifies these signals. By utilizing a gated residual connection, BGA ensures that only the âdistilledâ essence of the adversarial behavior reaches the final decision boundary, while the non-discriminative encryption noise is suppressed. This logical flow effectively transforms a raw, noisy temporal sequence into a purified representation of malicious intent. 3.5.3 Formalization of the ND Framework To systematize the proposed approach, we formalize the Neural Distillation (ND) framework as a triple-stage information-theoretic mapping F:âdâiâsâtâiâlâlâeâdF:X _distilled.This conceptualization aligns with the evolving paradigm of automated knowledge discovery, where information distillation is essential for recovering deterministic signals from high-entropy, noisy environments. 1. Temporal Manifold Construction (âłtâeâmâpM_temp): The BiLSTM layer maps raw sequences into a dense memory manifold, capturing the âbehavioral rhythmâ of the flow. This stage ensures that transient encryption jitter is contextualized within long-range structural patterns, providing a temporal foundation for distillation. 2. Subspace Correlation Mapping (gâlâoâbâaâlA_global): The Multi-head Attention module projects the manifold into h heterogeneous feature subspaces. This captures global dependencies between disjoint attack indicators (e.g., industrial setpoint shifts and heartbeat intervals) that are otherwise obscured by high-entropy padding. 3. Adaptive Gated Distillation (dâiâsâtâiâlâlG_distill): This is the core theoretical operator. Functioning as an entropy-aware neural band-pass filter, the gating unit âĄ(A)=ÏâĄ(WgâA+b)âAG(A)=Ï(W_gA+b) A evaluates the significance of each attention head based on its contribution to the classification manifold. Crucially, this mechanism is entropy-agnostic; it is designed to structurally suppress any feature subspace characterized by high stochastic uncertainty and low discriminative potency. This includes both statistical Gaussian noise and the protocol-level obfuscation artifacts discussed previously. By dynamically attenuating these high-entropy ânoiseâ channels, the framework distills high-fidelity behavioral signatures from the background obfuscation. By decoupling the behavioral âsignalâ from the cryptographic ânoise,â the ND framework provides a generalizable paradigm for identifying stealthy, low-frequency malicious commands in any high-entropy sequence where payload visibility is fundamentally denied. 3.6 Theoretical Justification for Model Selection The architectural components of BGA are strategically selected to maximize structural resilience against the stochasticity of TLS 1.3 encrypted flows: 1. Gated Distillation for Noise Suppression: The primary challenge in encrypted traffic is âattention dilution,â where standard self-attention mechanisms are confounded by randomized encryption padding. The BGAâs Adaptive Gate functions as a neural band-pass filter. Mathematically, the gating coefficient Gi=ÏâĄ(WgâAi+bg)G_i=Ï(W_gA_i+b_g) evaluates the signal-to-noise ratio of each attention head, effectively silencing channels dominated by cryptographic jitter. This ensures the model converges on deterministic behavioral fingerprints rather than stochastic artifacts. 2. WGAN-GP for Manifold Integrity: Unlike SMOTE, which generates samples via linear interpolationâoften introducing âfeature-level noiseââWGAN-GP utilizes the Wasserstein distance to provide a smoother and more reliable gradient. By enforcing the 1-Lipschitz constraint, it captures the complex, non-linear manifold of rare industrial attacks (e.g., MSCI), ensuring that the augmented data remains physically and logically consistent with real-world adversarial behaviors. 3. BiLSTM for Temporal Contextualization: While 1D-CNNs are sensitive to local packet fluctuations, BiLSTM models the global sequential evolution of the flow. In IIoT environments, malicious signatures are often embedded in the temporal inter-dependencies of control commands. BiLSTMâs gated memory cells prevent the loss of these subtle signatures amidst the background noise of high-throughput traffic, providing a superior spatio-temporal representation compared to vanilla recurrent or convolutional architectures. 4 Experiments and Analysis 4.1 Experimental Setup and Datasets The BGA framework was benchmarked on two datasets spanning Information Technology (IT) and Operational Technology (OT/IoT) domains: âą Edge-IIoT (Primary Research Focus): This dataset serves as our primary benchmark because it represents a high-fidelity physical testbed rather than a synthetic simulation. The flows are captured from real industrial hardware with active TLS/SSL encryption, meaning that protocol-specific artifacts like random padding, encrypted handshake metadata, and metadata obfuscation are already inherently present in the baseline data, ensuring the ecological validity of the subsequent analysis. We specifically focus on the Gas Pipeline sub-scenario because it represents a mission-critical infrastructure characterized by sophisticated Modbus-based process control. This scenario involves the manipulation of essential physical setpoints (e.g., pressure and flow rate), making it an ideal environment for validating BGAâs ability to detect stealthy command injections within encrypted industrial flows. Data Acquisition Process: The final dataset presented in Table 5 was derived from the raw Edge-IIoT corpus through a targeted extraction pipeline. First, we filtered the multi-gigabyte raw records to isolate five security-critical categories: Normal, CMRI, MSCI, MPCI, and DoS. Subsequently, we executed a deduplication and cleaning process to resolve byte-encoding artifacts. This resulted in a refined corpus of 86,878 high-quality flow records, ensuring that the model learns the nuanced correlations between industrial setpoints and malicious signatures (Ferrag et al. 2022). By obtaining the raw corpus from the official Edge-IIoT repository and applying the targeted extraction and cleaning pipeline described above, researchers can fully replicate the refined dataset used in this study. âą CIC-IDS-2018 (Generalizability Validation): To demonstrate the frameworkâs versatility beyond industrial settings, we further evaluate it on the CIC-IDS-2018 dataset. This dataset acts as a supplementary baseline to verify BGAâs effectiveness against common enterprise-level encrypted threats (e.g., SSH/HTTPS-based infiltration). For this validation, we selected a representative subset from the official Wednesday-Friday captures, with the sample distribution detailed in Table 6 (Göcs and JohanyĂĄk 2024). All workstation benchmarks were conducted on a system equipped with an Intel Core i7-13700H CPU @ 2.40GHz and 16GB of RAM, utilizing the PyTorch 2.1 framework. To ensure a rigorous Serial Latency Measurement Protocol, inference time was recorded for a single flow record (Batch Size = 1) to simulate the sequential packet-by-packet processing characteristic of industrial edge nodes. Crucially, we enforced a single-thread execution constraint (via torch.set_num_threads(1)) to obtain a raw single-core serial execution time, precluding any multi-core parallel computing bias. We executed 2,000 independent iterations for each model after a 200-iteration warm-up phase to eliminate cold-start bias, reporting the mean serial latency per sample. This workstation-based serial measurement serves as the deterministic baseline for the subsequent hardware scaling simulation. 4.1.1 Implementation and Reproducibility To ensure the reproducibility of our findings, all experiments were implemented in PyTorch 2.1. The dataset partitioning followed a strict 80/20 training-to-testing ratio using a fixed random seed of 42 (via scikit-learn). For the ablation study and overall performance benchmarks, each model configuration was executed over 5 independent runs to compute the Mean ± SD reported in the results. The optimal hyperparameters for the BGA architecture (64 hidden units, 4 attention heads) were determined through a systematic grid search across hidden dimensions 32,64,128\32,64,128\ and head counts 2,4,8\2,4,8\, selecting the configuration that prioritized detection performance while remaining within the 10 ms real-time response threshold typically required for industrial gateways. 4.1.2 Representativeness and Data Ecosystem Analysis To ensure the generalizability of the BGA framework, we strategically selected a dual-dataset ensemble that represents the comprehensive high-entropy data ecosystem: 1. The IT-Enterprise Macrocosm (CIC-IDS-2018): This dataset represents the high-throughput, high-entropy environment typical of modern office and web infrastructures. It is dominated by HTTPS and SSH traffic, where encryption entropy is primarily driven by large-scale certificate exchanges and randomized application data. Testing on this dataset validates BGAâs ability to handle high-volume noise in standard IT flows. 2. The OT-Industrial Microcosm (Edge-IIoT): Conversely, Edge-IIoT captures the unique data ecosystem of the Industrial Internet of Things (IIoT). In this domain, high entropy is often an adversarial artifact used to mask subtle process control manipulations (e.g., Modbus function code hijacking). The flows here are characterized by strict periodicity and low-frequency but mission-critical packet exchanges. 3. Holistic Entropy Coverage: Theoretically, the combination of these two benchmarks covers the entire spectrum of High-Entropy Encrypted Traffic. While IT flows exhibit high structural complexity, OT flows exhibit high logical sensitivity. Together, they form a robust experimental ecosystem that accounts for both the stochasticity of modern encryption (TLS 1.3) and the deterministic behavioral fingerprints of industrial adversarial activities. Table 5: Raw Sample Distribution of the Edge-IIoT (Gas Pipeline) Subset. Label Attack Category Raw Sample Count Proportion (%) 0 Normal Operation 61,156 70.38 2 Complex Malicious Response Injection (CMRI) 15,466 17.80 4 Malicious Parameter Command Injection (MPCI) 7,637 8.79 6 Denial of Service (DoS) 1,837 2.11 3 Malicious State Command Injection (MSCI) 782 0.90 Total - 86,878 100.0 Table 6: Sample Distribution of the CIC-IDS-2018 Validation Subset. Category Attack Type Sample Count Proportion (%) Benign Normal Web/SSH/FTP encrypted traffic 611,560 88.08 DoS DoS-Slowloris / DoS-GoldenEye 42,430 6.11 Infiltration Exploiting vulnerable applications 16,190 2.33 Brute Force FTP/SSH Brute Force attempts 15,280 2.20 Total - 685,460 100.0 âą Note: These counts represent the standard pre-processed flow records used for the multi-class classification task. Table 5 highlights a sharp âlong-tailâ skew in the industrial data. With normal traffic at 70.38% and MSCI attacks under 1%, this 78:1 ratio typically triggers a majority-class bias. Our generative augmentation rectifies this skewness, ensuring rare but critical threats are accurately represented. Architecture and training parameters, optimized via grid search for IIoT efficiency, are detailed in Table 7. Table 7: Detailed neural architecture and hyperparameter configurations for the BGA framework and WGAN-GP module. Hyperparameter / Component Value / Configuration BiLSTM Layer Hidden Units 64 (Bidirectional, 128 total) Dropout Rate 0.2 Gated Multi-head Attention Number of Heads (h) 4 Latent Dimension per Head 32 Gating Activation Sigmoid WGAN-GP (Data Augmentation) Latent Noise Dimension (z) 10 Gradient Penalty Coefficient (λ) 10 Critic Iterations per Generator Step 5 Training Configuration Optimizer Adam (ÎČ1=0.9,ÎČ2=0.999 _1=0.9, _2=0.999) Initial Learning Rate 0.001 Batch Size 64 Maximum Epochs 50 (Early stopping enabled) The 64-unit BiLSTM captures temporal features while the 4-head attention mechanism parses disparate latent subspaces. Using an Adam optimizer (lâr=0.001lr=0.001), the model achieves efficient convergence and high classification fidelity. 4.1.3 Hyperparameter Configuration The architectural parameters of BGA were optimized via a systematic grid search to ensure structural resilience. The Search Space spanned hidden units hâ32,64,128,256hâ\32,64,128,256\, attention heads nâ2,4,8nâ\2,4,8\, and learning rates ηâ0.01,0.001,0.0001ηâ\0.01,0.001,0.0001\. Our Selection Rationale was driven by the specific requirements of IIoT edge deployment, where model depth must be balanced against microsecond-level latency constraints. While configurations with 128 hidden units offered a marginal F1-score improvement (<0.1%<0.1\%), they incurred a disproportionate increase in computational overhead. Thus, the final settings (64 hidden units, 4 heads) were selected as a Pareto-optimal configuration that satisfies the 10 ms real-time threshold of Industrial Control Systems (ICS) while maintaining high detection fidelity. 4.2 Evaluation Metrics To ensure a rigorous assessment of imbalanced data, we employ four primary metrics: âą Accuracy: The baseline ratio of correct predictions. âą Precision: The reliability of system alarms, crucial for reducing False Positives (FP). âą Recall: The coverage of actual malicious instances, vital for minimizing missed threats. âą F1-Score: The harmonic mean of Precision and Recall, providing a balanced indicator for skewed datasets. We report the Weighted Average for these metrics, scaling each score by its class support to accurately reflect performance across both high-volume benign traffic and rare attack signatures. 4.3 Results and Analysis 4.3.1 Model Convergence and Granular Classification Analysis We justified the robustness of the BGA architecture, showing comprehensive learning curves and the granularity of classification on the Edge-IIoT dataset such that dissimilar traffic are drawn on implementations. The optimization dynamics were measured in terms of the cross-entropy (âlossâ) as a function of epochs.As illustrated in Figure 4(a),BGA converges rapidly, with the loss dropping below 0.20 within 10 epochs. This efficient optimization confirms that the framework effectively captures discriminative features from high-dimensional packet streams. By the 20th epoch the curve flattens out to a steady 0.10. The similarity of the training curve to the validation curve means that we will not have problems with overfitting â aided by the bidirectional temporal regularization provided by the BiLSTM layer. The discriminative precision of the BGA framework is further elucidated through the multi-class confusion matrix presented in Figure 4(b). The strong diagonal density observed across the matrix confirms a high True Positive Rate (TPR) across the entire threat spectrum. Specifically, the framework distinguishes Normal operations and CMRI injections with exceptional fidelity, while maintaining a low misclassification rate for semantically adjacent command injections, such as MSCI and MPCI. This granular success stems from the neural distillation provided by the gated attention mechanism, which selectively amplifies adversarial behavioral signals while attenuating the stochastic jitter characteristic of encrypted transport layers. These findings demonstrate that the BGA architecture is finely tuned for exposing stealthy intrusions masked within opaque cryptographic tunnels. Figure 4: Training loss dynamics (a) and multi-class confusion matrix on Edge-IIoT (b). 4.3.2 Overall Performance Assessment To evaluate the modelâs generalizability across heterogeneous environments, we benchmark BGA on both the CIC-IDS-2018 and Edge-IIoT datasets. As detailed in Section 4.1.1, these benchmarks represent complementary IT and OT data ecosystems. In Table 8, we report the support-based weighted average for Precision, Recall, and F1-score for each environment. This standard metric weights each class-specific score by its prevalence (support) within the respective dataset, ensuring a rigorous measure that accounts for internal class imbalance without manual weighting bias. The combined results in Table 8 and the multi-dimensional bars in Figure 5 reveal a high degree of performance consistency across the evaluation environments. When assessed on the CIC-IDS-2018 benchmark, BGA sustains high accuracy (95.27%) and respectable Precision (92.70%) and Recall (95.27%) metrics. This fidelity is mirrored by the Edge-IIoT results, where the framework achieves an Accuracy of 95.26% and an F1-Score of 92.99%. The modest numerical gap between Precision and Recallâvisible as the balanced height of those indicators in Figure 5âsuggests that BGA is not merely biased toward high-volume benign traffic but maintains sensitivity to adversarial signatures while effectively quelling false positives. This balanced performance across disparate domains provides empirical evidence of BGAâs structural resilience, suggesting its potential for deployment across a range of environments, from standard enterprise IT networks to safety-critical industrial control systems. Table 8: Support-based Weighted Average Performance on Different Datasets. Dataset Precision (%) Recall (%) F1-Score (%) Accuracy (%) CIC-IDS-2018 92.70 95.27 93.95 95.27 Edge-IIoT 90.83 95.26 92.99 95.26 âą Note: All metrics are calculated independently for each dataset using weighted averaging based on class support to ensure statistical rigor. Figure 5: Weighted average performance metrics (Precision, Recall, F1-Score, Accuracy) on CIC-IDS-2018 and Edge-IIoT datasets. 4.3.3 Comparison with State-of-the-Art Models To ensure a fair and rigorous performance evaluation, we re-implemented all baseline models (including RNN, vanilla LSTM, and Vanilla Transformer) and executed them on the same hardware platform using the identical pre-processed Edge-IIoT datasets. We deliberately avoided relying on literature-reported metrics, as discrepancies in data preprocessing, feature selection, and hardware environments often introduce bias into such comparisons. This unified experimental setup enables a true âhead-to-headâ assessment of the frameworks. The rationale for selecting these specific baselines follows a strategic hierarchy of sequence modeling evolution, allowing us to isolate the architectural necessity of each BGA component. We categorized the baselines into three functional archetypes: (1) Foundational Temporal Units (RNN and vanilla LSTM) to benchmark standard Markovian recurrence; (2) Contextual Memory Units (BiLSTM) to evaluate the benefit of bidirectional temporal dependencies; and (3) Global Self-Attention Units (Vanilla Transformer) to represent the current state-of-the-art in non-recurrent global modeling (Miao et al. 2025; Lin et al. 2021; Wang and Thing 2023; Wei et al. 2023). By comparing BGA against this hierarchy, we can empirically demonstrate that its superiority stems from the synergistic fusion of BiLSTMâs sequential memory and the Adaptive Gatingâs noise-distillation capacity. Methodologically, we utilize the two datasets for disparate analytical purposes. While the overall weighted averages (Precision, Recall, F1) provide a macro-view of generalizability across both IT and OT domains, we focus our granular per-class recall analysisâpresented in Table 9âexclusively on the Edge-IIoT dataset. This targeted focus is justified by the unique nature of Industrial IoT threats; unlike standard enterprise traffic, Edge-IIoT encapsulates sophisticated MSCI that occur within encrypted industrial tunnels, providing the ultimate stress test for our neural distillation framework. The recall trends across the Edge-IIoT landscape highlight the robust performance of BGA. While the overall weighted metrics provide a macro-view of the systemâs adaptability, the independent high scores in both IT and OT domains support the conclusion that BGAâs synergistic fusion of BiLSTM and Adaptive Gating provides a stable feature manifold regardless of the specific environmental context. A critical technical insight from Table 9 is the performance collapse of the standard Transformer in the DoS category (recall drops to 59.89%). This failure reveals a fundamental limitation of self-attention in high-speed industrial security: standard attention mechanisms are permutation-invariant and rely heavily on positional encodings, which often fail to capture the strict inter-packet periodicity and burst-timing signatures characteristic of DoS streams (Lin et al. 2021). BGA sidesteps this âattention dilutionâ by preserving temporal continuity via its BiLSTM layer, maintaining a robust 93.66% recall. Furthermore, the results expose the ânoise pollutionâ susceptibility of foundational recurrent units (RNN and LSTM). While these models perform adequately on high-volume Normal traffic, they exhibit a significant recall gap (up to 43.2%) when confronted with stealthy MSCI attacks. In such scenarios, the malicious signatures are interleaved with high-entropy TLS 1.3 padding artifacts, causing simpler models to suffer from a diluted Signal-to-Noise Ratio (SNR). BGAâs Adaptive Gating Mechanism functions as a neural band-pass filter, selectively amplifying the deterministic logic deviations in industrial setpoints while silencing stochastic cryptographic jitter. This architectural stability ensures that BGA can extract the âbehavioral essenceâ of command injections that mimic legitimate traffic, a feat that eludes both simpler recurrent units and heavy-weight global attention models (Zhou et al. 2024a; Fu et al. 2025). Figure 6: Recall performance comparison across different sequence modeling architectures. Table 9: Detailed Per-class Recall Comparison on the Edge-IIoT Dataset (%) Model Normal (%) CMRI (%) MSCI (%) MPCI (%) DoS (%) BGA (Ours) 98.10 98.38 94.89 97.77 93.66 BiLSTM 94.87 93.97 97.01 97.46 92.33 LSTM 97.97 98.31 90.64 97.69 88.40 Transformer 98.03 98.53 92.07 97.78 59.89 RNN 97.95 98.59 94.74 97.82 86.85 4.3.4 Ablation Study and Structural Performance Contribution To validate our architecture, we performed an ablation analysis measuring the relative contributions of bi-directional temporal modelling, multi-head attention, and the adaptive gated residual connection. Each model variant was run in the same experimental wrapper, with the Gas Pipeline subset, within the same hyperparameter constraints. The results are collated in Table 10 against classification performance as well as hardware-level execution metrics. Table 10: In-depth statistical ablation analysis across classification metrics and hardware efficiency (Mean ± SD over 5 runs). Model Variant Precision (%) Recall (%) F1-Score (%) Accuracy (%) Params (K) Serial Latency (PC) (ms) BaseLSTM 97.34 ± 0.03 97.27 ± 0.04 97.22 ± 0.05 97.27 ± 0.03 23.9 0.6130 BiLSTM 97.35 ± 0.06 97.29 ± 0.04 97.24 ± 0.07 97.29 ± 0.06 47.7 0.1625 BiLSTM+MHA 97.83 ± 0.12 97.77 ± 0.14 97.78 ± 0.13 97.77 ± 0.11 130.6 0.2930 BGA (Ours) 97.92 ± 0.02 97.86 ± 0.03 97.87 ± 0.03 97.86 ± 0.02 130.6 0.2820 The shift from the BaseLSTM to BiLSTM is naturally about doubling the temporal context into which the prior packet is mapped. A bidirectional view of the future of events is requisite for exposing such short bursts of anomalies. In this case it does not seem that much is gained in raw accuracy ( from 97.27%97.27\% to 97.29%97.29\%), but it is vital that the bidirectionality be able to pack in both pasts and futures to disambiguate the meat of temporal sequence ambiguity in industrial control protocols. The prior hidden state has doubled size in latent space, but still provides a highly efficient representation the model manages to catch the command injection ârhythmâ without Total Retro. The integration of the Multi-Head Attention (MHA) layer represents the primary driver for performance enhancement in our architectural progression. Transitioning from BiLSTM to BiLSTM+MHA yields the most substantial performance leap, with a 0.54% uplift in F1-score (from 97.24%97.24\% to 97.78%97.78\%). This confirms that global feature correlation is the dominant factor in analyzing high-entropy traffic; by projecting sequences into heterogeneous representation subspaces, the MHA module effectively captures tiny perturbations and sub-flow signalsâsuch as stealthy timing shiftsâthat standard recurrent units typically smooth out. Finally, the adaptive gated residual connection integrates a subsequent refinement to the distilled representation. While the additional increase in F1-score (from 97.78%97.78\% to 97.87%97.87\%) is numerically modest compared to the MHA component, the statistical analysis over 5 independent runs demonstrates its function as a predictive stabilizer. Specifically, the BGA model achieves the highest degree of consistency, reducing the F1-score standard deviation from ±0.13± 0.13 to ±0.03± 0.03. As illustrated in Table 10, this contributes to a 23.4% relative reduction in the remaining error rate within a saturated performance regime. In safety-critical applications such as power grid monitoring, where suppressing residual noise and initialization stochasticity is essential, this stabilization justifies the gating mechanism as a robust neural filter for mitigating the impact of stochastic encryption jitter. Industrial IoT workloads in the non-cloud world require a strict trade-off between depth and throughput, and BGA addresses with a 130.6K parameter, but more importantly, they got inference latency down to a mere 0.2820 ms per sample, orders of magnitude faster than the late heavy-weight architectures like 1D-CNNs and Vision Transformers. Itâs a counter-intuitive insight that BGA actually beats the latency of the BiLSTM+MHA variant (0.28200.2820 ms vs. 0.29300.2930 ms) is attributed to the gating logic which removes less informative feature pathways in the internal computational graph, leading to better gradient flow and hence inference efficiency. Figure 7: Ablation study visualization focused on the high-precision regime [0.965, 0.985] across all evaluation metrics. The subtleties of these improvements are revealed when magnifying the performance saturation zone between 0.965 and 0.985 in Figure 7. The global metrics may cloud the benefit of the BGA model, however this close up makes apparent that it consistently outperforms all baselines. The hierarchical gap maintained by the BGA trajectory (solid blue line) over the vanilla MHA variant is evidence the gated residual mechanism protects against the malicious signals enveloped within the high-entropy generated background noise found in industrial encrypted traffic. In our gas pipeline monitoring use-case, the transition from 97.2% to 97.8% accuracy is highly impactful. In an IIoT-driven mesh processing millions of packets per second, this 0.6% improvement ensures that thousands of stealthy intrusions cannot evade detection. As illustrated by the vertical separation in Figure 7, the incremental integration of Bidirectionality, Attention, and Gating pushes the framework toward its performance ceiling, significantly narrowing the margin for adversarial evasion. Figure 8: Multi-dimensional benchmarking of model variants: (a) classification fidelity, and (b) complexity-latency trade-off. Consolidating our findings, we plot BGA across six technical metrics in Figure 8. This dual axis benchmarking confirms the frameworkâs high classification accuracy as well as its real world deployability, and as shown in Figure 8(a) the BGA model builds a clear lead across all metrics, and particularly in F1 score, highlighting its ability to capture low amplitude sequential anomalies which is exhibited by the vertical separation from recurrent baselines. The relation between complexity and speed is further inspected in Figure 8(b). While BGA exceeds the parameter size of the base LSTM, in absolute terms the footprint still falls well within the requirements of their hardware targets in industrial edge gateways. The most important information given from the latency data is that BGA is Pareto optimal, i.e. has the greatest coverage for the lowest computational load. Thanks to the dynamic nature of the gating bilayer, misfeature impacts are automatically pruned from the output, no-latency mitigation of threat by BGA meets the most stringent requirements of real-time critical infrastructure protection. As shown in Table 10, the overall architectural progression from the BaseLSTM baseline (97.22%) to the integrated BGA framework (97.87%) yields an absolute F1-score increase of 0.65%. Within an already saturated performance regime, this corresponds to a 23.4% relative reduction in the remaining error rate (from 2.78% to 2.13%). This substantial decrease in total misclassifications confirms that the synergistic combination of bidirectional modeling, multi-head attention, and gated distillation is essential for capturing stealthy adversarial patterns that are typically lost as ânoiseâ in simpler recurrent architectures. 4.3.5 Benchmarking against Lightweight LLMs To provide a data-driven justification for the exclusion of Large Language Models (LLMs) at the IIoT edge, we implemented a benchmark using TinyBERT (Jiao et al. 2020) (a compressed 4-layer Transformer). To adapt numerical traffic features to the Transformer architecture, a linear projection layer was employed to map the input manifold to the hidden space. The benchmark was executed on the same hardware environment as the BGA model. As summarized in Table 11, while TinyBERT is considered âlightweightâ in mobile computing, its computational overhead remains prohibitive for microsecond-level industrial tasks. TinyBERT requires 14.35 M parameters and exhibits an average inference latency of 4.1946 ms. In contrast, the BGA model achieves comparable detection fidelity with only 0.13 M parameters and a latency of 0.2820 ms. This represents a 14.9-fold improvement in processing speed. In high-throughput industrial networks, the millisecond-level delay of TinyBERT would lead to catastrophic buffer overflows, whereas BGA maintains line-rate operational continuity. Table 11: Quantitative feasibility comparison: BGA vs. Lightweight Transformer (TinyBERT). Model Architecture Parameters (M) Latency (ms) Latency Ratio TinyBERT (4-layers) 14.35 M 4.1946 ms 14.9Ă BGA (Ours) 0.13 M 0.2820 ms 1.0Ă 4.3.6 Effectiveness of WGAN-GP Data Augmentation A significant contribution of this study is the application of WGAN-GP as a solution to the long-tail class imbalance problem. To provide a statistically rigorous evaluation of the fidelity of the generated samplesâespecially for the minority MSCI class with limited original samplesâwe validated the framework using Stratified 5-Fold Cross-Validation. In this protocol, every original real-world sample was utilized for testing across different folds, while synthetic data was strictly confined to the training sets to prevent any form of data leakage or evaluation bias. This ensures that the modelâs performance is measured against a 100% authentic benchmark consisting solely of real-world adversarial behaviors. Looking at the consolidated results in Table 12 and comparing the confusion instances in Figure 9 reveals a game-changing difference for the minority classes. As shown in Figure 9(a), before augmentation, the MSCI category performed poorly, with a recall of only 51.67%. However, upon performing generative augmentation and validating via cross-validation, the mean detection recall for MSCI surged to 94.89% ± 1.13%âan absolute increase exceeding 43%. The remarkably low standard deviation observed across all folds confirms that WGAN-GP has successfully captured the latent behavioral manifold of this attack rather than merely overfitting to sparse training instances. This capability to maintain high detection accuracy on purely real-world testing samples, despite being trained on synthetic data, serves as a robust empirical proxy for the high fidelity of the generated samples. Crucially, the high detection recall achieved on the original real-world testing split provides definitive evidence of sample fidelity. Since the BGA model, when trained on synthetic data, successfully identifies authentic attack signatures that were never seen during the generative process, it serves as a robust empirical proxy. This confirms that the WGAN-GP module has captured the true latent distribution of critical threats rather than merely over-fitting to generative artifacts. Figure 9: Impact of WGAN-GP augmentation on classification fidelity: (a) original dataset vs. (b) augmented dataset. Table 12: Impact of Data Augmentation on Class-wise Recall (%) Dataset Normal (%) CMRI (%) MSCI (%) MPCI (%) DoS (%) Original 98.11 98.38 51.67 97.46 92.33 Augmented 98.10 ± 0.08 98.38 ± 0.36 94.89 ± 1.13 97.77 ± 0.16 93.66 ± 3.38 4.3.7 Theoretical Hardware Complexity and Latency Scaling Simulation To address the concern regarding deployment on resource-constrained hardware, we conducted a comparative performance analysis. As shown in Table 13, we evaluate BGA under two disparate environments: a high-performance research workstation and a simulated 1.2 GHz single-core ARM gateway. Table 13: Performance contrast for BGA between Research Workstation and Simulated Edge Gateway. Environment Core Configuration Inference Latency Throughput (PPS) Research Workstation (PC) Multi-core/GPU/2.4GHz+ 0.2820 ms 3,546 Simulated Edge Gateway (ARM) Single-core/1.2GHz 1.6920 ms 591.0 ICS Real-time Threshold Deterministic Limit ÂĄ 10.0 ms â âą Note: The 1.6920 ms latency represents a âworst-caseâ scenario on low-power hardware. While numerically higher than the PC-based TinyBERT results in Table 10, it is functionally superior as it remains under the industrial real-time threshold on the target edge platform. The simulation results in Table 13 provide the empirical basis for assessing how performance transfers from high-performance workstations to realistic industrial settings. While the serial latency increases from 0.2820 ms to 1.6920 ms due to hardware constraints, the BGA model is projected to remain within the 10 ms real-time response window essential for Industrial Control Systems (ICS). This ARM latency is derived by applying a scaling factor of 6.0 to the raw single-core PC serial measurements, accounting for the frequency disparity (2.4 GHz vs. 1.2 GHz) and architectural IPC overhead of typical industrial edge gateways. Furthermore, the model occupies only 0.471 MB of storage memory. Since the total parameter count (123.4 K) is small enough to fit within the on-chip Block RAM (BRAM) of entry-level FPGAs, BGA avoids the latency bottleneck associated with external DDR memory access, ensuring deterministic execution that is not merely an artifact of workstation-level computing. It is worth noting that the simulated latency of BGA on the ARM platform (1.6920 ms) is already significantly lower than the PC-based serial latency of TinyBERT (4.1946 ms) reported in Table 11. This demonstrates a massive efficiency gap: our distilled BGA model running on a simulated low-power edge device outperforms a lightweight Transformer running on a high-performance research workstation. Furthermore, if TinyBERT were projected onto the same simulated ARM platform using the same scaling factor, its estimated latency would exceed 25 ms (4.1946Ă64.1946Ă 6), far failing the 10 ms industrial real-time requirement. In contrast, BGA remains the only framework capable of maintaining sub-2ms response times even under extreme hardware constraints, confirming its superior architectural suitability for mission-critical industrial edge gateways. To ensure a scientifically rigorous interpretation of these metrics, we characterize this analysis as a theoretical feasibility assessment rather than a physical end-to-end deployment benchmark. The projected performance on the ARM platform serves as a high-fidelity estimation based on the quantified computational intensity of the modelâs forward pass. We explicitly recognize that physical execution in a production-grade industrial gateway would involve non-deterministic latencies arising from peripheral I/O interrupts, OS-level context switching, and hardware-specific memory bus contention. While these factors are not captured in the current simulation, the significant performance marginâwhere BGA satisfies the 10 ms ICS threshold by a factor of nearly sixâsuggests substantial architectural headroom. Consequently, while physical hardware validation remains a subject for our subsequent research phases, these simulation-driven insights provide the necessary theoretical baseline for identifying BGA as a viable candidate for real-time edge resilience. 4.4 Interpretability, Stability, and Robustness To demystify the better synergy and transition from black-box modeling to transparent diagnostics, we examine BGAâs underlying decision logic, architectural consistency, and environmental endurance. 4.4.1 Interpretability via Gated Attention Visualization To demystify the mapping between activation patterns and attack logic, we decode the âneural fingerprintsâ in Figure 10 through the lens of industrial process control. The quiescent weight distribution observed in the top panel (Normal traffic) indicates that the model is performing a broad spatio-temporal smoothing of stable control signals. Conversely, the high-intensity activation spikes triggered by MPCI attacks in the bottom panel represent a causal response to setpoint hijacking. As these attacks introduce deterministic logic deviations into the high-entropy flowâmatching the high F-values identified in our ANOVA analysis (Table 2)âthe adaptive gates function as a neural band-pass filter. They selectively âlock ontoâ the latent channels that encapsulate control-plane semantics while silencing the non-discriminative cryptographic noise. This demonstrates that the BGA modelâs decisions are not based on stochastic artifacts, but on the successful distillation of adversarial command manipulations from the background entropy. Figure 10: Gated attention heatmaps illustrating neural distillation patterns for Normal (top) and MPCI (bottom) traffic profiles. 4.4.2 Hyperparameter Sensitivity and Structural Stability Sensitivity analysis on the primary Gas Pipeline subset, complemented by validation across the wider data ecosystem, substantiates BGAâs efficacy for autonomous use without extensive human tuning. As illustrated in Figure 11, F1-scores are largely invariant across hidden dimensions from 32 to 128, suggesting that the BiLSTM memory infrastructure is robust to alterations in its latent dimension. This performance stability across disparate high-entropy environments provides evidence that that the framework captures universal behavioral fingerprints of encrypted threats rather than over-fitting to a specific scenario. Figure 11 further corroborates that increasing attention heads does not compromise representation integrity nor performance. Such parameter-resilience derives from the adaptive gated residual connections, which effectively suppress uninformative attention heads and emphasize discriminative spatio-temporal representations. This consistency ensures BGAâs reliability when deployed on heterogeneous industrial edge gateways where manual re-calibration is often infeasible. Figure 11: BGA model hyperparameter sensitivity: F1-score variation across hidden dimensions (a) and attention heads (b). 4.4.3 Resilience against Stochastic Noise To rigorously evaluate the structural resilience of the proposed BGA framework and ensure experimental reproducibility, we conducted a stress test by injecting Additive White Gaussian Noise (AWGN) into the feature manifold. Formally, let x be the normalized input feature vector; the perturbed input x x is defined as: x^=x+η,ηâŒâĄ(ÎŒ,Ï2) x=x+η, η (ÎŒ,Ï^2) (16) where the noise η follows a Gaussian distribution with a fixed mean (ÎŒ) of 0 and a varying standard deviation (Ï). This injection specifically occurs at the input layer (normalized feature space) before the temporal modeling stage, effectively simulating the stochastic jitter and randomized padding artifacts characteristic of high-entropy encrypted flows (e.g., TLS 1.3). To investigate the impact of different uncertainty levels, we varied the noise intensity Ï across four regimes: None (0.0), Low (0.002), Mid (0.005), and High (0.01). Table 14 and Figure 12 illustrate the resulting performance degradation. The experimental data reveals a critical resilience gap: while the BiLSTM-MHA baseline suffers a significant F1-score collapse to 77.32% under high-intensity noise (Ï=0.01Ï=0.01), the BGA model maintains a robust performance of 85.89%. This 8.57% margin confirms that the gated fusion mechanism serves as a learnable neural filter, effectively insulating the internal temporal memory from external perturbations. Such structural toughness ensures that BGA remains reliable in volatile industrial environments where traditional attention-based networks typically fail. This substantial performance margin of 8.57% provides a crucial contextualization for the ablation study results presented in Section 4.3.4. While the adaptive gating mechanism yields a numerically small improvement (+0.09%) under ideal, low-entropy conditions, its structural value as a neural filter becomes indispensable in high-noise regimes. This performance delta confirms that the gated distillation layer is the primary component responsible for structural robustness, justifying its inclusion as a critical safeguard for real-world Industrial IoT environments where the signal-to-noise ratio is often unpredictable. Table 14: Robustness evaluation: Weighted F1-score comparison (%) under varying Gaussian noise intensities (Ï). Model Variant None (0.0) (%) Low (0.002) (%) Mid (0.005) (%) High (0.01) (%) BiLSTM+MHA 97.99 97.80 90.47 77.32 BGA (Proposed) 98.90 98.00 93.36 85.89 Performance Gap +0.91 +0.20 +2.89 +8.57 Figure 12: Noise robustness stress test: F1-score stability comparison between BGA and baseline under varying AWGN intensities. 5 Discussions 5.1 Comparison with Existing Work and SOTA The architectural innovation of BGA represents a departure from traditional cryptographic analysis and generic deep learning models. Unlike traditional Deep Packet Inspection (DPI) methods that rely on plaintext visibilityâwhich is fundamentally rendered ineffective by the TLS 1.3 protocol (Papadogiannaki and Ioannidis 2021)âBGA operates entirely on the structural and statistical manifold of encrypted flows. Compared to standard DL-based models such as CNNs or Vanilla Transformers (Lin et al. 2021), our framework introduces a âGated Distillationâ paradigm to solve the Attention Dilution problem. The BGA framework resolves these challenges through the synergistic fusion of temporal memory and gated distillation. By implementing an adaptive gated residual unit, BGA selectively suppresses these stochastic jitters while amplifying core behavioral signatures. Our re-implementation and head-to-head benchmarking on identical hardware confirm that this targeted distillation is the primary driver behind the 43% recall boost in stealthy MSCI attacks, where generic SOTA models often fail to distinguish malicious setpoint manipulations from background network jitter. Beyond traditional model comparisons, the transition toward Proactive Defense in Industrial IoT requires a rigorous analysis of decentralized paradigms. While centralized SOTA models achieve high fidelity through massive data pooling, they are frequently hindered by bandwidth constraints and privacy risks. Modern frameworks such as PAFA-DoH have addressed these issues by utilizing federated AI attestation to provide privacy-preserving defense without exposing raw datagrams (Lee et al. 2025). BGA complements this decentralized evolution by acting as a high-fidelity Local Feature Distiller. Theoretically, our âNeural Distillationâ logic provides a solution to the Communication-Efficiency Bottleneck in Federated Machine Learning (FML). When deployed at the âFogâs Frontlineâ (Li et al. 2021), BGA executes a Manifold Compaction process, transforming high-entropy encrypted flows into a minimalist behavioral manifold. By sharing only these distilled signatures rather than noisy feature sequences, BGA enables industrial fog nodes to participate in collaborative threat intelligence with significantly reduced synchronization overhead. Furthermore, this distillation mechanism acts as a Privacy-Preserving Filter, ensuring that sensitive industrial setpoints are abstracted into structural fingerprints before being transmitted across the federated network. This integration allows the BGA framework to scale from a localized tool into a foundational component of a Collaborative Active Defense ecosystem, maintaining operational continuity in heterogeneous industrial meshes where centralized oversight is no longer feasible. 5.2 Theoretical Implications: Decoupling Noise from Signatures The architectural value of BGA lies in its targeted adaptation of sequence modeling components toward a systematized Neural Distillation (ND) paradigm. As formalized in Section 3.6, this framework integrates a structural ânoise-filtering bottleneckâ to mitigate the Attention Dilution problem. In high-entropy encrypted streams, randomized padding and cryptographic jitter often cause standard self-attention mechanisms to assign weights indiscriminately to non-discriminative noise. Our framework addresses this through the synergistic fusion of temporal memory and gated distillation. Theoretically, the proposed adaptive gate functions as a neural band-pass filter that evaluates the signal-to-noise ratio of each attention head. This mechanism effectively decouples the deterministic behavioral signatures (the âsignalâ) from the stochastic cryptographic artifacts (the ânoiseâ). The validity of this theory is empirically confirmed by our stress tests (Section 4.3.7), where BGA maintained a robust performance lead of 8.57% under high-intensity noise, while vanilla models succumbed to entropy-induced interference. This demonstrates that BGA does not merely rely on engineering-level parameter tuning; instead, it provides a robust mathematical framework for sequence modeling where the data-to-noise ratio is extremely low. Consequently, in an era of ubiquitous encryption, the focus of information security shifts from payload analysis to structural behavioral distillation (Liu et al. 2025). Theoretically, this signal-to-noise decoupling aligns BGA with emerging bio-inspired and quantum-resilient paradigms. Specifically, the framework mirrors the principles of Neuromorphic Quantum Adversarial Learning (NQAL), where selective attention is utilized to suppress high-dimensional noise in specialized tunnels like DoH (Mousavi et al. 2025). By functioning as a neural band-pass filter, BGAâs gated mechanism simulates the synaptic suppression processes found in neuromorphic systems, which are essential for maintaining cognitive signal fidelity in high-entropy environments. This conceptualization proves that the âNeural Distillationâ framework is not a localized optimization for standard TLS, but a versatile foundation for Active Defense in evolving landscapes. From an information-theoretic perspective, the gating unit executes a Manifold Compaction process, transforming high-entropy traffic observations into a compact, privacy-preserving behavioral manifold. This is critical for emerging architectures such as Federated AI Attestation, where industrial fog nodes must share threat intelligence without exposing sensitive raw payloads. By distilling only the âstructural essenceâ of adversarial behavior, BGA provides a robust mechanism for collaborative defense in decentralized environments, ensuring resilience against both classical stochastic jitter and future quantum-based protocol obfuscation. 5.3 Practical Implications for IIoT Edge Resilience From a practical deployment perspective, BGA addresses the long-standing âsecurity-performanceâ trade-off in Industrial IoT (IIoT) environments through three strategic dimensions: 5.3.1 Real-time Edge Defense and Scalability The scalability of BGA is demonstrated across disparate computing tiers. While the ultra-low latency of 0.2820 ms handles backbone-level high-throughput traffic on research-grade workstations, the hardware simulation in Section 4.3.7 confirms that BGA is equally effective at the resource-constrained edge. Even when restricted to a single-core 1.2 GHz ARM-based environment, BGA maintains a response time of 1.6920 ms. This is a critical threshold for industrial control loops, ensuring that malicious signatures are extracted and mitigated within the 10 ms real-time window required by standard Industrial Control Systems (ICS). 5.3.2 Hardware-Aware Structural Efficiency A key barrier to FPGA and ASIC deployment in IIoT is the âmemory wallââthe latency and power penalty incurred by external DDR memory access. BGA bypasses this bottleneck through its lightweight design (123.4 K parameters). Requiring only 0.471 MB of storage, the entire model can be mapped onto the on-chip Block RAM (BRAM) of mid-range FPGAs. This structural efficiency ensures deterministic latency, which is paramount for mission-critical infrastructures like gas pipelines where stochastic processing delays can lead to synchronization failures and physical-cyber safety misalignment.BGA provides a reliable defense for real-time industrial edge operations by guaranteeing a sub-10ms response on ARM processors. This efficiency ensures that malicious signatures are mitigated within the strict windows required by Industrial Control Systems (ICS), which is essential for operational safety. 5.3.3 Substantive Significance of High-Precision Improvements To bridge the gap between numerical metrics and operational reality, we evaluate the substantive impact of BGAâs precision gains. In a typical high-throughput industrial mesh processing 1,000,000 flow records per hour, the 0.6% F1-score improvement over standard LSTM baselines translates to 6,000 fewer security errors per hour. Given that malicious activities in IIoT, such as MSCI, are often stealthy and infrequent, this improvement ensures the detection of long-tail attack patterns that would otherwise evade defense. The combination of this high fidelity with a low parameter count and sub-10ms response times indicates that BGA possesses Pareto-optimal characteristics relative to the tested recurrent and attention-based baselines. As demonstrated in our hardware simulation (Section 4.3.7), while the latency increases on low-power platforms, BGA maintains a response time of 1.6920 ms, which remains safely below the 10 ms real-time threshold required by Industrial Control Systems (ICS). For critical infrastructure, where the cost of a single missed command can result in physical destruction, every 0.1% increase in detection fidelity, supported by guaranteed real-time edge feasibility, directly enhances the systemâs Safety Integrity Level (SIL) and effectively bridges the gap between deep sequence modeling and industrial edge defense. 5.4 Comparative Analysis with Evaluated Transformer-based Architectures While Transformer-based language models have revolutionized NLP, our quantitative benchmarking (see Section 4 and Table 11) confirms that their application to real-time traffic detection at the IIoT edge remains impractical under the evaluated configurations for several fundamental reasons: âą Computational Disparity: Even heavily quantized models like the evaluated TinyBERT baseline require over 14 million parameters. Our experiments show that BGA is 110Ă more memory-efficient, making it suitable for low-power ARM-based gateways that lack the VRAM required for standard Transformer weights. âą Throughput Bottleneck: BGAâs 0.2820 ms latency is 14.9 times faster than the tested TinyBERT configuration. In high-speed industrial networks processing millions of packets per second, the serial nature of self-attention in such Transformer-based models leads to massive packet drops, whereas BGA satisfies the most stringent microsecond-level real-time requirements. âą Hardware-Contextualized Latency Scaling: A critical distinction must be made between research-grade environments and operational hardware constraints. While TinyBERT reports a 4.1946 ms latency on a high-performance PC, this figure is deceptive for edge deployment. As demonstrated in our 1.2 GHz ARM simulation (Section 4.3.7), BGA maintains a viable 1.6920 ms response time under extreme constraints. In contrast, scaling the evaluated Transformerâs performance to the same platform would result in latencies exceeding 25 ms, far surpassing the 10 ms industrial safety threshold. âą Feature Precision: Transformer-based models are often pre-trained on semantic text. Conversely, IIoT traffic consists of high-precision numerical sequences. The evaluated generic Transformer baselines often lack the sensitivity to detect the 0.1% deviations in industrial setpoints that signify a stealthy attack, frequently treating such critical process anomalies as linguistic noise. In summary, these findings serve as a representative case study highlighting the suitability of BGA compared to specific compressed Transformer configurations, rather than claiming definitive superiority over all modern sequence modeling paradigms. 5.5 Comparison with Emerging Sequence Models (2024-2026) While recent breakthroughs in sequence modeling, such as Mamba-2 (Dao and Gu 2024) (Generalized State Space Models), RWKV-v6 (Peng et al. 2024) (Linear Attention), and emerging pre-trained traffic transformers (Zhan et al. 2025b), have redefined the performance ceilings in the 2024-2026 research landscape, their direct application to IIoT encrypted traffic detection faces several practical hurdles. First, the evolved Mamba-2 and RWKV-v6 architectures are optimized for processing extremely long context windows in NLP; however, encrypted network flows are typically represented by relatively short, high-entropy feature sequences where long-range dependencies are less critical than immediate noise suppression. Second, the deployment of these recent architectures often relies on specialized software kernels (e.g., customized CUDA operators for Mamba-2), which are largely incompatible with the heterogeneous, low-power embedded systems found in industrial edge gateways. Lastly, the BGA framework prioritizes âNeural Distillationâ through gated residuals, which is more effective at decoupling deterministic attack signatures from the stochastic jitter of TLS 1.3 encryption than general-purpose sequence models. By maintaining a microsecond-level latency (0.2820 ms) and a lightweight parameter count (130.6K), BGA provides a more a favorable balance solution for real-time edge resilience in the 2025-2026 deployment environment than these high-complexity mainstream architectures. While emerging architectures such as Mamba-2 and RWKV-v6 offer promising efficiency for long-context sequences, their specific performance in the high-entropy, short-sequence IIoT traffic domain remains a subject for future empirical investigation. Therefore, the efficiency advantages of BGA identified in this study should be interpreted within the scope of the currently tested baselines. 5.6 Ecological Validity and Resilience to Protocol Obfuscation While the Gaussian noise stress tests in Section 4.4.3 demonstrate BGAâs structural resilience to statistical uncertainty, the frameworkâs ecological validity is further grounded in its capacity to handle protocol-level obfuscation. In modern encrypted flows like TLS 1.3, random padding and dummy packets are utilized to obscure packet lengths and timing signatures. However, these mechanisms primarily inject stochastic entropy into the feature sequence. The BGA framework mitigates these artifacts through its Neural Distillation logic. Specifically, the adaptive gating mechanism assigns low importance coefficients to feature channels dominated by randomized padding, while the BiLSTM layer preserves the underlying deterministic âbehavioral rhythmâ of the industrial control commands. By bridging this visibility gap, BGA provides a robust mechanism for maintaining physical process integrity in the face of sophisticated, hidden adversarial behaviors. Furthermore, the BGA framework is architected for graceful degradation in degraded data environments. Should primary industrial control features, such as setpoints, become entirely unavailable, the ANOVA pre-filter automatically re-calibrates to identify the next highest-discriminatory behavioral signatures, such as inter-arrival time (IAT) statistics or packet burst rhythms. This structural flexibility, enabled by the synergy between automated feature ranking and neural distillation, allows the system to maintain a robust defensive posture even under limited visibility or partial feature observation. 6 Conclusion 6.1 Summary of Contributions In this work, we proposed BGA, a noise-immune neural distillation framework for encrypted industrial threat intelligence. By integrating WGAN-GP for manifold reconstruction and an adaptive gated BiLSTM-Attention architecture, we successfully addressed the challenges of class imbalance and âattention dilutionâ in high-entropy TLS 1.3 flows. Experimental results on CIC-IDS-2018 and Edge-IIoT benchmarks confirmed that BGA achieves a performance ceiling of over 95% accuracy with an ultra-low inference latency of 0.2820 ms, providing a robust and real-time defense mechanism for industrial edge gateways. 6.2 Limitations and Deployment Risks Despite its superior performance, the BGA framework possesses inherent limitations. First, the fidelity of WGAN-GP augmentation is contingent upon the availability of high-quality âseedâ samples; if the initial minority class data is too sparse to represent the true adversarial manifold, the generated samples may introduce systemic bias. Second, our analysis of failure cases indicates that BGA may struggle with âstealthy logical driftâ attacks, where adversaries inject commands that reside within legitimate setpoint boundaries but violate higher-level process interdependencies. Furthermore, a significant constraint regarding our architectural assessment is the reliance on theoretical scaling and simulation for assessing hardware feasibility. Although the low parameter count and estimated latency are promising, the absence of physical end-to-end testing on actual industrial ARM gateways or embedded devices means that these results should be interpreted as architectural potentials rather than definitive deployment evidence. From a deployment perspective, the primary risk involves the computational overhead on extremely low-end embedded devices when managing massive concurrent flows. While our 1.6920 ms simulated latency is viable for standard gateways, a sudden burst of high-density traffic could lead to buffer overflows or synchronization jitters in time-sensitive 5G meshes. 6.3 Future Research Directions To further advance the field of post-payload threat intelligence, we propose several forward-looking research directions: 1. Physical Deployment and Hardware-in-the-Loop Validation: The foremost objective of our future work is to transition from theoretical simulation to empirical validation on actual industrial gateways and ARM-based embedded devices. This will involve conducting end-to-end testing to analyze the performance impact of OS-level task scheduling, real-time interrupt handling, and memory bus contention, thereby confirming the BGA frameworkâs operational resilience in physical industrial environments. 2. Relational Spatio-Temporal Modeling: Future work should explore the integration of Graph Neural Networks (GNNs) with BGAâs gated distillation. This would enable the model to capture not only individual flow signatures but also the complex relational dependencies between multiple network entities. 3. Privacy-Preserving Threat Intelligence: Implementing Federated Learning paradigms could allow heterogeneous industrial nodes to collaboratively train BGA models without exposing sensitive raw traffic data, addressing the critical trade-off between security and data privacy. 4. 6G and Quantum-Resilient Security: As industrial networks evolve toward 6G, research should focus on optimizing neural distillation for ultra-massive machine-type communications and investigating BGAâs resilience against quantum-based protocol obfuscation. By addressing these challenges, the research community can bridge the remaining visibility gaps in ubiquitous encryption ecosystems, ensuring the long-term integrity of critical physical infrastructures. Acknowledgements The authors acknowledge the National Key Research and Development Program of China (Grant No. 2022YFB3103602) for the financial support. 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. Author Contributions (CRediT) Sheng Hong: Conceptualization, Methodology, Funding acquisition, Supervision. Yixuan Huang: Software, Data curation, Validation, Writing - original draft. Weiwei Jiang: Methodology, Formal analysis, Writing - review & editing. Junyuan Zhang: Investigation, Methodology, Validation. Jiacheng Wang: Resources, Software, Validation. Ruijian Jiao: Formal analysis, Visualization, Writing - review & editing. Data Availability The data supporting the findings of this study are proprietary and confidential. Due to intellectual property restrictions and non-disclosure agreements, the authors do not have the permission to share the underlying raw data. References Alauthman et al. (2020) Alauthman, M., Aslam, N., Al-Qerem, A., Aldweesh, A., Sureephong, P., 2020. Generative adversarial networks for intrusion detection systems: A comprehensive survey of applications, challenges, and research directions. Arabian Journal for Science and Engineering 45, 4771â4787. URL: https://link.springer.com/article/10.1007/s13369-026-11103-6. Chen et al. (2020) Chen, L., Kuang, H., Xu, X., Phyu, S.S., Zhang, K., Ke, Z., 2020. Deep learning detection method of encrypted malicious traffic for power grid, in: Proceedings of the IEEE International Conference on Energy Internet (ICEI), p. 86â91. URL: https://ieeexplore.ieee.org/abstract/document/9270268/. Dao and Gu (2024) Dao, T., Gu, A., 2024. Transformers are SSMs: Generalized models and algorithms through structured state space duality (Mamba-2), in: Proceedings of the 41st International Conference on Machine Learning (ICML). URL: https://proceedings.mlr.press/v235/dao24a.html. Dâhooge et al. (2020) Dâhooge, L., Wauters, T., Volckaert, B., De Turck, F., 2020. Inter-dataset generalization strength of supervised machine learning methods for intrusion detection. Journal of Information Security and Applications 54, 102564. URL: https://doi.org/10.1016/j.jisa.2020.102564, doi:10.1016/j.jisa.2020.102564. Dong et al. (2024) Dong, H., Zhang, Y., Lee, H., Huque, S., Sun, Y., 2024. Exploring the ecosystem of DNS HTTPS resource records: An end-to-end perspective, in: Proceedings of the 24th ACM Internet Measurement Conference (IMC), p. 423â440. URL: https://doi.org/10.1145/3646547.3688410, doi:10.1145/3646547.3688410. Dong et al. (2023) Dong, Y., Li, Q., Wu, K., Li, R., Zhao, D., Tyson, G., Peng, J., Jiang, Y., Xia, S., Xu, M., 2023. HorusEye: A realtime IoT malicious traffic detection framework using programmable switches, in: 32nd USENIX Security Symposium (USENIX Security 23), p. 571â588. URL: https://w.usenix.org/conference/usenixsecurity23/presentation/dong-yutao. Ferrag et al. (2022) Ferrag, M.A., Friha, O., Hamouda, D., Maglaras, L., Janicke, H., 2022. Edge-IIoTset: A new realistic cyber security dataset for IoT and IIoT applications. IEEE Access 10, 40281â40306. URL: https://doi.org/10.1109/ACCESS.2022.3165809, doi:10.1109/ACCESS.2022.3165809. Ferrag et al. (2026) Ferrag, M.A., et al., 2026. E3-DoH: Enhanced evolutionary encryption for DNS-over-HTTPS, DNS-over-TLS, and DNS-over-QUIC. Information Sciences 712, 123430. URL: https://doi.org/10.1016/j.ins.2026.123430, doi:10.1016/j.ins.2026.123430. Fu et al. (2025) Fu, C., Li, Q., Bertino, E., Xu, K., 2025. Training with only 1.0â° samples: Malicious traffic detection via cross-modality feature fusion, in: Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security (CCS), p. 3930â3944. URL: https://dl.acm.org/doi/abs/10.1145/3719027.3765143. Fu et al. (2023) Fu, C., Li, Q., Xu, K., 2023. Detecting unknown encrypted malicious traffic in real time via flow interaction graph analysis. URL: https://arxiv.org/abs/2301.13686, arXiv:2301.13686. Göcs and JohanyĂĄk (2024) Göcs, L., JohanyĂĄk, Z.C., 2024. Identifying relevant features of cse-cic-ids2018 dataset for the development of an intrusion detection system. Intelligent Data Analysis URL: https://doi.org/10.3233/IDA-230264. Gu et al. (2025) Gu, Z., Liu, C., Zhang, X., Yang, C., Gou, G., Xiong, G., Li, Z., Li, S., 2025. DecETT: Accurate app fingerprinting under encrypted tunnels via dual decouple-based semantic enhancement, in: Proceedings of the ACM Web Conference, p. 2413â2423. URL: https://dl.acm.org/doi/abs/10.1145/3696410.3714643. Han et al. (2023) Han, K., Wang, Y., Chen, H., Chen, X., Guo, J., Liu, Z., Tang, Y., Xiao, A., Xu, C., Xu, Y., Yang, Z., Zhang, Y., Tao, D., 2023. A survey on vision transformer. IEEE Transactions on Pattern Analysis and Machine Intelligence 45, 87â110. URL: https://doi.org/10.1109/TPAMI.2022.3152247, doi:10.1109/TPAMI.2022.3152247. Jiao et al. (2020) Jiao, X., Yin, Y., Shang, L., Jiang, X., Chen, X., Li, L., Wang, F., Liu, Q., 2020. TinyBERT: Distilling BERT for natural language understanding, in: Findings of the Association for Computational Linguistics: EMNLP 2020, p. 4163â4174. URL: https://aclanthology.org/2020.findings-emnlp.372/, doi:10.1853/v1/2020.findings-emnlp.372. Kong et al. (2026) Kong, X., Zhao, H., Qi, H., 2026. Hgtb-fusion: An encrypted traffic classification method fusing multimodal features. Expert Systems with Applications 302, 130502. URL: https://doi.org/10.1016/j.eswa.2025.130502, doi:10.1016/j.eswa.2025.130502. Lee et al. (2025) Lee, C.K., et al., 2025. Proactive and privacy-preserving defense for DNS over HTTPS via federated AI attestation (PAFA-DoH). Neural Networks 182, 108343. URL: https://doi.org/10.1016/j.neunet.2025.108343, doi:10.1016/j.neunet.2025.108343. Li et al. (2021) Li, H., Zhao, K., et al., 2021. On the fogâs frontline: a federated machine learning approach for industrial network threat detection and intrusion prevention. Cybersecurity 4, 1â18. URL: https://doi.org/10.1093/cybsec/tyaf041, doi:10.1093/cybsec/tyaf041. Li et al. (2023) Li, Z., Usman, M., Tao, R., Xia, P., Wang, C., Chen, H., Li, B., 2023. A systematic survey of regularization and normalization in gans. ACM Computing Surveys 55, 232:1â232:37. URL: https://doi.org/10.1145/3569928, doi:10.1145/3569928. Lichy et al. (2023) Lichy, A., Bader, O., Dubin, R., Dvir, A., Hajaj, C., 2023. When a RF beats a CNN and GRU, togetherâa comparison of deep learning and classical machine learning approaches for encrypted malware traffic classification. Computers & Security 124, 103000. URL: https://doi.org/10.1016/j.cose.2022.103000, doi:10.1016/j.cose.2022.103000. Lin et al. (2021) Lin, K., Xu, X., Gao, H., 2021. TSCRNN: A novel classification scheme of encrypted traffic based on flow spatiotemporal features for efficient management of IIoT. Computer Networks 190, 107974. URL: https://doi.org/10.1016/j.comnet.2021.107974, doi:10.1016/j.comnet.2021.107974. Lin et al. (2022) Lin, K., Xu, X., Gao, H., 2022. MFFusion: A multi-level features fusion model for malicious traffic detection based on deep learning. Computer Networks 206, 108658. URL: https://doi.org/10.1016/j.comnet.2021.108658, doi:10.1016/j.comnet.2021.108658. Lin and Chen (2024) Lin, W., Chen, Y., 2024. Robust network traffic classification based on information bottleneck neural network. IEEE Access 12, 1234â1245. URL: https://ieeexplore.ieee.org/abstract/document/10713332. Liu et al. (2021) Liu, C., Liu, L., Wang, W., Wang, G., Zhang, H., 2021. Self-attentive deep learning method for online traffic classification and its interpretability. Computer Networks 197, 108267. URL: https://doi.org/10.1016/j.comnet.2021.108267, doi:10.1016/j.comnet.2021.108267. Liu et al. (2025) Liu, Z., Yu, H., Luo, X., 2025. A noise-resistant model for graph-based fraud detection. Information Processing & Management 62, 104198. URL: https://doi.org/10.1016/j.ipm.2025.104198, doi:10.1016/j.ipm.2025.104198. Mahdi et al. (2025) Mahdi, M.N., et al., 2025. Next-generation AI for advanced threat detection and security enhancement in DNS over HTTPS. Journal of Network and Computer Applications 234, 104326. URL: https://doi.org/10.1016/j.jnca.2025.104326, doi:10.1016/j.jnca.2025.104326. Manocchio et al. (2025) Manocchio, L.D., Layeghy, S., Gallagher, M., Portmann, M., 2025. An empirical evaluation of preprocessing methods for machine learning based network intrusion detection systems. Engineering Applications of Artificial Intelligence 158, 111289. URL: https://doi.org/10.1016/j.engappai.2025.111289, doi:10.1016/j.engappai.2025.111289. Miao et al. (2024) Miao, J., Tao, H., Xie, H., Sun, J., Cao, J., 2024. Reconstruction-based anomaly detection for multivariate time series using contrastive generative adversarial networks. Information Processing & Management 61, 103569. URL: https://doi.org/10.1016/j.ipm.2023.103569, doi:10.1016/j.ipm.2023.103569. Miao et al. (2025) Miao, Y., Hu, X., Cheng, G., Li, R., Wu, H., Meng, Y., 2025. WEDoHTool: Word embedding based early identification of DoH tunnel tool traffic in dynamic network environments. Computers & Security 149, 104680. URL: https://doi.org/10.1016/j.cose.2025.104680, doi:10.1016/j.cose.2025.104680. Mousavi et al. (2025) Mousavi, S.M., et al., 2025. Neuromorphic quantum adversarial learning (NQAL): a bio-inspired paradigm for DNS over HTTPS threat detection. Biologically Inspired Cognitive Architectures 42, 100412. URL: https://doi.org/10.1186/s13635-025-00215-5, doi:10.1186/s13635-025-00215-5. Niu et al. (2022) Niu, Z., Xue, J., Qu, D., Wang, Y., Zheng, J., Zhu, H., 2022. A novel approach based on adaptive online analysis of encrypted traffic for identifying malware in IIoT. Information Sciences 601, 162â174. URL: https://doi.org/10.1016/j.ins.2022.04.018, doi:10.1016/j.ins.2022.04.018. Papadogiannaki and Ioannidis (2021) Papadogiannaki, E., Ioannidis, S., 2021. A survey on encrypted network traffic analysis: Applications, techniques, and countermeasures. ACM Computing Surveys 54, 123:1â123:35. URL: https://doi.org/10.1145/3457904, doi:10.1145/3457904. Peng et al. (2024) Peng, B., Goldstein, D., Anthony, Q., Albalak, A., Alcaide, E., Biderman, S., Cheah, E., Du, X., Ferdinan, T., Hou, H., et al., 2024. Eagle and finch: RWKV with matrix-valued states and dynamic recurrence, in: Proceedings of the 1st Conference on Language Modeling (COLM). URL: https://arxiv.org/abs/2404.05892. Qing et al. (2023) Qing, Y., Yin, Q., Deng, X., Chen, Y., Liu, Z., Sun, K., Xu, K., Zhang, J., Li, Q., 2023. Low-quality training data only? A robust framework for detecting encrypted malicious network traffic. URL: https://arxiv.org/abs/2309.04798, arXiv:2309.04798. Shen et al. (2023) Shen, M., Ye, K., Liu, X., Zhu, L., Kang, J., Yu, S., Li, Q., Xu, K., 2023. Machine learning-powered encrypted network traffic analysis: A comprehensive survey. IEEE Communications Surveys & Tutorials 25, 791â824. URL: https://doi.org/10.1109/COMST.2022.3208196, doi:10.1109/COMST.2022.3208196. Soleymanpour et al. (2021) Soleymanpour, S., Sadr, H., Nazari Soleimandarabi, M., 2021. CSCNN: Cost-sensitive convolutional neural network for encrypted traffic classification. Neural Processing Letters 53, 3497â3523. URL: https://doi.org/10.1007/s11063-021-10534-6, doi:10.1007/s11063-021-10534-6. Towhid et al. (2022) Towhid, M.S., Shahbar, K., Zincir-Heywood, A.N., 2022. Encrypted network traffic classification using self-supervised learning, in: Proceedings of the 8th IEEE International Conference on Network Softwarization (NetSoft), p. 366â374. URL: https://doi.org/10.1109/NetSoft54395.2022.9844044, doi:10.1109/NetSoft54395.2022.9844044. Wang et al. (2026) Wang, X., Hu, M., Luo, X., Guan, X., 2026. Spatio-temporal photovolatic power forecasting via Bayesian-optimized dynamic graph convolutional networks with temporal convolutional networks. Journal of Cleaner Production 542, 147641. URL: https://doi.org/10.1016/j.jclepro.2026.147641, doi:10.1016/j.jclepro.2026.147641. Wang and Thing (2023) Wang, Z., Thing, V.L., 2023. Feature mining for encrypted malicious traffic detection with deep learning and other machine learning algorithms. Computers & Security 128, 103143. URL: https://doi.org/10.1016/j.cose.2023.103143, doi:10.1016/j.cose.2023.103143. Wei et al. (2023) Wei, W., Xiao, H., Deng, H., 2023. Multi-objective evolving LSTM with attention for intrusion detection. Applied Soft Computing 139, 110216. URL: https://doi.org/10.1016/j.asoc.2023.110216, doi:10.1016/j.asoc.2023.110216. Yang et al. (2024) Yang, X., Ruan, S., Yue, Y., Sun, B., 2024. PETNet: Plaintext-aware encrypted traffic detection network for identifying cobalt strike HTTPS traffics. Computer Networks 238, 110120. URL: https://doi.org/10.1016/j.comnet.2023.110120, doi:10.1016/j.comnet.2023.110120. Yun et al. (2023) Yun, X., Wang, Y., Zhang, Y., Zhao, C., Zhao, Z., 2023. Encrypted TLS traffic classification on cloud platforms. IEEE/ACM Transactions on Networking 31, 164â177. URL: https://doi.org/10.1109/TNET.2022.3191312, doi:10.1109/TNET.2022.3191312. Zhan et al. (2025a) Zhan, M., Yang, J., Jia, D., Fu, G., 2025a. EAPT: An encrypted traffic classification model via adversarial pre-trained transformers. Computer Networks 257, 110973. URL: https://doi.org/10.1016/j.comnet.2024.110973, doi:10.1016/j.comnet.2024.110973. Zhan et al. (2025b) Zhan, M., Yang, J., Jia, D., Fu, G., 2025b. EAPT: An encrypted traffic classification model via adversarial pre-trained transformers. Computer Networks 257, 110973. URL: https://doi.org/10.1016/j.comnet.2024.110973, doi:10.1016/j.comnet.2024.110973. Zhou et al. (2024a) Zhou, X., Xiao, X., Li, Q., Zhang, B.A., Hu, G., Luo, X., Zhang, T., 2024a. CapsuleFormer: A capsule and transformer combined model for decentralized application encrypted traffic classification, in: Proceedings of the 19th ACM Asia Conference on Computer and Communications Security (AsiaCCS), p. 1418â1429. URL: https://dl.acm.org/doi/abs/10.1145/3634737.3637664. Zhou et al. (2024b) Zhou, Y., Zhu, C., Zhu, W., 2024b. Promvsd: Towards unsupervised knowledge graph anomaly detection via prior knowledge integration and multi-view semantic-driven estimation. Information Processing & Management 61, 103705. URL: https://doi.org/10.1016/j.ipm.2024.103705, doi:10.1016/j.ipm.2024.103705. â biography: Sheng Hong received his Ph.D. from Beihang University and expanded his research horizon as a Visiting Scientist at the Georgia Institute of Technology, USA. He is currently an Associate Professor and Doctoral Supervisor at Beihang University. As a distinguished Beijing Subject Leader and recipient of the First Prize in Science and Technology Progress, Dr. Hong has a proven track record of leadership in the scientific community. As a Principal Investigator, he has spearheaded numerous prestigious initiatives, including the National Key R&D Program of China and multiple grants from the National Natural Science Foundation of China (NSFC). His research interests include artificial intelligence and big data, AI-driven cyber security and industrial internet. E-mail: shenghong@buaa.edu.cn â biography: HUANG Yixuan was born in 2005. He is currently pursuing his B.S. degree in Cyber Science and Technology at Beihang University. His research interests include network intrusion detection, adversarial ML, and the implementation of post-quantum cryptosystems. E-mail: 23371296@buaa.edu.cn â biography: Weiwei Jiang (IEEE Senior Member) received the B.Sc. Degree of Electronic Engineering and Ph.D. Degree of Information and Communication Engineering from the Department of Electronic Engineering, Tsinghua University, Beijing, China, in 2013 and 2018, respectively. He is currently an associate professor with the School of Information and Communication Engineering, Beijing University of Posts and Telecommunications, and Key Laboratory of Universal Wireless Communications, Ministry of Education. His current research interests include artificial intelligence, machine learning, big data, wireless communication and edge computing. He has published more than 100 academic papers in IEEE Trans and other journals, with more than 5900 citations in Google Scholar. He is one of 2022, 2023, 2024 and 2025 Stanfordâs List of Worldâs Top 2% Scientists. E-mail: jww@bupt.edu.cn â biography: ZHANG Junyuan was born in 2001. He received his bachelorâs degree in engineering from Inner Mongolia University of Technology, China, in 2025. He is currently pursuing his masterâs degree at Beijing Electronic Science and Technology Institute. His research interests include artificial intelligence and big data, quantum key distribution and post-quantum cryptography. E-mail: 1943351829@q.com â biography: WANG Jiacheng was born in 2001. He received his B.S. degree in information security from Lanzhou University, China, in 2023. He is currently pursuing his M.Eng degree at the School of Cyber Science and Technology, Beihang University, China. His research interests include artificial intelligence, information security, and applied cryptography. E-mail: wjc1321@163.com â biography: JIAO Ruijian was born in 2003. He received his B.S. degree from Beihang University, China, in 2021. He is currently pursuing his M.S. degree at Beihang University. His research interests include deep learning for cybersecurity, encrypted traffic and intelligent detection systems. E-mail: w_nter_@outlook.com