A Hybrid Training-time and Run-time Defense Against Adversarial Attacks in Modulation Classification

Lu Zhang, Sangarapillai Lambotharan, Gan Zheng, Guisheng Liao, Ambra Demontis, Fabio Roli

TL;DR

Deep learning models used for Automatic Modulation Classification (AMC) in wireless networks are highly vulnerable to adversarial attacks. This paper introduces a Hybrid Training-time and Run-time Defense (HTRD) that combines customized adversarial training with an SVM-based neural rejection mechanism, significantly outperforming existing defenses against white-box attacks without sacrificing baseline accuracy.

What Problem Does This Paper Address?

Automatic Modulation Classification (AMC) automatically identifies the modulation type of a radio frequency signal. This capability is crucial for cognitive radio, dynamic spectrum access, and electronic warfare/surveillance—such as an allied force trying to intercept and decode an opponent's communications.

Fig. 1: A military scenario for the adversarial examples in modulation classification.

While Deep Neural Networks (DNNs) have vastly improved AMC accuracy, they are highly susceptible to adversarial attacks. These are tiny, intentionally crafted perturbations added to raw in-phase and quadrature (IQ) signal samples that cause the DNN to misclassify the signal. Existing defenses often fail under strict white-box scenarios (where the attacker has full knowledge of the defense architecture) or severely degrade the model's accuracy on clean, unperturbed signals.

Methods

The authors propose a two-layered defense strategy called Hybrid Training-time and Run-time Defense (HTRD):

  1. Training-time Defense (Customized Adversarial Training - CAT): Instead of applying a uniform perturbation size ($\epsilon$) to all training samples, CAT adaptively adjusts $\epsilon$ based on how close a sample is to the decision boundary. It pairs this with adaptive label smoothing, introducing higher uncertainty (smoothing) for samples subjected to larger perturbations. Crucially, the authors adapt CAT to use an $l_2$-norm constraint, which naturally maps to physical perturbation power in radio signals.
  2. Run-time Defense (Neural Rejection - NR): Small adversarial perturbations in the input space become significantly amplified as they propagate through the deep layers of a DNN. To exploit this, the features from the very last layer of the CAT-trained DNN are fed into a one-vs-all Support Vector Machine (SVM) with a Radial Basis Function (RBF) kernel. If the SVM's maximum decision score falls below a predefined threshold ($S_0$), the sample is flagged as an adversarial attack and rejected rather than misclassified.
Fig. 3: The architecture of the proposed HTRD.

Datasets

The approach is evaluated using the standard GNU Radio ML dataset RML2016.10a. This dataset contains 220,000 raw IQ signal samples across 11 different modulation types (e.g., BPSK, QPSK, QAM16, QAM64) spanning 20 different Signal-to-Noise Ratio (SNR) levels ranging from -20dB to +18dB. The authors split the dataset equally into training and testing sets, evaluating the defense against white-box Projected Gradient Descent (PGD) attacks.

Key Insights and Ideas

  • Margin Maximization: Adversarial training acts to maximize the input space margin. By using CAT, the lower bound of this margin is increased. Principal Component Analysis (PCA) visualizations show that CAT creates much tighter, more distinct clusters for each modulation class compared to older methods like Label Smoothing with Gaussian Noise Augmentation (LS-GNA).
  • The Amplification Effect: Because adversarial perturbations amplify as they move through a network, placing the SVM-based neural rejection mechanism at the last feature layer makes it much easier to detect and reject low-confidence adversarial samples.
  • Stealth Disruption: By forcing a wider margin between classes, the attacker is compelled to inject significantly higher perturbation power to successfully cause a misclassification. This directly undermines the "stealth" requirement of an adversarial transmitter in a competitive spectrum environment.

Key Results

  • CAT vs. LS-GNA: The CAT-based DNN alone significantly improves robustness. At a Perturbation-to-Noise Ratio (PNR) of -10dB, the CAT-based DNN achieves 17% higher accuracy than the LS-GNA-based baseline.
  • HTRD Performance: When combining CAT with the SVM neural rejection mechanism, the system vastly outperforms state-of-the-art alternatives under rigorous white-box PGD attacks. At PNR = -10dB, HTRD improves classification/detection accuracy by 12% over the LS-GNA-based NR system and by 30% over a two-fold defense utilizing an autoencoder detector.
Fig. 5: Accuracy of the proposed HTRD countermeasure as compared to the LS-GNA-based NR countermeasure, the two- fold defense [8] and the undefended DNN.
  • No Clean Accuracy Penalty: Unlike many adversarial defenses that degrade clean performance, HTRD actually improves normal accuracy on unperturbed data, achieving 78.7% accuracy (with NR) compared to 74.5% for an undefended DNN.

Limitations and Future Work

The paper focuses primarily on a white-box scenario where the attacker has full mathematical knowledge of both the DNN and the SVM classifier. However, the authors do not extensively explore how this defense handles multi-hop channel impairments, fading, or dynamic hardware distortions common in real-world deployments beyond the synthetic channel effects present in the RML2016.10a dataset. The authors imply that future work should involve testing this hybrid framework against physical over-the-air attacks in live radio environments.

Summary updated

Abstract

Motivated by the superior performance of deep learning in many applications including computer vision and natural language processing, several recent studies have focused on applying deep neural network for devising future generations of wireless networks. However, several recent works have pointed out that imperceptible and carefully designed adversarial examples (attacks) can significantly deteriorate the classification accuracy. In this paper, we investigate a defense mechanism based on both training-time and run-time defense techniques for protecting machine learning-based radio signal (modulation) classification against adversarial attacks. The training-time defense consists of adversarial training and label smoothing, while the run-time defense employs a support vector machine-based neural rejection (NR). Considering a white-box scenario and real datasets, we demonstrate that our proposed techniques outperform existing state-of-the-art technologies.
BibTeX
@article{zhang2022hybrid,
  author = {Lu Zhang and Sangarapillai Lambotharan and Gan Zheng and Guisheng Liao and Ambra Demontis and Fabio Roli},
  title = {{A Hybrid Training-time and Run-time Defense Against Adversarial Attacks in Modulation Classification}},
  journal = {IEEE Wireless Communications Letters},
  year = {2022},
}
Figure