Neural network model training method and device, storage medium and electronic device

By adjusting the initial weight value of the memory unit layer in the neural network model, the problem of slow convergence of neural network model training in speech recognition is solved, and faster training speed and effect are achieved.

CN112561026BActive Publication Date: 2024-09-06BEIJING HORIZON ROBOTICS TECH RES & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910911100.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-25
Publication Date
2024-09-06
Estimated Expiration
2039-09-25

AI Technical Summary

Technical Problem

In speech recognition, existing neural network models repeatedly consider long-term correlation information of speech, resulting in slow or no convergence in training, which affects training efficiency.

Method used

After the neural network model is initialized, the initial weight value of the neuron in at least one memory unit layer is adjusted, especially the weight value corresponding to repeated information is adjusted to reduce repeated consideration of information, and then training is performed.

Benefits of technology

It effectively speeds up the convergence speed of the neural network model, shortens the iteration time, and improves the training speed and effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112561026B
    Figure CN112561026B
Patent Text Reader

Abstract

Disclosed are a training method and device for a neural network model, a storage medium, and an electronic device, wherein the method comprises: determining an initial value of a weight of a neuron in the neural network model; adjusting the initial value of a weight of a neuron in at least one memory unit layer in the neural network model; and training the neural network model after the initial value is adjusted. The disclosed embodiment can effectively accelerate the convergence of the neural network model, shorten the iteration time of the neural network model, and thus improve the training speed and training effect of the neural network model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to neural network technology, and in particular to a training method and device for a neural network model, a storage medium, and an electronic device. Background Art

[0002] With the popularization of artificial intelligence, speech has become an important way of human-computer interaction. Speech recognition technology, also known as automatic speech recognition (ASR), is a technology that converts human speech into computer-readable input. In recent years, artificial neural networks (ANN) have gradually been widely used in speech recognition in various scenarios due to their nonlinear mapping, generalization and fault tolerance, good real-time performance and high recognition accuracy. Summary of the invention

[0003] In order to solve the above technical problems, the embodiments of the present disclosure provide a technical solution for training a neural network model.

[0004] According to one aspect of an embodiment of the present disclosure, a method for training a neural network model is provided, comprising:

[0005] Determine the initial values ​​of the weights of neurons in the neural network model;

[0006] Adjusting the initial value of the weight of neurons in at least one memory unit layer in the neural network model;

[0007] The neural network model is trained after the initial value is adjusted.

[0008] According to another aspect of the embodiments of the present disclosure, there is provided a training device for a neural network model, comprising:

[0009] Initialization module, used to determine the initial value of the neuron weights in the neural network model

[0010] An adjustment module, used to adjust the initial value of the weight of neurons in at least one memory unit layer in the neural network model;

[0011] The training module is used to train the neural network model after the initial value of the adjustment module is adjusted.

[0012] According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the training method of the neural network model described in any of the above embodiments.

[0013] According to another aspect of the embodiments of the present disclosure, an electronic device is provided, the electronic device comprising:

[0014] processor;

[0015] a memory for storing instructions executable by the processor;

[0016] The processor is used to read the executable instructions from the memory and execute the instructions to implement the training method of the neural network model described in any of the above embodiments.

[0017] Based on the training method and device of the neural network model, the computer-readable storage medium and the electronic device provided by the above-mentioned embodiments of the present disclosure, after determining the initial values ​​of the weights of the neurons in the neural network model, the initial values ​​of the weights of the neurons in at least one memory unit layer in the neural network model are adjusted to reduce repeated consideration of some information, and then the neural network model after the initial value adjustment is trained. Since the selection of the initial values ​​of the weights of the neurons in the neural network model will affect the convergence speed of the neural network model training, the embodiments of the present disclosure first adjust the initial values ​​of the weights of the neurons in at least one memory unit layer before training the neural network model, especially the initial values ​​of the weights corresponding to the repeated information in the neural network model. This can effectively accelerate the convergence of the neural network model during training and shorten the iteration time of the neural network model, thereby improving the training speed and training effect of the neural network model. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.

[0019] Figure 1 It is a system diagram to which the present disclosure is applicable.

[0020] Figure 2 It is a flowchart of a training method for a neural network model provided by an exemplary embodiment of the present disclosure.

[0021] Figure 3 FIG. 4 is an exemplary structural block diagram of FSMN.

[0022] Figure 4 The figure shows a block diagram of a memory unit attached to a hidden layer in a one-way FSMN.

[0023] Figure 5It is a flowchart of a training method for a neural network model provided by another exemplary embodiment of the present disclosure.

[0024] Figure 6 It is a flowchart of a training method for a neural network model provided by another exemplary embodiment of the present disclosure.

[0025] Figure 7 It is a structural diagram of a training device for a neural network model provided by an exemplary embodiment of the present disclosure.

[0026] Figure 8 It is a structural diagram of a training device for a neural network model provided by another exemplary embodiment of the present disclosure.

[0027] Fig. 9 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0029] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

[0030] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.

[0031] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.

[0032] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0033] In addition, the term "and / or" in the present disclosure is only a description of 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. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.

[0034] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0035] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0036] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0037] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0038] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0039] The embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.

[0040] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.

[0041] Application Overview

[0042] In the process of realizing the present invention, the inventor discovered through research that when the existing initialization method is used to initialize the neural network model used for speech recognition, since the neural network model needs to model the long-term correlation of speech, repeated consideration of some information will cause the neural network model to converge slowly or not converge during training, thereby affecting the training efficiency of the neural network model.

[0043] The disclosed embodiment adjusts the initial values ​​of the weights of neurons in at least one memory unit layer in the neural network model after the neural network model is initialized and before the neural network model is trained, especially the initial values ​​of the weights corresponding to repeated information in the neural network model. This can effectively accelerate the convergence of the neural network model during training and shorten the iteration time of the neural network model, thereby improving the training speed and training effect of the neural network model.

[0044] Exemplary Systems

[0045] The disclosed embodiments may be used to train a neural network model. Figure 1 is a system diagram to which the present disclosure is applicable. Figure 1 As shown, the neural network model is first initialized, that is, the weight value (also called weight) of each neuron in the neural network model is initialized, and the weight value of the initialized neuron is used as the initial value of the neuron weight; then, the initial value of the weight of the neuron in at least one memory unit layer in the neural network model is adjusted using the embodiment of the disclosure to change the initial value of the weight of the neuron in the at least one memory unit layer; then the neural network model after the initial value adjustment is trained. The trained neural network model can be applied to acoustic models and to speech recognition in various scenarios, for example, it can be applied to scenarios with voice interaction with robots, children's toys, speakers, etc., and can also be applied to search and other scenarios.

[0046] Exemplary Methods

[0047] Figure 2 is a flowchart of a training method for a neural network model provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices, such as Figure 2 As shown, the training method of the neural network model of this embodiment includes the following steps:

[0048] Step 201, determining the initial value of the weight of the neuron in the neural network model.

[0049] In some of the embodiments, the neural network model may include, but is not limited to, any of the following: a recurrent neural network model (RNN), a long short-term memory neural network model (LSTM), a feedforward sequential memory neural network model (FSMN), and the like.

[0050] Among them, the initial value of the weight of the neuron in the neural network model can be determined by initializing the neural network model. For example, in some of the embodiments, any one of various neural network model initialization methods such as constant initialization, Gaussian initialization, uniform initialization, bilinear initialization, positive_unitball initialization, Xavier initialization and MSRA initialization can be used to determine the initial value of the weight of the neuron in the neural network model. By initializing the neural network model, the initial value of the weight of the neuron in the neural network model can be determined. The training process of the neural network model is an iterative process, that is, after the weight of the neuron in the neural network model is assigned an initial value, the neural network model is iteratively trained to obtain a neural network model that can meet certain application requirements, for example, a neural network model for various applications such as face recognition, image classification, and speech recognition.

[0051] Therefore, the initial value of the weight of the neuron in the neural network has a great influence on the final training result of the neural network model. An initial value that is too large or too small will have a bad effect on the convergence of the neural network model, for example, making the neural network model unable to converge or converge slowly, resulting in poor convergence effect.

[0052] Among the various methods of initializing the neural network model mentioned above, when the neural network model is initialized by the Xavier initialization method, the variance of the activation value output by each network layer in the neural network model remains unchanged during forward propagation, ensuring that information in the neural network model can flow better, thereby accelerating the convergence speed of the neural network model.

[0053] Step 202, adjusting the initial value of the weight of the neurons in at least one memory unit layer in the above neural network model to reduce the initial value of the weight corresponding to the repeated information in at least one memory unit layer.

[0054] Step 203, training the neural network model after the initial value is adjusted.

[0055] Based on the training method of the neural network model provided by the above-mentioned embodiment of the present disclosure, after determining the initial value of the weight of the neuron in the neural network model, the initial value of the weight of the neuron in at least one memory unit layer in the neural network model is adjusted to reduce repeated consideration of some information, and then the neural network model after the initial value adjustment is trained. Since the selection of the initial value of the weight of the neuron in the neural network model will affect the convergence speed of the neural network model training, the embodiment of the present disclosure first adjusts the initial value of the weight of the neuron in at least one memory unit layer before training the neural network model, especially the initial value of the weight corresponding to the repeated information in the neural network model. This can effectively accelerate the convergence of the neural network model during training and shorten the iteration time of the neural network model, thereby improving the training speed and training effect of the neural network model.

[0056] Currently, FSMN-based acoustic models have been widely used in speech recognition applications in various scenarios. Figure 3 As shown in Figure 1, it is an exemplary structural block diagram of FSMN. Figure 3 As shown in the figure, FSMN includes: input layer, at least one hidden layer (i.e., hidden network layer), and output layer. Next to the hidden layer, a memory block is hung. The function of the memory block is similar to that of the LSTM gate structure, and it can be used to remember the information of the adjacent time sequence of the input information at time t. Among them, in each FSMN, a memory block can be hung next to each hidden layer in at least one hidden layer. According to the difference in memory unit encoding method, FSMN can be divided into FSMN encoded with scalar coefficients (sFSMN) and FSMN encoded with vector coefficients (vFSMN).

[0057] The FSMN in the embodiments of the present disclosure may be a bidirectional sFSMN or a bidirectional vFSMN, or a unidirectional sFSMN or a unidirectional vFSMN. The unidirectional sFSMN may be either a look-back sFSMN or a look-behind sFSMN; the unidirectional vFSMN may be either a look-back vFSMN or a look-behind vFSMN.

[0058] Figure 4 The following is a block diagram of a memory unit attached to the hidden layer in a one-way FSMN. Figure 4 As shown, taking the previous N time information as an example, for sFSMN, the calculation formula is shown in the following formula (1), and for vFSMN, the calculation formula is shown in the following formula (2):

[0059]

[0060]

[0061] Among them, formula (1) represents the scalar product, formula (2) represents the Hadamard product, → represents the vector, l represents the lth network layer, and t represents the time.

[0062] Therefore, the coding coefficient vector under sFSMN and the coding coefficient matrix under vFSMN can be obtained as shown in the following formula (3) and formula (4), respectively:

[0063]

[0064]

[0065] With this memory unit hanging next to the hidden layer, this memory unit should be passed as input to the next hidden layer or output layer (when the hanging memory unit is a hidden layer closest to the output layer), such as Figure 3 As shown, it can be expressed as:

[0066]

[0067] In formula (5), the extra weight matrix W l , and the bias coefficient vector These are the parameters that need to be adjusted for subsequent training of the neural network model FSMN.

[0068] The above is a look-back FSMN in a unidirectional FSMN. That is, the memory unit only pays attention to the information before it. If you want to pay attention to future information and realize contextual connection, that is, the so-called bidirectional FSMN, you can simply add the order of look-back to formula (1) and formula (2). The calculation formulas for bidirectional sFSMN and bidirectional vFSMN are shown in the following formula (6) and formula (7), respectively:

[0069]

[0070]

[0071] In formula (6) and formula (7), N 1 and N 2 denote the order of look-ahead and look-behind, respectively. and Represents the weight value of each neuron in the lth network layer.

[0072] In some embodiments of the present disclosure, the steps of training a neural network model are as follows: initialize the weight parameters of the neural network model, that is, determine the initial value of the weight of each neuron in the neural network model; select a gradient descent algorithm to repeat the following iterative process: forward propagation of the input object in the neural network model; calculation of the loss function value; back propagation, calculation of the gradient value of the loss function with respect to the weight parameter; according to the selected gradient descent algorithm, use the gradient value of the weight parameter to update the weight parameter of the initialized neural network model (that is, the initial value of the weight of each neuron).

[0073] In addition, in the training method of the neural network model of another embodiment of the present disclosure, it can also include: selecting part or all of the memory unit layers in the neural network model as at least one memory unit layer in the above embodiment.

[0074] Based on this embodiment, the initial values ​​of the weights of neurons in at least some memory unit layers in the neural network model can be adjusted, thereby accelerating the convergence of the neural network model and shortening the iteration time of the neural network model. When the initial values ​​of the weights of neurons in all memory unit layers in the neural network model are adjusted, the convergence of the neural network model can be accelerated more effectively and the iteration time of the neural network model can be shortened.

[0075] In the embodiments of the present disclosure, the hidden layer in the neural network model may be a dimensionality reduction layer, a dimensionality increase layer or other layers. The dimensionality reduction layer and the dimensionality increase layer may be, for example, a pooling layer. The dimensionality reduction layer may be used for feature dimensionality reduction, compressing the number of data and parameters, reducing overfitting, and improving the fault tolerance of the neural network model. In some of the embodiments, a memory unit layer that is attached to some or all of the dimensionality reduction layers in the neural network model may be selected as the at least one memory unit layer.

[0076] Based on this embodiment, a memory unit layer that is hung beside some or all of the dimensionality reduction layers in the neural network model is selected as the above-mentioned at least one memory unit layer, and the initial values ​​of the weights of the neurons therein are adjusted. This can more effectively accelerate the convergence of the neural network model and shorten the iteration time of the neural network model, thereby better improving the training speed and training effect of the neural network model.

[0077] Figure 5 FIG. 1 is a flow chart of a training method for a neural network model provided by another exemplary embodiment of the present disclosure. Figure 5 As shown in the above Figure 2 Based on the illustrated embodiment, step 202 may include the following steps:

[0078] Step 2021, determining the neuron corresponding to the current moment information in at least one memory unit.

[0079] Step 2022: Reduce the initial value of the weight of the neuron corresponding to the current moment by a first preset value.

[0080] The first preset value is a value greater than 0.

[0081] Based on this embodiment, by reducing the initial value of the weight of the neuron at the current moment by a first preset value, the initial value of the weight of the neuron at the current moment in the memory unit is reduced, thereby reducing repeated consideration of the information at the current moment, and can effectively accelerate the convergence of the neural network model during training, shorten the iteration time of the neural network model, thereby improving the training speed and training effect of the neural network model.

[0082] For example, in some of the optional examples, the value range of the first preset value may be greater than 0.5 and less than 1.5.

[0083] The inventors have discovered through research that after the training of the neural network model is completed, the distribution range of the weight value of the neuron is generally [0.5, 1.5]. In this embodiment, when the value range of the first preset value is greater than 0.5 and less than 1.5, the weight value of the neuron can be directly adjusted to a value closer to the value when the training is completed, thereby further accelerating the convergence of the neural network model, shortening the iteration time of the neural network model, and improving the training speed and training effect of the neural network model.

[0084] Figure 6 FIG. 1 is a flow chart of a training method for a neural network model provided by another exemplary embodiment of the present disclosure. Figure 6 As shown in the above Figure 2 Based on the illustrated embodiment, step 202 may include the following steps:

[0085] Step 2021', determining the neuron corresponding to the current moment information in at least one memory unit.

[0086] Step 2022', multiplying the initial value of the weight of the neuron corresponding to the current moment by a second preset value.

[0087] The second preset value is a value greater than or equal to 0 and less than 1. For example, in some optional examples, the second preset value may be 0.02.

[0088] Based on this embodiment, by multiplying the initial value of the weight of the neuron at the current moment by the second preset value, the initial value of the weight of the neuron at the current moment in the memory unit is reduced, thereby reducing the repeated consideration of the information at the current moment, and can effectively accelerate the convergence of the neural network model during training, shorten the iteration time of the neural network model, thereby improving the training speed and training effect of the neural network model.

[0089] Among them, the Xavier initialization method is a commonly used initialization method. When the neural network model is initialized by the Xavier initialization method, the variance of the activation value output by each network layer remains unchanged during forward propagation, ensuring that information in the neural network model can flow better; during reverse propagation, the variance of the gradient value of each network layer can remain unchanged. Since the weight value matrix w is independent and identically distributed and its mean is 0 during the initialization of the neural network model by the Xavier initialization method, the mean of the weight value matrix is ​​0, and the weight value matrix w is distributed from:

[0090]

[0091] In the process of implementing the present invention, the inventors have found through research that when the existing method uses the Xavier initialization method to initialize the weight parameters of the FSMN, the network converges slowly or does not converge because the memory unit in the FSMN structure repeatedly considers the current moment information.

[0092] Based on the embodiments of the present disclosure, the Xavier initialization method can be used to initialize the weight value of the entire FSMN network. To address the problem that the current moment information is repeatedly included in the memory unit, the weight value initialized at the current moment (that is, the initial value of the weight) is reduced by 1, that is, a weight value matrix with a mean of -1 is initialized for the current moment according to formula (8). The mean of the weight value matrix at other moments remains unchanged and is still 0. The weight values ​​of other non-memory unit layers remain unchanged, and the adjusted FSMN is obtained. Then, the adjusted FSMN is used as the initial model for training. In this way, the problem of repeated consideration of the current moment information, which leads to excessive weight of the current moment information, is effectively alleviated, thereby accelerating the training of the FSMN. Since the training completion condition remains unchanged, the final network performance of the FSMN can be guaranteed.

[0093] Any training method for a neural network model provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any training method for a neural network model provided in the embodiments of the present disclosure may be executed by a processor, such as a processor executing any training method for a neural network model mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.

[0094] Exemplary Devices

[0095] Figure 71 is a schematic diagram of a training device for a neural network model provided by an exemplary embodiment of the present disclosure. The training device for a neural network model can be set in an electronic device such as a terminal device or a server to execute the training method for a neural network model of any of the above embodiments of the present disclosure. Figure 7 As shown, the training device of the neural network model includes:

[0096] The initialization module 501 is used to determine the initial values ​​of the weights of the neurons in the neural network model.

[0097] The adjustment module 502 is used to adjust the initial value of the weight of the neuron in at least one memory unit layer in the neural network model determined by the initialization module 501.

[0098] The training module 503 is used to train the neural network model after the initial value is adjusted by the adjustment module 502.

[0099] Based on the training device of the neural network model provided by the above-mentioned embodiment of the present disclosure, after determining the initial value of the weight of the neuron in the neural network model, the initial value of the weight of the neuron in at least one memory unit layer in the neural network model is adjusted to reduce repeated consideration of some information, and then the neural network model after the initial value adjustment is trained. Since the selection of the initial value of the weight of the neuron in the neural network model will affect the convergence speed of the neural network model training, the embodiment of the present disclosure first adjusts the initial value of the weight of the neuron in at least one memory unit layer before training the neural network model, especially the initial value of the weight corresponding to the repeated information in the neural network model is adjusted, which can effectively accelerate the convergence of the neural network model during training and shorten the iteration time of the neural network model, thereby improving the training speed and training effect of the neural network model.

[0100] In some of the embodiments, the neural network model may include, but is not limited to, any of the following: a recurrent neural network model (RNN), a long short-term memory neural network model (LSTM), a feedforward sequential memory neural network model (FSMN), and the like.

[0101] In some of the embodiments, the initialization module 501 can use any one of various neural network model initialization methods, such as constant initialization method, Gaussian distribution initialization method, uniform distribution initialization method, bilinear initialization method, positive_unitball initialization method, Xavier initialization method and MSRA initialization method, to determine the initial value of the weight of the neuron in the neural network model.

[0102] Figure 8 FIG. 1 is a schematic diagram of a training device for a neural network model provided by another exemplary embodiment of the present disclosure. Figure 8 As shown, in Figure 7 On the basis of the illustrated embodiment, it also includes: a selection module 504, which is used to select part or all of the memory unit layers in the neural network model as the above-mentioned at least one memory unit layer, so that the adjustment module 502 adjusts the initial value of the weight of the neurons in the at least one memory unit layer.

[0103] In some of the implementations, the selection module 504 may select a memory unit layer that is attached to some or all of the dimensionality reduction layers in the neural network model as the at least one memory unit layer.

[0104] In addition, see Figure 8 In some embodiments, in the above Figure 7 or Figure 8 Based on the illustrated embodiment, the adjustment module 502 may include: a determination unit, used to determine the neurons corresponding to the current moment information in the above-mentioned at least one memory unit; a first adjustment unit, used to reduce the initial value of the weight of the neuron corresponding to the current moment determined by the determination unit by a first preset value, wherein the first preset value is a value greater than 0.

[0105] Alternatively, in some other embodiments, the adjustment module 502 may also include: a determination unit, used to determine the neurons in the at least one memory unit corresponding to the information at the current moment; and a second adjustment unit, used to multiply the initial value of the weight of the neuron corresponding to the current moment determined by the determination unit by a second preset value, where the second preset value is a value greater than or equal to 0 and less than 1.

[0106] Exemplary Electronic Devices

[0107] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing processor executable instructions; a processor, configured to read executable instructions from the memory and execute the instructions to implement the training method of the neural network model described in any of the above embodiments of the present disclosure.

[0108] Below, reference Fig. 9The electronic device according to the embodiment of the present disclosure is described. The electronic device may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them.

[0109] Fig. 9 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure. Fig. 9 As shown, the electronic device includes one or more processors 101 and a memory 102 .

[0110] The processor 101 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0111] The memory 102 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 101 may run the program instructions to implement the training method of the neural network model of each embodiment of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0112] In one example, the electronic device may further include: an input device 103 and an output device 104 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0113] For example, when the electronic device is the first device or the second device, the input device 103 may be the microphone or microphone array described above, for capturing input signals from a sound source. When the electronic device is a stand-alone device, the input device 103 may be a communication network connector, for receiving collected input signals from the first device and the second device.

[0114] In addition, the input device 103 may also include, for example, a keyboard, a mouse, and the like.

[0115] The output device 104 can output various information to the outside, including determined distance information, direction information, etc. The output device 104 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0116] Of course, to simplify, Fig. 9 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.

[0117] Exemplary computer program products and computer-readable storage media

[0118] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the training method of the neural network model described in any of the above embodiments of the present disclosure. In addition to the above methods and devices, the embodiments of the present disclosure can also be a computer program product, which includes computer program instructions, which, when executed by a processor, cause the processor to execute the steps in the training method of the neural network model according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.

[0119] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0120] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, causes the processor to execute the steps in the training method of the neural network model according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0121] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0122] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0123] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0124] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0125] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0126] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0127] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0128] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A training method for a neural network model, comprising: Determine the initial values ​​of the weights of neurons in the neural network model; Adjusting the initial value of the weight of neurons in at least one memory unit layer in the neural network model to reduce the initial value of the weight corresponding to the repeated information in the at least one memory unit layer; The neural network model after the initial value is adjusted is trained, and the trained neural network model is applied to speech recognition.

2. The method according to claim 1, wherein: Determining the initial value of the weight of the neuron in the neural network model includes: The initial values ​​of the weights of the neurons in the neural network model are determined by using any one of a constant initialization method, a Gaussian distribution initialization method, a Xavier initialization method and an MSRA initialization method.

3. The method according to claim 1, wherein: Also includes: Select part or all of the memory unit layers in the neural network model as the at least one memory unit layer.

4. The method according to claim 3, wherein: The selecting part or all of the memory unit layers in the neural network model as the at least one memory unit layer includes: A memory unit layer that is hung in parallel with part or all of the dimensionality reduction layers in the neural network model is selected as the at least one memory unit layer.

5. The method according to any one of claims 1 to 4, wherein: The adjusting the initial value of the weight of the neuron in at least one memory unit layer in the neural network model comprises: Determine a neuron in the at least one memory unit corresponding to information at the current moment; The initial value of the weight of the neuron corresponding to the current moment is reduced by a first preset value, where the first preset value is a value greater than 0.

6. The method according to any one of claims 1 to 4, wherein: The adjusting the initial value of the weight of the neuron in at least one memory unit layer in the neural network model comprises: Determine a neuron in the at least one memory unit corresponding to information at the current moment; The initial value of the weight of the neuron corresponding to the current moment is multiplied by a second preset value, where the second preset value is a value greater than or equal to 0 and less than 1.

7. A training device for a neural network model, comprising: An initialization module is used to determine the initial values ​​of the weights of neurons in the neural network model; An adjustment module, used to adjust the initial value of the weight of the neurons in at least one memory unit layer in the neural network model to reduce the initial value of the weight corresponding to the repeated information in the at least one memory unit layer; The training module is used to train the neural network model after the initial value of the adjustment module is adjusted, and the trained neural network model is applied to speech recognition.

8. The device according to claim 7, wherein: Also includes: A selection module is used to select part or all of the memory unit layers in the neural network model as the at least one memory unit layer.

9. The device according to claim 7 or 8, wherein: The adjustment module comprises: A determination unit, used to determine the neuron corresponding to the current moment information in the at least one memory unit; The first adjustment unit is used to reduce the initial value of the weight of the neuron corresponding to the current moment by a first preset value, where the first preset value is a value greater than 0.

10. The device according to claim 7 or 8, wherein: The adjustment module comprises: A determination unit, used to determine the neuron corresponding to the current moment information in the at least one memory unit; The second adjustment unit is used to multiply the initial value of the weight of the neuron corresponding to the current moment by a second preset value, where the second preset value is a value greater than or equal to 0 and less than 1.

11. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method according to any one of claims 1 to 6.

12. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 6.