A parameter adjustment method and device for a model
By obtaining multiple sets of hyperparameter combination information from the original hyperparameter combination information, training multiple basic models to be trained and selecting models with excellent performance, the problems of low flexibility and low accuracy in model parameter adjustment in the existing technology are solved, and the implementation Continuous iterative optimization and performance improvement of the model.
Patent Information
- Application Number
- CN202010307414.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-04-17
AI Technical Summary
The existing technology has low flexibility and low accuracy when adjusting model parameters, resulting in the performance of the target model obtained through training being inferior to an online model that is continuously trained with actual data.
By obtaining multiple sets of hyperparameter combination information from the original hyperparameter combination information, multiple basic models to be trained are trained, and target models that meet the preset conditions are screened based on the performance information, and continuous iterative optimization is performed to improve the accuracy of the model.
It achieves flexibility, rapid iteration and optimization of the model, improves the accuracy of the target model, and solves the problems of low flexibility and low accuracy in the existing technology.
Smart Images

Figure CN113555008B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more particularly to a method, device, electronic device, and storage device for adjusting parameters of a model. The present application also relates to a method, device, electronic device, and storage device for obtaining a speech recognition model. The present application also relates to a speech recognition method, device, electronic device, and storage device. Background Art
[0002] With the continuous development of deep learning (DL) technology, applying the trained models to different application scenarios can better facilitate people's lives. For example, applying the trained models to applications such as speech recognition, semantic understanding, speech synthesis, or search recommendation can conveniently meet people's various needs.
[0003] At present, when training a model, for the hyperparameters in the model, different models are generally trained by manually adjusting the hyperparameters. For example, for the initial basic model to be trained, the first hyperparameter combination information is generally set manually, and the target model corresponding to the first hyperparameter combination information is obtained through training data training; then, the second hyperparameter combination information is set manually, and the target model corresponding to the second hyperparameter combination is obtained through training; after multiple manual adjustments and obtaining at least one target model, a model that meets the performance requirements is selected from the at least one target model for use. Of course, there are also automatic parameter adjustment methods for models. This method generally simulates manual parameter adjustment through a computing device, that is, after obtaining multiple hyperparameter combination information for the initial basic model, the computing device obtains at least one target model corresponding to different hyperparameter combination information in series or parallel, and selects a model that meets the performance requirements from the at least one target model for use.
[0004] However, with the continuous development of deep learning technology, model training usually takes up more computing resources, and the time consumption of a single round of training is also increasing. Therefore, when adjusting the parameters of the model, the existing technology usually has a problem of greatly increasing the time consumption due to its relatively fixed process. As a result, when the target model or hyperparameter combination obtained through training is applied online, the performance of the latest model is not as good as the model obtained through continuous training with actual data online. It can be seen that the current automatic parameter adjustment method for the model has the problems of low flexibility and relatively low accuracy. Summary of the invention
[0005] The embodiment of the present application provides a parameter adjustment method for a model to solve the problems of low flexibility and low accuracy in the prior art.
[0006] An embodiment of the present application provides a parameter adjustment method for a model, including: obtaining any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information; training a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; if there is no target model that meets the preset performance conditions in the first target model, obtaining second hyperparameter combination information and a second basic model to be trained according to the original hyperparameter combination information and the first target model; obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0007] Optionally, the method further includes: obtaining first performance information corresponding to the first target model; and judging, based on the first performance information, whether there is a target model in the first target model that meets the preset performance condition.
[0008] Optionally, judging whether the first target model includes the target model that meets the preset performance condition based on the first performance information includes: if there is performance information in the first performance information that is not less than a preset performance threshold, determining that the target model exists in the first target model.
[0009] Optionally, it also includes: obtaining the target model according to a model in the first target model corresponding to the performance information that is not less than a preset performance threshold.
[0010] Optionally, obtaining second hyperparameter combination information and a second basic model to be trained based on the original hyperparameter combination information and the first target model includes: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets a preset model screening condition from the first target model; and obtaining the second basic model to be trained based on the model that meets the preset model screening condition.
[0011] Optionally, obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein the second initial hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting hyperparameter combination information that meets preset hyperparameter screening conditions from the first hyperparameter combination information; and obtaining the second hyperparameter combination information based on the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening conditions.
[0012] Optionally, selecting hyperparameter combination information that meets preset hyperparameter screening conditions from the first hyperparameter combination information includes: obtaining first performance information corresponding to the first target model; obtaining performance information whose value meets preset first numerical conditions from the first performance information; and obtaining hyperparameter combination information that meets the preset hyperparameter screening conditions based on hyperparameter combination information in the first hyperparameter combination information corresponding to the performance information that meets the preset first numerical conditions.
[0013] Optionally, selecting a model that meets preset model screening conditions from the first target model includes: obtaining first performance information corresponding to the first target model; obtaining performance information whose value meets preset second numerical conditions from the first performance information; and obtaining a model that meets the preset model screening conditions based on the model in the first target model corresponding to the performance information that meets the preset second numerical conditions.
[0014] Optionally, obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained includes: training the second basic model to be trained according to the second hyperparameter combination information to obtain a second target model; if there is a model that meets the preset performance conditions in the second target model, obtaining the target model according to the model that meets the preset performance conditions.
[0015] Optionally, the first basic model to be trained includes an initial basic model to be trained configured by a user.
[0016] Optionally, it also includes: obtaining an initial basic model to be trained; if the original hyperparameter combination information does not meet the preset group training conditions, training the initial basic model to be trained according to the original hyperparameter combination information to obtain performance information used to characterize the performance of the model obtained by training; obtaining performance information whose value meets a preset second numerical condition from the performance information; obtaining target empirical hyperparameter combination information according to the hyperparameter combination information in the original hyperparameter combination information that corresponds to the performance information that meets the preset second numerical condition, wherein the target empirical hyperparameter combination information is used as the empirical hyperparameter when continuously optimizing the initial basic model to be trained.
[0017] Optionally, it also includes: acquiring original training data, using the first hyperparameter combination information to train the first basic model to be trained to obtain a first target model, including: training the first basic model to be trained according to the first hyperparameter combination information and the original training data to obtain the first target model; obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained, including: training the second basic model to be trained according to the second hyperparameter combination information and the original training data to obtain the target model.
[0018] Optionally, if the original training data meets a preset data splitting condition, the method further includes: splitting the original training data according to the preset data splitting condition to obtain at least one group of original group training data; training the first basic model to be trained according to the first hyperparameter combination information to obtain the first target model, further includes: obtaining any group of original group training data from the at least one group of original group training data as the first training data; training the first basic model to be trained according to the first hyperparameter combination information and the first training data to obtain the first target model;
[0019] Optionally, obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained includes: obtaining second training data from the at least one group of original group training data; training the second basic model to be trained according to the second hyperparameter combination information and the second training data to obtain the target model, wherein the second training data is any group of original group training data in the at least one group of original group training data except the first training data.
[0020] Optionally, if the amount of the original training data is not less than a preset training data threshold, it is determined that the original training data meets the preset data splitting condition.
[0021] Optionally, it also includes: obtaining first performance information corresponding to a first target model, and obtaining second performance information corresponding to the target model; and obtaining performance change information corresponding to the original hyperparameter combination information based on the first performance information and the second performance information.
[0022] Optionally, the method further includes: obtaining a trigger operation for characterizing the initiation of a parameter adjustment operation; and in response to the trigger operation, executing a step of obtaining any set of hyperparameter combination information from the original hyperparameter combination information as the first hyperparameter combination information.
[0023] Optionally, the original hyperparameter combination information includes information of at least one of the following hyperparameter combinations: a hyperparameter combination configured by the user corresponding to the initial basic model to be trained, and a hyperparameter combination obtained from historical hyperparameter combinations corresponding to the initial basic model to be trained.
[0024] An embodiment of the present application also provides a method for obtaining a speech recognition model, including: obtaining any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model; training a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; if there is no target speech recognition model that meets preset performance conditions in the first target speech recognition model, obtaining second hyperparameter combination information and a second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; obtaining the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0025] An embodiment of the present application also provides a speech recognition method, comprising: obtaining speech information to be recognized; inputting the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the above-mentioned speech recognition model acquisition method.
[0026] Optionally, the method is applied to a server, and the method further includes: providing the target identification information to a client.
[0027] Optionally, the method further includes: acquiring service content information corresponding to the target identification information; and providing the service content information to the client.
[0028] Optionally, the method is applied to a client, and the method further includes: acquiring the target identification information; and displaying or playing the target identification information.
[0029] Optionally, the method further includes: acquiring service content information corresponding to the target identification information; and displaying or playing the service content information.
[0030] Optionally, the client includes a computing device that provides proximal services through edge computing.
[0031] Optionally, the computing device includes at least one of the following computing devices: a smart speaker device, a vehicle navigation device, and a translation device.
[0032] An embodiment of the present application also provides a parameter adjustment device for a model, including: a first information acquisition unit, used to obtain any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information; a first target model acquisition unit, used to train a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; a second information acquisition unit, used to determine whether there is a target model that meets preset performance conditions in the first target model, and if not, obtain second hyperparameter combination information and a second basic model to be trained according to the original hyperparameter combination information and the first target model; a target model acquisition unit, used to obtain the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0033] The present application also provides an electronic device, including:
[0034] processor;
[0035] A memory is used to store a program of a parameter adjustment method for a model. After the device is powered on and the program of the parameter adjustment method for the model is run by the processor, the following steps are performed:
[0036] From the original hyperparameter combination information, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; if there is no target model that meets the preset performance conditions in the first target model, obtain the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model; obtain the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0037] The embodiment of the present application further provides a storage device storing a program of a parameter adjustment method for a model, wherein the program is executed by a processor to perform the following steps:
[0038] From the original hyperparameter combination information, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; if there is no target model that meets the preset performance conditions in the first target model, obtain the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model; obtain the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0039] An embodiment of the present application also provides a device for obtaining a speech recognition model, including: a first speech information obtaining unit, used to obtain any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model; a first target speech recognition model obtaining unit, used to train a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; a second speech information obtaining unit, used to determine whether there is no target speech recognition model that meets a preset performance condition in the first target speech recognition model, and if not, obtain second hyperparameter combination information and a second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; a target speech recognition model obtaining unit, used to obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0040] The present application also provides an electronic device, including:
[0041] processor;
[0042] A memory is used to store a program of a method for obtaining a speech recognition model. After the device is powered on and the program of the method for obtaining a speech recognition model is run by the processor, the following steps are performed:
[0043] From the original hyperparameter combination information corresponding to the speech recognition model, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first speech recognition model to be trained according to the first hyperparameter combination information to obtain the first target speech recognition model; if there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, obtain the second hyperparameter combination information and the second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0044] The embodiment of the present application further provides a storage device storing a program of a method for obtaining a speech recognition model, wherein the program is executed by a processor to perform the following steps:
[0045] From the original hyperparameter combination information corresponding to the speech recognition model, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first speech recognition model to be trained according to the first hyperparameter combination information to obtain the first target speech recognition model; if there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, obtain the second hyperparameter combination information and the second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0046] An embodiment of the present application also provides a speech recognition device, comprising: an acquisition unit, used to acquire speech information to be recognized; a recognition unit, used to input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the above-mentioned speech recognition model acquisition method.
[0047] The present application also provides an electronic device, including:
[0048] processor;
[0049] The memory is used to store a program of the speech recognition method. After the device is powered on and the program of the speech recognition method is run by the processor, the following steps are performed:
[0050] Acquire speech information to be recognized; input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the above-mentioned speech recognition model acquisition method.
[0051] The embodiment of the present application further provides a storage device storing a program of a speech recognition method, wherein the program is executed by a processor to perform the following steps:
[0052] Acquire speech information to be recognized; input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the above-mentioned speech recognition model acquisition method.
[0053] Compared with the prior art, this application has the following advantages:
[0054] An embodiment of the present application provides an automatic parameter adjustment method for a model, comprising: obtaining any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information; training a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; if the first target model does not include a target model that meets preset performance conditions, obtaining second hyperparameter combination information and a second basic model to be trained according to the original hyperparameter combination information and the first target model; obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained. Compared with the existing automatic parameter adjustment method, after obtaining the first target model through training with the first hyperparameter combination information, if it is determined that the first target model does not include the target model, the method obtains the second hyperparameter combination information according to the original hyperparameter combination information and the first target model obtained in the previous round of training, and obtains the second basic model to be trained corresponding to the second hyperparameter combination information, that is, on the basis of the previous round of training, the hyperparameter combination information and the basic model to be trained for the second round of training are obtained, so that the continuous iteration of the model can be realized flexibly and quickly, and because the second basic model to be trained used in the second round of training is a model obtained according to the first target model obtained in the first round of training, the continuous optimization of the model can also be realized to increase the accuracy of the target model.
[0055] The embodiment of the present application also provides a method for obtaining a speech recognition model, including: obtaining any set of hyperparameter combination information as first hyperparameter combination information from the original hyperparameter combination information corresponding to the speech recognition model; training a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; if there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, obtaining second hyperparameter combination information and a second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; obtaining the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained. The method can flexibly and quickly realize the continuous iteration of the speech recognition model to be trained, thereby obtaining a target speech recognition model with higher accuracy.
[0056] The embodiment of the present application also provides a speech recognition method, comprising: obtaining speech information to be recognized; inputting the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using a speech recognition model obtaining method. The method can increase the recognition accuracy of the speech information to be recognized. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1-AIt is a schematic diagram of the first application scenario of a parameter adjustment method for a model provided in the first embodiment of the present application.
[0058] Figure 1-B It is a schematic diagram of a second application scenario of a parameter adjustment method for a model provided in the first embodiment of the present application.
[0059] Figure 2 It is a framework diagram of the parameter adjustment method for the model existing in the prior art provided in the first embodiment of the present application.
[0060] Figure 3 It is a flowchart of a parameter adjustment method for a model provided in the first embodiment of the present application.
[0061] Figure 4 It is a framework diagram of a parameter adjustment method for a model provided in the first embodiment of the present application.
[0062] Figure 5 This is a flowchart of a method for obtaining a speech recognition model provided in the second embodiment of the present application.
[0063] Figure 6 This is a flow chart of a speech recognition method provided in the third embodiment of the present application.
[0064] Figure 7 This is a schematic diagram of a parameter adjustment device for a model provided in the fourth embodiment of the present application.
[0065] Figure 8 It is a schematic diagram of an electronic device provided in the fifth embodiment of the present application.
[0066] Fig. 9 It is a schematic diagram of a device for obtaining a speech recognition model provided in the seventh embodiment of the present application.
[0067] Fig.10 It is a schematic diagram of a speech recognition device provided in the tenth embodiment of the present application. DETAILED DESCRIPTION
[0068] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0069] In order to enable those skilled in the art to better understand the present application, the following describes in detail the specific application scenarios of the embodiments based on the parameter adjustment method for the model provided in the present application. The parameter adjustment method for the model provided in the first embodiment of the present application can be applied to the interaction scenario between the client and the server, such as Figure 1-AAs shown, it is a schematic diagram of the first application scenario of a parameter adjustment method for a model provided in the first embodiment of the present application.
[0070] In specific implementation, the method generally obtains a hyperparameter combination for the model in advance when the user needs to train a model for processing certain application data or to further optimize the performance of the model, and sets the hyperparameter combination to the model, thereby obtaining an optimized target model corresponding to the hyperparameter combination, wherein the model for processing certain application data can be a speech recognition model, a semantic understanding model, a speech synthesis model, a search recommendation model or other models. Specifically, after the client accepts the original hyperparameter combination information configured by the user and obtains the trigger operation for characterizing the start of the parameter adjustment operation, in response to the trigger operation, the client sends the original hyperparameter combination information to the server, and the server obtains the original hyperparameter combination information corresponding to the model to be trained, obtains any set of hyperparameter combination information from the original hyperparameter combination information as the first hyperparameter combination information, and trains the first basic model to be trained corresponding to the model to be trained according to the first hyperparameter combination information to obtain the first target model; thereafter, if there is no target model that meets the preset performance conditions in the first target model, the server obtains the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model, and obtains the target model that meets the preset performance conditions according to the second hyperparameter combination information and the second basic model to be trained; after obtaining the target model, the server can provide the target model to the client, or, based on the target model, can also use the training data corresponding to the target model to train and optimize the weight parameters of the target model, thereby achieving performance optimization of the model and improving the accuracy of the model processing results.
[0071] like Figure 1-B As shown, it is a schematic diagram of a second application scenario of a parameter adjustment method for a model provided in the first embodiment of the present application. Figure 1-BAs shown, in a speech recognition scenario, for example, an interaction scenario between a user and a smart speaker device, an interaction scenario between a user and a navigation device, or an interaction scenario between a user and an instant translation device, after the client obtains the speech information to be recognized, the client sends the speech information to be recognized to the server, and after obtaining the speech information to be recognized, the server inputs the speech information to be recognized into a pre-trained target speech recognition model, and obtains target recognition information corresponding to the speech information to be recognized through the target speech recognition model, wherein the target speech recognition model can be obtained in advance by the server through the following steps: obtaining any set of hyperparameter combination information as first hyperparameter combination information from the original hyperparameter combination information corresponding to the speech recognition model; training the first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; if there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, obtaining second hyperparameter combination information and a second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; obtaining the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0072] Of course, with the continuous advancement of technology, the method can also be applied separately to the client or server. For example, the method can be directly deployed in the client. After the client obtains the hyperparameter combination information configured by the user and obtains the trigger operation for starting the parameter adjustment operation, the method is directly used to adjust the initial basic model configured by the user to obtain and output the target model, wherein the trigger operation can be an operation manually triggered by the user in real time, or an operation pre-set by the user to be performed within a predetermined time. In addition, in the process of implementing the method, steps for interacting with the user can also be added. For example, after obtaining the first target model, the user configuration information can be further obtained, and the second hyperparameter combination information and the second basic model to be trained can be obtained based on the user configuration information, the original hyperparameter combination information and the first target model.
[0073] The client can be a mobile terminal device, such as a mobile phone, a tablet computer, etc., or a common computer device. The server generally refers to a server, which can be a physical server or a cloud server, and is not specifically limited here.
[0074] The original hyperparameter combination information is information of at least one hyperparameter combination corresponding to the model to be trained, and the information may be an identifier for uniquely identifying a hyperparameter combination, wherein the hyperparameter combination includes the value of at least one hyperparameter corresponding to the model to be trained. In deep learning, when training a model, it is necessary to pre-set the hyperparameters of the model, such as the learning rate, regularization parameter, dropout, weight decay, kernel size, etc. of the model; when training the model to be trained to obtain the target model, it is necessary to pre-configure at least one hyperparameter combination corresponding to the model to be trained by the user according to the characteristics of the model, and the hyperparameter combination needs to include at least one hyperparameter.
[0075] It should be noted that the above application scenarios are merely specific embodiments of the parameter adjustment method for the model provided in the first embodiment of the present application. The purpose of providing the above application scenarios is to facilitate understanding of the method, and is not used to limit the method.
[0076] Before specifically introducing the method provided in the first embodiment of the present application, a brief introduction to the parameter adjustment method for the model in the prior art is first given. Figure 2 As shown, it is a framework diagram of the parameter adjustment method for the model existing in the prior art provided in the first embodiment of the present application.
[0077] according to Figure 2It can be seen from the content that the existing method for adjusting the parameters of the model includes: "user configuration", that is, the user configures the initial data, such as the parameter adjustment strategy, model training script command, at least one set of original hyperparameter combination information, process end conditions and parallel task data configuration, etc. Among them, the parameter adjustment strategy generally includes: Bayesian Optimization, Grid Search and Random Search. The method comprises the following steps: a) performing automatic parameter adjustment on the initial data configured by the user; b) performing automatic parameter adjustment on the initial data configured by the user; c) performing automatic parameter adjustment on the initial data configured by the user; e) performing automatic parameter adjustment on the initial data configured by the user; f ... Unit) and other resources; then, the scheduling processor determines whether the target model that meets the performance conditions has been obtained based on the obtained performance information. If not, the next hyperparameter combination information is selected according to the parameter adjustment strategy, and the corresponding training is continued; through loop optimization, the target model that meets the performance conditions and the hyperparameter combination information corresponding to the target model are obtained.
[0078] According to the above introduction, the target model and the corresponding hyperparameter combination information obtained by the parameter adjustment method for the model in the prior art are only the output results of one iteration, that is, the target model and the hyperparameter combination information corresponding to the target model are screened out from the intermediate target model obtained from each hyperparameter combination information; and with the development of deep learning, the acquisition process of the target model takes a long time, and the performance effect of the target model obtained by the above method is lower than the performance effect of the model after continuous training and tuning (tuning) online, that is, its accuracy is not as good as the model running online. Therefore, the target model obtained by the above method is often rarely put into practical use, and the hyperparameter combination corresponding to the obtained target model can only be used as the empirical hyperparameter for training and optimizing the actual model running online; that is, the above method in the prior art has the problems of low flexibility and low accuracy when adjusting the parameters for the model.
[0079] The parameter adjustment method for the model provided in the first embodiment of the present application improves the above method in the prior art to solve the above problems, such as Figure 3 , Figure 4 As shown, they are respectively a flow chart of a parameter adjustment method for a model provided in the first embodiment of the present application, and a schematic diagram of its framework. Figure 3 , Figure 4 The method provided in the first embodiment of the present application is introduced.
[0080] Step S301, obtaining any set of hyperparameter combination information from the original hyperparameter combination information as the first hyperparameter combination information.
[0081] like Figure 4 As shown, when implementing the method described in the first embodiment of the present application, the user configuration module is also required to configure the initial data, such as parameter adjustment strategy, model training script commands, at least one set of original hyperparameter combination information, first process end condition, second process end condition and parallel task data configuration, etc.
[0082] After obtaining the original hyperparameter combination information configured by the user, in order to save computing resources and flexibly adjust the amount of training data during model training, the original hyperparameter combination information can be split into at least one group of hyperparameter combination information, and then any group of hyperparameter combination information can be used as the first hyperparameter combination information to be subsequently processed.
[0083] It should be noted that the original hyperparameter combination information in the first embodiment of the present application can be information on at least one hyperparameter combination corresponding to the initial basic model to be trained, or information on a hyperparameter combination obtained from historical hyperparameter combinations corresponding to the initial basic model to be trained; in addition, the "first" and "second" in the first hyperparameter combination information and the second hyperparameter combination information in subsequent processing are general terms, which are used to distinguish different hyperparameter combination information. For example, the original hyperparameter combination information is 100 combinations, and these 100 combinations are divided into 10 groups. When processing the second group of hyperparameter combination information, the first group of hyperparameter combination information is equivalent to the first hyperparameter combination information, and the second group of hyperparameter combination information is the second hyperparameter combination information; and when processing the third group of hyperparameter combination information, the second group of hyperparameter combination information is equivalent to the first hyperparameter combination information, and the third group of hyperparameter combination information is equivalent to the second hyperparameter combination information. In addition, in the first embodiment of the present application, the model to be adjusted is a speech recognition model for speech recognition, and the original hyperparameter combination information is taken as the original speech hyperparameter combination information corresponding to the speech recognition model for introduction; of course, the method can also be used to adjust parameters for other models, for example, for semantic understanding models, speech synthesis models, or search recommendation models.
[0084] Step S302: train a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model.
[0085] In the method provided in the first embodiment of the present application, after obtaining a set of hyperparameter combination information and the corresponding basic model to be trained, the parameter adjustment method for the model described in the prior art is used as a subtask of the method described in the first embodiment of the present application, see Figure 4 The first target model is obtained by training the first basic model to be trained according to the first hyperparameter combination information. Figure 4 The "first scheduling processor" shown selects the training data corresponding to the first hyperparameter combination information and the corresponding first basic model to be trained according to the "pre-subtask configuration", and uses the above-mentioned data obtained as the input parameter (Input Parameter) of the "subtask system" to obtain the first target model through the subtask system.
[0086] It should be noted that the first basic model to be trained includes an initial basic model to be trained configured by the user, wherein the initial basic model to be trained refers to the initial model configured by the user in the user configuration module, that is, when the method described in the first embodiment of the present application is run for the first time, the first basic model to be trained corresponding to the first hyperparameter combination information is the initial basic model to be trained.
[0087] For example, when adjusting the parameters of a speech recognition model, the original hyperparameter combination information corresponding to the speech recognition model is 100 combinations, and the 100 combinations are divided into ten groups. When the first basic model to be trained is trained with the first group of hyperparameter combination information as the initial first hyperparameter combination information, the first basic model to be trained is configured as the initial speech recognition model to be trained in the "Configuration before subtask running".
[0088] It should be noted that the above is only a specific embodiment provided for the first embodiment of the present application. In specific implementation, the first basic model to be trained can also be trained according to the first hyperparameter combination information by other methods, which will not be repeated here.
[0089] After step S302, step S303 is executed. If there is no target model that meets the preset performance conditions in the first target model, second hyperparameter combination information and a second basic model to be trained are obtained according to the original hyperparameter combination information and the first target model.
[0090] In the above steps, the first target model corresponding to the first hyperparameter combination information is obtained, that is, at least one intermediate target model corresponding to at least one hyperparameter combination information in a certain set of hyperparameter combination information is obtained; in the method provided in the first embodiment of the present application, whenever the "subtask system" ends and returns at least one intermediate target model, it is necessary to determine whether a target model that meets the user's needs has been obtained according to the first process end condition configured by the user. The first process end condition can be a user-preset performance condition, for example, it can be an accuracy threshold corresponding to the recognition accuracy of the speech recognition model.
[0091] In a first embodiment of the present application, a method for determining whether a target model that meets preset performance conditions exists in a first target model is provided, specifically comprising: obtaining first performance information corresponding to the first target model; and determining, based on the first performance information, whether a target model that meets the preset performance conditions exists in the first target model.
[0092] The first performance information corresponds to the first target model and is information corresponding to at least one intermediate target model obtained through training with each set of hyperparameter combination information. It can be used to characterize the performance effect of the intermediate target model obtained through training. For example, for a speech recognition model, the corresponding performance information can generally be an accuracy value that characterizes the accuracy of the model processing result, or a response speed value that characterizes the processing speed of the model, or a statistical value that characterizes the comprehensive performance effect of the model. For example, it can be a statistical value obtained by weighted averaging of accuracy values, response speed values, etc., and is used to characterize the performance effect of the model from multiple dimensions.
[0093] Specifically, judging whether the first target model includes the target model that meets the preset performance condition based on the first performance information includes: if the first performance information contains performance information that is not less than a preset performance threshold, judging that the target model exists in the first target model. That is to say, if the first performance information contains performance information that is not less than the preset performance threshold, it is considered that the target model that meets the user's needs has been obtained and the process end condition has been met. Therefore, the target model can be obtained based on the model in the first target model that corresponds to the performance information that is not less than the preset performance threshold. For example, the model in the first target model that corresponds to the performance information that is not less than the preset performance threshold is directly used as the target model. It should be noted that the settings of the preset performance conditions and preset performance thresholds can be set according to actual conditions and are not specifically limited here.
[0094] Of course, if there is no model in the first target model that meets the preset performance conditions, the second hyperparameter combination information and the second basic model to be trained can be obtained based on the first target model, according to the original hyperparameter combination information and the first target model, as introduced below.
[0095] The method of obtaining the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model includes: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets a preset model screening condition from the first target model; and obtaining the second basic model to be trained according to the model that meets the preset model screening condition.
[0096] Please see Figure 4The "sub-task result processing" shown is different from the prior art in which each round of training is performed on the initial basic model to be trained configured by the user. In order to increase the accuracy of the target model obtained, the first embodiment of the present application provides a method for obtaining second hyperparameter combination information and a second basic model to be trained. Specifically, at the end of each round of training, the input parameters of the "sub-task system" in the next round of training can be obtained based on the previous round of training.
[0097] Specifically, obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein the second initial hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting hyperparameter combination information that meets preset hyperparameter screening conditions from the first hyperparameter combination information; and obtaining the second hyperparameter combination information based on the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening conditions.
[0098] like Figure 4 The "hyperparameter screening" shown, that is, in order to improve the accuracy of the target model obtained by training, after at least one intermediate target model is obtained by training through at least one hyperparameter combination information in the first hyperparameter combination information, when obtaining the second hyperparameter combination information, through "hyperparameter screening", the hyperparameter combination information with better performance effect of the model obtained by training in the first hyperparameter combination information can also be used as data in the second hyperparameter combination information, so that the method can further train the model to be trained in this round on the basis of the results obtained in the previous round of training, so that each round of training in the method can be closely combined, rather than independent of each other.
[0099] Among them, selecting hyperparameter combination information that meets preset hyperparameter screening conditions from the first hyperparameter combination information includes: obtaining first performance information corresponding to the first target model; obtaining performance information whose value meets the preset first numerical condition from the first performance information; and obtaining hyperparameter combination information that meets the preset hyperparameter screening conditions based on the hyperparameter combination information in the first hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition.
[0100] In the first embodiment of the present application, the performance information whose value satisfies the preset first numerical condition may be obtained by obtaining a number of performance information with the maximum value in the first performance information, that is, selecting Top-K preferred performance information with relatively good performance effects from the first performance information.
[0101] For example, when adjusting parameters for a speech recognition model, the original speech hyperparameter combination information corresponding to the speech recognition model is 100 combinations, and the 100 combinations are divided into ten groups, the first hyperparameter combination information is the first group of hyperparameter combination information, such as (paragroup1, ..., paragroup10), and the first performance information of the first target model corresponding to the first hyperparameter combination information is an evaluation score for characterizing the performance effect of the model, such as (score1, ..., score10); when obtaining the second hyperparameter combination information, the second group of hyperparameter combination information can be used as the second initial hyperparameter combination information, such as (paragroup11, ..., paragroup20), and the first hyperparameter combination information corresponding to the performance information of the Top-K maximum values in the first performance information is selected, for example, the Top-2 maximum values in the first performance information are selected, such as score3 and score6, then the first hyperparameter combination information corresponding to them are paragroup3 and paragroup6 respectively; then, the second hyperparameter combination information can be (paragroup3, paragroup6, paragroup11, ..., paragroup20).
[0102] Correspondingly, in order to further improve the accuracy of the obtained target model, compared with the method in the prior art that trains the initial basic model configured by the user in each round of training, the method provided in the first embodiment of the present application, in each round of training, the basic model to be trained can be a model that satisfies the preset model screening conditions selected from the intermediate target model obtained in the previous round of training as the basic model to be trained in this round, that is, the selection of the model that satisfies the preset model screening conditions from the first target model includes: obtaining first performance information corresponding to the first target model; obtaining performance information whose value satisfies the preset second numerical condition from the first performance information; obtaining a model that satisfies the preset model screening condition according to the model in the first target model that corresponds to the performance information that satisfies the preset second numerical condition. Among them, the preset second numerical condition can be the maximum value of the numerical value in the first performance information, that is, when conducting this round of training, through Figure 4 The “initial model setting” shown uses the model with better performance among the intermediate target models obtained in the previous round of training as the second basic model to be trained in this round.
[0103] It should be noted that, in specific implementation, the preset model screening condition, the preset hyperparameter screening condition, the preset first numerical condition and the preset second numerical condition can be set according to actual conditions, and no special limitation is made here.
[0104] The above describes in detail how to obtain the second hyperparameter combination information and the second basic model to be trained based on the original hyperparameter combination information and the first target model when there is no target model that meets the preset performance conditions in the first target model.
[0105] After step S303, step S304 is executed to obtain the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0106] After obtaining the second hyperparameter combination information and the second basic model to be trained in this round based on the previous round of training, the target model can be obtained according to the second hyperparameter combination information and the second basic model to be trained.
[0107] Specifically, the target model is obtained according to the second hyperparameter combination information and the second basic model to be trained, including: training the second basic model to be trained according to the second hyperparameter combination information to obtain a second target model; if there is a model that meets the preset performance conditions in the second target model, then obtaining the target model according to the model that meets the preset performance conditions.
[0108] That is, based on the previous round of training, continue to train the second basic model to be trained in the "sub-task system" according to the second hyperparameter combination information, and determine whether there is a target model that meets the preset performance conditions in the obtained second target model. If not, you can continue to iterate on the basis of this round until you obtain a target model that meets the preset performance conditions.
[0109] In addition, it should be noted that the method also includes: obtaining an initial basic model to be trained; if the original hyperparameter combination information does not meet the preset group training conditions, training the initial basic model to be trained according to the original hyperparameter combination information to obtain performance information for characterizing the performance of the model obtained by training; obtaining performance information whose value meets a preset second numerical condition from the performance information; obtaining target empirical hyperparameter combination information based on the hyperparameter combination information in the original hyperparameter combination information that corresponds to the performance information that meets the preset numerical condition, wherein the target empirical hyperparameter combination information is used as the empirical hyperparameter when continuously optimizing the initial basic model to be trained.
[0110] That is to say, when the method provided in the first embodiment of the present application is used to adjust the parameters of the initial basic model to be trained configured by the user, if the parameter space of the hyperparameters corresponding to the initial basic model to be trained is small, that is, the number of combinations of hyperparameters is small, the training can usually be completed through one round of training. In this case, there is a situation where the target model that meets the preset performance conditions cannot be obtained. In view of this situation, when the method is specifically implemented, the hyperparameter combination information with better performance effect can be selected according to the performance information corresponding to the obtained intermediate target model as the empirical hyperparameters used for continuous optimization of the model in the future, that is, the empirical hyperparameters used to adjust and optimize the initial basic model to be trained in daily training are obtained.
[0111] When the method provided in the first embodiment of the present application is implemented, the same amount of training data can be used in each cycle to train the basic model to be trained, that is, the method also includes: obtaining original training data; using the first hyperparameter combination information to train the first basic model to be trained to obtain a first target model, including: training the first basic model to be trained according to the first hyperparameter combination information and the original training data to obtain the first target model; obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained, including: training the second basic model to be trained according to the second hyperparameter combination information and the original training data to obtain the target model.
[0112] Please refer to Figure 4The "training data screening" shown in the figure is time-consuming and inflexible in the methods in the prior art. The first embodiment of the present application provides a flexible implementation method. Specifically, if the original training data meets the preset data splitting condition, the method also includes: splitting the original training data according to the preset data splitting condition to obtain at least one group of original group training data; training the first basic model to be trained according to the first hyperparameter combination information to obtain the first target model, and also includes: obtaining any group of original group training data from the at least one group of original group training data as the first training data; training the first basic model to be trained according to the first hyperparameter combination information and the first training data to obtain the first target model; obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained, including: obtaining second training data from the at least one group of original group training data; training the second basic model to be trained according to the second hyperparameter combination information and the second training data to obtain the target model, wherein the second training data is any group of original group training data in the at least one group of original group training data except the first training data. If the amount of the original training data is not less than the preset training data threshold, it is determined that the original training data meets the preset data splitting condition.
[0113] That is, in a specific implementation, if the original training data meets the preset data splitting conditions, for example, the amount of original training data is not less than the preset training data threshold, then the original training data can be split according to the preset data splitting method, for example, the original training data is split into groups with the same values as the original hyperparameter combination information; thereafter, in each round of training, each group of hyperparameter combination information can use the corresponding grouped training data to train the basic model to be trained.
[0114] For example, when adjusting the parameters of a speech recognition model, there are 100 combinations of original speech hyperparameter combination information corresponding to the speech recognition model, and the 100 combinations are divided into ten groups, that is, 10 hyperparameter combinations are trained in each round of training; if there are 50 million original training data, and if each round of training uses 50 million original training data for training, then the training time will be extremely high; in order to reduce the training time, the 50 million original training data pages can be divided into 10 groups; in this way, only 5 million training data can be used in each round of training, so that the overall iteration can also be applied to the 50 million original training data; and if the target model that meets the preset performance conditions has been obtained in a certain iteration, the training can be terminated, thereby reducing the training time.
[0115] It should be noted that the above is only a specific embodiment provided in the first embodiment of the present application. In the specific implementation, the preset data splitting conditions, the preset training data threshold and the selection of training data in each round of training can be set according to actual conditions, and no special limitation is made here.
[0116] According to the above description, in the process of obtaining the target model by the method described in the first embodiment of the present application, performance information corresponding to different intermediate target models can be obtained, for example, first performance information corresponding to the first target model, second performance information corresponding to the second target model, etc. Therefore, after obtaining the target model, the performance change information corresponding to each hyperparameter combination information in the original hyperparameter combination information can also be obtained through the performance information corresponding to each hyperparameter combination information, so that when the model is actually trained in the future, the hyperparameter combination of the model can be set with reference to the performance change information, so as to further facilitate the manual tuning of the model and increase the accuracy of the model processing results. Therefore, the method provided in the first embodiment of the present application also includes: obtaining first performance information corresponding to the first target model, and obtaining second performance information corresponding to the target model; according to the first performance information and the second performance information, obtaining performance change information corresponding to the original hyperparameter combination information.
[0117] To summarize, the parameter adjustment method for the model provided in the first embodiment of the present application includes: obtaining any set of hyperparameter combination information as the first hyperparameter combination information from the original hyperparameter combination information; training the first basic model to be trained according to the first hyperparameter combination information to obtain the first target model; if the first target model does not include a target model that meets the preset performance conditions, obtaining the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model; obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained. Compared with the existing automatic parameter adjustment method, after obtaining the first target model through training with the first hyperparameter combination information, if it is determined that the first target model does not include the target model, the method obtains the second hyperparameter combination information according to the original hyperparameter combination information and the first target model obtained in the previous round of training, and obtains the second basic model to be trained corresponding to the second hyperparameter combination information, that is, on the basis of the previous round of training, the hyperparameter combination information and the basic model to be trained for the second round of training are obtained, so that the continuous iteration of the model can be realized flexibly and quickly, and because the second basic model to be trained used in the second round of training is a model obtained according to the first target model obtained in the first round of training, the continuous optimization of the model can also be realized to increase the accuracy of the target model.
[0118] Corresponding to the parameter adjustment method for the model provided in the first embodiment of the present application, the second embodiment of the present application also provides a method for obtaining a speech recognition model, please refer to Figure 5 As shown, it is a flowchart of a method for obtaining a speech recognition model provided in the second embodiment of the present application, wherein some steps have been described in detail in the first embodiment of the present application, so the description here is relatively simple. For relevant matters, please refer to some descriptions in the first embodiment of the present application. The processing process described below is only illustrative.
[0119] Step S501, obtaining any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model.
[0120] Step S502: train a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model.
[0121] Step S503, if there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, obtain second hyperparameter combination information and a second speech recognition model to be trained based on the original hyperparameter combination information and the first target speech recognition model.
[0122] Step S504: Obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0123] Corresponding to the methods provided in the first and second embodiments of the present application, the third embodiment of the present application further provides a speech recognition method, see Figure 6 As shown, it is a flow chart of a speech recognition method provided in the third embodiment of the present application, wherein some steps have been described in detail in the first and second embodiments of the present application, so the description here is relatively simple. For relevant matters, please refer to some descriptions in the first and second embodiments of the present application. The processing process described below is only illustrative.
[0124] Step S601, obtaining voice information to be recognized.
[0125] Step S602: input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the method for obtaining the speech recognition model.
[0126] In a specific implementation, when the method is applied to a server, after the server obtains the target recognition information corresponding to the voice information to be recognized sent by the client, the server can also provide the target recognition information to the client so that the client can display the target recognition information; or, the server can also obtain the service content information corresponding to the voice information to be recognized, and provide the service content information to the client so that the client can provide services to the user by displaying or playing the service content information according to the service content information.
[0127] For example, in a smart home environment, a user can send a voice message to be recognized to the smart speaker device, "Please play today's weather." After receiving the voice message to be recognized, the smart speaker device sends the voice message to be recognized to the cloud server connected to it. The cloud server uses the target voice recognition model obtained by the above-mentioned voice recognition model acquisition method to recognize the voice message to be recognized, obtains the corresponding target recognition information, and obtains the service content information related to today's weather "Sunny, light breeze, current temperature 20 degrees" through search based on the content of the target recognition information, and provides the service content information to the smart speaker device. After obtaining the service content information sent by the cloud server, the smart speaker device can directly display the service content information on its display screen, or can directly play the service content information, thereby providing services to users quickly and accurately and improving user experience.
[0128] In addition, in order to further increase the response speed of the client computing device, the method can also be applied separately to a computing device that provides the nearest service to the user through edge computing. For example, the target speech recognition model obtained by the above-mentioned speech recognition model acquisition method can be deployed separately in a computing device such as an intelligent speaker device, a navigation device or a translation device that directly interacts with the user, so that the client can quickly recognize the speech information to be recognized through its built-in target speech recognition model after obtaining the speech information to be recognized issued by the user, so as to display the obtained target recognition information to the user, or directly obtain the service content information corresponding to the target recognition information, and provide the service content information to the user by displaying or playing, so as to quickly provide the nearest service to the user. For example, the target speech recognition model obtained by the above-mentioned speech recognition model acquisition method can be deployed separately in a car navigation device. When the user sends a speech information to be recognized of "navigating to xxx destination", the car navigation device recognizes the speech information, obtains the navigation path corresponding to the speech information through its built-in navigation path calculation module, and displays the obtained navigation path to the user for the user to select a suitable navigation path.
[0129] It should be noted that the voice recognition method provided in the third embodiment of the present application is illustrated here by using a smart speaker device and a car navigation device as examples. In specific implementation, the method can of course also be applied to other computing devices providing different service contents such as instant translation devices and information query devices as needed, and will not be repeated here.
[0130] Corresponding to the parameter adjustment method for a model provided in the first embodiment of the present application, the fourth embodiment of the present application further provides a parameter adjustment device for a model, see Figure 7 , which is a schematic diagram of a parameter adjustment device for a model provided in the fourth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For relevant parts, please refer to the partial description of the method embodiment. The device embodiment described below is only illustrative. A parameter adjustment device for a model provided in the fourth embodiment of the present application includes the following parts:
[0131] The first information obtaining unit 701 is used to obtain any set of hyperparameter combination information from the original hyperparameter combination information as the first hyperparameter combination information.
[0132] The first target model obtaining unit 702 is used to train the first basic model to be trained according to the first hyperparameter combination information to obtain a first target model.
[0133] The second information obtaining unit 703 is used to determine whether there is a target model that meets the preset performance conditions in the first target model. If not, obtain the second hyperparameter combination information and the second basic model to be trained based on the original hyperparameter combination information and the first target model.
[0134] The target model obtaining unit 704 is used to obtain the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0135] Optionally, the device further includes a performance information obtaining unit, which is specifically used to obtain first performance information corresponding to the first target model; and determine whether there is a target model in the first target model that meets the preset performance condition based on the first performance information.
[0136] Optionally, the performance information obtaining unit includes a determination subunit, configured to determine whether there is performance information in the first performance information that is not less than a preset performance threshold, and if so, determine that the target model exists in the first target model.
[0137] Optionally, the performance information obtaining unit further includes a target model obtaining subunit, configured to obtain the target model according to a model in the first target model corresponding to the performance information that is not less than a preset performance threshold.
[0138] Optionally, obtaining second hyperparameter combination information and a second basic model to be trained based on the original hyperparameter combination information and the first target model includes: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets a preset model screening condition from the first target model; and obtaining the second basic model to be trained based on the model that meets the preset model screening condition.
[0139] Optionally, obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein the second initial hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting hyperparameter combination information that meets preset hyperparameter screening conditions from the first hyperparameter combination information; and obtaining the second hyperparameter combination information based on the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening conditions.
[0140] Optionally, selecting hyperparameter combination information that meets preset hyperparameter screening conditions from the first hyperparameter combination information includes: obtaining first performance information corresponding to the first target model; obtaining performance information whose value meets preset first numerical conditions from the first performance information; and obtaining hyperparameter combination information that meets the preset hyperparameter screening conditions based on hyperparameter combination information in the first hyperparameter combination information corresponding to the performance information that meets the preset first numerical conditions.
[0141] Optionally, selecting a model that meets preset model screening conditions from the first target model includes: obtaining first performance information corresponding to the first target model; obtaining performance information whose value meets preset second numerical conditions from the first performance information; and obtaining a model that meets the preset model screening conditions based on the model in the first target model corresponding to the performance information that meets the preset second numerical conditions.
[0142] Optionally, obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained includes: training the second basic model to be trained according to the second hyperparameter combination information to obtain a second target model; if there is a model that meets the preset performance conditions in the second target model, obtaining the target model according to the model that meets the preset performance conditions.
[0143] Optionally, the first basic model to be trained includes an initial basic model to be trained configured by a user.
[0144] Optionally, the device also includes a target empirical hyperparameter combination information obtaining unit, which is used to obtain an initial basic model to be trained; if the original hyperparameter combination information does not meet the preset group training conditions, the initial basic model to be trained is trained according to the original hyperparameter combination information to obtain performance information used to characterize the performance of the model obtained by training; from the performance information, performance information whose value meets a preset second numerical condition is obtained; according to the hyperparameter combination information in the original hyperparameter combination information that corresponds to the performance information that meets the preset second numerical condition, the target empirical hyperparameter combination information is obtained, wherein the target empirical hyperparameter combination information is used as the empirical hyperparameter when continuously optimizing the initial basic model to be trained.
[0145] Optionally, the using the first hyperparameter combination information to train the first basic model to be trained to obtain the first target model includes: training the first basic model to be trained according to the first hyperparameter combination information and the original training data to obtain the first target model; the obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained includes: training the second basic model to be trained according to the second hyperparameter combination information and the original training data to obtain the target model.
[0146] Optionally, if the original training data meets the preset data splitting conditions, the device also includes a splitting training unit, which is used to split the original training data according to the preset data splitting conditions to obtain at least one group of original group training data; training the first basic model to be trained according to the first hyperparameter combination information to obtain the first target model also includes: obtaining any group of original group training data from the at least one group of original group training data as the first training data; training the first basic model to be trained according to the first hyperparameter combination information and the first training data to obtain the first target model; obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained includes: obtaining second training data from the at least one group of original group training data; training the second basic model to be trained according to the second hyperparameter combination information and the second training data to obtain the target model, wherein the second training data is any group of original group training data in the at least one group of original group training data except the first training data.
[0147] Optionally, if the amount of the original training data is not less than a preset training data threshold, it is determined that the original training data meets the preset data splitting condition.
[0148] Optionally, the device also includes a performance change information obtaining unit, which is used to obtain first performance information corresponding to the first target model, and to obtain second performance information corresponding to the target model; based on the first performance information and the second performance information, performance change information corresponding to the original hyperparameter combination information is obtained.
[0149] Corresponding to the parameter adjustment method for a model provided in the first embodiment of the present application, the fifth embodiment of the present application further provides an electronic device, see Figure 8 , which is a schematic diagram of an electronic device provided in the fifth embodiment of the present application. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The electronic device embodiment described below is only illustrative. The electronic device provided in the fifth embodiment of the present application includes:
[0150] Processor 801;
[0151] The memory 802 is used to store a program of a parameter adjustment method for a model. After the device is powered on and the program of the parameter adjustment method for a model is run by the processor, the following steps are performed:
[0152] From the original hyperparameter combination information, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; if there is no target model that meets the preset performance conditions in the first target model, obtain the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model; obtain the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0153] Corresponding to the parameter adjustment method for a model provided in the first embodiment of the present application, the sixth embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The storage device embodiment described below is only illustrative. The sixth embodiment of the present application provides a storage device that stores a program for the parameter adjustment method for a model. The program is executed by a processor to perform the following steps:
[0154] From the original hyperparameter combination information, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; if there is no target model that meets the preset performance conditions in the first target model, obtain the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model; obtain the target model according to the second hyperparameter combination information and the second basic model to be trained.
[0155] Corresponding to the method for obtaining a speech recognition model provided in the second embodiment of the present application, the seventh embodiment of the present application further provides a device for obtaining a speech recognition model, see Fig. 9 , which is a schematic diagram of a device for obtaining a speech recognition model provided in the seventh embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The device embodiment described below is only exemplary. A device for obtaining a speech recognition model provided in the seventh embodiment of the present application includes the following parts:
[0156] The first speech information obtaining unit 901 is used to obtain any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model.
[0157] The first target speech recognition model obtaining unit 902 is used to train the first speech recognition model to be trained according to the first hyperparameter combination information to obtain the first target speech recognition model.
[0158] The second speech information obtaining unit 903 is used to determine whether there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model. If not, the second hyperparameter combination information and the second speech recognition model to be trained are obtained based on the original hyperparameter combination information and the first target speech recognition model.
[0159] The target speech recognition model obtaining unit 904 is used to obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0160] Corresponding to the method for obtaining a speech recognition model provided in the second embodiment of the present application, the eighth embodiment of the present application further provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The electronic device embodiment described below is only exemplary. The electronic device provided in the eighth embodiment of the present application includes:
[0161] processor;
[0162] A memory is used to store a program of a method for obtaining a speech recognition model. After the device is powered on and the program of the method for obtaining a speech recognition model is run by the processor, the following steps are performed:
[0163] From the original hyperparameter combination information corresponding to the speech recognition model, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first speech recognition model to be trained according to the first hyperparameter combination information to obtain the first target speech recognition model; if there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, obtain the second hyperparameter combination information and the second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0164] Corresponding to the method for obtaining a speech recognition model provided in the second embodiment of the present application, the ninth embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment. The storage device embodiment described below is only illustrative. The ninth embodiment of the present application provides a storage device, which stores a program for obtaining a speech recognition model. The program is executed by a processor to perform the following steps:
[0165] From the original hyperparameter combination information corresponding to the speech recognition model, obtain any set of hyperparameter combination information as the first hyperparameter combination information; train the first speech recognition model to be trained according to the first hyperparameter combination information to obtain the first target speech recognition model; if there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, obtain the second hyperparameter combination information and the second speech recognition model to be trained according to the original hyperparameter combination information and the first target speech recognition model; obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained.
[0166] Corresponding to the speech recognition method provided in the third embodiment of the present application, the tenth embodiment of the present application further provides a speech recognition device, see Fig.10 , which is a schematic diagram of a speech recognition device provided in the tenth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For relevant parts, please refer to the partial description of the method embodiment. The device embodiment described below is only illustrative. A speech recognition device provided in the tenth embodiment of the present application includes the following parts:
[0167] The acquisition unit 1001 is used to acquire the voice information to be recognized.
[0168] The recognition unit 1002 is used to input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the above-mentioned speech recognition model acquisition method.
[0169] Corresponding to the speech recognition method provided in the third embodiment of the present application, the eleventh embodiment of the present application further provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The electronic device embodiment described below is only illustrative. The electronic device provided in the eleventh embodiment of the present application includes:
[0170] processor;
[0171] The memory is used to store a program of the speech recognition method. After the device is powered on and the program of the speech recognition method is run by the processor, the following steps are performed:
[0172] Acquire speech information to be recognized; input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the above-mentioned speech recognition model acquisition method.
[0173] Corresponding to the speech recognition method provided in the third embodiment of the present application, the twelfth embodiment of the present application further provides a storage device. Since the storage device embodiment is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The storage device embodiment described below is only illustrative. The twelfth embodiment of the present application provides a storage device, which stores a program of the speech recognition method. The program is executed by a processor to perform the following steps:
[0174] Acquire speech information to be recognized; input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the above-mentioned speech recognition model acquisition method.
[0175] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0176] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0177] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0178] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0179] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
Claims
1. A parameter adjustment method for a model, characterized in that: The model includes a semantic understanding model, a speech synthesis model and a search recommendation model, and the parameter adjustment method includes: From the original hyperparameter combination information, obtain any set of hyperparameter combination information as first hyperparameter combination information; Train a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; If there is no target model that meets the preset performance conditions in the first target model, then according to the original hyperparameter combination information and the first target model, second hyperparameter combination information and a second basic model to be trained are obtained, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target model; obtaining the second basic model to be trained according to the model that meets the preset model screening conditions; wherein obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein the second initial hyperparameter combination information The combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, selecting the hyperparameter combination information that meets the preset hyperparameter screening condition from the first hyperparameter combination information includes: obtaining the first performance information corresponding to the first target model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; The target model is obtained according to the second hyperparameter combination information and the second basic model to be trained, including: training the second basic model to be trained according to the second hyperparameter combination information to obtain a second target model; if there is a model that meets the preset performance conditions in the second target model, then obtaining the target model according to the model that meets the preset performance conditions.
2. The parameter adjustment method for a model according to claim 1, characterized in that: Also includes: Obtaining first performance information corresponding to the first target model; It is determined, according to the first performance information, whether there is a target model in the first target models that meets the preset performance condition.
3. The parameter adjustment method for a model according to claim 2, characterized in that: The determining, according to the first performance information, whether the first target model includes the target model that meets the preset performance condition includes: If there is performance information that is not less than a preset performance threshold in the first performance information, it is determined that the target model exists in the first target model.
4. The parameter adjustment method for a model according to claim 3, characterized in that: Also includes: The target model is obtained according to a model in the first target model corresponding to the performance information that is not less than a preset performance threshold.
5. The parameter adjustment method for a model according to claim 1, characterized in that: The step of selecting a model that satisfies a preset model screening condition from the first target model includes: Obtaining first performance information corresponding to the first target model; Obtaining, from the first performance information, performance information whose value satisfies a preset second value condition; According to the model in the first target model corresponding to the performance information that satisfies the preset second numerical condition, a model that satisfies the preset model screening condition is obtained.
6. The parameter adjustment method for a model according to claim 1, characterized in that: The first basic model to be trained includes an initial basic model to be trained configured by a user.
7. The parameter adjustment method for a model according to claim 1, characterized in that: Also includes: Obtain the initial basic model to be trained; If the original hyperparameter combination information does not meet the preset group training condition, training the initial basic model to be trained according to the original hyperparameter combination information to obtain performance information for characterizing the performance of the model obtained by training; From the performance information, obtaining performance information whose value satisfies a preset second value condition; According to the hyperparameter combination information in the original hyperparameter combination information corresponding to the performance information that satisfies the preset second numerical condition, target empirical hyperparameter combination information is obtained, wherein the target empirical hyperparameter combination information is used as the empirical hyperparameter when continuously optimizing the initial basic model to be trained.
8. The parameter adjustment method for a model according to claim 1, characterized in that: Also includes: Get the original training data; The step of training the first basic model to be trained according to the first hyperparameter combination information to obtain a first target model includes: training the first basic model to be trained according to the first hyperparameter combination information and the original training data to obtain the first target model; The obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained includes: training the second basic model to be trained according to the second hyperparameter combination information and the original training data to obtain the target model.
9. The parameter adjustment method for a model according to claim 8, characterized in that: If the original training data meets the preset data splitting condition, the method further includes: According to the preset data splitting condition, the original training data is split and processed to obtain at least one group of original group training data; The step of training the first basic model to be trained according to the first hyperparameter combination information to obtain the first target model further includes: obtaining any one group of original group training data from the at least one group of original group training data as the first training data; training the first basic model to be trained according to the first hyperparameter combination information and the first training data to obtain the first target model; The method of obtaining the target model according to the second hyperparameter combination information and the second basic model to be trained comprises: obtaining second training data from the at least one group of original group training data; training the second basic model to be trained according to the second hyperparameter combination information and the second training data to obtain the target model, wherein the second training data is any group of original group training data in the at least one group of original group training data except the first training data.
10. The parameter adjustment method for a model according to claim 9, characterized in that: If the amount of the original training data is not less than a preset training data threshold, it is determined that the original training data meets the preset data splitting condition.
11. The parameter adjustment method for a model according to claim 1, characterized in that: Also includes: obtaining first performance information corresponding to a first target model, and obtaining second performance information corresponding to the target model; Performance change information corresponding to the original hyperparameter combination information is obtained according to the first performance information and the second performance information.
12. The parameter adjustment method for a model according to claim 1, characterized in that: The method further comprises: Get the trigger operation used to characterize the start of the parameter adjustment operation; In response to the trigger operation, a step of obtaining any set of hyperparameter combination information as the first hyperparameter combination information is executed from the original hyperparameter combination information.
13. The parameter adjustment method for a model according to claim 6, characterized in that: The original hyperparameter combination information includes information of at least one of the following hyperparameter combinations: a hyperparameter combination configured by the user corresponding to the initial basic model to be trained, and a hyperparameter combination obtained from historical hyperparameter combinations corresponding to the initial basic model to be trained.
14. A method for obtaining a speech recognition model, characterized in that: include: Obtaining any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model; Train a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; If there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, then according to the original hyperparameter combination information and the first target speech recognition model, obtain the second hyperparameter combination information and the second speech recognition model to be trained, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target speech recognition model; obtaining the second speech recognition model to be trained according to the model that meets the preset model screening conditions; wherein, obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein The second initial hyperparameter combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, selecting the hyperparameter combination information that meets the preset hyperparameter screening condition from the first hyperparameter combination information includes: obtaining the first performance information corresponding to the first target speech recognition model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; The target speech recognition model is obtained according to the second hyperparameter combination information and the second speech recognition model to be trained, including: training the second speech recognition model to be trained according to the second hyperparameter combination information to obtain a second target speech recognition model; if there is a model that meets the preset performance conditions in the second target speech recognition model, then obtaining the target speech recognition model according to the model that meets the preset performance conditions.
15. A speech recognition method, characterized in that: include: Obtaining voice information to be recognized; The speech information to be recognized is input into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the method for obtaining the speech recognition model described in claim 14.
16. The speech recognition method according to claim 15, characterized in that: The method is applied to the server, and the method further includes: The target identification information is provided to the client.
17. The speech recognition method according to claim 16, characterized in that: Also includes: Acquire service content information corresponding to the target identification information; The service content information is provided to the client.
18. The speech recognition method according to claim 15, characterized in that: The method is applied to a client, and the method further comprises: Acquiring the target identification information; Display or play the target identification information.
19. The speech recognition method according to claim 18, characterized in that: Also includes: Acquire service content information corresponding to the target identification information; Display or play the service content information.
20. The speech recognition method according to claim 18, characterized in that: The client includes a computing device that provides the closest service through edge computing.
21. The speech recognition method according to claim 20, characterized in that: The computing device includes at least one of the following computing devices: a smart speaker device, a vehicle navigation device, and a translation device.
22. A parameter adjustment device for a model, characterized in that: The model includes a semantic understanding model, a speech synthesis model and a search recommendation model, including: A first information obtaining unit is used to obtain any set of hyperparameter combination information as first hyperparameter combination information from the original hyperparameter combination information; A first target model obtaining unit, configured to train a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; The second information obtaining unit is used to determine whether there is a target model that meets the preset performance conditions in the first target model. If not, obtaining the second hyperparameter combination information and the second basic model to be trained according to the original hyperparameter combination information and the first target model, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target model; obtaining the second basic model to be trained according to the model that meets the preset model screening conditions; wherein obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein, The second initial hyperparameter combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, selecting the hyperparameter combination information that meets the preset hyperparameter screening condition from the first hyperparameter combination information includes: obtaining the first performance information corresponding to the first target model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; The target model acquisition unit is used to obtain the target model according to the second hyperparameter combination information and the second basic model to be trained, including: training the second basic model to be trained according to the second hyperparameter combination information to obtain a second target model; if there is a model that meets the preset performance conditions in the second target model, then obtaining the target model according to the model that meets the preset performance conditions.
23. An electronic device, characterized in that: Applied to semantic understanding, speech synthesis and search recommendation, including: processor; A memory is used to store a program of a parameter adjustment method for a model. After the device is powered on and the program of the parameter adjustment method for the model is run by the processor, the following steps are performed: From the original hyperparameter combination information, obtain any set of hyperparameter combination information as first hyperparameter combination information; Train a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; If there is no target model that meets the preset performance conditions in the first target model, then according to the original hyperparameter combination information and the first target model, second hyperparameter combination information and a second basic model to be trained are obtained, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target model; obtaining the second basic model to be trained according to the model that meets the preset model screening conditions; wherein obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein the second initial hyperparameter combination information The combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, selecting the hyperparameter combination information that meets the preset hyperparameter screening condition from the first hyperparameter combination information includes: obtaining the first performance information corresponding to the first target model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; The target model is obtained according to the second hyperparameter combination information and the second basic model to be trained, including: training the second basic model to be trained according to the second hyperparameter combination information to obtain a second target model; if there is a model that meets the preset performance conditions in the second target model, then obtaining the target model according to the model that meets the preset performance conditions.
24. A storage device, characterized in that: Applied to semantic understanding, speech synthesis and search recommendation, a program storing a parameter adjustment method for the model is executed by a processor to perform the following steps: From the original hyperparameter combination information, obtain any set of hyperparameter combination information as first hyperparameter combination information; Train a first basic model to be trained according to the first hyperparameter combination information to obtain a first target model; If there is no target model that meets the preset performance conditions in the first target model, then according to the original hyperparameter combination information and the first target model, second hyperparameter combination information and a second basic model to be trained are obtained, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target model; obtaining the second basic model to be trained according to the model that meets the preset model screening conditions; wherein obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein the second initial hyperparameter combination information The combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, selecting the hyperparameter combination information that meets the preset hyperparameter screening condition from the first hyperparameter combination information includes: obtaining the first performance information corresponding to the first target model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; The target model is obtained according to the second hyperparameter combination information and the second basic model to be trained, including: training the second basic model to be trained according to the second hyperparameter combination information to obtain a second target model; if there is a model that meets the preset performance conditions in the second target model, then obtaining the target model according to the model that meets the preset performance conditions.
25. A device for obtaining a speech recognition model, characterized in that: include: A first speech information obtaining unit, configured to obtain any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model; A first target speech recognition model obtaining unit, configured to train a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; A second speech information obtaining unit is used to determine whether there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model. If not, then obtain the second hyperparameter combination information and the second speech recognition model to be trained based on the original hyperparameter combination information and the first target speech recognition model, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target speech recognition model; obtaining the second speech recognition model to be trained based on the model that meets the preset model screening conditions; wherein, obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining a second initial hyperparameter combination information from the original hyperparameter combination information; Number combination information, wherein the second initial hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, the hyperparameter combination information that meets the preset hyperparameter screening condition is selected from the first hyperparameter combination information, including: obtaining the first performance information corresponding to the first target speech recognition model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; A target speech recognition model acquisition unit is used to obtain the target speech recognition model according to the second hyperparameter combination information and the second speech recognition model to be trained, including: training the second speech recognition model to be trained according to the second hyperparameter combination information to obtain the second target speech recognition model; if there is a model that meets the preset performance conditions in the second target speech recognition model, then obtaining the target speech recognition model according to the model that meets the preset performance conditions.
26. An electronic device, characterized in that: include: processor; A memory is used to store a program of a method for obtaining a speech recognition model. After the device is powered on and the program of the method for obtaining a speech recognition model is run by the processor, the following steps are performed: Obtaining any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model; Train a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; If there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, then according to the original hyperparameter combination information and the first target speech recognition model, obtain the second hyperparameter combination information and the second speech recognition model to be trained, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target speech recognition model; obtaining the second speech recognition model to be trained according to the model that meets the preset model screening conditions; wherein, obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein The second initial hyperparameter combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, selecting the hyperparameter combination information that meets the preset hyperparameter screening condition from the first hyperparameter combination information includes: obtaining the first performance information corresponding to the first target speech recognition model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; The target speech recognition model is obtained according to the second hyperparameter combination information and the second speech recognition model to be trained, including: training the second speech recognition model to be trained according to the second hyperparameter combination information to obtain a second target speech recognition model; if there is a model that meets the preset performance conditions in the second target speech recognition model, then obtaining the target speech recognition model according to the model that meets the preset performance conditions.
27. A storage device, characterized in that: A program storing a method for obtaining a speech recognition model is executed by a processor to perform the following steps: Obtaining any set of hyperparameter combination information as first hyperparameter combination information from original hyperparameter combination information corresponding to the speech recognition model; Train a first speech recognition model to be trained according to the first hyperparameter combination information to obtain a first target speech recognition model; If there is no target speech recognition model that meets the preset performance conditions in the first target speech recognition model, then according to the original hyperparameter combination information and the first target speech recognition model, obtain the second hyperparameter combination information and the second speech recognition model to be trained, including: obtaining the second hyperparameter combination information from the original hyperparameter combination information, wherein the second hyperparameter combination information is any group of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; selecting a model that meets the preset model screening conditions from the first target speech recognition model; obtaining the second speech recognition model to be trained according to the model that meets the preset model screening conditions; wherein, obtaining the second hyperparameter combination information from the original hyperparameter combination information includes: obtaining second initial hyperparameter combination information from the original hyperparameter combination information, wherein The second initial hyperparameter combination information is any set of hyperparameter combination information in the original hyperparameter combination information except the first hyperparameter combination information; from the first hyperparameter combination information, select the hyperparameter combination information that meets the preset hyperparameter screening condition; according to the second initial hyperparameter combination information and the hyperparameter combination information that meets the preset hyperparameter screening condition, obtain the second hyperparameter combination information; wherein, selecting the hyperparameter combination information that meets the preset hyperparameter screening condition from the first hyperparameter combination information includes: obtaining the first performance information corresponding to the first target speech recognition model; obtaining the performance information whose value meets the preset first numerical condition from the first performance information; obtaining the hyperparameter combination information that meets the preset hyperparameter screening condition according to the hyperparameter combination information corresponding to the performance information that meets the preset first numerical condition in the first hyperparameter combination information; The target speech recognition model is obtained according to the second hyperparameter combination information and the second speech recognition model to be trained, including: training the second speech recognition model to be trained according to the second hyperparameter combination information to obtain a second target speech recognition model; if there is a model that meets the preset performance conditions in the second target speech recognition model, then obtaining the target speech recognition model according to the model that meets the preset performance conditions.
28. A speech recognition device, characterized in that: include: An acquisition unit, used for acquiring voice information to be recognized; A recognition unit is used to input the speech information to be recognized into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the method for obtaining the speech recognition model described in claim 14.
29. An electronic device, characterized in that: include: processor; The memory is used to store a program of the speech recognition method. After the device is powered on and the program of the speech recognition method is run by the processor, the following steps are performed: Obtaining voice information to be recognized; The speech information to be recognized is input into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the method for obtaining the speech recognition model described in claim 14.
30. A storage device, characterized in that: A program for storing a speech recognition method is executed by a processor to perform the following steps: Obtaining voice information to be recognized; The speech information to be recognized is input into a target speech recognition model to obtain target recognition information corresponding to the speech information to be recognized, wherein the target speech recognition model is a model obtained using the method for obtaining the speech recognition model described in claim 14.
