Back door attack method based on federated learning automatic voiceprint verification architecture

By comparing feature extraction and time series injection methods, backdoor data is generated to launch covert backdoor attacks, which solves the problem in the existing technology that backdoor attacks are difficult to extract voiceprint features and the injection method is obvious, and achieves high success rate, concealment and rashness. The powerful backdoor attack effect enhances the security of the voiceprint verification system.

CN118692472APending Publication Date: 2024-09-24HLJ E LINK NETWORK CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410707445.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing backdoor attack method based on the federated learning automatic voiceprint verification architecture is difficult to effectively extract the speaker's voiceprint features and the injection method is obvious and lacks concealment, making it difficult to be detected and defended by the system.

Method used

The utterances of the same speaker are clustered using the ternary contrastive loss function through the contrastive feature extraction method to generate the triggers required for backdoor data, and the triggers are injected into the original audio through time series injection to generate backdoor data to initiate concealment Effective backdoor attack.

Benefits of technology

It achieves high attack success rate, concealment and robustness, ensuring that backdoor triggers are difficult to identify and detect in the voiceprint verification system, improving the system's resistance to backdoor attacks and enhancing the security of the voiceprint verification system. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692472A
    Figure CN118692472A
Patent Text Reader

Abstract

A back door attack method based on a federated learning automatic voiceprint verification architecture becomes a particularly serious threat in the field of intelligent voice recognition due to the concealment and potential destructive power of the back door attack method. In order to better explore the vulnerability of the architecture and research the security of the architecture, the invention provides a backdoor attack strategy for the federated learning automatic voiceprint check architecture, which comprises the following steps: firstly, an attacker extracts the characteristics of each utterance in a training set, and clusters the utterances of the same speaker by using a ternary contrast loss function through a contrast characteristic extraction method, so as to obtain a clustering result; the feature representation of each speaker is obtained; then, the speakers are clustered, and triggers required for creating backdoor data are generated according to classes; and finally, a trigger is injected into the original audio in a time sequence injection mode to generate backdoor data, and an attacker initiates a hidden and effective backdoor attack on the federal learning automatic voiceprint verification framework through the backdoor data. The method is mainly applied to related fields such as artificial intelligence and identity recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the fields of artificial intelligence and identity recognition. Background Art

[0002] At present, the field of intelligent speech recognition is developing rapidly. As a typical task, automatic voiceprint verification has been widely used in scenarios such as identity recognition and security verification. The automatic voiceprint verification architecture based on federated learning provides high-quality and effective identity authentication while solving data privacy issues. Backdoor attacks based on this framework have become a particularly serious threat due to their concealment and potential destructive power.

[0003] Therefore, a concealed and effective backdoor attack method based on the federated learning automatic voiceprint verification architecture is proposed. Figure 1 ,By simulating potential attack scenarios and studying the techniques that attackers may use,,it is necessary and urgent to better discover its vulnerabilities and study its,security. Summary of the invention

[0004] The present invention aims to solve the problems that the existing backdoor attack method based on the federated learning automatic voiceprint verification architecture is difficult to effectively extract the speaker's voiceprint features and the injection method is obvious. The present invention provides a backdoor attack method based on the federated learning automatic voiceprint verification architecture.

[0005] The backdoor attack method based on the federated learning automatic voiceprint verification architecture includes the following process:

[0006] First, the attacker extracts the features of each utterance in the training set, and clusters the utterances of the same speaker using a ternary contrastive loss function by contrastive feature extraction method, thereby obtaining the feature representation of each speaker;

[0007] Then, the speakers are clustered and the triggers needed to create backdoor data are generated by class;

[0008] Finally, the trigger is injected into the original audio through time series injection to generate backdoor data. The attacker uses this backdoor data to launch a covert and effective backdoor attack on the federated learning automatic voiceprint verification framework.

[0009] Preferably, during the process of launching the backdoor attack, the method of comparative feature extraction and time series injection is used to achieve the acquisition of the backdoor trigger and the generation of the backdoor data.

[0010] Preferably, speaker features are extracted by a contrastive feature extraction method, using a ternary contrastive loss function:

[0011]

[0012] Among them, the characteristics of speaker A are Based on other features of speaker A's utterance is a positive sample; the features in the speech of another speaker J is a negative sample. D is the threshold of the distance between positive and negative samples. When the distance is less than D, the loss function L c A penalty is imposed to force the model to bring positive samples closer together and negative samples further apart, ensuring that the model has sufficient discrimination ability.

[0013] Preferably, the trigger is injected into the original audio by a time series injection method, and the final speech sequence H(t) is:

[0014]

[0015] Among them, the trigger is divided into K parts, G i (t) is the trigger of the i-th stage, S i (t) is the i-th speech segment. It represents the connection operation of the sequence.

[0016] Preferably, during the backdoor attack initiation process, the specific process of obtaining backdoor data by comparing feature extraction and time series injection methods is as follows:

[0017] Step 1: After the attacker extracts the feature v of each utterance s in the training set, taking speakers A and J as an example, for the feature Taking the features in speaker A's utterance as As a positive sample, take the features in the speech of another speaker J As negative samples. We adopt a three-way contrast loss function to reduce the distance between positive samples and maximize the distance between positive and negative samples;

[0018] Step 2: Cluster the extracted features of speakers A, B, and generate triggers G required to create backdoor data by category. A ,G B ,;

[0019] Step 3: For a pair of original samples S(t) and their corresponding triggers G(t), where t represents time, the trigger is divided into K parts and injected into the original sample in time sequence. That is, several segments of the time series are connected end to end to form the final backdoor data sequence H(t);

[0020] Step 4: Use the generated backdoor time series to launch a backdoor attack.

[0021] Audio data features have high-dimensional complexity and massive information volume. This invention makes full use of fine-grained features such as pitch, speech rate and quality to generate backdoor datasets. And through a difficult-to-detect trigger injection technology, specific behaviors of the system are activated without attracting the user's attention.

[0022] The beneficial effect brought by the present invention is that the purpose of the present invention is to demonstrate and verify the possible vulnerabilities of the federated learning automatic voiceprint verification system when facing complex backdoor attacks, and to study and develop more effective defense mechanisms by simulating backdoor attacks to enhance the resistance of the voiceprint verification system to such potential threats. The problem to be solved is to design a backdoor attack method that is difficult to detect in the backdoor attack based on the federated learning automatic voiceprint verification architecture, so that the attack can be successfully activated and executed without being detected by the system.

[0023] The performance and indicators to be achieved by the present invention are:

[0024] Effectiveness: Pursue a high attack success rate and ensure that the backdoor trigger can effectively bypass the voiceprint verification system when activated;

[0025] Concealment: Improve the concealment of triggers, making them difficult to identify in daily operations and difficult to detect in automatic audits or security monitoring;

[0026] Robustness, ensuring that the backdoor trigger has high robustness and remains effective even when the voiceprint data conditions change.

[0027] The backdoor attack method of the automatic voiceprint verification architecture based on federated learning in the present invention is mainly used for security testing and evaluation to ensure that the voiceprint system can identify and repair potential vulnerabilities before development; defense mechanism design to improve the system's anti-attack capabilities; legal and compliance testing to ensure that the system meets industry security standards; and academic research to promote the development of security technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is a schematic diagram of the research method architecture of the backdoor attack method based on the federated learning automatic voiceprint verification architecture;

[0029] Figure 2 This is a flow chart of the backdoor attack method based on the federated learning automatic voiceprint verification architecture described in the present invention. DETAILED DESCRIPTION

[0030] Specific implementation method 1: See Figure 2 This embodiment describes a backdoor attack method based on a federated learning automatic voiceprint verification architecture, which includes the following process:

[0031] First, the attacker extracts the features of each utterance in the training set, and clusters the utterances of the same speaker using a ternary contrastive loss function by contrastive feature extraction method, thereby obtaining the feature representation of each speaker;

[0032] Then, the speakers are clustered and the triggers needed to create backdoor data are generated by class;

[0033] Finally, the trigger is injected into the original audio through time series injection to generate backdoor data. The attacker uses this backdoor data to launch a covert and effective backdoor attack on the federated learning automatic voiceprint verification framework.

[0034] Specific implementation method 2: See Figure 2 To illustrate this embodiment, the difference between this embodiment and the backdoor attack method based on the federated learning automatic voiceprint verification architecture described in the specific embodiment 1 is that during the process of initiating the backdoor attack, the method of comparative feature extraction and time series injection is used to achieve the acquisition of backdoor triggers and the generation of backdoor data.

[0035] Specific implementation method three: see Figure 2 This embodiment is described. The difference between this embodiment and the backdoor attack method based on the federated learning automatic voiceprint verification architecture described in the specific embodiment 1 is that the speaker features are extracted by the contrast feature extraction method, and the ternary contrast loss function is used:

[0036]

[0037] Among them, the characteristics of speaker A are Based on other features of speaker A's utterance is a positive sample; the features in the speech of another speaker J is a negative sample. D is the threshold of the distance between positive and negative samples. When the distance is less than D, the loss function L c A penalty is imposed to force the model to bring positive samples closer together and negative samples further apart, ensuring that the model has sufficient discrimination ability.

[0038] Specific implementation method four: see Figure 2 This embodiment is described. The difference between this embodiment and the backdoor attack method based on the federated learning automatic voiceprint verification architecture described in the specific embodiment 1 is that the trigger is injected into the original audio through the time series injection method, and the final voice sequence H(t) is:

[0039]

[0040] Among them, the trigger is divided into K parts, G i (t) is the trigger of the i-th stage, S i(t) is the i-th speech segment. It represents the connection operation of the sequence.

[0041] Specific implementation method five: see Figure 2 This embodiment is described. The difference between this embodiment and the backdoor attack method based on the federated learning automatic voiceprint verification architecture described in the specific embodiment 1 is that during the backdoor attack initiation process, the specific process of obtaining backdoor data by comparing feature extraction and time series injection methods is as follows:

[0042] Step 1: After the attacker extracts the feature v of each utterance s in the training set, taking speakers A and J as an example, for the feature Taking the features in speaker A's utterance as As a positive sample, take the features in the speech of another speaker J As negative samples. We adopt a three-way contrast loss function to reduce the distance between positive samples and maximize the distance between positive and negative samples;

[0043] Step 2: Cluster the extracted features of speakers A, B, and generate triggers G required to create backdoor data by category. A ,G B ,;

[0044] Step 3: For a pair of original samples S(t) and their corresponding triggers G(t), where t represents time, the trigger is divided into K injection segments and injected into the original sample in time sequence. That is, several segmented time series are connected end to end to form the final backdoor data sequence H(t);

[0045] Step 4: Use the generated backdoor time series to launch a backdoor attack.

[0046] This paper analyzes the effectiveness and concealment of the proposed backdoor attack method of the automatic voiceprint verification architecture based on federated learning through experiments on the TIMIT dataset. The backdoor attack using contrast feature extraction and time series injection methods is analyzed through experiments.

[0047] Specific applications:

[0048] 1. Experimental Setup

[0049] The experiment uses Python language, and the experimental environment is configured on a machine equipped with a 3.60GHz i9-9900K CPU, NVIDIAGeForce RTX 2080Ti GPU, and 32GB RAM.

[0050] The experimental data is the TIMIT dataset, which is widely used in fields such as automatic voiceprint verification and automatic speech recognition. It consists of 6,300 sentences spoken by 630 people from eight major dialect areas in the United States, and each person speaks 10 sentences.

[0051] In order to simulate the real-world federated learning scenario, we set up five clients and one server. Each client is assigned data from a dialect region, where the South Midwest dialect region includes Oklahoma, Texas, Tennessee, and Kentucky; the North Midwest dialect region covers the area extending from northeastern Nebraska to Ohio; the Southern dialect region covers a wide range of southern areas in the United States, such as Georgia, Alabama, and Mississippi; the Western dialect region is mainly a vast area in the western United States, such as California, Nevada, and Washington; the Northern dialect region mainly includes New York, New Jersey, and northern Pennsylvania. See Table 1 below for the data distribution of each client.

[0052] Table 1: Data distribution of each client

[0053]

[0054] In order to verify the effectiveness and concealment of the backdoor attack method based on the federated learning automatic voiceprint verification architecture, this paper focuses on the experimental results: in the environment settings with different injection rates, the attack success rate (ASR) and equal error rate (EER) are observed with and without the application of contrast feature extraction or time series injection. Among them, the attack success rate refers to the proportion of attackers who successfully deceive the model or bypass the security mechanism. The higher the ASR, the greater the proportion of effective attacks; the equal error rate refers to the error rate when the false acceptance rate and the false rejection rate are equal in the security model. It is an indicator of the accuracy of the model. The lower the EER, the better the overall performance of the model.

[0055] 2. Experimental results and analysis

[0056] Comparing the impact of feature extraction and time series injection methods

[0057] The proportion of attackers in the FL environment is set to 20% in each round (that is, 1 out of 5 clients is an attacker). The changes in the attack success rate ASR and the equal error rate EER are observed when the trigger injection rate is 10%, 30% and 70% and the number of injection segments K is 3.

[0058] The attack performance under different injection rates is an important indicator of the experiment. From Table 2, we can see that in terms of attack effect, the backdoor attack method based on the federated learning automatic voiceprint verification architecture is significantly better than the initial method (a common practice in this field). It is worth noting that the average attack success rate ASR increased by 7.03% on average under different injection rates; the equal error rate EER also decreased significantly. As the injection rate increases, the EER and ASR also increase accordingly. Because a higher injection rate introduces more backdoor data sets during training, better attack effects are achieved without affecting the model performance too much.

[0059] The contrast feature extraction method can significantly enhance the model's feature extraction capabilities and the effectiveness of the attack. Compared with the initial method, the ASR increased by 7.83%. The time series injection method can effectively hide the trigger, thereby improving the model's ability to predict regular data. This is reflected in the fact that its achieved EER is 2.60% lower than the initial method.

[0060] Table 2: Comparison of the impact of feature extraction and time series injection methods

[0061]

[0062] The impact of the number of segments in the time series injection method

[0063] The impact of different trigger segments on the backdoor attack method based on the federated learning automatic voiceprint verification architecture is discussed. Specifically, the attack performance is explored by injecting the equal error rate (EER) and attack success rate (ASR) under the number of segments K∈{1,2,3,4,5}. The experiment is conducted at an injection rate of 0.3, and all other settings remain the same.

[0064] As the number of injected segments K increases, the method achieves a significant reduction in EER. The more segments a trigger is split into, the more subtle it becomes in the utterance. When K differs by 4, the EER is reduced by 2.90%. As K increases, the ASR is briefly flat and then decreases. As the trigger is split into shorter and shorter segments, it becomes increasingly difficult for the model to learn trigger features. The ASR gradually decreases from 83.30% to 60.80%.

[0065]

[0066]

[0067] The above experimental content and conclusions are based on the average results of 10 experiments to offset the influence of randomness. Therefore, the conclusions of this experiment are representative.

[0068] The process of the backdoor attack method based on the federated learning automatic voiceprint verification architecture described in the present invention is not limited to the specific steps recorded in the above-mentioned implementation modes, but can also be a reasonable combination of the technical features recorded in the above-mentioned implementation modes.

Claims

1. The backdoor attack method based on the federated learning automatic voiceprint verification architecture is characterized by: The method includes the following steps: First, the attacker extracts the features of each utterance in the training set, and clusters the utterances of the same speaker using a ternary contrastive loss function by contrastive feature extraction method, thereby obtaining the feature representation of each speaker; Then, the speakers are clustered and the triggers needed to create backdoor data are generated by class; Finally, the trigger is injected into the original audio through time series injection to generate backdoor data. The attacker uses this backdoor data to launch a covert and effective backdoor attack on the federated learning automatic voiceprint verification framework.

2. According to claim 1, the backdoor attack method based on the federated learning automatic voiceprint verification architecture is characterized in that: During the backdoor attack, the contrast feature extraction and time series injection methods are used to obtain the backdoor trigger and generate the backdoor data.

3. The backdoor attack method based on the federated learning automatic voiceprint verification architecture according to claim 1 is characterized in that: Speaker features are extracted through contrastive feature extraction method, using ternary contrastive loss function: Among them, the characteristics of speaker A are Based on other features of speaker A's utterance is a positive sample; the features in the speech of another speaker J is a negative sample. D is the threshold of the distance between positive and negative samples. When the distance is less than D, the loss function L c A penalty is imposed to force the model to bring positive samples closer together and negative samples further apart, ensuring that the model has sufficient discrimination ability.

4. The backdoor attack method based on the federated learning automatic voiceprint verification architecture according to claim 1 is characterized in that: The trigger is injected into the original audio through the time series injection method, and the final speech sequence H(t) is: Among them, the trigger is divided into K parts, G i (t) is the trigger of the i-th stage, S i (t) is the i-th speech segment. It represents the connection operation of the sequence.

5. The backdoor attack method based on the federated learning automatic voiceprint verification architecture according to claim 1 is characterized in that: In the process of launching a backdoor attack, the specific process of obtaining backdoor data by comparing feature extraction and time series injection methods is as follows: Step 1: After extracting the feature v of each utterance s in the training set, the attacker takes speakers A and J as examples and performs Taking the features in speaker A's utterance as As a positive sample, take the features in the speech of another speaker J As negative samples. We adopt a three-way contrast loss function to reduce the distance between positive samples and maximize the distance between positive and negative samples; Step 2: Cluster the extracted features of speakers A, B, and generate triggers G required to create backdoor data by category. A ,G B ,; Step 3: For a pair of original samples S(t) and their corresponding triggers G(t), where t represents time, the trigger is divided into K parts and injected into the original sample in time series, that is, several segments of the time series are connected end to end to form the final backdoor data sequence H(t); Step 4: Use the generated backdoor time series to launch a backdoor attack.