A poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation

By employing feature sensitivity optimization and hierarchical self-distillation methods, and utilizing trigger reverse engineering and adaptive sharpness perception to minimize perturbation optimization, the problems of inaccurate backdoor sensitive area localization and damage to normal recognition performance in backdoor attacks are solved, achieving effective defense in the absence of real infected samples.

CN123179387APending Publication Date: 2026-11-27ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611018906.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing electromagnetic signal recognition models suffer from inaccurate backdoor location when facing backdoor attacks, and updating all model parameters can easily impair normal recognition performance. Furthermore, they lack sufficient collaborative utilization of features at different levels.

Method used

A poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation is adopted. The poisoning input is reconstructed by reverse engineering the trigger, the trigger activation change index (TAC) is calculated to screen backdoor sensitive residual blocks, and adaptive sharpness perception is combined to minimize perturbation optimization, updating only the backdoor sensitive residual blocks and the parameters of the main classifier.

Benefits of technology

It effectively reduces the success rate of backdoor attacks while maintaining the classification performance of normal modulated signals, reduces the impact on non-sensitive network parameters, and improves the robustness and accuracy of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179387A_ABST
    Figure CN123179387A_ABST
Patent Text Reader

Abstract

A poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation, comprising: 1) obtaining a modulation signal sample data set, dividing the sample data set into a training set, a validation set and a test set; 2) constructing a hierarchical self-distillation defense model; the model structure is: sequentially connecting four residual network levels, a global average pooling layer and a main classifier from the input; the multi-level intermediate feature output end is respectively connected to a channel attention module and a branch classifier; the residual network level is used for extracting one-dimensional time sequence features of the input modulation signal step by step; the residual block includes two one-dimensional convolution layers, two batch normalization layers and two ReLU activation layers, which are used for extracting local features and preserving input features; the global average pooling layer is used for compressing the feature dimension, and the main classifier is used for outputting the main classification result; the channel attention module is used for generating channel attention weights and obtaining channel attention features; the branch classifier is used for outputting branch classification results according to the channel attention features; 3) performing backdoor sensitive region positioning around the model: generating a reconstructed poisoning input based on the trigger reverse engineering, calculating the trigger activation change index TAC in the poisoning one-dimensional residual network model according to the clean input and the reconstructed poisoning input, and screening the backdoor sensitive residual block according to the TAC; 4) training the hierarchical self-distillation defense model using clean training data, and verifying it using clean validation set and poisoning validation set, combining adaptive sharpness perception minimum disturbance optimization for parameter updating; 5) using clean test set and poisoning test set to evaluate the classification accuracy ACC and attack success rate ASR of the final defense model respectively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the interdisciplinary field of electromagnetic signal recognition and artificial intelligence, and involves electromagnetic signal processing and deep learning model security. Specifically, it relates to a poisoning defense method for electromagnetic signal recognition models based on feature sensitivity optimization and hierarchical self-distillation, which aims to improve the defense capability of deep learning models in wireless communication modulation recognition systems against backdoor attacks and model poisoning. Background Technology

[0002] In recent years, the development of artificial intelligence and deep learning technologies has promoted the research and application of tasks such as electromagnetic signal recognition and modulation mode classification. Deep Neural Networks (DNN) have shown superior feature extraction and classification capabilities in fields such as image recognition, speech recognition and automatic modulation recognition of radio signals, making it possible to achieve high-precision signal recognition in complex electromagnetic environments (Reference [1]: X. Zha, X. Qin, Y. Zhou, and H. Peng, “Power of deep learning for amplitude-phase signal modulation recognition,” 2019 IEEE 8th Joint International Information Technology and Artificial Intelligence Conference (ITAIC), pp. 454–458, 2019.; Reference [2]: F. Zhang et al., “Deep Learning Based Automatic Modulation Recognition: Models, Datasets, and Challenges,” arXiv:2207.09647, 2022.).

[0003] However, while achieving high performance, deep learning models also expose significant security risks, among which backdoor attacks based on data poisoning have been proven to be a typical threat. Attackers inject samples with triggers into the training data and tamper with their labels, so that the trained model maintains high accuracy when facing normal inputs, but once a specific trigger is superimposed on the input, it will cause targeted misclassification, which will seriously affect communication security and task decision-making (Reference [3]: T.Gu, K. Liu, B. Dolan-Gavitt, and S. Garg, “BadNets: Evaluating BackdooringAttacks on Deep Neural Networks,” IEEE Access, vol. 7, pp. 47230–47244,2019.).

[0004] To counter backdoor attacks, the academic community has proposed a variety of defense methods. For example, Fine-Pruning weakens backdoor-related channels by pruning low-activation neurons and combining fine-tuning, but it is easy to sacrifice the accuracy of the model on clean samples (Reference [4]: ​​K. Liu, B. Dolan-Gavitt, and S. Garg, “Fine-Pruning: DefendingAgainst Backdooring Attacks on Deep Neural Networks,” in Research in Attacks, Intrusions, and Defenses (RAID 2018), pp. 273–294, 2018.). Input purification methods such as Februus attempt to locate and reconstruct triggers for suspicious inputs during the inference phase in order to "clean" the trigger regions. However, they are highly sensitive to the shape and position of triggers and are mainly for image space, with limited adaptability to frequency domain or modulated signal triggers (Reference [5]: BG Doan, E. Abbasnejad, and DC Ranasinghe, “Februus: InputPurification Defense Against Trojan Attacks on Deep Neural Network Systems,”in ACSAC 2020, pp. 897–912.). Online detection methods such as STRIP identify suspicious samples by applying strong perturbations to the input and observing the predicted entropy. However, they require continuous additional computation during the deployment phase, making them difficult to apply directly in real-time communication scenarios (Reference [6]: Y. Gao et al., “STRIP: A Defence Against Trojan Attacksson Deep Neural Networks,” arXiv:1902.06531, 2019.).

[0005] Recent studies have further revealed that poisoned samples and backdoor channels are more sensitive to perturbations in the feature space. The Feature Consistency towards Transformations (FCT) proposed by Chen et al. uses the consistency difference of features before and after data transformation to distinguish clean and poisoned samples, and on this basis, a sample discrimination and security training module is constructed, which has achieved good backdoor defense performance in various datasets and attack scenarios (Reference [7]: W. Chen, B. Wu, and H. Wang, “Effective BackdoorDefense by Exploiting Sensitivity of Poisoned Samples,” in Advances in NeuralInformation Processing Systems 35 (NeurIPS 2022).). This idea shows that the representations strongly related to backdoors can be mined by “feature sensitivity”.

[0006] On the other hand, Sharpness-Aware Minimization (SAM) encourages the model to converge to a "flat minimum" by simultaneously optimizing the loss value and loss curvature in the parameter neighborhood, which significantly improves the generalization ability of the model and shows a certain robustness in noisy label scenarios (Reference [8]: P. Foret, A. Kleiner, H. Mobahi, and B. Neyshabur, "Sharpness-Aware Minimization for Efficiently Improving Generalization," in ICLR 2021.). Based on this, Zhu et al. proposed FT-SAM, which integrates SAM into the fine-tuning process of the backdoor model. It studies the backdoor-related channels from the perspective of neuron weight norm, and uses SAM perturbation to amplify and shrink the gradient and weight norm of these channels, thereby achieving effective purification of the backdoor model with only a small number of clean samples (Reference [9]: M. Zhu, S. Wei, L. Shen, Y. Fan, and B. Wu, “Enhancing Fine-Tuning Based Backdoor Defense with Sharpness-Aware Minimization,” in Proceedings of the IEEE / CVF International Conference on Computer Vision (ICCV), pp. 4466–4477, 2023.). This work shows that SAM fine-tuning based on feature weight sensitivity is an important route for backdoor model post-processing defense.

[0007] To address the problem of "how to explore backdoor features in the absence of real infected samples", Wang et al. proposed the Neural Cleanse method, which introduces trigger inversion technology into the security defense of deep neural networks. By optimizing the algorithm, the hidden trigger patterns in the model are derived in reverse, and the goal of "identifying and mitigating backdoor attacks" is achieved without original attack data (Reference

[10] : B. Wang, Y. Yao, S. Shan, H. Li, B. Viswanath, H. Zheng, and BY Zhao, "Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks", 2019 IEEE Symposium on Security and Privacy (SP), pp. 707-723, 2019). The method shows that reconstructing backdoor triggers using inverse optimization algorithms can provide a feasible technical means for the defender to locate and eliminate model vulnerabilities in the absence of real infected samples.

[0008] Meanwhile, in response to the problem of "how to completely suppress trigger features while maintaining clean accuracy", Zhang et al. proposed the From Toxic to Trustworthy (FTT) framework, which combines self-attention distillation with semi-supervised learning. By distilling shallow features from deep features and aligning attention, and training with pseudo-labels of unlabeled samples, the goal of "improving accuracy while removing backdoors" was achieved on image tasks (Reference

[11] : X. Zhang, B. Zheng, J. Hu, C. Li, and X. Bai, “From Toxic to Trustworthy: Using Self-Distillation and Semi-supervised Methods to Refine Neural Networks,” in Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), vol. 38, no. 15, pp.16873–16880, 2024.). This framework emphasizes that multi-layer self-distillation and attention alignment can reshape the discriminative feature distribution within the model, thereby weakening the influence of triggers.

[0009] Therefore, in order to effectively locate and weaken the backdoor trigger-related features under the condition of only obtaining a poisoned modulation signal recognition model and a small number of clean modulation signal samples, this invention proposes a poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation. This method constructs a hierarchical self-distillation defense model based on a poisoned one-dimensional residual network model. It generates reconstructed poisoned inputs through trigger reverse engineering and calculates the trigger activation change index (TAC) based on the intermediate feature difference between the clean input and the reconstructed poisoned input to filter backdoor-sensitive residual blocks. During model training, it combines hierarchical self-distillation loss and adaptive sharpness-aware perturbation minimization optimization to specifically update the backdoor-sensitive residual blocks and the main classifier, thereby reducing the attack success rate while maintaining the classification performance of normal modulation signals. Summary of the Invention

[0010] To overcome the problems of inaccurate backdoor sensitive region localization, easy degradation of normal recognition performance due to full model parameter updates, and insufficient collaborative utilization of features at different levels in existing electromagnetic signal recognition model poisoning defense methods, this invention proposes a poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation. This method constructs a hierarchical self-distillation defense model based on a one-dimensional poisoned residual network model. It uses trigger reverse engineering to generate reconstructed poisoned inputs and calculates the trigger-activated change (TAC) index by comparing the intermediate features of clean inputs and reconstructed poisoned inputs to filter backdoor sensitive residual blocks. Subsequently, the hierarchical self-distillation defense model is trained using a small amount of clean training data. Combining main classification loss, depth-weighted branch classification loss, attention alignment loss, and adaptive sharpness-aware perturbation minimization optimization, targeted updates are performed on the backdoor sensitive residual blocks and the main classifier, thereby reducing the success rate of backdoor attacks while maintaining normal modulation signal classification performance.

[0011] To solve the above-mentioned technical problems, the present invention provides the following technical solution: A poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation includes the following steps: Step 1: Read the RML2016.10a modulation signal set, organize the complex modulation signal samples to obtain the modulation signal sample dataset, and divide the sample dataset into training set, validation set and test set; select a small number of clean modulation signal samples from the training set as clean training data for model purification, and prepare clean validation set, poisoned validation set, clean test set and poisoned test set; Step 2: Based on the poisoned one-dimensional residual network model, construct a hierarchical self-distillation defense model; the structure of the poisoned one-dimensional residual network model is as follows: starting from the input, four residual network layers, a global average pooling layer, and a main classifier are connected in sequence; the multi-level intermediate feature outputs of the poisoned one-dimensional residual network model are respectively connected to the channel attention module and the branch classifier; The residual network layers are used to extract one-dimensional temporal features of the input modulated signal step by step; the residual block includes two one-dimensional convolutional layers, two batch normalization layers and two ReLU activation layers, which are used to extract local features and retain input features; the global average pooling layer is used to compress the feature dimension; and the main classifier is used to output the main classification result. The channel attention module includes a global average pooling layer and a multilayer perceptron, used to generate channel attention weights and obtain channel attention features; the branch classifier is a linear classifier used to output branch classification results based on the channel attention features; Step 3: Perform backdoor sensitive region localization around the poisoned one-dimensional residual network model. The process includes: generating reconstructed poisoned input based on trigger reverse engineering, calculating the trigger activation change index (TAC) in the poisoned one-dimensional residual network model based on the clean input and the reconstructed poisoned input, and filtering backdoor sensitive residual blocks based on the TAC. Step 4: Train the hierarchical self-distillation defense model using clean training data and validate it using a clean validation set and a poisoned validation set. Update the parameters using adaptive sharpness-aware perturbation minimization optimization. The training loss includes main classification loss, depth-weighted branch classification loss, and attention alignment loss. Step 5: Evaluate the classification accuracy (ACC) and attack success rate (ASR) of the final defense model using the clean test set and the poisoned test set, respectively.

[0012] The process of step 1 is as follows: Step 1-1: Read the modulation signal samples, modulation category labels and signal-to-noise ratio information from the RML2016.10a modulation signal dataset, select samples that meet the preset signal-to-noise ratio range, and form a set of modulation signal samples to be processed; Steps 1-2: Extract the in-phase component I and quadrature component Q of each complex modulated signal sample, and arrange them into a two-channel one-dimensional sequence according to the same sampling position; use the modulation category provided by the dataset as the supervised training label, so that each sample corresponds one-to-one with its modulation category label; Let the sequence length of each modulated signal sample be... The sorted sample is represented as having a size of A dual-channel one-dimensional sequence.

[0013] Steps 1-3: Divide the modulated signal sample dataset into training set, validation set and test set according to a preset ratio; randomly select a preset ratio of clean modulated signal samples from the training set as clean training data for model purification, and the remaining training samples do not participate in the model purification process. Steps 1-4: Take the samples in the verification set and test set that do not have triggers overlaid as the clean verification set and clean test set, respectively; overlay triggers on the samples in the verification set and test set according to the preset backdoor attack method, and set the corresponding labels as the preset attack target categories to obtain the poisoned verification set and poisoned test set, respectively.

[0014] Furthermore, clean training data is used to train the hierarchical self-distillation defense model; clean and poisoned validation sets are used to calculate the classification accuracy (ACC) and attack success rate (ASR) during training, and to filter model parameters; clean and poisoned test sets are used only to evaluate the poisoning defense performance of the final defense model.

[0015] The poisoned one-dimensional residual network model described in step 2 includes four sequentially connected residual network layers, a global average pooling layer, and a master classifier. Each residual network layer includes two residual blocks, for a total of eight residual blocks.

[0016] Each residual block consists of two one-dimensional convolutional layers, two batch normalization layers, and two ReLU activation layers. The one-dimensional convolutional layers are used to extract local temporal features of the modulated signal, the batch normalization layers are used to stabilize the feature distribution, and the ReLU activation layers are used to introduce nonlinear mappings; the residual connections are used to preserve input features and alleviate feature degradation during the training process of deep networks.

[0017] Let the first The output of each residual network level is The four residual network layers output intermediate features at different levels. The deepest layer intermediate features... The feature vectors are compressed into fixed-dimensional feature vectors by a global average pooling layer, and then the main classifier outputs the main classification result.

[0018] Furthermore, a channel attention module and a branch classifier are respectively connected to the fourth-level intermediate feature output of the poisoned one-dimensional residual network model to construct a hierarchical self-distillation defense model. The channel attention module includes a global average pooling layer and a multilayer perceptron.

[0019] For the intermediate features The channel attention module first performs global average pooling on the channel attention data, and then a multilayer perceptron generates channel attention weights. These channel attention weights are multiplied by the intermediate features of the corresponding layer and fed into a linear branch classifier to obtain the branch classification result for the corresponding layer.

[0020] Furthermore, the hierarchical self-distillation defense model simultaneously outputs the main classification result, the classification results of each level of branches, and multi-level channel attention features.

[0021] Step 3 specifically includes: Step 3-1: Select clean modulation signal samples from the clean training data used for model purification, freeze all parameters of the poisoned one-dimensional residual network model, and initialize the trigger mode and injection mask that are adapted to the size of the clean modulation signal samples. Step 3-2: Use the prediction results of the poisoned one-dimensional residual network model for the preset attack target category as the optimization basis. With the optimization goal of improving the prediction confidence of the attack target category and limiting the perturbation range of the trigger, iteratively update the trigger mode and injection mask. Step 3-3: The optimized trigger pattern is superimposed onto the clean modulation signal sample according to the injection mask to generate the reconstructed poisoned input for feature sensitivity analysis.

[0022] Let the clean modulated signal sample be The trigger mode is The injection mask is .in, and Having the same size, Used to control the trigger injection location and injection strength, optimizing the reconstructed poisoned input. .

[0023] Steps 3-4: Feed the clean input and reconstructed poisoned input of the same batch size into the poisoned one-dimensional residual network model respectively, set feature extraction hooks in the specified convolutional layers of each residual block, and obtain clean intermediate features and poisoned intermediate features respectively. Steps 3-5: Calculate the mean of clean features and the mean of poisoned features for the same residual block and the same feature channel along the input batch dimension and the one-dimensional signal sequence dimension, and use the absolute difference between the two as the TAC score of the feature channel.

[0024] Steps 3-6: Average the TAC scores of all feature channels within each residual block to obtain the overall feature sensitivity score of the residual block; sort the residual blocks from high to low scores and select the top-ranked residual blocks as backdoor sensitive residual blocks.

[0025] Step 4 specifically includes: Step 4-1: Clean up the model by inputting clean training data into the hierarchical self-distillation defense model in batches. Obtain multi-level intermediate features through a one-dimensional residual backbone network, obtain the main classification result through the main classifier, and obtain channel attention features and branch classification results through channel attention modules and branch classifiers at each level.

[0026] Step 4-2: Based on the main classification result, the classification results of each level of branches, and the multi-level channel attention features, construct a model using the main classification loss. Depth-weighted branch classification loss And attention alignment loss Total training loss .

[0027] Step 4-3: Combine the trainable parameters of the backdoor sensitive residual block and the parameters of the main classifier to form the target parameter set, freeze the parameters of other residual blocks, and perform adaptive sharpness-aware perturbation minimization and gradient update on the target parameter set.

[0028] Calculate the target parameters based on the total training loss. The gradient is calculated and adaptively scaled according to the parameter magnitude to obtain a local perturbation. The target parameter is moved to the perturbation position, and the total training loss and gradient are recalculated at the perturbation position. The target parameter is then updated using this gradient.

[0029] Step 4-4: After each training round, input the clean validation set and the poisoned validation set into the current hierarchical self-distillation defense model respectively, and calculate the classification accuracy (ACC) and attack success rate (ASR); when the ASR is lower than the preset security threshold and the ACC is higher than the historical best value, save the current model parameters.

[0030] Step 5 is as follows: Load the model parameters saved in step 4-4 into the hierarchical self-distillation defense model to obtain the final defense model. During testing, keep the network parameters of the final defense model fixed and do not perform gradient calculations or parameter updates.

[0031] The clean test set is input into the final defense model to obtain the main classification result of each clean test sample. The predicted class is then compared with the true modulation class label to obtain the classification accuracy ACC.

[0032] The poisoned test set is input into the final defense model to obtain the main classification results of each poisoned test sample. The proportion of samples carrying backdoor triggers that are predicted as attack target categories is then calculated to obtain the attack success rate (ASR).

[0033] Furthermore, ACC is used to evaluate the final defense model's ability to identify normal modulation signals; a higher value indicates better normal classification performance. ASR is used to evaluate the effectiveness of backdoor attacks; a lower value indicates stronger suppression of backdoor triggers by the final defense model. By comprehensively comparing ACC and ASR, the defensive effectiveness of the final defense model in maintaining normal modulation recognition performance and reducing the risk of backdoor attacks is evaluated.

[0034] The working principle of this invention is as follows: First, the RML2016.10a modulation signal dataset is read and organized to obtain clean training data, clean validation set, poisoned validation set, clean test set, and poisoned test set required for model purification. Then, based on the poisoned one-dimensional residual network model, a channel attention module and a branch classifier are connected to its multi-level intermediate feature output to construct a hierarchical self-distillation defense model.

[0035] During the backdoor sensitive area localization process, trigger reverse engineering is used to generate reconstructed poisoned input. The clean input and the reconstructed poisoned input are respectively fed into the poisoned one-dimensional residual network model. The TAC score is calculated by comparing the activation mean of the feature channels in each residual block, and the channel TAC scores are aggregated and sorted to filter backdoor sensitive residual blocks.

[0036] During model training, the main classification loss, depth-weighted branch classification loss, and attention alignment loss are used to guide each branch to learn the correct modulation classification features and align the shallow channel attention features with the deep channel attention features. Simultaneously, adaptive sharpness-aware perturbation minimization and gradient updates are performed only on the backdoor-sensitive residual block parameters and the main classifier parameters, while freezing other residual block parameters, thereby specifically weakening backdoor-related features.

[0037] Finally, the model parameters were screened using clean and poisoned validation sets, and the saved model parameters were loaded into the hierarchical self-distillation defense model to obtain the final defense model. The ACC and ASR were calculated using clean and poisoned test sets to evaluate the normal signal recognition performance and poisoning defense capability of the final defense model.

[0038] The beneficial effects of this invention are as follows: First, by comparing the multi-layer feature responses of clean input and reconstructed poisoned input in the poisoned one-dimensional residual network model, TAC is calculated and backdoor sensitive residual blocks are screened, thereby achieving targeted localization of backdoor sensitive areas and reducing the impact on non-sensitive network parameters.

[0039] Secondly, by connecting a channel attention module and a branch classifier to the multi-level intermediate feature output of the poisoned one-dimensional residual network model, a hierarchical self-distillation defense model is constructed. The shallow features are guided to align with the deep discriminative features by using depth-weighted branch classification loss and attention alignment loss, thus correcting the feature attention shift caused by backdoor attacks.

[0040] Finally, adaptive sharpness-aware perturbation and gradient updates are performed only on the backdoor-sensitive residual block parameters and the main classifier parameters, while freezing other residual block parameters. This approach can maintain a high classification accuracy (ACC) while reducing the attack success rate (ASR) and minimizing the performance degradation of normal modulation signal recognition caused by full model updates. Attached Figure Description

[0041] Figure 1 This is a schematic diagram of the overall process of an embodiment of the present invention.

[0042] Figure 2 This is a schematic diagram of the process framework of an embodiment of the present invention. Detailed Implementation

[0043] The present invention will be further described below with reference to the accompanying drawings and embodiments. The embodiments of the present invention include, but are not limited to, the following embodiments.

[0044] This implementation uses a poisoned 1D-ResNet modulation recognition model on the RML2016.10a modulation signal dataset as the object, and purifies the poisoned model using a small number of clean modulation signal samples. Unless otherwise specified, in this implementation, the sample sequence length L is 128, and the input sample size is 2×128; in other implementations, the sample sequence length can also be 512. The model training batch size is set to 128, the optimizer is Adam, the initial learning rate is set to 0.001, and the training epochs are set to 20.

[0045] Reference Figure 1 and Figure 2 The poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation in this embodiment includes the following steps: Step 1: Read the RML2016.10a modulation signal set, organize the complex modulation signal samples to obtain the modulation signal sample dataset, and divide the sample dataset into training set, validation set and test set; select a small number of clean modulation signal samples from the training set as clean training data for model purification, and prepare clean validation set, poisoned validation set, clean test set and poisoned test set; Step 2: Based on the poisoned one-dimensional residual network model, construct a hierarchical self-distillation defense model; the structure of the poisoned one-dimensional residual network model is as follows: starting from the input, four residual network layers, a global average pooling layer, and a main classifier are connected in sequence; the multi-level intermediate feature outputs of the poisoned one-dimensional residual network model are respectively connected to the channel attention module and the branch classifier; The residual network layers are used to extract one-dimensional temporal features of the input modulated signal step by step; the residual block includes two one-dimensional convolutional layers, two batch normalization layers and two ReLU activation layers, which are used to extract local features and retain input features; the global average pooling layer is used to compress the feature dimension; and the main classifier is used to output the main classification result. The channel attention module includes a global average pooling layer and a multilayer perceptron, used to generate channel attention weights and obtain channel attention features; the branch classifier is a linear classifier used to output branch classification results based on the channel attention features; Step 3: Perform backdoor sensitive region localization around the poisoned one-dimensional residual network model. The process includes: generating reconstructed poisoned input based on trigger reverse engineering, calculating the trigger activation change index (TAC) in the poisoned one-dimensional residual network model based on the clean input and the reconstructed poisoned input, and filtering backdoor sensitive residual blocks based on the TAC. Step 4: Train the hierarchical self-distillation defense model using clean training data and validate it using a clean validation set and a poisoned validation set. Update the parameters using adaptive sharpness-aware perturbation minimization optimization. The training loss includes main classification loss, depth-weighted branch classification loss, and attention alignment loss. Step 5: Evaluate the classification accuracy (ACC) and attack success rate (ASR) of the final defense model using the clean test set and the poisoned test set, respectively.

[0046] The process of step 1 is as follows: Step 1-1: Read the modulation signal samples, modulation category labels and signal-to-noise ratio information from the RML2016.10a modulation signal dataset, select samples that meet the preset signal-to-noise ratio range, and form a set of modulation signal samples to be processed.

[0047] In this embodiment, the RML2016.10a dataset includes 11 types of modulation signals, such as 8BPSK, QPSK, 8PSK, 16QAM, 64QAM, BFSK, CPFSK, PAM4, WB-FM, AM-SSB, and AM-DSB. Each modulation signal sample is represented in complex form, including an in-phase component I and a quadrature component Q, where I represents the sampled value of the in-phase channel, and Q represents the sampled value orthogonal to the I channel. To reduce the interference of low signal-to-noise ratio samples on the model purification process, this embodiment preferably selects samples with a signal-to-noise ratio greater than or equal to 10dB.

[0048] Steps 1-2: Extract the in-phase component I and quadrature component Q of each complex modulation signal sample, and arrange them into a dual-channel one-dimensional sequence according to the same sampling position; use the modulation category provided by the dataset as the supervised training label, so that each sample corresponds one-to-one with its modulation category label.

[0049] Let the sequence length of each modulated signal sample be... The size of the sorted sample is then... The modulated signal sample dataset is represented as follows: (1) In the formula, Indicates the first One dual-channel modulated signal sample, This indicates the corresponding modulation category label. This represents the total number of modulated signal samples.

[0050] In this embodiment, the sequence length L of each modulation signal sample is preferably 128. After arranging the in-phase component I and the quadrature component Q according to the same sampling position, a dual-channel one-dimensional sequence with a size of 2×128 is obtained.

[0051] Steps 1-3: Divide the modulated signal sample dataset into training set, validation set and test set according to a preset ratio; randomly select a preset ratio of clean modulated signal samples from the training set as clean training data for model purification.

[0052] In this implementation, the training set, validation set, and test set can be divided in a 6:2:2 ratio. During the model cleanup phase, the complete training set is not used; instead, 10% of the clean modulation signal samples are randomly selected from the training set as clean training data for model cleanup, i.e., clean_ratio is set to 0.1. This setting is used to simulate the actual situation where the defender can only obtain a small number of reliable clean samples.

[0053] Steps 1-4: Take the samples in the verification set and test set that do not have triggers overlaid as the clean verification set and clean test set, respectively; overlay triggers on the samples in the verification set and test set according to the preset backdoor attack method, and set the corresponding labels as the preset attack target categories to obtain the poisoned verification set and poisoned test set, respectively.

[0054] The backdoor attack methods include the phase deflection attack (flip) and the Gaussian noise attack (gauss). For poisoned samples in the validation and test sets, their labels are uniformly set to a preset attack target category; in this embodiment, the attack target category y_t is preferably set to class 0. The clean and poisoned validation sets are used during training to calculate the classification accuracy (ACC) and attack success rate (ASR) and to filter model parameters; the clean and poisoned test sets are used to evaluate the final defense model.

[0055] Step 2 is as follows: Using a poisoned one-dimensional residual network model as the backbone network, dual-channel modulated signal samples are read and one-dimensional temporal features are extracted step by step.

[0056] In this embodiment, the poisoned one-dimensional residual network model adopts a 1D-ResNet structure. This model includes four sequentially connected residual network layers, a global average pooling layer, and a master classifier. The four residual network layers comprise eight residual blocks, each containing two one-dimensional convolutional layers, two batch normalization layers, and two ReLU activation layers. When the number of channels or sequence length of the input and output features are inconsistent, a one-dimensional convolutional layer is set in the residual branch to achieve dimension matching.

[0057] Let the first The output of each residual network level is Then, the four residual network layers output intermediate features at different levels: (2) In the formula, Indicates the first Feature transformation of each residual network layer and These represent the input and output features of this level, respectively.

[0058] The deepest intermediate features are input into the global average pooling layer and the main classifier to obtain the main classification result.

[0059] Deepest intermediate features After global average pooling, the input is given to the main classifier. The main classifier output is represented as follows: (3) In the formula, This represents a one-dimensional global average pooling operation. and These represent the weights and biases of the main classifier, respectively. This indicates the main classification result.

[0060] By connecting the channel attention module to the multi-level intermediate feature output of the poisoned one-dimensional residual network model, multi-level channel attention weights are obtained.

[0061] For the intermediate features The channel attention module first performs global average pooling on the channel attention data, and then the multilayer perceptron generates the channel attention weights. (4) In the formula, Indicates the first Level channel attention weights; This represents a multilayer perceptron at the corresponding level. This represents the Sigmoid activation function.

[0062] The channel attention weights are multiplied by the intermediate features of the corresponding level and then fed into a linear branch classifier to obtain the branch classification results for the corresponding level: (5) In the formula, This indicates element-wise multiplication. Indicates the first Level linear branch classifier, This represents the branch classification result at the corresponding level. Therefore, the hierarchical self-distillation defense model simultaneously outputs the main classification result, the branch classification results at each level, and multi-level channel attention features.

[0063] Step 3 is as follows: Step 3-1: Select clean modulation signal samples from the clean training data used for model purification, freeze all parameters of the poisoned one-dimensional residual network model, and initialize the trigger mode and injection mask that are adapted to the size of the clean modulation signal samples.

[0064] Specifically, let the clean modulated signal sample be... The trigger mode is The injection mask is .in, and Having the same size, Used to control the injection location and injection strength of the trigger.

[0065] In this embodiment, the trigger mode and injection mask All are initialized to the same level as the input samples. Same time series size, with injection mask The value of is restricted to Within the scope. A one-dimensional residual network model of freeze poisoning during trigger reverse engineering. Update all parameters, only the trigger mode. and injection mask .

[0066] Step 3-2: With the optimization objective of improving the prediction confidence of the poisoned one-dimensional residual network model for the preset backdoor target category and constraining the perturbation range of the trigger, iteratively update the trigger mode and injection mask.

[0067] In this implementation, the target category y_t is preset to class 0. During optimization, the primary objective is to improve the prediction confidence of the poisoning model for target category 0, while also using masking... Norm-constrained trigger injection range ensures that the generated reconstructed poisoned inputs can simulate the effects of a real backdoor as closely as possible, without requiring the defender to know the real attack trigger in advance.

[0068] Step 3-3: The optimized trigger pattern is superimposed onto the clean modulation signal sample according to the injection mask to obtain the reconstructed poisoned input for feature sensitivity analysis.

[0069] The reconstructed poisoned input is represented as: (6) In the formula, This indicates a reconstructed poisoned input; The range of values ​​is ; This indicates element-wise multiplication.

[0070] The optimization objectives for trigger patterns and injection masks are expressed as follows: (7) In the formula, This represents a poisoned one-dimensional residual network model with frozen parameters. Indicates the preset backdoor target category; Represents cross-entropy loss; This represents the perturbation constraint weight.

[0071] Steps 3-4: Feed the clean input and the reconstructed poisoned input of the same batch size into the poisoned one-dimensional residual network model, and set feature extraction hooks at the second convolutional layer of the eight residual blocks of the 1D-ResNet to obtain clean intermediate features and poisoned intermediate features respectively.

[0072] Steps 3-5: For the clean intermediate features and poisoned intermediate features of the same feature channel within the same residual block, calculate the mean along the input batch dimension and the one-dimensional signal sequence dimension, respectively, and take the absolute difference between the two means as the TAC score of the feature channel.

[0073] No. The first residual block The TAC score for each feature channel is expressed as follows: (8) In the formula, and These represent the reconstructed poisoned input and clean input at the 1st and 2nd positions, respectively. The first residual block The first channel, the first Feature activation values ​​of sequence positions; Indicates batch size; This indicates the sequence length corresponding to the intermediate feature.

[0074] Steps 3-6: Average the TAC scores of all feature channels within each residual block to obtain the overall feature sensitivity score of the residual block; sort the residual blocks from high to low scores and select the top-ranked residual blocks as backdoor sensitive residual blocks.

[0075] No. The overall feature sensitivity score of each residual block is expressed as: (9) In the formula, Indicates the first The overall feature sensitivity score of each residual block This indicates the number of feature channels in the residual block.

[0076] In this implementation, the maximum value of top_blocks is 8. When the number of residual blocks is 8, all residual blocks are sorted using TAC, and the priority of each residual block in subsequent perturbation optimization is determined based on the sorting results.

[0077] The first eight residual blocks in the sorting process will be used as backdoor sensitive residual blocks to participate in subsequent adaptive sharpness perception minimization perturbation optimization.

[0078] Step 4 is as follows: Step 4-1: Clean up the model by inputting clean training data into the hierarchical self-distillation defense model in batches. Obtain multi-level intermediate features through a one-dimensional residual backbone network, obtain the main classification result through the main classifier, and obtain channel attention features and branch classification results through channel attention modules and branch classifiers at each level.

[0079] Step 4-2: Based on the main classification results, the classification results of each level of branches, and the multi-level channel attention features, construct the total training loss consisting of the main classification loss, the depth-weighted branch classification loss, and the attention alignment loss.

[0080] The primary classification loss is expressed as: (10) In the formula, Indicates the primary classification loss. Indicates the main category output. This indicates the actual modulation category label.

[0081] The depth-weighted branch classification loss is expressed as: (11) In the formula, Indicates the number of branch classifiers. Indicates the first Normalized depth weights for the branch classification loss. Indicates the first Branch classification results.

[0082] Attention alignment loss is represented as: (12) In the formula, Indicates the first Level channel attention weights, This represents the attention weight of the deepest channel. This represents a minimal constant to prevent the denominator from being zero.

[0083] The total training loss is expressed as: (13) In the formula, This represents the attention alignment loss weight.

[0084] In this embodiment, attention alignment loss weights Set to 0.03.

[0085] Step 4-3: Combine the trainable parameters of the backdoor sensitive residual block and the parameters of the main classifier to form the target parameter set, freeze the parameters of other residual blocks, and perform adaptive sharpness-aware perturbation minimization and gradient update on the target parameter set.

[0086] The gradient of the target parameters is calculated based on the total training loss, and adaptive scaling is applied according to the parameter magnitude to obtain the local perturbation: (14) In the formula, Indicates a local disturbance. Indicates the disturbance radius. Represents the set of target parameters. This represents the gradient of the total training loss with respect to the target parameters.

[0087] Move the target parameter to the perturbation position: (15) In the formula, This represents the target parameter at the location of the disturbance.

[0088] At the perturbation location, recalculate the total training loss and gradient, and use this gradient to update the target parameters: (16) In the formula, This represents the learning rate.

[0089] In this embodiment, the target parameter set Only backdoor-sensitive residual block parameters and main classifier parameters are included; all other residual block parameters remain frozen. Adaptive sharpness perception minimizes the perturbation radius. Set to 2.0, with Adam as the base optimizer, and an initial learning rate of... The learning rate is set to 0.001. A step decay strategy is used, decreasing to 0.5 every 10 training epochs. The model is trained for a total of 20 epochs, with a batch size of 128 for each training batch.

[0090] Step 4-4: After each training round, input the clean validation set and the poisoned validation set into the current hierarchical self-distillation defense model respectively, and calculate the classification accuracy (ACC) and attack success rate (ASR); when the ASR is lower than the preset security threshold and the ACC is higher than the historical best value, save the current model parameters.

[0091] In this implementation, the preset safety threshold is set to 0.20. After each training round, ACC and ASR are calculated on both the clean and poisoned validation sets. When the current model's ASR is less than 0.20 and the current ACC is higher than the historical best ACC, the current model parameters are saved. If the current model only reduces ASR but significantly impairs the classification performance of clean samples, the parameters for that round are not saved.

[0092] Step 5 is as follows: Load the model parameters saved in step 4-4 into the hierarchical self-distillation defense model to obtain the final defense model. During testing, keep the network parameters of the final defense model fixed and do not perform gradient calculations or parameter updates.

[0093] The clean test set is input into the final defense model to obtain the main classification result for each clean test sample, and the predicted class is compared with the true modulation class label. The classification accuracy ACC is expressed as: (17) In the formula, This represents the total number of samples in the clean test set; This indicates that the final defense model will be the first The clean test sample is predicted to be the first... The main category output; This indicates the true modulation category label of the sample; This indicates an indicator function that takes the value 1 if the condition is true, and 0 otherwise.

[0094] The poisoned test set is input into the final defense model to obtain the main classification results for each poisoned test sample. The proportion of samples carrying backdoor triggers predicted as the attack target category is then calculated. The attack success rate (ASR) is expressed as: (18) In the formula, This represents the total number of samples in the poisoning test set; This indicates that the final defense model will be the first The predicted poisoning test sample is the [number]. The main category output; This indicates the preset attack target category.

[0095] Furthermore, ACC is used to evaluate the final defense model's ability to identify normal modulation signals; a higher value indicates better normal classification performance. ASR is used to evaluate the effectiveness of backdoor attacks; a lower value indicates stronger suppression of backdoor triggers by the final defense model. By comprehensively comparing ACC and ASR, the defensive effectiveness of the final defense model in maintaining normal modulation recognition performance and reducing the risk of backdoor attacks is evaluated.

[0096] To verify the effectiveness of the method of this invention, experiments were conducted based on the RML2016.10a modulation signal dataset. High signal-to-noise ratio samples were selected as training, validation, and testing data. 1D-ResNet was used as the basic modulation recognition model, and two backdoor poisoning scenarios, namely phase deflection flip attack and Gaussian noise gauss attack, were constructed. For each attack method, Table 1 shows the classification accuracy (ACC) of the pre-defense poisoned model and the model after defense using the method of this invention on the clean test set, as well as the attack success rate (ASR) on the poisoned test set with triggers.

[0097] Table 1

[0098] As shown in the table, in the flip attack scenario, the clean sample classification accuracy (ACC) of the poisoned model before defense was 88.00%, and the attack success rate (ASR) was 98.00%. After defense using the method of this invention, the ACC remained at 86.00%, and the ASR decreased to 9.00%. In the gauss attack scenario, the ACC of the model before defense was 88.00%, and the ASR was 91.00%. After defense using the method of this invention, the ACC increased to 91.00%, and the ASR decreased to 6.00%. These results demonstrate that the method of this invention can achieve stable purification of backdoor triggers for different types of electromagnetic signals, significantly reducing the attack success rate (ASR) while maintaining a high normal sample classification accuracy (ACC).

[0099] In summary, this invention reconstructs the poisoned input through trigger reverse engineering, locates the backdoor-sensitive residual block using the TAC metric, and performs adaptive sharpness-aware perturbation minimization optimization only on the parameters of the backdoor-sensitive residual block and the main classifier parameters, avoiding the degradation of normal modulation recognition performance caused by blindly updating the entire model. Simultaneously, the hierarchical self-distillation defense model utilizes the main classification loss, depth-weighted branch classification loss, and attention alignment loss to guide shallow features towards deep discriminative features, correcting the feature attention shift caused by backdoor attacks. Therefore, this invention can effectively weaken the backdoor response logic in the poisoned model and improve the security and robustness of the electromagnetic signal recognition model in complex adversarial environments, relying only on a small number of clean modulation signal samples.

[0100] The above embodiments are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any changes made based on the design principles of the present invention, or any non-creative modifications made thereon, shall fall within the scope of protection of the present invention.

Claims

1. A poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation, characterized in that, Includes the following steps: Step 1: Read the RML2016.10a modulation signal set, organize the complex modulation signal samples to obtain the modulation signal sample dataset, and divide the sample dataset into training set, validation set and test set; select a small number of clean modulation signal samples from the training set as clean training data for model purification, and prepare clean test set and poisoned test set; Step 2: Based on the poisoned one-dimensional residual network model, construct a hierarchical self-distillation defense model; the structure of the poisoned one-dimensional residual network model is as follows: starting from the input, connect four residual network layers, a global average pooling layer, and a main classifier in sequence; at the multi-level intermediate feature output of the poisoned one-dimensional residual network model, connect a channel attention module and a branch classifier respectively; The residual network hierarchy is used to extract one-dimensional temporal features of the input modulated signal step by step; The residual block includes two one-dimensional convolutional layers, two batch normalization layers, and two ReLU activation layers, which are used to extract local features and retain input features. The global average pooling layer is used to compress the feature dimension, and the main classifier is used to output the main classification result; The channel attention module includes a global average pooling layer and a multilayer perceptron, used to generate channel attention weights and obtain channel attention features; The branch classifier is a linear classifier used to output branch classification results based on channel attention features; Step 3: Perform a model purification process around the poisoned one-dimensional residual network model. The model purification process includes: generating reconstructed poisoned inputs based on trigger reverse engineering, calculating the trigger activation change index (TAC) in the poisoned one-dimensional residual network model based on the clean input and the reconstructed poisoned input, and filtering backdoor sensitive residual blocks based on the TAC. Step 4: Train and validate the hierarchical self-distillation defense model using the training set, and update the parameters by combining adaptive sharpness-aware perturbation minimization optimization; the training loss includes main classification loss, depth-weighted branch classification loss and attention alignment loss; Step 5: Evaluate the classification accuracy (ACC) and attack success rate (ASR) of the final defense model using the clean test set and the poisoned test set, respectively.

2. The poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation according to claim 1, characterized in that, Step 1 specifically includes: Step 1-1: Read the modulation signal samples and category labels from the RML2016.10a modulation signal dataset; Step 1-2: Organize the complex signal sequence composed of in-phase component I and quadrature component Q into a dual-channel one-dimensional sequence, and use the modulation category label as the supervised training label; Steps 1-3: Divide the modulated signal sample dataset into training set, validation set and test set according to a preset ratio, and extract a preset ratio of clean modulated signal samples from the training set as clean training data for model purification. Steps 1-4: Use the test samples in the test set that do not have triggers stacked as the clean test set, and use the test samples with backdoor triggers stacked and corresponding attack target tags as the poisoned test set.

3. The poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation according to claim 1, characterized in that, Step 2, the reconstruction of poisoned input generation, specifically includes: Step 2-1: Based on the clean modulation signal samples and the poisoned one-dimensional residual network model, freeze the network parameters of the poisoned one-dimensional residual network model, and initialize the trigger mode and injection mask; Step 2-2: With the optimization objective of improving the prediction confidence of the poisoned one-dimensional residual network model for the preset backdoor target category and constraining the perturbation amplitude of the trigger, iteratively update the trigger mode and injection mask; Steps 2-3: The optimized trigger pattern is superimposed onto the clean modulation signal sample according to the injection mask to obtain the reconstructed poisoned input for feature sensitivity analysis.

4. The poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation according to claim 3, characterized in that, Step 2, specifically the calculation of the trigger activation change index (TAC) and the screening of backdoor-sensitive residual blocks, includes: Steps 2-4: Feed the clean input and the reconstructed poisoned input into the poisoned one-dimensional residual network respectively, and set feature extraction hooks at the specified convolutional layers of each residual block to obtain clean intermediate features and poisoned intermediate features respectively; Steps 2-5: For the clean intermediate features and poisoned intermediate features of the same feature channel within the same residual block, calculate the mean along the input batch dimension and the one-dimensional signal sequence dimension, respectively, and take the absolute difference between the two means as the TAC score of the feature channel. Steps 2-6: Average the TAC scores of all feature channels within each residual block to obtain the overall feature sensitivity score of the residual block, sort them from high to low, and select the top-ranked residual blocks as backdoor sensitive residual blocks.

5. The poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation according to claim 1, characterized in that, Step 4, the process of training and validating the hierarchical self-distillation defense model, includes: Step 3-1: Input clean training data into the hierarchical self-distillation defense model to obtain multi-level intermediate features, main classification results, branch classification results, and multi-level channel attention features; Step 3-2: Construct the total training loss consisting of the main classification loss, the depth-weighted branch classification loss, and the attention alignment loss, and constrain the main classification result, the branch classification result, and the shallow channel attention features to align with the deep channel attention features respectively; Step 3-3: During parameter update, adaptive sharpness-aware perturbation and gradient update are performed on the target parameter set consisting of backdoor sensitive residual block parameters and main classifier parameters, and the network parameters in the non-target parameter set are frozen; Steps 3-4: After each training round, evaluate ACC and ASR using the validation set. When ASR is lower than the preset safety threshold and ACC is better than the historical best value, save the current model parameters.

6. The poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation according to claim 5, characterized in that, Step 3-3, which describes adaptive sharpness perception minimization of perturbations, specifically includes: The gradients of each parameter in the target parameter set are calculated based on the total training loss, and the gradients are adaptively scaled according to the parameter magnitudes to obtain the local perturbation direction. The target parameters are moved to the perturbation position according to the preset perturbation radius, and the training loss and gradients are recalculated at the perturbation position. The parameters in the target parameter set are updated using the gradients at the perturbation position.

7. The poisoning defense method based on feature sensitivity optimization and hierarchical self-distillation according to claim 1, characterized in that, Step 5 specifically includes: Load the model parameters saved in steps 3-4 into the hierarchical self-distillation defense model to obtain the final defense model; input the clean test set into the final defense model to obtain the classification accuracy (ACC), and input the poisoned test set into the final defense model to obtain the attack success rate (ASR).