Method and apparatus for generating adversarial audio for speech recognition systems

By obtaining the system model parameters and source audio data of the speech recognition system, determining the disturbance noise and mask matrix, and generating imperceptible adversarial audio, it solves the problem of easily detectable noise in the existing technology and improves the security of the speech recognition system. and performance.

CN114783431BActive Publication Date: 2024-10-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210273221.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-10-29
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

In existing white-box adversarial audio generation methods, noise is easily detectable in speech recognition systems, and it is difficult to generate high-quality adversarial audio, resulting in insufficient system security.

Method used

By obtaining the system model parameters and source audio data of the speech recognition system, the disturbance noise and mask matrix are determined, and through the mask operation, imperceptible adversarial audio is generated, hidden in the speech fragment, and the adversarial audio is generated by combining the target sentence and system model parameters. .

Benefits of technology

The security robustness of the end-to-end speech recognition system is improved, making the system more secure and better performing, and the generated adversarial audio is difficult to detect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114783431B_ABST
    Figure CN114783431B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for generating adversarial audio for a speech recognition system, and relates to the field of speech recognition. In an embodiment of the present application, the system model parameters and source audio data of the speech recognition system are obtained, and a first disturbance noise and a mask matrix are determined according to the source audio data, and then a mask operation is performed on the first disturbance noise according to the mask matrix to obtain a second disturbance noise, and finally adversarial audio is generated according to the system model parameters, the target sentence, the source audio data and the second disturbance noise. The embodiment of the present application can hide the noise in the speech fragment, making the disturbance of the attack difficult to detect, thereby helping to improve the security and robustness of the end-to-end speech recognition system, and making the end-to-end speech recognition system more secure and with better performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular, to a method, apparatus, device, and storage medium for generating adversarial audio for a speech recognition system. Background Art

[0002] With the development of machine learning and artificial intelligence, machine learning models have become ubiquitous and have become the core technology in many artificial intelligence devices. Although machine learning performs well, the neural network in the machine learning model is easily attacked. At present, adversarial samples have been proposed for the first time in the field of images. The generation of image adversarial samples can generate noise images that are difficult for the human eye to detect by exploiting the vulnerability of end-to-end neural networks, so that the neural network image classifier can identify it as the target class of the attacker. For example, under the influence of the perturbed noise generated by the adversarial sample attack, the result of the classifier identifying a panda with a confidence level of 57% becomes a gibbon with a confidence level of 99%.

[0003] Adversarial sample generation attacks are divided into white-box attacks and black-box attacks. White-box attacks refer to attacks in which the process of generating adversarial samples requires obtaining the parameter information and structure of the victim model, so that adversarial samples can be generated through gradient information. Black-box attacks refer to attacks in which the internal information of the victim model cannot be obtained and adversarial samples can only be generated by querying the model recognition results.

[0004] Inspired by the research on adversarial samples in the image field, adversarial samples have also appeared in the field of speech recognition. Compared with image classification tasks in the image field, tasks in the field of speech recognition are much more difficult, and the attack of speech adversarial samples will also become more difficult. Therefore, the attack of speech adversarial samples is mainly carried out in the context of white-box attacks.

[0005] However, the current white-box adversarial audio generation method is still relatively rudimentary, and the noise of the adversarial audio is easily detectable. Therefore, a method for generating adversarial audio with higher quality is urgently needed. Summary of the invention

[0006] The present application provides a method, apparatus, device and storage medium for generating adversarial audio for a speech recognition system, which can help improve the quality of generated adversarial audio.

[0007] In a first aspect, an embodiment of the present application provides a method for generating adversarial audio for a speech recognition system, comprising:

[0008] Acquiring system model parameters and source audio data of the speech recognition system;

[0009] Determining a first disturbance noise according to the source audio data;

[0010] Determine a mask matrix according to the source audio data;

[0011] Performing a masking operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise;

[0012] A first adversarial audio is generated based on the system model parameters, a first target sentence, the source audio data, and the second disturbance noise, wherein the first target sentence includes a sentence that serves as a target of the adversarial audio.

[0013] In a second aspect, an embodiment of the present application provides a device for generating adversarial audio for a speech recognition system, including:

[0014] An acquisition unit, used to acquire system model parameters and source audio data of the speech recognition system;

[0015] A processing unit, for determining a first disturbance noise from the source audio data;

[0016] The processing unit is further used to determine a mask matrix according to the source audio data;

[0017] The processing unit is further configured to perform a masking operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise;

[0018] The processing unit is also used to generate a first adversarial audio based on the system model parameters, the first target sentence, the source audio data and the second disturbance noise, wherein the first target sentence includes a sentence serving as the adversarial audio target.

[0019] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the method in the first aspect or its various implementations.

[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the method in the first aspect or its various implementations.

[0021] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute a method as in the first aspect or its various implementations.

[0022] In a sixth aspect, an embodiment of the present application provides a computer program, which enables a computer to execute the method in the first aspect or its various implementations.

[0023] The method for generating adversarial audio for a speech recognition system in an embodiment of the present application obtains system model parameters and source audio data of the speech recognition system, determines a first disturbance noise and a mask matrix according to the source audio data, performs a mask operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise, and finally generates adversarial audio according to the system model parameters, the target sentence, the source audio data and the second disturbance noise. The embodiment of the present application can hide noise in a speech segment, making the disturbance of the attack difficult to detect, thereby helping to improve the security and robustness of the end-to-end speech recognition system, and making the end-to-end speech recognition system more secure and with better performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of a system architecture involved in an embodiment of the present application;

[0025] Figure 2 A schematic diagram of a model structure relationship of an end-to-end speech recognition system;

[0026] Figure 3 A schematic diagram of a method for generating adversarial audio for a speech recognition system according to an embodiment of the present application;

[0027] Figure 4 Schematic diagram of different adversarial audio generation;

[0028] Figure 5 A schematic diagram of a method for generating adversarial audio for a speech recognition system according to an embodiment of the present application;

[0029] Figure 6 is a schematic diagram of a device for generating adversarial audio for a speech recognition system according to an embodiment of the present application;

[0030] Figure 7 is a schematic block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0032] It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A. In one implementation, B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B based only on A, and B can also be determined based on A and / or other information.

[0033] In the description of the present application, unless otherwise specified, "at least one" means one or more, and "plurality" means two or more than two. In addition, "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0034] It should also be understood that the first, second, etc. descriptions appearing in the embodiments of the present application are only used for illustration and distinction of the description objects, without any distinction of order, nor do they indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.

[0035] It should also be understood that the specific features, structures or characteristics related to the embodiments in the specification are included in at least one embodiment of the present application. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.

[0036] In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product, or device.

[0037] The embodiments of the present application are applied to the field of artificial intelligence technology.

[0038] Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0039] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0040] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0041] The embodiments of the present application may involve computer vision (CV) technology in artificial intelligence technology. Computer vision is a science that studies how to make machines "see". To put it more concretely, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing to make computer processing into images that are more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0042] The key technologies of speech technology include automatic speech recognition technology, speech synthesis technology and voiceprint recognition technology. Enabling computers to listen, see, speak and feel is the development direction of human-computer interaction in the future, among which speech has become one of the most promising human-computer interaction methods in the future.

[0043] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0044] The embodiments of the present application may also involve machine learning (ML) in artificial intelligence technology. ML is a multi-disciplinary cross-discipline involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all fields of artificial intelligence. Machine learning and deep learning generally include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and learning by teaching.

[0045] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0046] Figure 1 Schematic diagram of a system architecture involved in an embodiment of the present application. Figure 1 As shown, the system architecture may include a user device 101 , a data collection device 102 , a training device 103 , an execution device 104 , a database 105 and a content library 106 .

[0047] The data acquisition device 102 is used to read the training data from the content library 106 and store the read training data in the database 105 .

[0048] The training device 103 trains the machine learning model based on the training data maintained in the database 105. The machine learning model obtained by the training device 103 can effectively extract features of samples (such as images or voice data). The machine learning model obtained by the training device 103 can be applied to different systems or devices.

[0049] In addition, refer to Figure 1 The execution device 104 is configured with an I / O interface 107 for data exchange with external devices. For example, the I / O interface receives the data to be processed, such as image or voice data, sent by the user device 101. The computing module 109 in the execution device 104 processes the input data and interacts with the user device 101 through the I / O interface.

[0050] The user device 101 may include a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a mobile internet device (MID), or other terminal devices with a browser function installed.

[0051] The execution device 104 may be a server.

[0052] Exemplarily, the server may be a computing device such as a rack server, a blade server, a tower server or a cabinet server, etc. The server may be an independent test server or a test server cluster composed of multiple test servers.

[0053] In this embodiment, the execution device 104 is connected to the user device 101 through a network. The network can be a wireless or wired network such as an intranet, the Internet, the Global System of Mobilecommunication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, or a call network.

[0054] It should be noted that Figure 1 It is only a schematic diagram of a system architecture provided by an embodiment of the present application. The positional relationship between the devices, components, modules, etc. shown in the figure does not constitute any limitation. In some embodiments, the data acquisition device 102 and the user device 101, the training device 103 and the execution device 104 can be the same device. The database 105 can be distributed on one server or on multiple servers, and the content library 106 can be distributed on one server or on multiple servers.

[0055] At present, the white-box adversarial audio generation method is still relatively rudimentary. For example, the current mainstream audio adversarial sample is the white-box attack method proposed by Carlini and Wagner, namely the CW attack method. This method adds a perturbation restriction term to the loss function of generating adversarial samples, making the noise perturbation of adversarial samples difficult to detect. For example, the CW attack method adds a dB restriction term to the loss function in the process of generating adversarial samples, making the perturbation difficult to detect. However, due to the model structure relationship of the end-to-end speech recognition system (for example, Figure 2 As shown in the figure, the generated adversarial perturbation noise will be spread throughout the entire audio, which makes the perturbed noise have a distribution characteristic in the time domain (spread throughout the entire audio). Some adversarial sample detection methods can detect adversarial samples through their distribution characteristics in the time domain. In addition, in the silent audio segment, the perturbation noise is easy to be detected by the listener. Therefore, a method for generating higher quality adversarial audio is urgently needed.

[0056] The technical solution provided by the embodiments of the present application is described below in conjunction with the accompanying drawings.

[0057] Figure 3 FIG. 3 is a schematic flow chart of a method 300 for generating adversarial audio for a speech recognition system according to an embodiment of the present application. The method 300 can be executed by any electronic device having data processing capabilities. For example, the electronic device can be implemented as Figure 1 User equipment, or Figure 1 The execution device 104 is not limited in this application.

[0058] 301, obtaining system model parameters and source audio data of a speech recognition system.

[0059] Specifically, the adversarial sample attack method in the embodiment of the present application is a one-to-one attack, that is, the disturbance generated can only have an effect on a specified audio, so it is necessary to select a specified audio as the carrier audio of the adversarial sample noise. In other words, it is necessary to determine a carrier audio of the disturbance noise, such as the above-mentioned source audio data.

[0060] Optionally, parameter information of an end-to-end speech recognition system is obtained, and the first disturbance noise in the source audio data is determined according to the parameter information. The parameter information of the system may include system model parameters and system model architecture.

[0061] Specifically, the system model parameters may include the decoding mode of the system model, the size of the processed data block, and the weights between the joint models. Different system model architectures have different corresponding loss functions during attacks. For example, the (Connectionist Temporal Classification, CTC) architecture model should use the corresponding CTC loss function as the main body of the attack function; the encoder-decoder architecture model should use the cross entropy loss function as the main body of the attack function.

[0062] It is understandable that the acquisition of the system model parameters and the acquisition of the source audio data in step 301 may be performed independently or together. Alternatively, the acquisition of the system model parameters and the acquisition of the source audio data may be performed simultaneously or at different times. This application does not limit this.

[0063] 302. Determine a first disturbance noise according to the source audio data.

[0064] It is understandable that the size of the first disturbance noise may be initialized, for example, by using an all-0 initialization method or a Gaussian distribution initialization method, which is not limited in the present application.

[0065] Optionally, 302 may specifically be to process the source audio data by a gradient descent algorithm with a preset number of training steps and a preset disturbance limit size to obtain the first disturbance noise.

[0066] Specifically, the system model parameters are frozen, and then the first disturbance noise is determined by the gradient descent algorithm. Among them, the disturbance noise in the source audio data can be used as a model parameter, and the value of the disturbance noise is updated by the gradient descent algorithm to obtain the first disturbance noise. For example, the electronic device can pre-set the number of training steps and the disturbance limit size according to the time limit and the computing power limit. If the time limit is considered, the disturbance limit size can be appropriately increased; if the time limit and the computing power limit are not considered, a larger number of training steps and a larger disturbance limit size can be set, so that a more imperceptible disturbance noise can be obtained. In this way, when the disturbance noise can attack successfully, the current disturbance noise is saved. If a noise with less disturbance is generated in a subsequent iteration, the original disturbance noise is overwritten.

[0067] Optionally, the disturbance limit may be a dB limit or a norm limit.

[0068] 303. Determine a mask matrix according to the source audio data.

[0069] It can be understood that the mask matrix can be initialized according to the size of the source audio data.

[0070] Optionally, 303 may specifically be to calculate a mask matrix based on the source audio data by using a voice activity detection (VAD) technology, wherein the voice information portion may be set to 1, and the silent portion may be set to 0. That is, the silent segments and voice segments of the source audio data may be determined by the VAD technology, and a mask matrix may be generated.

[0071] 304 , performing a masking operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise.

[0072] Specifically, the mask matrix can be used to remove the disturbance noise in the silent part, so that the disturbance noise can be adaptively hidden in the speech segment in the source audio, making the disturbance noise difficult for the user to perceive, so that the adversarial sample disturbance noise will not be distributed throughout the time domain of the entire audio segment. Figure 4 As shown, the difference between the adversarial audio generated by the CW method and the method of the embodiment of the present application.

[0073] It can be understood that the method for counteracting audio generation in the embodiment of the present application can also be called Hide In Speech (HIS).

[0074] 305 , generating a first adversarial audio according to the system model parameters, the first target sentence, the source audio data, and the second disturbance noise, wherein the first target sentence includes a sentence serving as the adversarial audio target.

[0075] Specifically, for a picture or a target sentence, an adversarial sample is generated so that the annotations on it by the annotation system are exactly the same as the target sentence. In other words, not only is the attack required to be successful, but the generated adversarial sample is also required to belong to a specific class. For example, in the previous panda example, if we not only need the system not to recognize it as a panda, but also need the system to recognize it as a specified thing, such as recognizing a panda as a gibbon, this is called a targeted attack. Similarly, for a piece of speech and a target sentence, an adversarial sample is also generated so that the annotations on the system of the adversarial sample are exactly the same as the target sentence.

[0076] Optionally, without executing 305, the embodiment of the present application can also perform a trimming process on the second disturbance noise according to the upper and lower thresholds to obtain a third disturbance noise, and generate a second adversarial audio according to the source audio data, the second target sentence and the third disturbance noise. The second target sentence includes a sentence as the adversarial audio target.

[0077] Specifically, the second disturbance noise is clipped by the upper and lower thresholds to make the process of generating adversarial audio smoother, speed up the generation of adversarial samples, and make the disturbance noise dB as small as possible. Therefore, the adversarial audio generated by the embodiment of the present application is more difficult to detect and can resist the defense of the detection method based on the distribution characteristics of the adversarial audio in the time domain.

[0078] Optionally, the loss function corresponding to the second disturbance noise can obtain a loss function corresponding to the third disturbance noise by adding a dB limit term.

[0079] Specifically, the target sentence and the result of the current speech recognition system recognition are used as the parameters of the loss function corresponding to the second disturbance noise. The form of the loss function corresponding to the second disturbance noise is determined according to the system model parameters, for example, a CTC loss function or a cross entropy loss function. The loss function corresponding to the second disturbance noise can be obtained by the above loss function and the form of the loss function, and the loss function corresponding to the third disturbance noise can be obtained by adding a dB limit item to the loss function corresponding to the second disturbance noise.

[0080] Optionally, the upper and lower thresholds may be adjusted according to the attack situation of the second disturbance noise attack target sentence.

[0081] Specifically, if the second disturbance noise attack on the target sentence is successful, the upper and lower thresholds are lowered; if the second disturbance noise attack on the target sentence is unsuccessful, the upper and lower thresholds remain unchanged. In other words, the electronic device can adaptively adjust the upper and lower thresholds.

[0082] Therefore, the method for generating adversarial audio for a speech recognition system in an embodiment of the present application obtains the system model parameters and source audio data of the speech recognition system, determines the first disturbance noise and the mask matrix according to the source audio data, and then performs a mask operation on the first disturbance noise according to the mask matrix to obtain the second disturbance noise, and finally generates adversarial audio according to the system model parameters, the target sentence, the source audio data and the second disturbance noise. In other words, the noise can be hidden in the speech fragment, making the disturbance of the attack difficult to detect. The adversarial audio generated by this method can improve the security and robustness of the end-to-end speech recognition system, and make the end-to-end speech recognition system more secure and have better performance.

[0083] Figure 5 A schematic diagram of a specific method for generating adversarial audio for a speech recognition system according to an embodiment of the present application is shown.

[0084] Understandably, Figure 5 In the embodiment shown, Figure 3 The same terms in the illustrated embodiments have the same meanings and will not be described herein in detail to avoid repetition.

[0085] 510, obtaining system model parameters and source audio data of the speech recognition system.

[0086] 520. Determine the first disturbance noise according to the source audio data.

[0087] Specifically, the electronic device may process the source audio data through a gradient descent algorithm with a preset number of training steps and a preset disturbance limit size to obtain the first disturbance noise.

[0088] It is understandable that the preset number of training steps and the preset disturbance limit size can be adaptively adjusted in advance.

[0089] 530. Determine a mask matrix according to the source audio data.

[0090] Specifically, the electronic device can calculate the mask matrix according to the source audio data through the VAD technology.

[0091] 540 , performing a masking operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise.

[0092] Specifically, the masking operation may be used to remove the disturbance noise in the silent part, thereby making the disturbance noise difficult to be perceived by the user.

[0093] It is understandable that after step 540, step 550 or step 560 may be executed, and this application does not limit this.

[0094] 550. Generate a first adversarial audio according to the system model parameters, the first target sentence, the source audio data, and the second disturbance noise, wherein the first target sentence includes a sentence serving as the adversarial audio target.

[0095] It is understandable that after step 550 is completed, step 580 can be directly executed.

[0096] 560 , the second disturbance noise is clipped according to the upper and lower thresholds to obtain the third disturbance noise.

[0097] Optionally, the upper and lower thresholds may be adaptively adjusted so as to obtain a third disturbance noise that meets the requirements.

[0098] 570. Generate a second adversarial audio according to the system model parameters, the second target sentence, the source audio data, and the third disturbance noise, wherein the second target sentence includes a sentence serving as the adversarial audio target.

[0099] 580, end.

[0100] Therefore, the method for generating adversarial audio for a speech recognition system in an embodiment of the present application obtains system model parameters and source audio data, determines a first disturbance noise and a mask matrix based on the source audio data, performs a mask operation on the first disturbance noise based on the mask matrix to obtain a second disturbance noise, and then clips the second disturbance noise by upper and lower thresholds to obtain a third disturbance noise, and finally generates adversarial audio based on the system model parameters, the source audio data and the third disturbance noise. In other words, the present application improves the original adversarial audio generation method, and can generate more sophisticated adversarial samples to deceive the end-to-end speech recognition system and tamper with the recognition results. Through the study of adversarial audio attack methods, the security of subsequent end-to-end speech recognition systems can be improved.

[0101] The specific implementation modes of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above implementation modes. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the above specific implementation modes can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different implementation modes of the present application can also be arbitrarily combined, and as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.

[0102] It should also be understood that in the various method embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. It should be understood that these sequence numbers can be interchanged where appropriate, so that the embodiments of the present application described can be implemented in an order other than those shown or described.

[0103] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Figure 6 The device 600 for generating adversarial audio for a speech recognition system can execute the above method embodiment. The device 600 includes an acquisition unit 610 and a processing unit 620.

[0104] An acquisition unit 610 is used to acquire system model parameters and source audio data of a speech recognition system;

[0105] The processing unit 620 is used for determining a first disturbance noise from the source audio data;

[0106] The processing unit 620 is further configured to determine a mask matrix according to the source audio data;

[0107] The processing unit 620 is further configured to perform a masking operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise;

[0108] The processing unit 620 is further used to generate a first adversarial audio according to the system model parameters, the first target sentence, the source audio data and the second disturbance noise, wherein the first target sentence includes a sentence serving as the adversarial audio target.

[0109] Optionally, the processing module 620 is further configured to perform a trimming process on the second disturbance noise according to upper and lower thresholds to obtain a third disturbance noise;

[0110] The processing module 620 is also used to generate a second adversarial audio based on the system model parameters, the second target sentence, the source audio data and the third disturbance noise, wherein the second target sentence includes a sentence serving as the adversarial audio target.

[0111] Optionally, the processing module 620 is specifically configured to process the source audio data by using a voice activity detection (VAD) technology to obtain the mask matrix.

[0112] Optionally, the processing module 620 is specifically configured to process the source audio data according to a gradient descent algorithm to obtain the first disturbance noise.

[0113] Optionally, the processing module 620 is specifically configured to process the source audio data by using a preset number of training steps and a preset disturbance limit size to obtain the first disturbance noise.

[0114] Optionally, the disturbance limit is a decibel (dB) size limit, or a norm limit of the disturbance noise value.

[0115] Therefore, in an embodiment of the present application, by obtaining system model parameters and source audio data, and determining a first disturbance noise and a mask matrix according to the source audio data, and then performing a mask operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise, finally, adversarial audio is generated according to the system model parameters, the target sentence, the source audio data and the second disturbance noise. In other words, the noise can be hidden in the voice clip, making the disturbance of the attack difficult to detect. The adversarial audio generated by this method can improve the security and robustness of the end-to-end speech recognition system, and make the end-to-end speech recognition system more secure and have better performance.

[0116] It is understandable that other operations and / or functions of each module in the device 600 are respectively for implementing the corresponding processes in the above-mentioned methods, and for the sake of brevity, they are not repeated here.

[0117] The above describes the device 600 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.

[0118] Figure 7 It is a schematic block diagram of an electronic device 700 provided in an embodiment of the present application.

[0119] like Figure 7 As shown, the electronic device 700 may include:

[0120] The memory 710 and the processor 720, the memory 710 is used to store the computer program and transmit the program code to the processor 720. In other words, the processor 720 can call and run the computer program from the memory 710 to implement the method in the embodiment of the present application.

[0121] For example, the processor 720 may be configured to execute the above method embodiments according to instructions in the computer program.

[0122] In some embodiments of the present application, the processor 720 may include but is not limited to:

[0123] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0124] In some embodiments of the present application, the memory 710 includes but is not limited to:

[0125] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0126] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 710 and executed by the processor 720 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0127] like Figure 7 As shown, the electronic device 700 may further include:

[0128] The transceiver 730 may be connected to the processor 720 or the memory 710 .

[0129] The processor 720 may control the transceiver 730 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include an antenna, and the number of antennas may be one or more.

[0130] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

[0131] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.

[0132] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.

[0133] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0134] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0135] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for generating adversarial audio for a speech recognition system, characterized in that: include: Obtain system model parameters and source audio data of a speech recognition system; Determining a first disturbance noise according to the source audio data; Determine a mask matrix according to the source audio data; Performing a masking operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise; Generate a first adversarial audio according to the system model parameters, a first target sentence, the source audio data, and the second disturbance noise, wherein the first target sentence includes a sentence as a target of the adversarial audio; Wherein, determining a mask matrix according to the source audio data comprises: The source audio data is processed by voice activity detection (VAD) technology to obtain silent segments and speech segments of the source audio data, and the mask matrix is ​​generated.

2. The method according to claim 1, characterized in that The method further comprises: The second disturbance noise is trimmed according to upper and lower thresholds to obtain a third disturbance noise; A second adversarial audio is generated based on the system model parameters, a second target sentence, the source audio data, and the third disturbance noise, wherein the second target sentence includes a sentence that serves as a target of the adversarial audio.

3. The method according to claim 2, characterized in that The method further comprises: The upper and lower thresholds are adjusted according to the attack situation of the second adversarial audio on the target sentence.

4. The method according to any one of claims 1 to 3, characterized in that The determining, according to the source audio data, the first disturbance noise comprises: The source audio data is processed according to a gradient descent algorithm to obtain the first disturbance noise.

5. The method according to claim 4, characterized in that The processing of the source audio data according to the gradient descent algorithm to obtain the first disturbance noise includes: The source audio data is processed by presetting the number of training steps and the size of the preset disturbance limit to obtain the first disturbance noise.

6. The method according to claim 5, characterized in that The disturbance limit is a decibel (dB) size limit, or a norm limit of the disturbance noise value.

7. A device for generating adversarial audio for a speech recognition system, characterized in that: include: An acquisition unit, used to acquire system model parameters and source audio data of the speech recognition system; A processing unit, for determining a first disturbance noise from the source audio data; The processing unit is further used to determine a mask matrix according to the source audio data; The processing unit is further configured to perform a masking operation on the first disturbance noise according to the mask matrix to obtain a second disturbance noise; The processing unit is further configured to generate a first adversarial audio according to the system model parameters, the first target sentence, the source audio data, and the second disturbance noise, wherein the first target sentence includes a sentence serving as a target of the adversarial audio; The processing unit is specifically configured to process the source audio data by using a voice activity detection (VAD) technology to obtain silent segments and speech segments of the source audio data, and generate the mask matrix.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores instructions, and when the processor executes the instructions, the processor executes the method according to any one of claims 1 to 6.

9. A computer storage medium, characterized in that Used to store a computer program, the computer program comprising instructions for executing the method according to any one of claims 1 to 6.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Phoneme-level voiceprint recognition confrontation sample construction system and method based on neural network generative model

    CN114093371A

  • Providing adversarial protection of speech in audio signals

    US10896664B1