Information recommendation method and device, model generation method and device and electronic equipment

By using a target number of gated networks to filter information evaluation model parameters, the problem of hierarchical relationship and imbalance of user group sample characteristics is solved, the accuracy of information recommendation is improved, and the fairness and accuracy of the model training effect are ensured.

CN118673203APending Publication Date: 2024-09-20BEIJING OPPO TELECOMM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310267375.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When the existing information recommendation methods have hierarchical relationships and are unbalanced in the user group sample characteristics, artificially changing the sample distribution will lead to unfairness of user group samples with a higher proportion, affect the model training effect, and lead to inaccurate recommendation information. .

Method used

Use a target number of gated networks to filter the model parameters of the initial information evaluation model and generate recommended information to ensure that the model training effect of a relatively small user group is improved without affecting the model training effect of a relatively high user group. Use the filtered model parameters The final information evaluation model is used for information recommendation.

Benefits of technology

When the sample characteristics of the user group are hierarchical and unbalanced, the model training effect of the user group with a smaller proportion is improved, the accuracy of the recommended information is improved, and the negative impact of artificially changing the sample distribution on the user group with a higher proportion is avoided. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673203A
    Figure CN118673203A
Patent Text Reader

Abstract

The invention discloses an information recommendation method and device, a model generation method and device, electronic equipment and a storage medium. The information recommendation method comprises the steps that multiple pieces of candidate information are acquired, a current information evaluation model is called to evaluate the multiple pieces of candidate information, and an evaluation result is obtained; wherein the current information evaluation model is obtained by screening model parameters of the initial information evaluation model by using a target number of gating networks, and the gating networks are used for selecting the model parameters for the corresponding hierarchical features, and generating recommendation information according to the evaluation result. According to the method, under the condition that the characteristics of the user group samples have a hierarchical relationship and the user group samples are unbalanced, the training effect of the user group model with a small proportion is improved without influencing the training effect of the user group model with a high proportion; and the information evaluation model after model parameter screening is used for information recommendation, so that the accuracy of information recommendation can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of information recommendation, and relate to but are not limited to an information recommendation method, a model generation method and device, an electronic device, and a storage medium. Background Art

[0002] Existing information recommendation methods usually use a trained neural network ranking and scoring estimation model. During the training process of the neural network ranking and scoring estimation model, the problem of unbalanced training samples is prone to occur. The solution to the problem of unbalanced training samples is generally to artificially change the sample distribution. There are two main ways to artificially change the sample distribution. One way is to directly expand the user group samples with a smaller proportion, such as upsampling, to achieve the purpose of sample balance; the other is to increase the weight of the user group samples with a smaller proportion during the model training process to enhance their influence in the model training process; both methods can alleviate the problem of sample imbalance.

[0003] However, when the characteristics of user group samples are hierarchical and the user group samples are unbalanced, artificially changing the sample distribution will cause unfairness to user group samples with a higher proportion and affect the training effect, resulting in inaccurate recommendation information based on the model. Summary of the invention

[0004] In view of this, the information recommendation method, model generation method and device, electronic device, and storage medium provided in the embodiments of the present application can improve the model training effect of the user group with a smaller proportion without affecting the model training effect of the user group with a higher proportion when the characteristics of the user group samples have a hierarchical relationship and the user group samples are unbalanced. Using the information evaluation model after filtering the model parameters for information recommendation can greatly improve the accuracy of the recommended information.

[0005] In a first aspect, an information recommendation method provided by an embodiment of the present application is applied to an electronic device, and the method includes:

[0006] Obtain multiple candidate information;

[0007] Calling the current information evaluation model to evaluate the multiple candidate information to obtain an evaluation result; wherein the current information evaluation model is obtained by screening the model parameters of the initial information evaluation model using a target number of gating networks, the gating network is used to select model parameters for corresponding hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2;

[0008] Generate recommendation information according to the evaluation result, where the recommendation information is part of the plurality of candidate information.

[0009] In a second aspect, the model generation method provided in the embodiment of the present application is applied to an electronic device, and the method includes:

[0010] Generate a target number of gating networks, the target number corresponding to the number of hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, the target number is greater than or equal to 2;

[0011] The target number of gating networks are respectively applied to the target number of network layers in the initial information evaluation model to screen the model parameters of the initial information evaluation model.

[0012] In a third aspect, an information recommendation device provided in an embodiment of the present application is applied to an electronic device, and the device includes:

[0013] An information acquisition module, used for acquiring multiple candidate information;

[0014] An information evaluation module, used to call the current information evaluation model to evaluate the multiple candidate information and obtain an evaluation result; wherein the current information evaluation model is obtained by screening the model parameters of the initial information evaluation model using a target number of gating networks, the gating network is used to select model parameters for corresponding hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2;

[0015] The information generation module is used to generate recommendation information according to the evaluation result, wherein the recommendation information is part of the multiple candidate information.

[0016] In a fourth aspect, the model training device provided in the embodiment of the present application is applied to an electronic device, and the device includes:

[0017] A gating generation module, used to generate a target number of gating networks, the target number corresponds to the number of hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2;

[0018] The gating application module is used to apply the target number of gating networks to the target number of network layers in the initial information evaluation model, so as to screen the model parameters of the initial information evaluation model.

[0019] In a fifth aspect, an electronic device provided in an embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, it implements the steps of the information recommendation method provided in the first aspect of the embodiment of the present application, or implements the steps of the model generation method provided in the second aspect of the embodiment of the present application.

[0020] In a sixth aspect, a computer-readable storage medium is provided in an embodiment of the present application, on which a computer program is stored. When the computer program is executed by a processor, the steps of the information recommendation method provided in the first aspect of the embodiment of the present application, or the steps of the model generation method provided in the second aspect of the embodiment of the present application are implemented.

[0021] The information recommendation method, model generation method and device, electronic device and computer-readable storage medium provided in the embodiments of the present application can improve the model training effect of the user group with a smaller proportion without affecting the model training effect of the user group with a higher proportion when the characteristics of the user group samples are hierarchical and the user group samples are unbalanced. Information recommendation using the information evaluation model after filtering the model parameters can greatly improve the accuracy of the recommended information, thereby solving the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0023] Figure 1 A schematic diagram of an implementation flow of an information recommendation method provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of the implementation flow of another information recommendation method provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of an implementation flow of a model generation method provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the overall process of a lock screen magazine recommendation method provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of the structure of a deep neural network model provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of input and output information of a gated network provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of a scenario in which a gating network acts on an information evaluation model provided in an embodiment of the present application;

[0030] Figure 8 A schematic diagram of another scenario in which a gating network is applied to an information evaluation model provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of the structure of an information recommendation device provided in an embodiment of the present application;

[0032] Fig.10 A schematic diagram of the structure of a model training device provided in an embodiment of the present application;

[0033] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0036] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0037] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0038] To facilitate those skilled in the art to understand the technical solution of the present application, the technical terms involved in the present application are explained below.

[0039] MLP: Multi-Layer Perceptron.

[0040] DNN: Deep Neural Network, deep neural network.

[0041] Existing information recommendation methods usually use a trained neural network ranking and scoring estimation model. During the training process of the neural network ranking and scoring estimation model, the problem of unbalanced training samples is prone to occur. The solution to the problem of unbalanced training samples is generally to artificially change the sample distribution. There are two main ways to artificially change the sample distribution. One way is to directly expand the user group samples with a smaller proportion, such as upsampling, to achieve the purpose of sample balance; the other is to increase the weight of the user group samples with a smaller proportion during the model training process to enhance their influence in the model training process; both methods can alleviate the problem of sample imbalance.

[0042] However, when the characteristics of user group samples are hierarchical and the user group samples are unbalanced, artificially changing the sample distribution will cause unfairness to user group samples with a higher proportion and affect the training effect, resulting in inaccurate recommendation information based on the model.

[0043] In view of this, an embodiment of the present application provides an information recommendation method, which obtains multiple candidate information, calls the current information evaluation model to evaluate the multiple candidate information, obtains evaluation results, and generates recommendation information according to the evaluation results; wherein the current information evaluation model is obtained by screening the model parameters of the initial information evaluation model using a target number of gating networks, and the gating network is used to select model parameters for corresponding hierarchical features. When the features of user group samples have a hierarchical relationship and the user group samples are unbalanced, the model training effect of the user group with a smaller proportion can be improved without affecting the model training effect of the user group with a higher proportion. Information recommendation using the information evaluation model after screening the model parameters can greatly improve the accuracy of the recommended information.

[0044] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0045] Figure 1 The present invention provides a flowchart of an information recommendation method according to an embodiment of the present invention. The method can be applied to electronic devices, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop computer, a PDA or a server, etc.; the electronic device can also be a mobile terminal, such as a mobile phone, a car computer, a tablet computer or a projector, etc. Figure 1 As shown, the method may include the following steps 101 to 103:

[0046] Step 101: Obtain multiple candidate information.

[0047] It should be noted that obtaining multiple candidate information may be a method of reading multiple stored candidate information or generating multiple candidate information based on user operations, and the embodiment of the present application does not limit the method of obtaining multiple candidate information.

[0048] In some embodiments, the method for acquiring multiple candidate information may be to call a model to generate multiple candidate information according to user operations or according to the current state of the electronic device.

[0049] In an embodiment of the present application, the obtaining of multiple candidate information may be: when a preset condition is met, calling the current recall model to obtain multiple candidate information, wherein the preset condition may be that the received user operation matches the preset user operation, or the current state of the electronic device matches the preset state.

[0050] For example, in the lock screen magazine recommendation scenario of an electronic device, when the user's phone is in the screen-on state, the system sends a recommendation request to the recommendation engine. After receiving the recommendation request, the recommendation engine calls the recall model to obtain a candidate lock screen magazine set. Recall refers to the entire process of querying the results through the established rules of the analyzer. The recall model here is the analyzer. When the user's phone is in the screen-on state, the candidate lock screen magazine set corresponding to the user is obtained according to the established rules of the recall model.

[0051] Step 102: Call the current information evaluation model to evaluate the multiple candidate information to obtain an evaluation result; wherein the current information evaluation model is obtained by screening the model parameters of the initial information evaluation model using a target number of gating networks, the gating network is used to select model parameters for corresponding hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2.

[0052] It should be noted that before recommending information, the current information evaluation model can be called to evaluate multiple candidate information to obtain evaluation results, wherein the gating network can be used to select model parameters for the corresponding hierarchical features. Therefore, the target number of gating networks can be used to screen the model parameters of the initial information evaluation model.

[0053] Among them, the hierarchical features are used to indicate training sample features with a hierarchical relationship. Exemplarily, user group samples include channels, scenarios and user groups, wherein user group samples include multiple channels, each channel includes multiple scenarios, and each scenario includes multiple user groups. Then channels, scenarios and user groups are training sample features with a hierarchical relationship. When conducting model training, it is necessary to consider the number of training samples corresponding to each hierarchical feature for processing.

[0054] The gated network can be a three-layer fully connected neural network. The gated network adjusts the structure of the network based on the simple neural network and adds a gating mechanism to control the transmission of information in the neural network. The gating mechanism can be used to control how much information in the memory unit needs to be retained, how much needs to be discarded, and how much new state information needs to be saved in the memory unit. This allows the gated network to learn dependencies with relatively long spans without the problems of gradient vanishing and gradient exploding. In the embodiment of the present application, the structure of the gated network can be an MLP (multi-layer perceptron) network or a structure similar to a DNN. The embodiment of the present application does not limit the structure of the gated network.

[0055] There are many ways to call the current information evaluation model to evaluate the multiple candidate information. For example, the multiple candidate information can be input into the current information evaluation model. The embodiment of the present application does not limit the method of calling the current information evaluation model to evaluate the multiple candidate information and obtaining the evaluation results.

[0056] Step 103: Generate recommendation information according to the evaluation result, where the recommendation information is part of the multiple candidate information.

[0057] It should be noted that after obtaining the evaluation results for the candidate information, the recommendation information can be generated according to the evaluation results. There are many ways to generate the recommendation information according to the evaluation results, for example, according to the evaluation results, information with high scores and high matching degrees can be selected as the recommendation information. The embodiment of the present application does not limit the way to generate the recommendation information according to the evaluation results.

[0058] In some embodiments, the current information evaluation model can be used to generate evaluation scores, and recommendation information can be generated according to the evaluation scores, so that the recommendation information can be easily obtained.

[0059] In the embodiment of the present application, the step 102 of calling the current information evaluation model to evaluate the multiple candidate information and obtaining the evaluation results may include: inputting the multiple candidate information into the current information evaluation model to obtain the scoring results corresponding to each of the candidate information. The step 103 of generating recommended information according to the evaluation results may include: generating recommended information according to a preset recommendation method and the scoring results corresponding to each of the candidate information.

[0060] It should be noted that there are many types of preset recommendation methods, such as the top 10 pieces of information with the highest recommendation scores, or the top 20 pieces of information with the lowest recommendation scores, etc. The embodiment of the present application does not limit the preset recommendation method.

[0061] For example, in a lock screen magazine recommendation scenario of an electronic device, after obtaining the evaluation score corresponding to each lock screen magazine, the 20 lock screen magazines with the highest scores can be determined as recommended information and displayed to the user in sequence.

[0062] The information recommendation method provided in the embodiment of the present application can improve the model training effect of the user group with a smaller proportion without affecting the model training effect of the user group with a higher proportion when the characteristics of the user group samples are hierarchical and the user group samples are unbalanced. Using the information evaluation model after filtering the model parameters for information recommendation can greatly improve the accuracy of the recommended information.

[0063] In some embodiments, before acquiring the plurality of candidate information, it is necessary to screen the model parameters of the initial information evaluation model through a gating network to obtain a current information evaluation model that can be used for information evaluation.

[0064] Figure 2 This is a schematic diagram of another implementation flow of an information recommendation method provided in an embodiment of the present application. Figure 2 As shown, in Figure 1 Based on the embodiment shown, before obtaining a plurality of candidate information, the method further includes steps 201 to 202:

[0065] Step 201: Generate a target number of gating networks, where the target number corresponds to the number of hierarchical features.

[0066] It should be noted that the target number of the generated gated network corresponds to the number of hierarchical features, which can be equal or matched. The embodiment of the present application does not limit the way in which the target number corresponds to the number of hierarchical features.

[0067] Among them, the target number of gated networks can be generated using an existing generation method, and the embodiment of the present application does not limit the method for generating the target number of gated networks.

[0068] In some embodiments, the number of gating networks may be the same as the number of hierarchical features, so as to facilitate obtaining the difference between training samples based on each hierarchical feature for screening model parameters.

[0069] In an embodiment of the present application, the hierarchical features include first-level features and second-level features, and generating a target number of gated networks may include: generating a first gated network and a second gated network, the first gated network being used to obtain differences between training samples based on the first-level features, and the second gated network being used to obtain differences between training samples based on the second-level features.

[0070] It should be noted that when the hierarchical features include two levels, namely, first-level features and second-level features, two target gating networks can be generated, respectively used to obtain the differences between training samples based on features of each level.

[0071] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios, and user groups, three gating networks can be generated. The first gating network corresponds to different channels to capture the differences between different channels (user groups); the second gating network corresponds to different scenarios to capture the differences between different scenarios (user groups) within each channel; the third gating network corresponds to different user groups within each scenario to capture the differences between different user groups within each scenario.

[0072] It is understandable that when the user group sample includes channels, scenarios and user groups, we can also think that it includes two-level hierarchical features. The first-level hierarchical features include channels and scenarios, and the other-level hierarchical features include user groups. Two gating networks are generated. The first gating network corresponds to different channels and scenarios to capture the differences between different channels and different scenarios (user groups); the second gating network corresponds to different user groups in each scenario to capture the differences between different user groups in each scenario. It can be seen that the number of hierarchical features can be set according to needs. Of course, the finer the level, the better the model training effect.

[0073] Furthermore, after the gating network is generated, the input and output of the gating network need to be set so that the gating network can output the gating values ​​corresponding to the hierarchical features for screening the model parameters.

[0074] In an embodiment of the present application, if the input of the first gating network is the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature; if the input of the first gating network is a feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the feature related to the first-level feature; if the input of the first gating network is the first-level feature and the feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature and the feature related to the first-level feature;

[0075] If the input of the second gating network is the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature; if the input of the second gating network is the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the feature related to the second-level feature; if the input of the second gating network is the second-level feature and the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature and the feature related to the second-level feature.

[0076] It should be noted that the first gating network is used to obtain the differences between training samples based on the first-level features. Therefore, the input of the first gating network can be the first-level features, and / or, features related to the first-level features. The specific content of the first-level features and the features related to the first-level features can be set according to the situation of the training samples, and the embodiments of the present application do not limit it.

[0077] The second gating network is used to obtain the differences between training samples based on the second-level features. Therefore, the input of the second gating network can be the second-level features and / or features related to the second-level features. The specific content of the second-level features and the features related to the second-level features can be set according to the situation of the training samples, and the embodiments of the present application do not limit it.

[0078] It can be understood that the output of the first gating network corresponds to the input features, and the output can be the gating value corresponding to the first-level features, or the gating value corresponding to the features related to the first-level features, or the gating value corresponding to the first-level features and the features related to the first-level features; the output of the second gating network can be the gating value corresponding to the second-level features, or the gating value corresponding to the features related to the second-level features, or the gating value corresponding to the second-level features and the features related to the second-level features. The gating values ​​can be used to screen model parameters to improve the training effect of the model.

[0079] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios, and user groups, the first gating network can select channels and channel-related features as input; the second gating network can select scenarios and scenario-related features as input; the third gating network can select features within the scenarios that can reflect differences in user behaviors and preferences (such as activity, age, gender, etc.) as input.

[0080] Step 202: Apply the target number of gating networks to the target number of network layers in the initial information evaluation model, respectively, to screen the model parameters of the initial information evaluation model.

[0081] It should be noted that applying the obtained target number of gating networks to the target number of network layers in the initial information evaluation model can improve the training effect of the model compared to applying it to one network layer.

[0082] In some embodiments, the hierarchical features include two hierarchical features with a hierarchical relationship. When acting on the initial information evaluation model, it is necessary to act on the upper and lower network layers of the information evaluation model according to the hierarchical order of the hierarchical features, so as to better play the role of the gated network in selecting model parameters and achieve the purpose of improving the model training effect.

[0083] In an embodiment of the present application, the second-level feature is a sub-feature of the first-level feature, the initial information evaluation model includes a first network layer and a second network layer arranged in sequence, and the step of applying the target number of gating networks to the target number of network layers in the initial information evaluation model may include: applying the output of the first gating network to the first network layer of the initial information evaluation model, and applying the output of the second gating network to the second network layer of the initial information evaluation model.

[0084] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios and user groups, the first gating network output acts on the first network layer of the initial information evaluation model to select different model parameters for different channels (user groups); the second gating network output acts on the second network layer of the initial information evaluation model to select different model parameters for different scenarios (user groups); the third gating network output acts on the third network layer of the initial information evaluation model to select different model parameters for different user groups in each scenario.

[0085] Furthermore, when the initial information evaluation model is a deep neural network model DNN, the deep neural network model includes an input layer, a hidden layer and an output layer. The target number of gating networks can act on the input layer and the hidden layer respectively, or both can act on the hidden layer, so as to achieve a more flexible usage.

[0086] In an embodiment of the present application, the initial information evaluation model includes an input layer and a hidden layer, the first network layer is located in the input layer, the second network layer is located in the hidden layer, or both the first network layer and the second network layer are located in the hidden layer.

[0087] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios, and user groups, the output of the first gating network can act on the second layer, i.e., the hidden layer, of the initial information evaluation model (DNN), and the subsequent gating networks act on higher layers in turn, i.e., the output of the first gating network (Gate1) acts on the first hidden layer of the initial information evaluation model, the output of the second gating network (Gate2) acts on the second hidden layer of the initial information evaluation model, and the output of the third gating network (Gate3) acts on the third hidden layer of the initial information evaluation model. Alternatively, the first gating network (Gate1) can act on a lower input layer, the output of the second gating network (Gate2) acts on the first hidden layer, and the output of the third gating network (Gate3) acts on the second hidden layer.

[0088] The embodiment of the present application proposes an information recommendation method based on an information evaluation model after filtering model parameters through a gated network. The method can improve the model training effect of a user group with a smaller proportion without affecting the model training effect of a user group with a higher proportion when the characteristics of the user group samples are hierarchical and the user group samples are unbalanced. Using the information evaluation model after filtering the model parameters for information recommendation can greatly improve the accuracy of the recommended information.

[0089] It can be understood that: the embodiments of the present application use information evaluation models in the recommendation field, such as ranking score estimation modeling, as an example to illustrate, but the scope of application is not limited to the recommendation field, nor is it limited to ranking score estimation modeling. Similar models in other similar fields (such as search) are also equally applicable.

[0090] Figure 3 The present invention provides a schematic diagram of the implementation process of a model generation method. The method can be applied to electronic devices, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop, a PDA or a server, etc.; the electronic device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc. Figure 3 As shown, the method may include the following steps 301 to 302:

[0091] Step 301: Generate a target number of gated networks, where the target number corresponds to the number of hierarchical features, where the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2.

[0092] It should be noted that the target number of the generated gated network corresponds to the number of hierarchical features, which can be equal or matched. The embodiment of the present application does not limit the way in which the target number corresponds to the number of hierarchical features.

[0093] Among them, the target number of gated networks can be generated using an existing generation method, and the embodiment of the present application does not limit the method for generating the target number of gated networks.

[0094] In some embodiments, the number of gating networks may be the same as the number of hierarchical features, so as to facilitate obtaining the difference between training samples based on each hierarchical feature for screening model parameters.

[0095] In an embodiment of the present application, the hierarchical features include first-level features and second-level features, and generating a target number of gated networks may include: generating a first gated network and a second gated network, the first gated network being used to obtain differences between training samples based on the first-level features, and the second gated network being used to obtain differences between training samples based on the second-level features.

[0096] It should be noted that when the hierarchical features include two levels, namely, first-level features and second-level features, two target gating networks can be generated, respectively used to obtain the differences between training samples based on features of each level.

[0097] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios, and user groups, three gating networks can be generated. The first gating network corresponds to different channels to capture the differences between different channels (user groups); the second gating network corresponds to different scenarios to capture the differences between different scenarios (user groups) within each channel; the third gating network corresponds to different user groups within each scenario to capture the differences between different user groups within each scenario.

[0098] It is understandable that when the user group sample includes channels, scenarios and user groups, we can also think that it includes two-level hierarchical features. The first-level hierarchical features include channels and scenarios, and the other-level hierarchical features include user groups. Two gating networks are generated. The first gating network corresponds to different channels and scenarios to capture the differences between different channels and different scenarios (user groups); the second gating network corresponds to different user groups in each scenario to capture the differences between different user groups in each scenario. It can be seen that the number of hierarchical features can be set according to needs. Of course, the finer the level, the better the model training effect.

[0099] Furthermore, after the gating network is generated, the input and output of the gating network need to be set so that the gating network can output the gating values ​​corresponding to the hierarchical features for screening the model parameters.

[0100] In an embodiment of the present application, if the input of the first gating network is the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature; if the input of the first gating network is a feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the feature related to the first-level feature; if the input of the first gating network is the first-level feature and the feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature and the feature related to the first-level feature;

[0101] If the input of the second gating network is the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature; if the input of the second gating network is the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the feature related to the second-level feature; if the input of the second gating network is the second-level feature and the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature and the feature related to the second-level feature.

[0102] It should be noted that the first gating network is used to obtain the differences between training samples based on the first-level features. Therefore, the input of the first gating network can be the first-level features, and / or, features related to the first-level features. The specific content of the first-level features and the features related to the first-level features can be set according to the situation of the training samples, and the embodiments of the present application do not limit it.

[0103] The second gating network is used to obtain the differences between training samples based on the second-level features, so the input of the second gating network can be the second-level features, and / or, features related to the second-level features. The specific content of the second-level features and the features related to the second-level features can be set according to the situation of the training samples, and the embodiments of the present application do not limit it.

[0104] It can be understood that the output of the first gating network corresponds to the input features, which can be the gating values ​​corresponding to the first-level features, or the gating values ​​corresponding to the features related to the first-level features, or the gating values ​​corresponding to the first-level features and the features related to the first-level features. The output of the second gating network can be the gating values ​​corresponding to the second-level features, or the gating values ​​corresponding to the features related to the second-level features, or the gating values ​​corresponding to the second-level features and the features related to the second-level features. The gating values ​​can be used to screen the parameters of the model to improve the training effect of the model.

[0105] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios, and user groups, the first gating network can select channels and channel-related features as input; the second gating network can select scenarios and scenario-related features as input; the third gating network can select features within the scenarios that can reflect differences in user behaviors and preferences (such as activity, age, gender, etc.) as input.

[0106] Step 302: Apply the target number of gating networks to the target number of network layers in the initial information evaluation model, respectively, to screen the model parameters of the initial information evaluation model.

[0107] It should be noted that applying the obtained target number of gating networks to the target number of network layers in the initial information evaluation model can improve the training effect of the model compared to applying it to one network layer.

[0108] In some embodiments, the hierarchical features include two hierarchical features with a hierarchical relationship. When acting on the initial information evaluation model, it is necessary to act on the upper and lower network layers of the information evaluation model according to the hierarchical order of the hierarchical features, so as to better play the role of the gated network in selecting model parameters and achieve the purpose of improving the model training effect.

[0109] In an embodiment of the present application, the second-level feature is a sub-feature of the first-level feature, the initial information evaluation model includes a first network layer and a second network layer arranged in sequence, and the step of applying the target number of gating networks to the target number of network layers in the initial information evaluation model may include: applying the output of the first gating network to the first network layer of the initial information evaluation model, and applying the output of the second gating network to the second network layer of the initial information evaluation model.

[0110] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios and user groups, the first gating network output acts on the first network layer of the initial information evaluation model to select different model parameters for different channels (user groups); the second gating network output acts on the second network layer of the initial information evaluation model to select different model parameters for different scenarios (user groups); the third gating network output acts on the third network layer of the initial information evaluation model to select different model parameters for different user groups in each scenario.

[0111] Furthermore, when the initial information evaluation model is a deep neural network model DNN, the deep neural network model includes an input layer, a hidden layer and an output layer. The target number of gating networks can act on the input layer and the hidden layer respectively, or both can act on the hidden layer, so as to achieve a more flexible usage.

[0112] In an embodiment of the present application, the initial information evaluation model includes an input layer and a hidden layer, the first network layer is located in the input layer, the second network layer is located in the hidden layer, or both the first network layer and the second network layer are located in the hidden layer.

[0113] Exemplarily, when the hierarchical features corresponding to the user group samples include three levels, namely, channels, scenarios, and user groups, the output of the first gating network can act on the second layer, i.e., the hidden layer, of the initial information evaluation model (DNN), and the subsequent gating networks act on higher layers in turn, i.e., the output of the first gating network (Gate1) acts on the first hidden layer of the initial information evaluation model, the output of the second gating network (Gate2) acts on the second hidden layer of the initial information evaluation model, and the output of the third gating network (Gate3) acts on the third hidden layer of the initial information evaluation model. Alternatively, the first gating network (Gate1) can act on a lower input layer, the output of the second gating network (Gate2) acts on the first hidden layer, and the output of the third gating network (Gate3) acts on the second hidden layer.

[0114] The embodiment of the present application proposes a method for solving the problem of sample imbalance among different user groups (here referring to user groups with similar interests, preferences or behavioral performances in recommendation scenarios) and the existence of hierarchical relationships in the characteristics of user group samples during the generation process of information evaluation models in the recommendation field, such as neural network ranking and scoring estimation models.

[0115] In an embodiment of the present application, first, multiple gated networks are constructed according to the user group levels covered by the sample; then, for each level of the gated network, features that are compatible with the function of the gated network are selected as the input of the gated network; finally, the output of each level of the gated network is applied to the corresponding level of the main model, i.e., the initial information evaluation model, and the main model parameters are selected step by step to improve the training effect of each user group model, that is, to improve the accuracy of the ranking model score estimation.

[0116] It can be understood that: the embodiment of the present application takes the ranking score estimation modeling in the recommendation field as an example for explanation, but the scope of application is not limited to the recommendation field, nor is it limited to the ranking score estimation modeling. Similar models in other similar fields (such as search) are also equally applicable.

[0117] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.

[0118] Figure 4 The overall flow chart of a lock screen magazine recommendation method provided in an embodiment of the present application is as follows. Figure 4 As shown, the method includes the following steps 401 to 405:

[0119] Step 401, when the user's mobile phone is in the screen-on state, the system sends a recommendation request to the recommendation engine;

[0120] Step 402: After receiving the recommendation request, the recommendation engine calls the recall model to obtain a set of candidate lock screen magazines;

[0121] Step 403: The recommendation engine calls the ranking model, i.e., the current information evaluation model, estimates and scores each lock screen magazine in the candidate lock screen magazine set, and sorts them according to the scores;

[0122] Step 404: the recommendation engine returns top N (e.g., 20) lock screen magazines to the system;

[0123] Step 405: The system displays the top N lock screen magazines to the user in sequence.

[0124] The modeling scheme of the sorting model in step 403 is as follows:

[0125] Step 4031: First, build a neural network main model, i.e., an initial information evaluation model. You can use any known scoring prediction model structure or similar model structure in any recommendation field. The following uses a common DNN (deep neural network) model in the recommendation field as an example for explanation.

[0126] Figure 5 A schematic diagram of the structure of a deep neural network model provided in an embodiment of the present application is shown in FIG. Figure 5 As shown in the figure, the network structure of the deep neural network model includes: input layer, hidden layer and output layer.

[0127] Step 4032: Then build multiple gated networks. The specific number needs to adapt to the number of user group levels covered by the sample. Taking cross-channel and cross-scenario modeling as an example (assuming that there are different scenarios under different channels), three gated networks should be used at this time. The first gated network corresponds to different channels to capture the differences between different channels (user groups); the second gated network corresponds to different scenarios to capture the differences between different scenarios (user groups) within each channel; the third gated network corresponds to different user groups in each scenario to capture the differences between different user groups in each scenario. The gated network structure is the mainstream structure or similar structure in the recommendation field. The embodiment of the present application takes the MLP (multi-layer perceptron) network as an example. The network structure is similar to Figure 5 The DNN shown is similar.

[0128] Step 4033: Further for the multiple gating networks constructed in step 4032, features that are compatible with the functions of the gating networks are selected as inputs of the gating networks.

[0129] Figure 6 A schematic diagram of a gated network input and output information provided in an embodiment of the present application, such as Figure 6 As shown in the figure, the first gating network selects channels and channel-related features as input; the second gating network selects scenes and scene-related features as input; the third gating network selects features within the scene that can reflect user behavior and preference differences (such as activity, age, gender, etc.) as input.

[0130] Step 4034: The output of each gating network acts on the corresponding layers of the main model and the initial information evaluation model respectively. The output of the first gating network acts on the first layer of the main model (DNN) to select different main model parameters for different channels (user groups); the output of the second gating network acts on the second layer of the main model (DNN) to select different main model parameters for different scenarios (user groups); the output of the third gating network acts on the third layer of the main model (DNN) to select different main model parameters for different user groups in each scenario. In particular, the output of the first gating network can act on the second layer of the main model (DNN), and the subsequent gating networks act on higher layers in turn.

[0131] Figure 7 A schematic diagram of a scenario in which a gating network acts on an information evaluation model provided in an embodiment of the present application. Figure 7 As shown, the output of the first gating network (Gate1) acts on the first hidden layer of the main model, the output of the second gating network (Gate2) acts on the second hidden layer of the main model, and the output of the third gating network (Gate3) acts on the third hidden layer of the main model.

[0132] Figure 8 Another schematic diagram of a scenario in which a gated network acts on an information evaluation model is provided for the embodiment of the present application. Figure 8 As shown in the figure, the first gating network (Gate1) can also act on the lower input layer, and the output of the second gating network (Gate2) acts on the first hidden layer of the main model. The output of the third gating network (Gate3) acts on the second hidden layer of the main model.

[0133] In the above embodiment, multiple corresponding gated networks are constructed according to the user group levels covered by the sample; then, for each level of the gated network, features that are compatible with the function of the gated network are selected as the input of the gated network; finally, the output of each level of the gated network acts on the level corresponding to the main model, that is, the initial information evaluation model, and the main model parameters are selected step by step to improve the training effect of each user group model, especially for user groups with a small sample size. Good training effects can also be achieved. When using the trained information evaluation model for information recommendation, the accuracy of the information evaluation model score estimation and the accuracy of the recommended information can be improved.

[0134] The technical solution of the above-mentioned embodiment solves the problem of sample imbalance among different user groups and the problem of hierarchical relationship among sample features in cross-channel and cross-scenario model training. While improving the model training effect of user groups with a smaller proportion, it does not affect the model training effect of user groups with a larger proportion. Using the information evaluation model after filtering the model parameters for information recommendation can greatly improve the accuracy of the recommended information.

[0135] It should be understood that although Figure 1-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0136] Based on the foregoing embodiments, the embodiments of the present application provide an information recommendation device, and each module included in the device, and each unit included in each module, can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0137] Fig. 9 A schematic diagram of the structure of an information recommendation device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the device 500 includes an information acquisition module 501, an information evaluation module 502 and an information generation module 503, wherein:

[0138] An information acquisition module 501 is used to acquire multiple candidate information;

[0139] An information evaluation module 502 is used to call the current information evaluation model to evaluate the multiple candidate information to obtain an evaluation result; wherein the current information evaluation model is obtained by screening the model parameters of the initial information evaluation model using a target number of gating networks, the gating network is used to select model parameters for corresponding hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2;

[0140] The information generating module 503 is used to generate recommendation information according to the evaluation result, where the recommendation information is part of the multiple candidate information.

[0141] In some embodiments, the information evaluation module 502 is specifically used to: input the multiple candidate information into the current information evaluation model to obtain a scoring result corresponding to each of the candidate information; the information generation module 503 is specifically used to: generate recommendation information according to a preset recommendation method and a scoring result corresponding to each of the candidate information.

[0142] In some embodiments, the apparatus further comprises: a gating generation module and a gating use module, wherein:

[0143] A gating generation module, used to generate a target number of gating networks, wherein the target number corresponds to the number of hierarchical features;

[0144] The gating application module is used to apply the target number of gating networks to the target number of network layers in the initial information evaluation model, so as to screen the model parameters of the initial information evaluation model.

[0145] In an embodiment of the present application, the device can, when the characteristics of user group samples have a hierarchical relationship and the user group samples are unbalanced, improve the model training effect of the user group with a smaller proportion without affecting the model training effect of the user group with a higher proportion. Using the information evaluation model after filtering the model parameters for information recommendation can greatly improve the accuracy of the recommended information.

[0146] Fig.10 A schematic diagram of the structure of a model training device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the device 600 includes a gate generation module 601 and a gate use module 602, wherein:

[0147] A gate generation module 601 is used to generate a target number of gated networks, where the target number corresponds to the number of hierarchical features, where the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2;

[0148] The gating application module 602 is used to apply the target number of gating networks to the target number of network layers in the initial information evaluation model, so as to screen the model parameters of the initial information evaluation model.

[0149] In an embodiment of the present application, the device can, when the characteristics of user group samples have a hierarchical relationship and the user group samples are unbalanced, improve the model training effect of the user group with a smaller proportion without affecting the model training effect of the user group with a higher proportion. Using the information evaluation model after filtering the model parameters for information recommendation can greatly improve the accuracy of the recommended information.

[0150] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0151] It should be noted that in the embodiments of this application Fig. 9 The information recommendation device shown Fig.10 The division of modules in the model training device shown is schematic and is only a logical functional division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or it can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It can also be implemented in the form of a combination of software and hardware.

[0152] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0153] Fig.11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.11 As shown, the electronic device 100 may include a processor 110, a memory 120, a wireless communication module 130, a display screen 140, a camera 150, a USB interface 160, and the like.

[0154] The processor 110 may include one or more processing units. For example, the processor 110 is a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs). Different processing units may be independent devices or integrated into one or more processors.

[0155] The memory 120 can be used to store computer executable program codes, which include instructions. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, video data, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.

[0156] The wireless communication module 130 can provide solutions for wireless communication including WLAN, such as Wi-Fi network, Bluetooth, NFC, IR, etc., applied to the electronic device 100. The wireless communication module 130 can be one or more devices integrating at least one communication processing module. In some embodiments of the present application, the electronic device 100 can establish a wireless communication connection with other electronic devices through the wireless communication module 130.

[0157] The display screen 140 is used to display images, videos, etc. The display screen 140 includes a display panel. The display panel can be a liquid crystal display, an organic light emitting diode, an active matrix organic light emitting diode or an active matrix organic light emitting diode, a flexible light emitting diode, a Mini LED, a Micro LED, a Micro oLed, a quantum dot light emitting diode, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 140, where N is a positive integer greater than 1.

[0158] The camera 150 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the processor 110 to convert it into a digital image signal, which is then converted into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 150, where N is a positive integer greater than 1.

[0159] The USB interface 160 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 160 can be used to connect other electronic devices. In some other embodiments, the electronic device 100 can also be connected to an external camera through the USB interface 160 to capture images.

[0160] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0161] The application embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the information recommendation method or the steps in the model generation method provided in the above embodiment are implemented.

[0162] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0163] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0164] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0165] Computer program code for performing the operations of the present specification may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0166] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the key usage method or the steps in the key storage method provided in the above method embodiment.

[0167] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0168] It should be noted here that the description of the above storage medium, program product and device embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium, program product and device embodiments of this application, please refer to the description of the method embodiment of this application for understanding.

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

[0170] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0171] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0172] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0173] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0174] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0175] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0176] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0177] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information recommendation method, characterized in that: Applied to electronic equipment, the method comprises: Obtain multiple candidate information; Calling the current information evaluation model to evaluate the multiple candidate information to obtain an evaluation result; wherein the current information evaluation model is obtained by screening the model parameters of the initial information evaluation model using a target number of gating networks, the gating network is used to select model parameters for corresponding hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2; Generate recommendation information according to the evaluation result, where the recommendation information is part of the plurality of candidate information.

2. The method according to claim 1, characterized in that The calling of the current information evaluation model to evaluate the plurality of candidate information to obtain evaluation results includes: Inputting the plurality of candidate information into the current information evaluation model to obtain a scoring result corresponding to each of the candidate information; Generating recommendation information according to the evaluation result includes: The recommendation information is generated according to a preset recommendation method and a scoring result corresponding to each of the candidate information.

3. The method according to claim 1, characterized in that Before obtaining the plurality of candidate information, the method further includes: generating a target number of gating networks, the target number corresponding to the number of features at the level; The target number of gating networks are respectively applied to the target number of network layers in the initial information evaluation model to screen the model parameters of the initial information evaluation model.

4. The method according to claim 3, characterized in that The hierarchical features include first-level features and second-level features, and the gating network for generating a target number includes: A first gating network and a second gating network are generated, wherein the first gating network is used to obtain differences between training samples based on first-level features, and the second gating network is used to obtain differences between training samples based on second-level features.

5. The method according to claim 4, characterized in that If the input of the first gating network is the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature; if the input of the first gating network is a feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the feature related to the first-level feature; if the input of the first gating network is the first-level feature and the feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature and the feature related to the first-level feature; If the input of the second gating network is the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature; if the input of the second gating network is the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the feature related to the second-level feature; if the input of the second gating network is the second-level feature and the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature and the feature related to the second-level feature.

6. The method according to claims 4 and 5, characterized in that The second-level feature is a sub-feature of the first-level feature, the initial information evaluation model includes a first network layer and a second network layer arranged in sequence, and the step of applying the target number of gating networks to the target number of network layers in the initial information evaluation model respectively includes: The output of the first gating network is applied to the first network layer of the initial information evaluation model, and the output of the second gating network is applied to the second network layer of the initial information evaluation model.

7. The method according to claim 6, characterized in that The initial information evaluation model includes an input layer and a hidden layer, the first network layer is located in the input layer, the second network layer is located in the hidden layer, or both the first network layer and the second network layer are located in the hidden layer.

8. A model generation method, characterized in that: Applied to electronic equipment, the method comprises: Generate a target number of gating networks, the target number corresponding to the number of hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, the target number is greater than or equal to 2; The target number of gating networks are respectively applied to the target number of network layers in the initial information evaluation model to screen the model parameters of the initial information evaluation model.

9. The method according to claim 8, characterized in that The hierarchical features include first-level features and second-level features, and the gating network for generating a target number includes: A first gating network and a second gating network are generated, wherein the first gating network is used to obtain differences between training samples based on first-level features, and the second gating network is used to obtain differences between training samples based on second-level features.

10. The method according to claim 9, characterized in that If the input of the first gating network is the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature; if the input of the first gating network is a feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the feature related to the first-level feature; if the input of the first gating network is the first-level feature and the feature related to the first-level feature, the output of the first gating network is the gating value corresponding to the first-level feature and the feature related to the first-level feature; If the input of the second gating network is the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature; if the input of the second gating network is the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the feature related to the second-level feature; if the input of the second gating network is the second-level feature and the feature related to the second-level feature, the output of the second gating network is the gating value corresponding to the second-level feature and the feature related to the second-level feature.

11. The method according to claims 9 and 10, characterized in that The second-level feature is a sub-feature of the first-level feature, the initial information evaluation model includes a first network layer and a second network layer arranged in sequence, and the step of applying the target number of gating networks to the target number of network layers in the initial information evaluation model respectively includes: The output of the first gating network is applied to the first network layer of the initial information evaluation model, and the output of the second gating network is applied to the second network layer of the initial information evaluation model.

12. The method according to claim 11, characterized in that The initial information evaluation model includes an input layer and a hidden layer, the first network layer is located in the input layer, the second network layer is located in the hidden layer, or both the first network layer and the second network layer are located in the hidden layer.

13. An information recommendation device, characterized in that: Applied to electronic equipment, the device comprises: An information acquisition module, used for acquiring multiple candidate information; An information evaluation module, used to call the current information evaluation model to evaluate the multiple candidate information and obtain an evaluation result; wherein the current information evaluation model is obtained by screening the model parameters of the initial information evaluation model using a target number of gating networks, the gating network is used to select model parameters for corresponding hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2; The information generation module is used to generate recommendation information according to the evaluation result, wherein the recommendation information is part of the multiple candidate information.

14. A model training device, characterized in that: Applied to electronic equipment, the device comprises: A gating generation module, used to generate a target number of gating networks, the target number corresponds to the number of hierarchical features, the hierarchical features are used to indicate training sample features with a hierarchical relationship, and the target number is greater than or equal to 2; The gating application module is used to apply the target number of gating networks to the target number of network layers in the initial information evaluation model, so as to screen the model parameters of the initial information evaluation model.

15. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, it implements the steps of the information recommendation method described in any one of claims 1 to 7, or implements the steps of the model generation method described in any one of claims 8 to 12.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the information recommendation method according to any one of claims 1 to 7 are implemented, or the steps of the model generation method according to any one of claims 8 to 12 are implemented.