A voice attack and defense game self-feedback method and device based on continuous reinforcement learning
By introducing the automatic feedback mechanism of continuous reinforcement learning into the voice attack and defense model, the problems of low training efficiency and low accuracy in the existing technology are solved, the voice attack and defense tasks are efficiently completed, and it is suitable for complex attack and defense scenarios.
Patent Information
- Application Number
- CN202410788551.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The training of existing voice attack and defense models relies on manual feedback, resulting in low training efficiency and low accuracy, making it difficult to meet efficient attack and defense tasks in complex attack and defense scenarios.
The self-feedback method of speech attack and defense game based on continuous reinforcement learning is adopted. Through the automatic feedback adjustment mechanism between the adversarial sample generation sub-model and the speech identification sub-model, the adversarial sample generation strategy is used to generate speech samples, and the identification results are different from the real labels. Incremental training is performed to improve the intelligence and task efficiency of the model.
It realizes the automated training process of voice attack and defense models, improves the intelligence of training and the efficiency and accuracy of task completion, and adapts to the needs of complex attack and defense scenarios.
Smart Images

Figure CN118366479B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a voice attack and defense game self-feedback method and device based on continuous reinforcement learning. Background Art
[0002] Voice attack and defense mainly includes two parts: generating voice and identifying generated voice. The purpose of generating voice is to make the generated voice of the target object have a high degree of similarity with the real voice of the target object. The purpose of identifying generated voice is to accurately identify the generated voice signal.
[0003] In the process of realizing the inventive concept of the present invention, the inventors found that the following problems generally exist in the related art: In the related art, speech is generally generated by the model of the generator in the speech attack and defense model, and the generated speech is identified by the model of the discriminator in the speech attack and defense model. The feedback mechanism between the generator model and the discriminator model generally relies on manual work, and the discriminator model mainly relies on manual provision of new data sets to achieve model optimization and update. In this way, the training method that relies on manual work not only reduces the training efficiency but also reduces the accuracy of the training. This not only leads to a low degree of intelligence in the training of the speech attack and defense model, but also reduces the efficiency and accuracy of the speech attack and defense model in completing speech attack and defense tasks, making it difficult to meet the efficient attack and defense tasks in complex attack and defense scenarios. Summary of the invention
[0004] In view of the above problems, the present invention provides a voice attack and defense game self-feedback method, device and equipment based on continuous reinforcement learning to improve the intelligence level of training and improve the completion efficiency and accuracy of voice attack and defense tasks.
[0005] An embodiment of the present invention provides a self-feedback method for speech attack and defense game based on continuous reinforcement learning, the method comprising: inputting sample data obtained from a data set into an adversarial sample generation sub-model of a speech attack and defense model, processing the sample data using the adversarial sample generation strategy in the adversarial sample generation sub-model to generate a speech sample; when the speech sample passes the quality assessment, inputting the speech sample into a speech identification sub-model of the speech attack and defense model, outputting an identification result of the speech sample; comparing the identification result with the true label of the speech sample to obtain a comparison result, wherein the comparison result is used to feedback and adjust the adversarial sample generation strategy; when the comparison result indicates that the identification result is different from the true label of the speech sample, storing the speech sample in an incremental sample set, and performing incremental training on the speech identification sub-model based on the incremental sample set using the continuous learning sub-model of the speech attack and defense model.
[0006] According to an embodiment of the present invention, the above-mentioned sample data is processed by the adversarial sample generation strategy in the above-mentioned adversarial sample generation sub-model to generate a speech sample, including, when the above-mentioned speech sample is generated in the first round, inputting the above-mentioned sample data into the above-mentioned speech identification sub-model and outputting an initial identification result; processing the above-mentioned sample data by using the first target adversarial sample generation strategy determined from the above-mentioned adversarial sample generation strategy according to the above-mentioned initial identification result to generate the above-mentioned speech sample; when the above-mentioned speech sample is not generated in the first round, generating the above-mentioned speech sample according to the historical speech sample generated in the previous round.
[0007] According to an embodiment of the present invention, the above-mentioned voice sample is generated based on the historical voice sample generated in the previous round, including: obtaining the comparison result associated with the above-mentioned historical voice sample; determining the adversarial sample generation strategy fed back by the comparison result associated with the above-mentioned historical voice sample; and using the above-mentioned fed back adversarial sample generation strategy to perform superposition processing on the above-mentioned historical voice sample to obtain the above-mentioned voice sample.
[0008] According to an embodiment of the present invention, the above-mentioned adversarial sample generation strategy is configured with an adversarial level; the above-mentioned comparison result is used to feedback and adjust the above-mentioned adversarial sample generation strategy, including: when the above-mentioned comparison result characterizes that the above-mentioned identification result is the same as the true label of the above-mentioned speech sample, calling the second target adversarial sample generation strategy to generate the next round of speech samples, wherein the adversarial level of the above-mentioned second target adversarial sample generation strategy is higher than the adversarial level of the current round of adversarial sample generation strategy; when the above-mentioned comparison result characterizes that the above-mentioned identification result is different from the true label of the above-mentioned speech sample, calling the third target adversarial sample generation strategy to generate the next round of speech samples, wherein the adversarial level of the above-mentioned third target adversarial sample generation strategy is lower than or equal to the adversarial level of the current round of adversarial sample generation strategy.
[0009] According to an embodiment of the present invention, the method further includes: generating state space information of the adversarial sample generation sub-model based on the true label of the speech sample and the identification result; generating a positive evaluation value of the adversarial sample generation sub-model when the state space information represents that the true label of the speech sample is different from the identification result; generating a negative evaluation value of the adversarial sample generation sub-model when the state space information represents that the true label of the speech sample is the same as the identification result.
[0010] According to an embodiment of the present invention, when the above-mentioned voice sample passes the quality assessment, it includes: evaluating the above-mentioned voice sample using the quality assessment sub-model in the above-mentioned voice attack and defense model to obtain an evaluation value; when the above-mentioned evaluation value is within a predetermined evaluation value range, confirming that the above-mentioned voice sample has passed the quality assessment.
[0011] According to an embodiment of the present invention, the above-mentioned voice sample is evaluated by using the quality assessment sub-model in the above-mentioned voice attack and defense model to obtain an evaluation value, including: using the above-mentioned quality assessment sub-model to generate sub-evaluation values of the above-mentioned voice sample in n dimensions from n dimensions; generating the above-mentioned evaluation value according to the sub-evaluation values of the above-mentioned n dimensions and the weight data of the above-mentioned n dimensions.
[0012] According to an embodiment of the present invention, the adversarial sample generation strategy includes at least one of the following: adding reverberation to the sample data, adding noise to the sample data, and adjusting the speech speed of the sample data.
[0013] Another aspect of the present invention provides a speech attack and defense game self-feedback device based on continuous reinforcement learning, the device comprising: a first input module, used to input sample data obtained from a data set into an adversarial sample generation sub-model of a speech attack and defense model, and process the sample data using the adversarial sample generation strategy in the adversarial sample generation sub-model to generate a speech sample; a second input module, used to input the speech sample into a speech identification sub-model of the speech attack and defense model when the speech sample passes the quality assessment, and output an identification result of the speech sample; a comparison module, used to compare the identification result with the real label of the speech sample to obtain a comparison result, wherein the comparison result is used to feedback and adjust the adversarial sample generation strategy; a training module, used to store the speech sample in the continuous learning sub-model of the speech attack and defense model when the comparison result indicates that the identification result is different from the real label of the speech sample, so as to perform incremental training on the speech identification sub-model based on the speech sample using the continuous learning sub-model.
[0014] Another aspect of the present invention provides an electronic device, comprising: one or more processors; a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0015] According to the speech attack and defense game self-feedback method, device and equipment based on continuous reinforcement learning provided by the embodiment of the present invention, the sample data obtained from the data set is input into the adversarial sample generation sub-model of the speech attack and defense model, and the adversarial sample generation strategy is used to generate speech samples; when the speech sample passes the quality assessment, the speech sample is input into the speech identification sub-model, and the identification result is output; the adversarial sample generation strategy is adjusted according to the identification result and the real label feedback of the speech sample, and when the identification result is different from the real label, the speech sample is stored in the incremental sample set, and the speech identification sub-model is incrementally trained based on the incremental sample set using the continuous sub-model. Since in the self-feedback process of the speech attack and defense game, the adversarial sample generation strategy can be automatically adjusted according to the identification result and the real label, and the incremental sample set can be automatically stored, and the speech identification sub-model can be incrementally trained to realize the automatic feedback adjustment mechanism between the adversarial sample generation sub-model and the speech identification sub-model, the problem of low training efficiency and low accuracy caused by the training process relying on manual labor in the related art is at least partially overcome, thereby achieving the improvement of the degree of training intelligence, and improving the completion efficiency and accuracy of speech attack and defense tasks, so as to further meet complex attack and defense scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0017] Figure 1 The following is an architecture diagram of a generative adversarial network in the related art;
[0018] Figure 2 An application scenario diagram of a voice attack and defense game self-feedback method and device based on continuous reinforcement learning according to an embodiment of the present invention is shown;
[0019] FIG3 shows a flow chart of a method for self-feedback in speech attack and defense game based on continuous reinforcement learning according to an embodiment of the present invention;
[0020] Figure 4 The following is an architecture diagram of a voice attack and defense game self-feedback method based on continuous reinforcement learning according to an embodiment of the present invention;
[0021] Figure 5 A structural block diagram of a voice attack and defense game self-feedback device based on continuous reinforcement learning according to an embodiment of the present invention is shown;
[0022] Figure 6 A block diagram of an electronic device suitable for implementing voice attack and defense game self-feedback based on continuous reinforcement learning according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0023] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0024] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0025] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0026] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0027] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0028] With the development of artificial intelligence technology, speech attack and defense has become an emerging research field that has developed rapidly in recent years, aiming to focus on the security vulnerabilities of speech recognition systems. Speech attack and defense mainly involve two aspects: speech generation and generated speech identification. Among them, speech generation, as the generator, can be divided into two aspects: deceiving human listeners and deceiving machines. From the perspective of deceiving machines, the technology of generated speech focuses on the targeted and accurate generation of essential features of speech. From the perspective of deceiving human listeners, the technology of generated speech must first ensure that the generated style, timbre, rhythm and other information are highly similar to the target speaker. In addition, from the perspective of speech simulation, directly converting and modifying speech at the speech waveform level is also an important channel to achieve speech generation. As the identification side, the purpose of generated speech identification is to accurately identify the audio signal of generated speech. Common generated speech identification technologies mainly rely on audio feature analysis and neural network fusion. Faced with complex environments with complex changes and high dynamics, the generation behavior is highly dynamic and uncertain, so the generated identification system is required to have strong self-learning ability. However, the existing research on identification sub-models mainly relies on artificially providing new data sets to optimize and update the model, lacking model optimization mechanisms and decision-making capabilities based on autonomous confrontation between the attacker and the defender.
[0029] Figure 1 The figure shows the architecture diagram of the generative adversarial network in the related art.
[0030] Although GAN (Generative Adversarial Networks) in related technologies is an attack and defense model, the architecture of this model can be Figure 1 As shown in Figure 1. The model consists of two main parts: one is the generator and the other is the discriminator. The generator is responsible for training and learning the probability distribution of real data in the training set, with the goal of converting randomly generated noise into usable speech signals; the discriminator is responsible for distinguishing the speech signals generated by the generator. The model adopts a mechanism of collaborative optimization of the generator and the discriminator, and continuously enhances their respective capabilities in a game mode until an equilibrium state is reached, so that the generator can better learn the real signal to generate more realistic speech sequences without prior knowledge and prior distribution, and the discriminator can more accurately identify the authenticity. However, the generator of this method is usually a certain generation model. For the discriminator, the source of generated data is too single, and it cannot well simulate the generation attack means in a real complex environment. Moreover, the discriminator trained under this framework does not have the recognition ability in an open environment, has low generalization ability, and is difficult to cope with the generation attack in a real complex environment. In addition, the traditional method lacks an autonomous interactive training mechanism for the generation model and the identification model, and can only improve the model capabilities through human intervention.
[0031] In view of this, the embodiments of the present invention provide a method, device and equipment for self-feedback of speech attack and defense game based on continuous reinforcement learning, which is used to improve the efficiency and accuracy of speech attack and defense models in completing speech attack and defense tasks, and further meet complex attack and defense scenarios. Specifically, the method includes: inputting sample data obtained from a data set into an adversarial sample generation submodel of a speech attack and defense model, processing the sample data using an adversarial sample generation strategy in the adversarial sample generation submodel, and generating a speech sample; when the speech sample passes the quality assessment, inputting the speech sample into a speech identification submodel of the speech attack and defense model, and outputting the identification result of the speech sample; comparing the identification result with the true label of the speech sample to obtain a comparison result, wherein the comparison result is used to feedback and adjust the adversarial sample generation strategy; when the comparison result indicates that the identification result is different from the true label of the speech sample, storing the speech sample in an incremental sample set, and using the continuous learning submodel of the speech attack and defense model to perform incremental training on the speech identification submodel based on the incremental sample set.
[0032] Figure 2 An application scenario diagram of a voice attack and defense game self-feedback method and device based on continuous reinforcement learning according to an embodiment of the present invention is shown.
[0033] like Figure 2 As shown, the application scenario 200 according to this embodiment may include a first terminal device 201, a second terminal device 202, a third terminal device 203, a network 204, and a server 205. The network 204 is used to provide a medium for a communication link between the first terminal device 201, the second terminal device 202, the third terminal device 203, and the server 205. The network 204 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0034] The user can use the first terminal device 201, the second terminal device 202, and the third terminal device 203 to interact with the server 205 through the network 204 to receive or send messages, such as publishing a training task for a voice attack and defense model. The server 205 can also automatically trigger the training of the voice attack and defense model according to a scheduled task, or receive the training results of the voice attack and defense model, etc. (only for example). Various communication client applications can be installed on the first terminal device 201, the second terminal device 202, and the third terminal device 203, such as model training applications, voice generation applications, voice identification applications, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0035] The first terminal device 201, the second terminal device 202, and the third terminal device 203 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0036] The server 205 may be a server that provides various services, such as a background management server (only as an example) that provides support for the model training tasks issued by the user using the first terminal device 201, the second terminal device 202, and the third terminal device 203. The background management server may analyze and process the received task data, and feed back the processing results (such as the model training results, web pages, information, or data obtained or generated according to the training tasks) to the terminal device.
[0037] It should be noted that the voice attack and defense game self-feedback method based on continuous reinforcement learning provided in the embodiment of the present invention can generally be executed by the server 205. Accordingly, the voice attack and defense game self-feedback device based on continuous reinforcement learning provided in the embodiment of the present invention can generally be set in the server 205. The voice attack and defense game self-feedback method based on continuous reinforcement learning provided in the embodiment of the present invention can also be executed by a server or server cluster that is different from the server 205 and can communicate with the first terminal device 201, the second terminal device 202, the third terminal device 203 and / or the server 205. Correspondingly, the voice attack and defense game self-feedback device based on continuous reinforcement learning provided in the embodiment of the present invention can also be set in a server or server cluster that is different from the server 205 and can communicate with the first terminal device 201, the second terminal device 202, the third terminal device 203 and / or the server 205.
[0038] It should be understood that Figure 2 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0039] The following will be based on Figure 2 The scene described by Figure 3~Figure 4 The voice attack and defense game self-feedback method based on continuous reinforcement learning in an embodiment of the present invention is described in detail.
[0040] Figure 3 A flow chart of a voice attack and defense game self-feedback method based on continuous reinforcement learning according to an embodiment of the present invention is shown.
[0041] like Figure 3 As shown, the voice attack and defense game self-feedback method based on continuous reinforcement learning in this embodiment may include operations S310 to S340.
[0042] In operation S310, sample data obtained from the data set is input into the adversarial sample generation sub-model of the speech attack and defense model, and the sample data is processed using the adversarial sample generation strategy in the adversarial sample generation sub-model to generate a speech sample.
[0043] In operation S320, when the speech sample passes the quality evaluation, the speech sample is input into the speech identification sub-model of the speech attack and defense model, and an identification result of the speech sample is output.
[0044] In operation S330, the identification result is compared with the real label of the speech sample to obtain a comparison result, wherein the comparison result is used for feedback to adjust the adversarial sample generation strategy.
[0045] In operation S340, when the comparison result indicates that the identification result is different from the true label of the speech sample, the speech sample is stored in an incremental sample set, and the speech identification sub-model is incrementally trained based on the incremental sample set using the continuous learning sub-model of the speech attack and defense model.
[0046] Optionally, the dataset can be used to store generated audios generated by common audio generation models. For example, generated audios by models such as Tactoran 2, Deep Voice 3, and FastSpeech 2. Tactoran 2 uses an improved WaveNet vocoder to create Mel spectrograms, Deep Voice 3 based on the attention mechanism uses an autoregressive decoder to generate Mel spectrograms, and introduces a non-autoregressive post-processing conversion network to improve the speed of speech synthesis. FastSpeech 2 further improves the voice quality and generation speed. These generated audios together constitute the dataset. The sample data obtained from the dataset can be these generated audios.
[0047] Optionally, the speech attack and defense model of the embodiment of the present invention may include an adversarial sample generation sub-model, a speech identification sub-model, and a continuous learning sub-model. The adversarial sample generation sub-model is used as a generator to generate speech samples, and the speech identification sub-model is used as an identification to identify the speech samples generated by the generator. The continuous learning sub-model is used to perform incremental learning on the speech identification sub-model.
[0048] Optionally, the adversarial sample generation strategy described above can be used to generate adversarial speech samples. The adversarial sample generation strategy can include at least one of the following: adding reverberation to sample data, adding noise to sample data, adjusting the speech speed of sample data, etc.
[0049] Optionally, in order to ensure the adversarial quality of the speech samples, the speech samples can be quality evaluated. Speech samples that pass the quality evaluation can be input into the speech identification sub-model for speech identification; speech samples that fail the quality evaluation can be regenerated through the adversarial sample generation sub-model until the generated speech samples pass the quality evaluation.
[0050] Optionally, the identification result obtained by the speech identification sub-model through identifying the speech sample may include real speech or generated speech; it may also be the probability value of real speech or the probability value of generated speech; it may also be the real proportion of real speech included in a speech sample (real proportion, for example, the ratio between the duration or number of frames of the real speech in the speech sample and the total duration or number of frames of the speech sample) and the generated proportion of generated speech (generated proportion, for example, the ratio between the duration or number of frames of the generated speech in the speech sample and the total duration or number of frames of the speech sample), which can be adaptively adjusted according to actual needs.
[0051] Optionally, the comparison result obtained by comparing the identification result and the real label of the speech sample can not only be used for feedback adjustment of the adversarial sample generation strategy, but also for incremental training of the speech identification submodel. In one embodiment, it is known that the real label of the speech sample generated by the adversarial sample generation submodel of the generator using the adversarial sample generation strategy with an adversarial level of 1 is generated speech. If the speech identification submodel of the identification party obtains the identification result that the speech is generated speech after recognizing the speech sample, that is, the identification result is the same as the real label, in this case, a negative evaluation value can be assigned to the adversarial sample generation submodel, and an adversarial sample generation strategy with an adversarial level of 2 higher than adversarial level 1 is selected according to the recognition result to regenerate the speech sample. If the speech identification submodel of the identification party obtains the recognition result that the speech is real speech after recognizing the speech sample, that is, the identification result is different from the real label, in this case, a positive evaluation value can be assigned to the adversarial sample generation submodel, and the speech sample is stored in the incremental sample set, so that the continuous learning submodel uses the incremental sample set to implement incremental training for the speech identification submodel, thereby improving the recognition ability and generalization ability of the speech identification submodel. In this way, the speech attack and defense model of the embodiment of the present invention can realize an automated feedback adjustment mechanism, thereby facilitating improving the completion efficiency and accuracy of the speech attack and defense tasks.
[0052] According to the speech attack and defense game self-feedback method, device and equipment based on continuous reinforcement learning provided by the embodiment of the present invention, the sample data obtained from the data set is input into the adversarial sample generation sub-model of the speech attack and defense model, and the adversarial sample generation strategy is used to generate speech samples; when the speech sample passes the quality assessment, the speech sample is input into the speech identification sub-model, and the identification result is output; the adversarial sample generation strategy is adjusted according to the identification result and the real label feedback of the speech sample, and when the identification result is different from the real label, the speech sample is stored in the incremental sample set, and the speech identification sub-model is incrementally trained based on the incremental sample set using the continuous sub-model. Since in the self-feedback process of the speech attack and defense game, the adversarial sample generation strategy can be automatically adjusted according to the identification result and the real label, and the incremental sample set can be automatically stored, and the speech identification sub-model can be incrementally trained to realize the automatic feedback adjustment mechanism between the adversarial sample generation sub-model and the speech identification sub-model, the problem of low training efficiency and low accuracy caused by the training process relying on manual labor in the related art is at least partially overcome, thereby achieving the improvement of the degree of training intelligence, and improving the completion efficiency and accuracy of speech attack and defense tasks, so as to further meet complex attack and defense scenarios.
[0053] Figure 4 The following is an architecture diagram of a voice attack and defense game self-feedback method based on continuous reinforcement learning according to an embodiment of the present invention.
[0054] like Figure 4 As shown, the architecture may include a data set 401, an adversarial sample generation submodel 402, a quality assessment submodel 403, a speech sample 404, a speech identification submodel 405, an identification result 406, and a continuous learning submodel 407; wherein, the data set 401, the adversarial sample generation submodel 402, the quality assessment submodel 403, the speech sample 404, and the identification result 406 may constitute a sub-architecture of the generator.
[0055] The data set 401 may store generated audio generated by various common generated audio generation models. The adversarial sample generation sub-model 402 may collect sample data from the data set 401, and process the sample data using the adversarial sample generation sub-strategy to obtain a speech sample. The speech sample generated by the adversarial sample generation sub-model 402 may be input into the quality evaluation sub-model 403. If the quality evaluation is passed, the speech sample may be input into the speech identification sub-model 405 to obtain an identification result 406. According to the identification result 406, the adversarial sample generation strategy of the adversarial sample generation sub-model 402 may be feedback-adjusted, or the speech identification sub-model 405 may be incrementally trained using the continuous learning sub-model 407.
[0056] Optionally, the process of processing sample data using the adversarial sample generation strategy in the adversarial sample generation sub-model to generate speech samples may include the following operations: in the case of generating speech samples in the first round, inputting the sample data into the speech identification sub-model and outputting an initial identification result; processing the sample data using the first target adversarial sample generation strategy determined from the adversarial sample generation strategy based on the initial identification result to generate speech samples; in the case of not generating speech samples in the first round, generating speech samples based on historical speech samples generated in the previous round.
[0057] Optionally, in the case of the first round of generated speech samples, the sample data can be input into the speech identification sub-model before the first round of speech samples are generated, and the initial identification result can be output; the sample data is processed using the first target adversarial sample generation strategy determined from the adversarial sample generation strategy according to the initial identification result to generate the first round of speech samples. In one embodiment, the sample data comes from the data set described above, and the sample data can be the generated audio in the data set, that is, the true label of the sample data is the generated speech. If the initial identification result is also real speech, the sample data can be stored in the incremental training set for incremental training of the speech identification sub-model, and the first target adversarial sample generation strategy can be the adversarial sample generation strategy with the lowest adversarial level among all adversarial sample generation strategies of the adversarial sample generation sub-model. Alternatively, in the case of an error in the identification of the speech identification sub-model, the adversarial sample generation strategy can also be not used until the speech identification sub-model identifies correctly. If the initial identification result is generated speech, the first target adversarial sample generation strategy can be the adversarial sample generation strategy with the lowest adversarial level or higher than the lowest adversarial level among all adversarial sample generation strategies of the adversarial sample generation sub-model, and can be adaptively adjusted according to actual needs.
[0058] Optionally, the adversarial sample generation strategy may be configured with an adversarial level to describe the complexity of the adversarial sample generation strategy. The complexity of the adversarial sample and the complexity of the speech sample generated using the adversarial sample generation strategy or the degree to which it is difficult to identify the generation may be proportional, so the adversarial level may also be used to describe the complexity of the speech sample or the degree to which it is difficult to identify the generation.
[0059] In one embodiment, the adversarial sample generation strategy described above may include increasing reverberation, increasing noise, and adjusting speech speed, etc. In terms of the adversarial level, the strategy corresponding to the lowest adversarial level may be to use only one adversarial sample generation strategy (the adversarial sample generation strategy of the lowest adversarial level may be randomly selected); the strategy corresponding to the intermediate adversarial level higher than the lowest adversarial level may be to use any two adversarial sample generation strategies at random; the strategy corresponding to the highest adversarial level higher than the intermediate adversarial level may be to use three adversarial sample generation strategies.
[0060] In another embodiment, for each adversarial sample generation strategy, multiple adversarial levels can be further subdivided. For example, the adversarial sample generation strategy for increasing reverberation can include increasing reverberation by 1%, increasing reverberation by 5%, increasing reverberation by 10%, and increasing reverberation by k% (k% can be used to represent the ratio of the increased number of reverberation frames to the total number of frames of the sample data or the previous round of voice samples, and the larger n is, the more the adversarial level can be gradually increased); the adversarial sample generation strategy for increasing noise can include increasing noise by 1%, increasing noise by 3%, increasing noise by 6%, and increasing noise by m% (m% can be used to represent the ratio of the increased number of noise frames to the total number of frames of the sample data or the previous round of voice samples, and the larger m is, the more the adversarial level can be gradually increased); the adversarial sample generation strategy for adjusting speech speed can include adjusting the speech speed to 0.5 times, adjusting the speech speed to 0.9 times, adjusting the speech speed to 1.2 times, and adjusting the speech speed to p times (p can be used to represent the ratio of the adjusted speech speed to the speech speed of the sample data or the previous round of voice samples, and the larger p is, the more the adversarial level can be gradually increased); In this case, the strategy corresponding to the lowest confrontation level can be any one of increasing reverberation by 1%, increasing noise by 1%, and adjusting the speech speed to 0.5 times, or can be a strategy consisting of increasing reverberation by 1%, increasing noise by 1%, and adjusting the speech speed to 0.5 times. It can be understood that the examples here are only examples, and the specific situation can be adaptively adjusted according to actual needs. n, m, and p are all numbers greater than 0 that can be adjusted according to actual needs.
[0061] Optionally, the process of adjusting the adversarial sample generation strategy according to the feedback of the comparison result can be implemented based on the adversarial level. Specifically, the process may include the following operations: when the comparison result characterizes that the identification result is the same as the true label of the speech sample, calling the second target adversarial sample generation strategy to generate the next round of speech samples, wherein the adversarial level of the second target adversarial sample generation strategy is higher than the adversarial level of the current round of adversarial sample generation strategy; when the comparison result characterizes that the identification result is different from the true label of the speech sample, calling the third target adversarial sample generation strategy to generate the next round of speech samples, wherein the adversarial level of the third target adversarial sample generation strategy is lower than or equal to the adversarial level of the current round of adversarial sample generation strategy.
[0062] Optionally, in one embodiment, if the current round of adversarial strategy adopts adding 3% noise, if the identification result is the same as the true label of the speech sample, it can be characterized that the speech identification sub-model has high identification ability, and the second target adversarial sample generation strategy with a higher adversarial level of adding 5% noise can be used to generate the next round of speech samples. If the identification result is different from the true label of the speech sample, it can be characterized that the identification ability of the speech identification sub-model is still insufficient, and the lower adversarial level of adding 1% noise can be used this time, or the third target adversarial sample generation strategy with adding 3% noise can still be used to generate the next round of speech samples; or the adversarial sample generation strategy with the same level as adding 3% noise can be used to generate the next round of speech samples, and the specific adaptive adjustment can be made according to actual needs.
[0063] Optionally, the first target adversarial sample generation strategy can have overlapping strategies with the second target adversarial sample generation strategy and the third target adversarial sample generation strategy. The main difference is that the first target adversarial sample generation strategy can be adopted in the first round of generating speech samples, while the second target adversarial sample generation strategy and the third target adversarial sample generation strategy can be adopted in the case of not generating speech samples in the first round.
[0064] Optionally, in the above description of the process of generating the first round of voice samples, for the case of generating non-first round voice samples, the historical voice samples of the previous round can be processed according to the adversarial sample generation strategy to obtain voice samples for the current round. In one embodiment, the process may include the following operations: obtaining the comparison results associated with the historical voice samples; determining the adversarial sample generation strategy fed back by the comparison results associated with the historical voice samples; and using the fed back adversarial sample generation strategy to perform superposition processing on the historical voice samples to obtain voice samples. Among them, the process of determining the adversarial sample generation strategy fed back by the comparison results associated with the historical voice samples is, for example, if the comparison result represents that the identification result is the same as the true label of the voice sample, then an adversarial sample generation strategy with a higher adversarial level can be selected; if the comparison result represents that the identification result is different from the true label of the voice sample, then an adversarial sample generation strategy with a lower adversarial level or the same level can be selected.
[0065] Optionally, the comparison results described above can be used to feedback and adjust the adversarial sample generation strategy. By obtaining the comparison results of the previous round of historical voice samples, the feedback results of the adversarial sample generation strategy after the previous round of voice attack and defense process can be obtained. In one embodiment, if the feedback result is to use 1% added noise, the voice sample used for the current round can be superimposed with 1% noise data on the basis of the previous round of historical voice samples.
[0066] Optionally, when the first target adversarial sample generation strategy is selected, the process of generating the first round of speech samples can also be achieved through a superposition process. For example, if the first target adversarial sample generation strategy is to add 5% reverberation, the first round of speech samples can be obtained by superimposing 5% reverberation data with sample data to obtain the first round of speech samples.
[0067] According to an embodiment of the present invention, the adversarial sample generation strategy is adjusted by automatically feedbacking the comparison results, and the data generated by the feedback adversarial sample generation strategy is superimposed with the sample data or historical voice samples to generate a new round of voice samples, thereby improving the generation quality of voice samples and providing ideas for generating high-quality voice samples during the training process of the voice attack and defense model.
[0068] Optionally, as described above, in order to ensure the quality of the speech sample, the speech sample may be subjected to a quality assessment, such as Figure 4 As shown, the speech sample is evaluated using the quality evaluation submodel 403. In one embodiment, the evaluation process may include the following operations: the speech sample is evaluated using the quality evaluation submodel in the speech attack and defense model to obtain an evaluation value; when the evaluation value is within a predetermined evaluation value range, confirming that the speech sample has passed the quality evaluation.
[0069] Optionally, the process of evaluating the speech sample using the quality assessment sub-model in the speech attack and defense model to obtain the evaluation value may include the following operations: using the quality assessment sub-model to generate sub-evaluation values of the speech sample in n dimensions from n dimensions; generating an evaluation value based on the sub-evaluation values of the n dimensions and the weight data of the n dimensions.
[0070] Optionally, the quality assessment submodel of the embodiment of the present invention can adopt MOSNet (mean opinion score, MOS, mean opinion score predictor). MOSNet is a speech quality evaluation method based on neural network, which can give an evaluation value of the quality of speech samples from n dimensions, such as clarity, naturalness, and whether there is noise. The evaluation value can range from 1 to 5. The larger the evaluation value, the better the quality of the speech sample can be.
[0071] Specifically, n can be 3. The quality assessment sub-model can give three evaluation values of the speech sample from three dimensions: clarity of the speech sample, naturalness of the speech sample, and whether there is noise in the speech sample. These three dimensions can also have their own weight data. The evaluation value can be obtained by adding the product of the evaluation value of each dimension and the weight data.
[0072] Optionally, the speech attack and defense game self-feedback method based on continuous reinforcement learning provided by an embodiment of the present invention may also include the following process: generating state space information of an adversarial sample generation sub-model based on the true label and identification result of the speech sample; generating a positive evaluation value of the adversarial sample generation sub-model when the state space information represents that the true label of the speech sample is different from the identification result; generating a negative evaluation value of the adversarial sample generation sub-model when the state space information represents that the true label of the speech sample is the same as the identification result.
[0073] Optionally, refer to Figure 3 , the state space information of the speech attack and defense model can be composed of two labels, namely the true label of the speech sample and the identification result of the speech identification sub-model. The state space can be expressed as S={[F, T], [F, F]}. The F in [F, T] indicates that the true label is generated, and T indicates that the identification result is true; the first F from the left in [F, F] indicates that the true label is generated, and the second F indicates that the identification result is generated.
[0074] According to the state space of each round, the evaluation value of the adversarial sample generation submodel can be generated. Specifically, the adversarial sample generation submodel aims to generate content that is less likely to be identified as generated, so when the state space is represented as [F, T], the adversarial sample generation submodel will obtain a positive evaluation value. When the state space is represented as [F, F], a negative evaluation value is obtained.
[0075] Optionally, in one embodiment, Figure 3 The objective function of the adversarial sample generation model shown can be consistent with the objective function of the reinforcement learning method in the related art. The specific objective function can be: , .
[0076] in, It is used to represent the objective function of the adversarial sample generation model. It can represent the probability distribution of the selected adversarial sample generation strategy, t represents the number of rounds, represents the state of round t, represents the generation strategy used in round t (for example, the noise increases by 10%), is the objective function. It means that when the probability distribution of the adversarial sample generation strategy is When in state , select action The expected value (i.e., mean) of the long-term return under these circumstances. Depends on current state , Current Action and the policy function . Indicates future accumulated rewards, , r can represent the evaluation value, and E represents the expected value function, which is a common mathematical symbol and can be understood as calculating the average value. Here, it is to calculate the average value of future accumulated rewards.
[0077] Continue to refer to Figure 4 , the speech sample 404, the speech identification sub-model 405, the identification result 406 and the continuous learning sub-model 407 can constitute the identification formula sub-architecture. The identification formula sub-architecture is intended to achieve autonomous optimization and improvement of the speech identification sub-model in an adversarial environment. In the speech identification sub-model 405 of the identification formula sub-architecture, the generated content that needs to be identified can be continuously generated by the adversarial sample generation sub-model 401 in the game confrontation process between the adversarial sample generation sub-model 401 and the speech identification sub-model 405. The speech identification sub-model 405 uses the continuous learning sub-model 407 to autonomously optimize and improve the model according to the newly added speech sample data, so that the speech identification sub-model 405 can overcome the forgetting of the previous learning content while acquiring new knowledge, which can effectively improve the generalization ability of the speech identification sub-model.
[0078] Optionally, in one embodiment, for each batch of training, a batch of samples can be sampled from the data set (the label information and attribute information of the samples are as balanced as possible), the speech identification sub-model gives the initial identification result, and the adversarial sample generation sub-model generates adversarial samples based on the initial identification result. If only the training of the adversarial sample generation sub-model is considered, the training of this batch ends when the termination condition is reached (for example, the identification error rate reaches the specified error rate threshold range). After the training of this batch ends, the misjudgment information of the speech identification sub-model collected can be input into the speech identification sub-model for incremental learning, and the model can enter the next batch of training after iteration.
[0079] The overall training can be terminated with a specified batch or round or a specified equilibrium state. After the training is completed, the speech attack and defense model of the embodiment of the present invention can be obtained, which can improve the generalization ability and recognition ability of the speech identification sub-model in a complex open environment. In addition, the invention can also provide guidance for generating high-quality generated content.
[0080] The speech attack and defense game self-feedback method based on continuous reinforcement learning provided by the embodiment of the present invention effectively fills the mechanism gap in the previous methods that the attack and defense models can only achieve interactive improvement of capabilities through human participation. The speech attack and defense game self-feedback method based on continuous reinforcement learning provided by the embodiment of the present invention can effectively simulate the multi-means generation of audio generation in a complex adversarial environment, which is conducive to improving the recognition ability and generalization ability of the speech identification sub-model in an open environment, thereby improving the application value of the speech identification sub-model in a real complex environment. The speech attack and defense game self-feedback method based on continuous reinforcement learning provided by the embodiment of the present invention can be understood as an organic fusion of the adversarial sample generation sub-model and the speech identification sub-model, effectively realizing the automation of the attack and defense game in the training process, that is, the generator provides the identification party with multi-means generation data enhancement samples for improving its generalization ability, and the identification party provides the generator with timely and efficient feedback for generating higher quality generated content. This mechanism effectively fills the mechanism gap in the previous methods that the attack and defense models can only achieve interactive improvement of capabilities through human participation.
[0081] It should be noted that, unless it is explicitly stated that there is a sequence of execution between different operations shown in the flowchart in the embodiments of the present invention, or different operations have a sequence of execution in technical implementation, otherwise, the execution order of multiple operations may not be particular, and multiple operations may also be executed simultaneously.
[0082] Based on the above-mentioned voice attack and defense game self-feedback method based on continuous reinforcement learning, the present invention also provides a voice attack and defense game self-feedback device based on continuous reinforcement learning. Figure 5 The device is described in detail.
[0083] Figure 5 A structural block diagram of a voice attack and defense game self-feedback device based on continuous reinforcement learning according to an embodiment of the present invention is shown.
[0084] like Figure 5 As shown, the voice attack and defense game self-feedback device 500 based on continuous reinforcement learning of this embodiment includes a first input module 510, a second input module 520, a comparison module 530 and a training module 540.
[0085] The first input module 510 is used to input the sample data obtained from the data set into the adversarial sample generation sub-model of the speech attack and defense model, and use the adversarial sample generation strategy in the adversarial sample generation sub-model to process the sample data to generate a speech sample.
[0086] The second input module 520 is used to input the speech sample into the speech identification sub-model of the speech attack and defense model when the speech sample passes the quality evaluation, and output the identification result of the speech sample.
[0087] A comparison module 530 is used to compare the identification result with the real label of the speech sample to obtain a comparison result, wherein the comparison result is used as feedback to adjust the adversarial sample generation strategy;
[0088] The training module 540 is used to store the speech sample in an incremental sample set when the comparison result indicates that the identification result is different from the true label of the speech sample, and to perform incremental training on the speech identification sub-model based on the incremental sample set using the continuous learning sub-model of the speech attack and defense model.
[0089] According to the speech attack and defense game self-feedback method, device and equipment based on continuous reinforcement learning provided by the embodiment of the present invention, the sample data obtained from the data set is input into the adversarial sample generation sub-model of the speech attack and defense model, and the adversarial sample generation strategy is used to generate speech samples; when the speech sample passes the quality assessment, the speech sample is input into the speech identification sub-model, and the identification result is output; the adversarial sample generation strategy is adjusted according to the identification result and the real label feedback of the speech sample, and when the identification result is different from the real label, the speech sample is stored in the incremental sample set, and the speech identification sub-model is incrementally trained based on the incremental sample set using the continuous sub-model. Since in the self-feedback process of the speech attack and defense game, the adversarial sample generation strategy can be automatically adjusted according to the identification result and the real label, and the incremental sample set can be automatically stored, and the speech identification sub-model can be incrementally trained to realize the automatic feedback adjustment mechanism between the adversarial sample generation sub-model and the speech identification sub-model, the problem of low training efficiency and low accuracy caused by the training process relying on manual labor in the related art is at least partially overcome, thereby achieving the improvement of the degree of training intelligence, and improving the completion efficiency and accuracy of speech attack and defense tasks, so as to further meet complex attack and defense scenarios.
[0090] According to an embodiment of the present invention, the first input module may include a first input submodule, a first generating submodule and a second generating submodule.
[0091] The first input submodule is used to input the sample data into the speech identification submodel and output the initial identification result when the speech samples are generated in the first round.
[0092] The first generation submodule is used to process the sample data using a first target adversarial sample generation strategy determined from the adversarial sample generation strategy according to the initial identification result to generate a speech sample.
[0093] The second generation submodule is used to generate a voice sample according to the historical voice samples generated in the previous round when the voice sample is not generated in the first round.
[0094] According to an embodiment of the present invention, the second generating submodule may include an acquiring unit, a determining unit and a superimposing unit.
[0095] The acquisition unit is used to acquire the comparison result associated with the historical speech sample.
[0096] A determination unit is used to determine an adversarial sample generation strategy fed back by a comparison result associated with a historical speech sample.
[0097] The superposition unit is used to superimpose the historical speech sample with the historical speech sample by using the adversarial sample generation strategy of feedback to obtain the speech sample.
[0098] According to an embodiment of the present invention, the comparison module may include a first calling submodule and a second calling submodule.
[0099] The first calling submodule is used to call the second target adversarial sample generation strategy to generate the next round of speech samples when the comparison result represents that the identification result is the same as the true label of the speech sample, wherein the adversarial level of the second target adversarial sample generation strategy is higher than the adversarial level of the current round of adversarial sample generation strategy.
[0100] The second calling submodule is used to call the third target adversarial sample generation strategy to generate the next round of speech samples when the comparison result characterizes that the identification result is different from the true label of the speech sample, wherein the adversarial level of the third target adversarial sample generation strategy is lower than or equal to the adversarial level of the current round of adversarial sample generation strategy.
[0101] According to an embodiment of the present invention, the voice attack and defense game self-feedback device based on continuous reinforcement learning may also include a first generation module, a second generation module and a third generation module.
[0102] The first generation module is used to generate state space information of the adversarial sample generation sub-model according to the real label and identification result of the speech sample.
[0103] The second generation module is used to generate a positive evaluation value of the adversarial sample generation sub-model when the real label of the speech sample represented by the state space information is different from the identification result.
[0104] The third generation module is used to generate a negative evaluation value of the adversarial sample generation sub-model when the true label of the speech sample represented by the state space information is the same as the identification result.
[0105] According to an embodiment of the present invention, the second input module may include an evaluation submodule and a first determination submodule.
[0106] The evaluation submodule is used to evaluate the speech sample using the quality evaluation submodel in the speech attack and defense model to obtain an evaluation value.
[0107] The first determination submodule is used to confirm that the speech sample passes the quality evaluation when the evaluation value is within a predetermined evaluation value range.
[0108] According to an embodiment of the present invention, the evaluation submodule may include a first generation unit and a second generation unit.
[0109] The first generating unit is used to generate sub-evaluation values of the speech sample in n dimensions from n dimensions by using the quality evaluation sub-model.
[0110] The second generating unit is used to generate an evaluation value according to the sub-evaluation values of n dimensions and the weight data of n dimensions.
[0111] According to an embodiment of the present invention, any multiple modules of the first input module 510, the second input module 520, the comparison module 530 and the training module 540 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the first input module 510, the second input module 520, the comparison module 530 and the training module 540 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the first input module 510 , the second input module 520 , the comparison module 530 , and the training module 540 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0112] It should be noted that the voice attack and defense game self-feedback device part based on continuous reinforcement learning in the embodiment of the present invention corresponds to the voice attack and defense game self-feedback method part based on continuous reinforcement learning in the embodiment of the present invention. The description of the voice attack and defense game self-feedback device part based on continuous reinforcement learning specifically refers to the voice attack and defense game self-feedback method part based on continuous reinforcement learning, which will not be repeated here.
[0113] Figure 6 A block diagram of an electronic device suitable for implementing a voice attack and defense game self-feedback method based on continuous reinforcement learning according to an embodiment of the present invention is shown.
[0114] like Figure 6As shown, the electronic device 600 according to an embodiment of the present invention includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0115] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present invention by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present invention by executing the program stored in the one or more memories.
[0116] According to an embodiment of the present invention, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0117] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0118] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present invention may be combined and / or combined in various ways, even if such combinations and / or combinations are not explicitly described in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features described in the various embodiments of the present invention may be combined and / or combined in various ways. All of these combinations and / or combinations fall within the scope of the present invention.
[0119] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination advantageously. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A voice attack and defense game self-feedback method based on continuous reinforcement learning, characterized in that: The method comprises: Inputting the sample data obtained from the data set into the adversarial sample generation sub-model of the speech attack and defense model, and processing the sample data using the adversarial sample generation strategy in the adversarial sample generation sub-model to generate a speech sample; In the case where the speech sample passes the quality assessment, the speech sample is input into the speech identification sub-model of the speech attack and defense model, and an identification result of the speech sample is output; Comparing the identification result with the true label of the speech sample to obtain a comparison result, wherein the comparison result is used for feedback adjustment of the adversarial sample generation strategy; When the comparison result indicates that the identification result is different from the true label of the speech sample, the speech sample is stored in an incremental sample set, and the speech identification sub-model is incrementally trained based on the incremental sample set using the continuous learning sub-model of the speech attack and defense model.
2. The method according to claim 1, characterized in that: The method of processing the sample data by using the adversarial sample generation strategy in the adversarial sample generation sub-model to generate a speech sample includes: In the case of generating the speech sample in the first round, inputting the sample data into the speech identification sub-model and outputting an initial identification result; Processing the sample data according to a first target adversarial sample generation strategy determined from the adversarial sample generation strategy according to the initial identification result to generate the speech sample; When the speech sample is not generated in the first round, the speech sample is generated according to the historical speech sample generated in the previous round.
3. The method according to claim 2, characterized in that The step of generating the voice sample according to the historical voice sample generated in the previous round includes: Obtaining a comparison result associated with the historical speech sample; Determining an adversarial sample generation strategy fed back by a comparison result associated with the historical speech sample; The historical speech samples are superimposed by using the feedback adversarial sample generation strategy to obtain the speech samples.
4. The method according to claim 1, characterized in that: The adversarial sample generation strategy is configured with an adversarial level; The comparison result is used to feedback and adjust the adversarial sample generation strategy, including: In the case where the comparison result indicates that the identification result is the same as the true label of the speech sample, calling a second target adversarial sample generation strategy to generate a next round of speech samples, wherein the adversarial level of the second target adversarial sample generation strategy is higher than the adversarial level of the current round of adversarial sample generation strategy; When the comparison result characterizes that the identification result is different from the true label of the speech sample, a third target adversarial sample generation strategy is called to generate speech samples for the next round, wherein the adversarial level of the third target adversarial sample generation strategy is lower than or equal to the adversarial level of the adversarial sample generation strategy for the current round.
5. The method according to claim 1, characterized in that The method further comprises: Generate state space information of the adversarial sample generation sub-model according to the true label of the speech sample and the identification result; When the state space information represents that the real label of the speech sample is different from the identification result, generating a positive evaluation value of the adversarial sample generation sub-model; In a case where the state space information represents that the true label of the speech sample is the same as the identification result, a negative evaluation value of the adversarial sample generation sub-model is generated.
6. The method according to claim 1, characterized in that When the speech sample passes the quality assessment, the method comprises: Using the quality assessment sub-model in the speech attack and defense model to assess the speech sample, and obtain an assessment value; In the case that the evaluation value is within a predetermined evaluation value range, it is confirmed that the speech sample passes the quality evaluation.
7. The method according to claim 6, characterized in that The step of evaluating the speech sample using the quality evaluation sub-model in the speech attack and defense model to obtain an evaluation value includes: Generating sub-evaluation values of the speech sample in n dimensions from the n dimensions using the quality evaluation sub-model; The evaluation value is generated according to the sub-evaluation values of the n dimensions and the weight data of the n dimensions.
8. The method according to claim 1, characterized in that The adversarial sample generation strategy includes at least one of the following: adding reverberation to the sample data, adding noise to the sample data, and adjusting the speech speed of the sample data.
9. A voice attack and defense game self-feedback device based on continuous reinforcement learning, characterized in that: The device comprises: A first input module is used to input sample data obtained from the data set into the adversarial sample generation sub-model of the speech attack and defense model, and use the adversarial sample generation strategy in the adversarial sample generation sub-model to process the sample data to generate a speech sample; A second input module is used to input the speech sample into the speech identification sub-model of the speech attack and defense model when the speech sample passes the quality assessment, and output the identification result of the speech sample; A comparison module, used to compare the identification result with the real label of the speech sample to obtain a comparison result, wherein the comparison result is used for feedback adjustment of the adversarial sample generation strategy; A training module is used to store the speech sample in a continuous learning sub-model of the speech attack and defense model when the comparison result indicates that the identification result is different from the true label of the speech sample, so as to use the continuous learning sub-model to perform incremental training on the speech identification sub-model based on the speech sample.
10. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.
