Back door defense method for non-intrusive voice quality evaluation

Through pre-splitting of speech data sets and multi-model weighted label replacement technology, the backdoor attack problem in the field of non-intrusive speech quality assessment is solved, achieving efficient backdoor defense effects, reducing the attack success rate and maintaining the original performance. .

CN118737200AInactive Publication Date: 2024-10-01NINGBO UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875625.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing field of non-intrusive voice quality assessment lacks effective backdoor defense methods, especially when the poisoning rate is large, it cannot effectively respond to backdoor attacks, and the existing methods are not efficient.

Method used

By pre-splitting the speech data set into intermediate value subsets and boundary value subsets, a loss-based poisoned sample filtering strategy is adopted to dynamically filter poisoned samples, and the labels are replaced by weighted summation through multiple NISQA models that are not subject to backdoor attacks. , forming a new speech data set for training to mitigate backdoor attacks.

Benefits of technology

It significantly reduces the success rate of backdoor attacks, maintains the original prediction performance, and can still effectively defend when the poisoning rate is large, improving defense efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737200A_ABST
    Figure CN118737200A_ABST
Patent Text Reader

Abstract

The invention discloses a back door defense method for non-intrusive voice quality evaluation. The method comprises the following steps: pre-splitting a voice data set into an intermediate value subset and a boundary value subset; then, when the NISQA model is subjected to early-stage training, a poisoning sample filtering strategy based on loss is adopted, poisoning samples existing in the intermediate value subset are dynamically filtered out according to a certain interval round, and finally the NISQA model subjected to early-stage training, the qualitative intermediate value subset and the qualitative boundary value subset are obtained; performing one-time prediction on the trained NISQA model which is not subjected to backdoor attack on the intermediate value subset, and performing weighted summation according to the prediction accuracy so as to obtain a more accurate pseudo tag value of the voice sample in the boundary value subset; and finally, based on the intermediate value subset and the boundary value subset with a more accurate pseudo tag value, carrying out later training on the NISQA model which is trained in the early stage so as to obtain an NISQA model of backdoor attack mitigation. The method has the advantages of being capable of coping with backdoor attacks when the poisoning rate is large and high in efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of multimedia information security, and in particular to a backdoor defense method for non-intrusive voice quality assessment. Background Art

[0002] In the past decade, deep learning technology has greatly promoted the rapid development of multimedia information technology with its excellent data feature learning ability. However, the introduction of new technologies is often accompanied by new security challenges. With the introduction of poisoning attacks, backdoor attacks, and adversarial attacks, the vulnerability and instability of deep learning models have gradually emerged. Among them, backdoor attacks have a high attack success rate and concealment, representing the most serious type of threat to deep learning models.

[0003] Data poisoning is one of the most common and practical means of implementing backdoor attacks. The attacker of a backdoor attack based on data poisoning technology selects a certain proportion of samples in the data set and adds triggers as poisoned samples, and tampering the labels of these poisoned samples with a fixed label. When a deep learning model is trained based on such a data set, a backdoor is implanted, and the target label will be predicted on any sample containing a trigger (i.e., a poisoned sample), while maintaining the original excellent performance on clean samples. The characteristic of a backdoor attack based on data poisoning technology is that only the data set itself needs to be modified, without involving other detailed information about the structure of the deep learning model and the training algorithm. Therefore, backdoor attacks based on data poisoning technology are widely used.

[0004] With the advent of the big data era, data has become a key factor driving artificial intelligence and machine learning. However, the production of data sets is very time-consuming and labor-intensive, so researchers often use public data sets on the Internet for training to reduce costs. However, this provides an opportunity for backdoor attacks based on data poisoning technology. Untrusted third-party data sets p% of the samples are added as triggers as poisoned samples, and the labels of these poisoned samples are modified to a pre-set label y t (i.e. target label). The dataset consisting of these poisoned samples is called the poisoned subset The dataset The remaining clean samples in the dataset are called clean subset. and Together they form a new poisoning dataset When researchers use poisoned datasets provided by untrusted third parties Deep learning models are backdoored during training.

[0005] A typical backdoor attack based on data poisoning technology is as follows: Figure 1As shown, the attacker uses a white pixel block as a trigger δ, adds it to the lower right corner of the sample, and modifies the corresponding label to the target label y t The process of adding such a trigger can be expressed by formula (1):

[0006] x i +δ=x i ⊙(1-m)+δ⊙m (1)

[0007] Among them, x i represents the i-th clean sample, δ represents the trigger, ⊙ represents the dot product between matrix elements, m is the image mask, and the size of m is the same as x i If the value of an element in m is 1, it means that the image pixel at this position is replaced by the pixel at the corresponding position of the trigger δ. If the value of an element in m is 0, it means that the image pixel at this position remains unchanged. Subsequently, the deep learning model will build a connection between the trigger and the target label during the training process. The training of the deep learning model can be regarded as a training process in two subsets. and The optimization process on is shown in Equation 2.

[0008]

[0009] Among them, θ′ represents the weight parameter of the deep learning model, x i represents a clean sample, y i Represents x i The label, y t represents the target label, F θ′ () represents the deep learning model with weight parameter θ′, Denotes the loss function. When such a deep learning model is deployed, the attacker only needs to add the same trigger to any sample, and the deep learning model will predict the pre-set target label, thus achieving the purpose of manipulating the prediction of the deep learning model.

[0010] Non-Intrusive Speech Quality Assessment (NISQA) technology automatically quantifies the quality of speech through algorithms. It is a very critical regression task in the field of speech and is widely used in various downstream speech tasks, including but not limited to speech communication, speech synthesis and speech enhancement. In the field of speech communication, NISQA can be used to monitor and evaluate the quality of voice calls in real time, thereby providing key feedback information to improve the performance of voice communication systems. In the field of speech synthesis, NISQA can be used to evaluate the naturalness and fluency of synthesized speech, thereby improving the performance of speech synthesis systems. In the field of speech enhancement, NISQA can be used to evaluate the impact of processing algorithms such as noise reduction and dereverberation on speech quality, so as to guide the improvement and application of processing algorithms. In addition, with the continuous improvement of NISQA's prediction performance, it is gradually being applied to multiple fields concerned with security. For example, NISQA is used to improve the voice quality during air traffic control communications, ensuring the clarity and comprehensibility of communications, thereby improving flight safety; NISQA is used to improve the settings of hearing aid speech enhancement algorithms, and by evaluating the impact of the algorithm on voice quality, the performance of hearing aids is optimized to provide better hearing support and user experience. The existing backdoor attacks based on data poisoning technology in NISQA are all boundary value attacks, that is, the attacker hopes that the deep learning model will predict the maximum or minimum value of the label. In order to achieve this goal, the attacker will modify the label of the poisoned sample to be close to the maximum or minimum value of the label of all clean samples in the original clean data set.

[0011] The emergence of backdoor attacks has greatly hindered the widespread use of deep neural networks in the real world. Therefore, it is crucial to protect deep learning models from backdoor attacks. Designing strong backdoor defense methods can help ensure the security and reliability of deep learning models, thereby promoting their widespread application in the real world.

[0012] At present, the main research on backdoor defense against backdoor attacks based on data poisoning technology is concentrated in the field of image or speech classification, and the backdoor defense methods proposed for regression tasks in the speech field are very lacking. If the backdoor defense methods in image or speech classification tasks are directly transferred to the regression tasks in the speech field, the defense effect is often poor. This is because the backdoor defense methods in these image or speech classification tasks often do not take into account the particularity of backdoor attacks in regression tasks. The backdoor defense method currently proposed for regression tasks in the speech field randomly selects a subset of size N from the original data set in each training iteration, and removes samples with large training losses in the subset. Although this backdoor defense method can play a certain defensive effect, it cannot cope with backdoor attacks when the poisoning rate is large, and the efficiency of this backdoor defense method is not high. Summary of the invention

[0013] The technical problem to be solved by the present invention is to provide a backdoor defense method for non-intrusive voice quality assessment, which can cope with backdoor attacks when the poisoning rate is large and has high efficiency.

[0014] The technical solution adopted by the present invention to solve the above technical problem is: a backdoor defense method for non-intrusive voice quality assessment, characterized by comprising the following steps:

[0015] Step 1: A speech dataset containing clean samples and their clean labels and poisoned samples and their target labels Pre-split into two subsets, namely the middle value subset and boundary value subsets Among them, clean samples and poisoned samples are both voice samples, the clean label of the clean sample is the quantitative value of the clean sample voice quality, the target label of the poisoned sample is pre-set by the attacker, and the clean label of the clean sample and the target label of the poisoned sample are both MOS scores, with a value range of [1, 5];

[0016] Step 2: Set the initial training rounds to T r times, the preset interval is T d times, 1 <T d <T r , set the number of iterations to k, and the initial value of k is 1; repeatedly train the NISQA model based on the intermediate value subset, test the boundary value subset, and use the prediction results to change the intermediate value subset and the boundary value subset. The specific process is as follows:

[0017] Step 2.1: In the kth iteration, based on the intermediate value subset NISQA Model Training, in training T d The training ends after the round, and the NISQA model trained in the kth iteration is obtained. Then use the NISQA model For the boundary value subset Test and get the boundary value subset The predicted label of each speech sample in is the pseudo label, and the boundary value subset is calculated The loss of the label and predicted label of each speech sample in ; then compare the boundary value subsets in turn The loss corresponding to each speech sample in If the loss corresponding to the current speech sample is greater than The current speech sample is considered to be a poisoned sample, and the current speech sample is kept unchanged. If the loss corresponding to the current speech sample is less than or equal to The current speech sample is considered not to be a poisoned sample, and the current speech sample is moved to the intermediate value subset. In the boundary value subset The loss corresponding to all speech samples in After the comparison is completed, a new subset of intermediate values ​​is obtained and the new subset of boundary values Then execute step 2.2; in which, calculate the boundary value subset The loss function of the loss of each speech sample label and predicted label in the NISQA model adopts the original loss function. When k = 1 is the intermediate value subset in step 1 is the boundary value subset in step 1 represents the subset of intermediate values ​​in step 1 The mean square error of all speech samples in represents the original untrained NISQA model, when k>1 represents the intermediate value subset obtained in the k-1th iteration process, represents the boundary value subset obtained in the k-1th iteration process, express The mean square error of all speech samples in represents the NISQA model after the k-1th iteration training;

[0018] Step 2.2: Determine whether k is less than If yes, set k = k + 1, and then return to step 2.1 to continue until the first NISQA model after training in the iterative process No. The intermediate value subset obtained by the iteration process No. The boundary value subset obtained by the iteration process Otherwise, based on The intermediate value subset obtained by the iteration process For NISQA model after training in the iterative process Training, training After the round of training, the NISQA model that has been trained in the early stage is obtained. And order make in, is the rounding down operator, k=k+1, The "=" in is the assignment symbol;

[0019] Step 3: Select n NISQA models that have not been attacked by backdoors and have been trained; then use these n NISQA models to train the boundary value subsets obtained after the initial training in step 2. Test and get the boundary value subset The predicted label of each speech sample in is the pseudo label; then traverse the boundary value subsets in turn For each speech sample in the , the n predicted labels of the currently traversed speech sample are weighted summed, and the result of the weighted summation is used as the new label to replace the original label of the currently traversed speech sample until the boundary value subset is reached. All the original labels of the speech samples in are replaced; where n>1;

[0020] Step 4: Subset the intermediate values ​​obtained after the initial training in step 2 and the boundary value subset obtained after replacing the labels in step 3 Merge into speech dataset Then based on the speech dataset For the NISQA model pre-trained in step 2 Training, in training T h After the training is completed, the NISQA model with backdoor attack mitigation is obtained, and backdoor defense is achieved; among them, T h Indicates the preset post-training round.

[0021] In step 1, the speech data set The process of pre-splitting is as follows: preset a threshold th; then traverse the speech data set in sequence For each speech sample in , if the label of the currently traversed speech sample falls within [1, 1+th] or [5-th, 5], the currently traversed speech sample is classified into the boundary value subset If the label of the currently traversed speech sample falls within (1+th, 5-th), the currently traversed speech sample is classified into the intermediate value subset. In the speech dataset After all the speech samples in are traversed, the intermediate value subset is obtained and boundary value subsets

[0022] In step 3, the n NISQA models that have not been attacked by the backdoor and have been trained are different.

[0023] In step 3, the weight used for weighted summation of the n predicted labels of the currently traversed speech sample is the weight corresponding to the n trained NISQA models that have not been attacked by the backdoor, and the weight corresponding to the i-th NISQA model that has not been attacked by the backdoor and has been trained is set to wi , w i The acquisition process is as follows:

[0024] Step 3.1: Use the i-th trained NISQA model that has not been attacked by the backdoor to train the intermediate value subset obtained after the preliminary training in step 2 Test and get the middle value subset The predicted label of each speech sample in is the pseudo label; then the intermediate value subset The labels of all speech samples in are correlated with the predicted labels of all speech samples to obtain the intermediate value subset The corresponding i-th correlation value c i ; where i∈[1,n];

[0025] Step 3.2: Based on step 3.1, a subset of intermediate values ​​is obtained The corresponding n correlation values; then calculate the middle value subset The sum of the corresponding n correlation values ​​S c ; recalculate

[0026] Compared with the prior art, the advantages of the present invention are:

[0027] 1) The method of the present invention utilizes the characteristic that backdoor attacks in the NISQA regression task are mostly boundary value attacks, and quickly pre-splits the speech data set into two subsets, namely the intermediate value subset and the boundary value subset. The poisoned samples can only appear in the boundary value subset. This subset division makes the method of the present invention more suitable for backdoor defense of NISQA.

[0028] 2) In the process of training the NISQA model, the method of the present invention adopts a loss-based poisoned sample filtering strategy to dynamically filter out poisoned samples in the intermediate value subset at certain intervals, so that the intermediate value subset contains as few poisoned samples as possible, thereby mitigating the backdoor attack of the NISQA model. In addition, this method of adjusting the boundary value subset while training makes the method of the present invention more efficient than the existing methods while achieving the same defense effect.

[0029] 3) The method of the present invention can effectively mitigate the damage of the NISQA model to the backdoor attack. Under the premise of ensuring that the original prediction performance (all samples in the speech data set are used for training and clean samples are used for prediction) is only slightly reduced, it can significantly reduce the success rate of the backdoor attack.

[0030] 4) The backdoor defense in the existing regression task has a higher probability of selecting poisoned samples when the poisoning rate is high, thereby implanting the backdoor into the deep learning model. The method of the present invention pre-segments the speech data set according to the characteristics of the boundary value attack in the NISQA backdoor attack, and is still effective when the poisoning rate is high, that is, the method of the present invention can cope with backdoor attacks when the poisoning rate is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a schematic diagram of a typical backdoor attack based on data poisoning technology;

[0032] Figure 2 The figure is a general implementation block diagram of the method of the present invention. DETAILED DESCRIPTION

[0033] The present invention is further described in detail below with reference to the accompanying drawings.

[0034] The present invention proposes a backdoor defense method for non-intrusive voice quality assessment, and its overall implementation block diagram is as follows: Figure 2 As shown, it includes the following steps:

[0035] Step 1: A speech dataset containing clean samples and their clean labels and poisoned samples and their target labels Pre-split into two subsets, namely the middle value subset and boundary value subsets Among them, both clean samples and poisoned samples are speech samples, the clean label of the clean sample is the quantitative value of the clean sample speech quality, the target label of the poisoned sample is pre-set by the attacker, and the clean label of the clean sample and the target label of the poisoned sample are both MOS scores, with a value range of [1, 5].

[0036] In this specific embodiment, in step 1, the speech data set is The pre-splitting process is as follows: preset a threshold value th, in this embodiment, the preset range of the threshold value th is [0.3, 0.6], such as 0.5; then traverse the speech data set in sequence For each speech sample in , if the label of the currently traversed speech sample falls within [1, 1+th] or [5-th, 5], the currently traversed speech sample is classified into the boundary value subset If the label of the currently traversed speech sample falls within (1+th, 5-th), the currently traversed speech sample is classified into the intermediate value subset. In the speech dataset After all the speech samples in are traversed, the intermediate value subset is obtained and boundary value subsets Since all current backdoor attacks on non-intrusive speech quality assessment are boundary value attacks, the target label pre-set by the attacker is very close to the maximum label or minimum label in the original clean speech dataset, so the poisoned sample can only appear in the boundary value subset.

[0037] Step 2: Set the initial training rounds to T r In this embodiment, T e =40, the preset interval round is T d times, 1 <T d <T r In this embodiment, T d =5, set the number of iterations to k, and the initial value of k is 1; repeatedly train the NISQA (non-intrusive speech quality assessment) model based on the intermediate value subset, test the boundary value subset, and use the prediction results to change the intermediate value subset and the boundary value subset. The specific process is as follows:

[0038] Step 2.1: In the kth iteration, based on the intermediate value subset NISQA Model Training, in training T d The training ends after the round, and the NISQA model trained in the kth iteration is obtained. Then use the NISQA model For the boundary value subset Test and get the boundary value subset The predicted label of each speech sample in is the pseudo label, and the boundary value subset is calculated. The loss of the label and predicted label of each speech sample in ; then compare the boundary value subsets in turn The loss corresponding to each speech sample in If the loss corresponding to the current speech sample is greater than The current speech sample is considered to be a poisoned sample, and the current speech sample is kept unchanged. If the loss corresponding to the current speech sample is less than or equal to The current speech sample is considered not to be a poisoned sample, and the current speech sample is moved to the intermediate value subset. In the boundary value subset The loss corresponding to all speech samples in After the comparison is completed, a new subset of intermediate values ​​is obtained and the new subset of boundary values Then execute step 2.2; in which the boundary value subset is calculated The loss function of the loss of each speech sample label and predicted label in the NISQA model adopts the original loss function. When k = 1 is the intermediate value subset in step 1 is the boundary value subset in step 1 represents the subset of intermediate values ​​in step 1 The mean square error of all speech samples in represents the original untrained NISQA model, when k>1 represents the intermediate value subset obtained in the k-1th iteration process, represents the boundary value subset obtained in the k-1th iteration process, express The mean square error of all speech samples in Represents the NISQA model after training in the k-1th iteration process.

[0039] Step 2.2: Determine whether k is less than If yes, set k = k + 1, and then return to step 2.1 to continue until the first NISQA model after training in the iterative process No. The intermediate value subset obtained by the iteration process No. The boundary value subset obtained by the iteration process Otherwise, based on The intermediate value subset obtained by the iteration process For NISQA model after training in the iterative process Training, training After the round of training, the NISQA model that has been trained in the early stage is obtained. And order make in, is the rounding down operator, k=k+1, The “=” in is the assignment symbol.

[0040] By training the NISQA model on a subset of median values ​​of non-poisoned samples, the preset T r Rounds, get the NISQA model that has been trained in the early stage Due to the NISQA model It is trained based on a subset of median values ​​of non-poisoned samples, so no backdoor will be implanted, while maintaining the ability to evaluate speech quality.

[0041] Step 3: Select n NISQA models that have not been attacked by backdoors and have been trained; then use these n NISQA models to train the boundary value subsets obtained after the initial training in step 2. Test and get the boundary value subset The predicted label of each speech sample in is the pseudo label; then traverse the boundary value subsets in turn For each speech sample in the , the n predicted labels of the currently traversed speech sample are weighted summed, and the result of the weighted summation is used as the new label to replace the original label of the currently traversed speech sample until the boundary value subset is reached. The original labels of all speech samples in are replaced; where n>1.

[0042] In this specific embodiment, in step 3, the n NISQA models that have not been attacked by backdoors and have been trained are different.

[0043] In this specific embodiment, in step 3, the weight used for weighted summation of the n predicted labels of the currently traversed speech sample is the weight corresponding to the n trained NISQA models that have not been attacked by the backdoor, and the weight corresponding to the i-th NISQA model that has not been attacked by the backdoor and has been trained is set to w i , w i The acquisition process is as follows:

[0044] Step 3.1: Use the i-th trained NISQA model that has not been attacked by the backdoor to train the intermediate value subset obtained after the initial training in step 2. Test and get the middle value subset The predicted label of each speech sample in is the pseudo label; then the intermediate value subset The original labels of all speech samples in are correlated with the predicted labels of all speech samples, such as PLCC calculation, to obtain the intermediate value subset The corresponding i-th correlation value c i ; where i∈[1,n].

[0045] Step 3.2: Based on step 3.1, a subset of intermediate values ​​is obtained The corresponding n correlation values; then calculate the middle value subset The sum of the corresponding n correlation values ​​S c ; recalculate

[0046] After step 2, the boundary value subset The number of speech samples in the middle value subset is stable, and the prediction results of multiple other NISQA models are used as pseudo labels. Unlike other defense strategies that use pseudo labels, the output of the NISQA model is located in a continuous interval. Therefore, all other NISQA models are placed in the middle value subset. A prediction is performed on the boundary value subset, and a weighted sum is performed according to the prediction accuracy to obtain a more accurate pseudo-label value for the speech sample in the boundary value subset.

[0047] Step 4: Subset the intermediate values ​​obtained after the initial training in step 2 and the boundary value subset obtained after replacing the labels in step 3 Merge into speech dataset Then based on the speech dataset For the NISQA model pre-trained in step 2 Training, in training T h After the training is completed, the NISQA model with backdoor attack mitigation is obtained, and backdoor defense is achieved; among them, T h Indicates the preset post-training round, in this embodiment, T h =60. In actual operation, the training can be ended when the loss converges.

[0048] Through steps 3 and 4, not only can the boundary value subset be effectively utilized It can also remove suspected poisoned samples in the speech data set and mitigate the impact of poisoned samples mixed in due to dynamic adjustment of the speech data set.

[0049] In order to further illustrate the feasibility and effectiveness of the method of the present invention, the method of the present invention was tested.

[0050] This experiment is implemented using the PyTorch deep learning framework. BVCC and NISQA-MOS are selected as voice datasets and the NISQA model attacked by the backdoor. The BVCC voice dataset was released by the VoiceMOS Challenge in 2022. It contains some voice samples from the Blizzard Challenges and Voice Conversion Challenges, and public samples from ESPnet-TTS, and gives MOS scores in a unified listening test. The BVCC voice dataset contains a total of 3,382 voice samples. This experiment divides the training set, validation set, and test set into 70%, 15%, and 15% ratios.

[0051] In the training phase, the training parameters of the NISQA-MOS model are kept as default, that is, the learning rate is set to 0.001, the optimizer uses ADAM, the learning rate is adjusted using the ReduceLROnPlateau strategy, and the mode is set to the minimum value, the threshold is 0.003, and the patience is 20. For the defense parameters, this experiment sets the initial training round T r =40, adjust the interval round T d =5, Late training round T h=60, the threshold of the pre-segmented dataset th = 0.5. UTMOS, MOSANet, and XLS models are selected as the three NISQA models that have not been attacked by backdoors and have been trained in step 3, namely, the teacher NISQA models.

[0052] Two indicators are used here to measure the performance of the backdoor defense method proposed in the present invention, namely PLCC correlation and attack success rate (ASR). PLCC is calculated after reasoning on the clean speech test set, and is used to measure the original clean performance of the NISQA model. The higher the value, the smaller the impact of the backdoor defense on the original performance of the NISQA model. ASR is calculated after reasoning on the poisoned speech test set, and is used to measure the backdoor defense performance of the NISQA model. The smaller the value, the greater the reduction in the attack success rate by the backdoor defense. In the classification task, if the poisoned sample is predicted as the target label by the model, it is regarded as a successful backdoor attack. ASR is calculated by calculating the ratio of the number of samples predicted as the target label by the model to the total number of samples in the poisoned test set. However, as a regression task, the value range of the NISQA model prediction value is not discrete multiple classes, but a continuous value within a certain interval. Therefore, in this experiment, if the predicted value is in the interval [y t -0.5,y t +0.5] is considered a successful attack, y t Represents the target label.

[0053] Table 1 lists the defense performance of the method of the present invention when facing five common backdoor attack methods (BadNets, Blend, JingleBack, Packet Loss, Voice Conversion).

[0054] Table 1 Comparison of the defensive performance of the method of the present invention against five common backdoor attack methods (BadNets, Blend, JingleBack, Packet Loss, Voice Conversion)

[0055]

[0056] As can be seen from Table 1, the method of the present invention can significantly reduce the attack success rate when facing these five backdoor attack methods, reducing the average ASR from 99.268% to 0.750%. At the same time, the method of the present invention has a very limited impact on the original performance of the NISQA model. Only when facing the Voice Conversion attack method, the PLCC is reduced from 0.755 to 0.648, which has a significant decrease, but the average PLCC has not decreased to a large extent, only by 0.016. From the data of the original performance of the NISQA model and the attack success rate, it is fully demonstrated that the method of the present invention is feasible and effective.

Claims

1. A backdoor defense method for non-intrusive speech quality assessment, Features The following steps are involved: Step 1: A speech dataset containing clean samples and their clean labels and poisoned samples and their target labels Pre-split into two subsets, namely the middle value subset and boundary value subsets Among them, clean samples and poisoned samples are both voice samples, the clean label of the clean sample is the quantitative value of the clean sample voice quality, the target label of the poisoned sample is pre-set by the attacker, and the clean label of the clean sample and the target label of the poisoned sample are both MOS scores, with a value range of [1, 5]; Step 2: Set the initial training rounds to T r times, the preset interval is T d times, 1 <T d <T r , set the number of iterations to k, and the initial value of k is 1; repeatedly train the NISQA model based on the intermediate value subset, test the boundary value subset, and use the prediction results to change the intermediate value subset and the boundary value subset. The specific process is as follows: Step 2.1: In the kth iteration, based on the intermediate value subset NISQA Model Training, in training T d The training ends after the round, and the NISQA model trained in the kth iteration is obtained. Then use the NISQA model For the boundary value subset Test and get the boundary value subset The predicted label of each speech sample in is the pseudo label, and the boundary value subset is calculated The loss of the label and predicted label of each speech sample in ; then compare the boundary value subsets in turn The loss corresponding to each speech sample in If the loss corresponding to the current speech sample is greater than The current speech sample is considered to be a poisoned sample, and the current speech sample is kept unchanged. If the loss corresponding to the current speech sample is less than or equal to The current speech sample is considered not to be a poisoned sample, and the current speech sample is moved to the intermediate value subset. In the boundary value subset The loss corresponding to all speech samples in After the comparison is completed, a new subset of intermediate values ​​is obtained and the new subset of boundary values Then execute step 2.2; in which, calculate the boundary value subset The loss function of the loss of each speech sample label and predicted label in the NISQA model adopts the original loss function. When k = 1 is the intermediate value subset in step 1 is the boundary value subset in step 1 represents the subset of intermediate values ​​in step 1 The mean square error of all speech samples in represents the original untrained NISQA model, when k>1 represents the intermediate value subset obtained in the k-1th iteration process, represents the boundary value subset obtained in the k-1th iteration process, express The mean square error of all speech samples in represents the NISQA model after the k-1th iteration training; Step 2.2: Determine whether k is less than If yes, set k = k + 1, and then return to step 2.1 to continue until the first NISQA model after training in the iterative process No. The intermediate value subset obtained by the iteration process No. The boundary value subset obtained by the iteration process Otherwise, based on The intermediate value subset obtained by the iteration process For NISQA model after training in the iterative process Training, training After the round of training, the NISQA model that has been trained in the early stage is obtained. And order make in, is the rounding down operator, k=k+1, The "=" in is the assignment symbol; Step 3: Select n NISQA models that have not been attacked by backdoors and have been trained; then use these n NISQA models to train the boundary value subsets obtained after the initial training in step 2. Test and get the boundary value subset The predicted label of each speech sample in is the pseudo label; then traverse the boundary value subsets in turn For each speech sample in the , the n predicted labels of the currently traversed speech sample are weighted summed, and the result of the weighted summation is used as the new label to replace the original label of the currently traversed speech sample until the boundary value subset is reached. All the original labels of the speech samples in are replaced; where n>1; Step 4: Subset the intermediate values ​​obtained after the initial training in step 2 and the boundary value subset obtained after replacing the labels in step 3 Merge into speech dataset Then based on the speech dataset For the NISQA model pre-trained in step 2 Training, in training T h After the training is completed, the NISQA model with backdoor attack mitigation is obtained, and backdoor defense is achieved; among them, T h Indicates the preset post-training round.

2. A backdoor defense method for non-intrusive voice quality assessment according to claim 1, Features In step 1, the speech data set The process of pre-splitting is as follows: preset a threshold th; then traverse the speech data set in sequence For each speech sample in , if the label of the currently traversed speech sample falls within [1, 1+th] or [5-th, 5], the currently traversed speech sample is classified into the boundary value subset If the label of the currently traversed speech sample falls within (1+th, 5-th), the currently traversed speech sample is classified into the intermediate value subset. In the speech dataset After all the speech samples in are traversed, the intermediate value subset is obtained and boundary value subsets 3. A backdoor defense method for non-intrusive voice quality assessment according to claim 1 or 2, Features In step 3, the n NISQA models that have not been attacked by backdoors and have been trained are different.

4. A backdoor defense method for non-intrusive voice quality assessment according to claim 1 or 2, Features In step 3, the weight used for weighted summation of the n predicted labels of the currently traversed speech sample is the weight corresponding to the n trained NISQA models that have not been attacked by the backdoor, and the weight corresponding to the i-th NISQA model that has not been attacked by the backdoor and has been trained is set to w i , w i The acquisition process is as follows: Step 3.1: Use the i-th trained NISQA model that has not been attacked by the backdoor to train the intermediate value subset obtained after the initial training in step 2. Test and get the middle value subset The predicted label of each speech sample in is the pseudo label; then the intermediate value subset The labels of all speech samples in are correlated with the predicted labels of all speech samples to obtain the intermediate value subset The corresponding i-th correlation value c i ; where i∈[1,n]; Step 3.2: Based on step 3.1, a subset of intermediate values ​​is obtained The corresponding n correlation values; then calculate the middle value subset The sum of the corresponding n correlation values ​​S c ; recalculate