Information pushing model training method and device and information pushing method
By building sub-models in multiple fields and combining encoders and decoders, the problem of low accuracy of information push models caused by insufficient data in a single field is solved, achieving more accurate user interest information push and reducing information overload.
Patent Information
- Application Number
- CN202311362648.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-19
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the information push model constructed based on the user's operation data in a single field has low accuracy, resulting in the inability to effectively push information corresponding to the user's interests and preferences.
Use multiple sub-models corresponding to multiple fields to encode and decode user feedback information through encoders and decoders, establish a joint loss function, and conduct model training based on this to ensure the richness and accuracy of the input data of the information push model .
The accuracy of the information push model is improved, information corresponding to their interests and preferences can be pushed to users more accurately, and the problem of information overload is reduced.
Smart Images

Figure CN118798316A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of deep learning technology, and in particular, relates to a training method and device for an information push model and an information push method. Background Art
[0002] As people's living standards improve, their interests become more and more extensive. In order to reduce the impact of information overload on users in the current Internet era, it is necessary to provide or push information corresponding to their interest preferences to users. Usually, a training model can be built to analyze the user's interest preferences and push corresponding information to the user.
[0003] In the related art, the model is usually built and trained based on the user's operation data on the push information in a single field (for example, film and television). However, since the user's operation data on the push information in a single field may be less, the accuracy of the model is low. Summary of the invention
[0004] The embodiments of the present application provide a training method, device and information push method for an information push model, which can ensure the accuracy of the target information push model.
[0005] In a first aspect, an embodiment of the present application provides a training method for an information push model, wherein the information push model includes a plurality of sub-models corresponding to a plurality of fields, and the sub-models include an encoder and a decoder;
[0006] The method comprises:
[0007] Acquire multiple groups of data samples corresponding to multiple fields, wherein the data samples include multiple push information in the corresponding fields and feedback information of multiple users on the push information;
[0008] For each push information and its corresponding feedback information in each group of data samples, establish a feature vector corresponding to the data sample;
[0009] For the feature vector of each group of data samples, the following are respectively performed: inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain a feature latent variable; decoding the feature latent variable through the decoder of the sub-model corresponding to the feature latent variable to obtain a first prediction preference result of the user for the field corresponding to the sub-model; respectively decoding the feature latent variable through the decoders of multiple sub-models except the sub-model corresponding to the feature latent variable to obtain each second prediction preference result of the user for the field corresponding to each sub-model;
[0010] Determining a joint loss function of the information push model according to the feedback information, the first prediction preference result, and the second prediction preference result;
[0011] When the joint loss function does not meet the preset training termination conditions, the network parameters of the information push model are adjusted, and the step of inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain the feature latent variables is returned until the preset training termination conditions are met to obtain the target information push model.
[0012] In a second aspect, an embodiment of the present application provides an information push method, including:
[0013] Acquire multiple groups of historical data of the user in multiple fields, wherein the historical data includes multiple historical push information in the corresponding fields and historical feedback information of the user on the historical push information;
[0014] For each piece of historical push information and its corresponding historical feedback information in each set of historical data, establish a historical feature vector corresponding to the historical data;
[0015] For each set of historical feature vectors of historical data, respectively: inputting the historical feature vectors into a pre-trained target information push model to obtain target preference information of the user for the field corresponding to the historical data, wherein the target information push model is obtained according to the training method of the information push model described in any one of the embodiments of the first aspect;
[0016] Determine a target push information set for a corresponding field according to the target preference information;
[0017] Push target information to the user according to the target push information set.
[0018] In a third aspect, an embodiment of the present application provides a training device for an information push model, wherein the information push model includes a plurality of sub-models corresponding to a plurality of fields, and the sub-models include an encoder and a decoder;
[0019] The device comprises:
[0020] An acquisition module, used to acquire multiple groups of data samples corresponding to multiple fields, wherein the data samples include multiple push information corresponding to the fields and feedback information of multiple users on the push information;
[0021] An establishing module, for establishing a feature vector corresponding to each push information and its corresponding feedback information in each group of data samples;
[0022] The input module is used to respectively perform the following operations for the feature vector of each group of data samples: inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain a feature latent variable; decoding the feature latent variable through the decoder of the sub-model corresponding to the feature latent variable to obtain a first prediction preference result of the user for the field corresponding to the sub-model; respectively decoding the feature latent variable through the decoders of multiple sub-models other than the sub-model corresponding to the feature latent variable to obtain each second prediction preference result of the user for the field corresponding to each sub-model;
[0023] A determination module, configured to determine a joint loss function of the information push model according to the feedback information, the first prediction preference result, and the second prediction preference result;
[0024] The adjustment module is used to adjust the network parameters of the information push model when the joint loss function does not meet the preset training termination conditions, and return to the step of inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain the feature latent variable, until the preset training termination conditions are met to obtain the target information push model.
[0025] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the information push model training method as described in any one of the embodiments of the first aspect are implemented.
[0026] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the training method of the information push model as described in any one of the embodiments of the first aspect are implemented.
[0027] The training method, device and information push method of the information push model of the embodiment of the present application are based on the constructed information push model including multiple sub-models corresponding to multiple fields. The feedback information of users on the pushed information corresponding to the multiple fields is respectively processed and input into the sub-models corresponding to each field, which can ensure the richness of the input data of the information push model; the input data is encoded and decoded by the encoder and decoder of each sub-model, so as to establish a joint loss function of the information push model according to the decoding result, and the information push model is trained and adjusted based on the joint loss function to obtain a reliable target information push model, that is, the accuracy of the target information push model can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0029] Figure 1 It is a flowchart of a training method for an information push model provided in an embodiment of the present application;
[0030] Figure 2 is a schematic diagram of an exemplary inter-domain modeling provided in an embodiment of the present application;
[0031] Figure 3 It is a flowchart of an information push method provided in an embodiment of the present application;
[0032] Figure 4 It is a structural schematic diagram of a training device for an information push model provided in an embodiment of the present application;
[0033] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0035] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0036] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0037] As people's living standards improve, their interests become more and more extensive. In order to reduce the impact of information overload on users in the current Internet era, it is necessary to provide or push information corresponding to their interest preferences to users. Usually, a training model can be built to analyze the user's interest preferences and push corresponding information to the user.
[0038] In the related art, the model is usually built and trained based on the user's operation data on the push information in a single field (for example, film and television). However, since the user's operation data on the push information in a single field may be less, the accuracy of the model is low.
[0039] In order to solve the problems of related technologies, the embodiments of the present application provide a training method and device for an information push model and an information push method.
[0040] The following, in conjunction with the accompanying drawings, describes in detail the training method, device and information push method of the information push model provided by the embodiments of the present application through specific embodiments and their application scenarios.
[0041] It should be noted that the information push model in the embodiment of the present application includes multiple sub-models corresponding to multiple fields, and the sub-models include encoders and decoders. For example, multiple fields may include books (defined as domain A here), movies (defined as domain B here), and music (defined as domain C here), then the sub-model corresponding to domain A includes encoder A and decoder A, the sub-model corresponding to domain B includes encoder B and decoder B, and the sub-model corresponding to domain C includes encoder C and decoder C.
[0042] Moreover, the encoders or decoders of the sub-models of domains A, B, and C have the same network framework structure, but the sub-model parameters of each domain are not shared.
[0043] In addition, the push information in the embodiments of the present application is a push data set of the corresponding field. For example, the push information corresponding to domain A (books) includes pushing several books in a book set, the push information corresponding to domain B (movies) includes pushing several movies in a movie set, and the push information corresponding to domain C (music) includes pushing several pieces of music in a music set.
[0044] In addition, the structures of the encoder and decoder of the sub-model are different. Specifically, the encoder can be a neural network structure with several layers (for example, an encoder composed of five layers of nonlinear neural network), and the decoder can be a single fully connected layer structure. In this way, an asymmetric encoding and decoding structure is adopted, and the structure of the decoder is simpler than that of the encoder. This can solve the problem of posterior collapse that may be caused by a complex decoder due to its stronger autoregressive characteristics, resulting in low accuracy of the entire information push model and thus making the recommendation and push results of the model output simplistic.
[0045] Figure 1 FIG. 1 is a flow chart showing a training method 100 for an information push model according to an embodiment of the present application. Figure 1 As shown, the information push model training method 100 may specifically include the following steps:
[0046] S101, obtaining multiple groups of data samples corresponding to multiple fields, wherein the data samples include multiple push information in the corresponding fields and feedback information of multiple users on the push information;
[0047] S102, for each push information and its corresponding feedback information in each group of data samples, establishing a feature vector corresponding to the data sample;
[0048] S103, for each set of data sample feature vectors, respectively perform: input the feature vector into the encoder of the corresponding sub-model for encoding to obtain feature latent variables; decode the feature latent variables through the decoder of the sub-model corresponding to the feature latent variables to obtain the first prediction preference result of the user for the field corresponding to the sub-model; respectively decode the feature latent variables through the decoders of multiple sub-models other than the sub-model corresponding to the feature latent variables to obtain the second prediction preference results of the user for the fields corresponding to the sub-models;
[0049] S104, determining a joint loss function of the information push model according to the feedback information, the first prediction preference result, and the second prediction preference result;
[0050] S105. When the joint loss function does not meet the preset training termination condition, adjust the network parameters of the information push model, and return to the step of inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain the feature latent variable, until the preset training termination condition is met to obtain the target information push model.
[0051] Therefore, based on the constructed information push model including multiple sub-models corresponding to multiple fields, the feedback information of users on the pushed information corresponding to the multiple fields is respectively processed and input into the sub-models corresponding to each field, thereby ensuring the richness of the input data of the information push model; the input data is encoded and decoded by the encoder and decoder of each sub-model, thereby establishing a joint loss function of the information push model according to the decoding result, and the information push model is trained and adjusted based on the joint loss function to obtain a reliable target information push model, that is, the accuracy of the target information push model can be guaranteed.
[0052] The specific implementation methods of the above steps are introduced below.
[0053] In some embodiments, in step S101, the user feedback information on the push information in the acquired data sample may include positive feedback and negative feedback. For example, the feedback information of the user clicking to collect the push information is positive feedback, and the feedback information of no operation or deletion, clicking to reduce push and other operations is negative feedback.
[0054] It should be noted that the users corresponding to the multiple user data in the multiple groups of data samples are completely overlapped, that is, the users in different fields are exactly the same.
[0055] In some embodiments, in step S102, for each push information and its corresponding feedback information in each group of data samples, a feature matrix corresponding to the data sample can be established, that is, multiple feature matrices corresponding to multiple groups of data samples can be established according to the push information and feedback information in the acquired data samples; and for each feature matrix, the feature matrix is word vectorized to obtain a word vector matrix; for each feature matrix, noise is added to the word vector matrix to obtain a feature vector. In this way, the feature vector corresponding to each group of data samples is established to complete the processing of the data of the input information push model.
[0056] Among them, the number of rows of the feature matrix is the number of users in the data sample, the number of columns of the feature matrix is the number of pushed information, and the element values in the feature matrix are the values corresponding to the feedback information. Specifically, the value corresponding to positive feedback can be set to 1, and the value corresponding to negative feedback can be set to 0. In other words, a matrix of size m*n can be defined according to the total number of users m and the total number of pushed information n. If the user's feedback information on the pushed information is positive feedback, the corresponding bit is filled with 1, and if the user's feedback information on the pushed information is negative feedback, the corresponding bit is filled with 0.
[0057] In specific implementation, a word vector layer can be established according to the standard normal distribution, so as to perform word vectorization on the feature matrix, realize random initialization of the feature matrix, and obtain the word vector matrix.
[0058] In specific implementation, the values of any number of elements in the word vector matrix can be set to preset characters (for example, set to 0) to add noise to the word vector matrix, thereby obtaining a feature vector. In this way, the interference caused by the feedback information of the user's unconscious click operation can be alleviated, thereby improving the robustness of the recommendation results output by the information push model.
[0059] Furthermore, in step S103, the feature vector can be input into the encoder of the corresponding sub-model for encoding to obtain feature latent variables, and the feature latent variables are decoded by the decoder of the sub-model corresponding to the feature latent variables to obtain the first prediction preference result of the user for the field corresponding to the sub-model, which is defined as "intra-domain modeling"; the feature latent variables are decoded by the decoders of multiple sub-models except the sub-model corresponding to the feature latent variables to obtain the second prediction preference results of the user for the fields corresponding to each sub-model is defined as "inter-domain modeling".
[0060] In some embodiments, for "in-domain modeling", the structure of DVAE and Mult-VAE (Variational Auto-Encoders) can be combined as the codec backbone. Assuming that the user's video preference feature space conforms to the standard isotropic Gaussian distribution, and the user preference feature satisfies the multinomial distribution, the formula of the hybrid structure can be written as:
[0061]
[0062] π(z)=softmax(f θ (z))
[0063] p θ (x|z)=Mult(x|n,π(z))
[0064] in, represents the data after adding noise, such as user preference data after randomly discarding some click records, f φ (·) is an amortized inference network defined by φ, which is used to encode user preference features. θ (·) corresponds to the decoder, which is used to decode the user preference distribution. φ (·) and f θ(·) are all implemented by neural networks. After the decoder and softmax weighted calculation, a matrix consisting of each user's preference prediction vector is obtained, where each element of π(z) represents the probability that the user selects the corresponding video of "Mobaihe".
[0065] In some embodiments, The input is fed into an encoder consisting of a five-layer nonlinear neural network to obtain the approximate mean μ and variance σ of the behavior data that follows a mixed Gaussian distribution. Thus, the distribution space of user preferences can be reconstructed using the mean and variance.
[0066] Specifically, the encoder is implemented by a nonlinear neural network, which can be composed of five layers of nonlinear mapping networks. For each layer of the network, the tanh activation function is used to introduce nonlinearity, and a single-layer normalization operation is used to normalize the input. At the same time, the encoder adds an additional normalization layer after the mean vector output to convert μ φ Converted to a distribution with fixed mean and variance, the final output will be calculated according to the following formula:
[0067]
[0068] μ φ =BN(μ′ φ ), σ φ =σ′ φ
[0069] Here, BN(·) represents an additional normalization layer, which is used to make the calculated preference distribution more stable.
[0070] In some embodiments, the user's encoded behavior characteristics, i.e., the latent variable z, can be obtained by using the mean and variance and combining the reparameterization technique with the joint prior strategy. A .
[0071] Among them, the reparameterization technique formula is as follows:
[0072]
[0073] where ε is random noise sampled from a standard Gaussian distribution.
[0074] It should be understood that as the encoder parameters are continuously updated, the approximate posterior gradually approaches the true prior of the hypothesis. In order to obtain more information from user preferences, more user characteristics can be simulated through complex priors. Because the goal of amortized reasoning is to make the approximate posterior close to the prior, part of the posterior information can be used as supplementary information to the prior information to achieve a joint prior. For example, users' preferences for movies and TV shows are potentially consistent, and early viewing behavior will affect later video selection. Therefore, the joint prior can be understood as a combination of theoretical assumptions and actual approximations, which is used to strengthen the connection between each interactive behavior. For the i-th training, the formula for the joint prior is as follows:
[0075]
[0076] The value of λ can be set to 0.25 to allow the model to inherit more information from previous training results. Represents the posterior information obtained from the last training, that is, the distribution of preferred features after the training set is corrected.
[0077] In some embodiments, the encoded user feature latent variable z A A decoder consisting of a single fully connected layer is input, and the decoded reconstructed behavior data is output, that is, the first predicted preference result (for example, through the user's click probability prediction for different film and television products).
[0078] Specifically, the network framework of the decoder can be expressed as:
[0079] f θ (z) = Wz + b
[0080] It can be understood that the linear nature of the decoder limits its ability to reconstruct the original preference distribution from the encoded user preference features, which forces the decoder to select information from the preference features that has a greater impact on the user's click behavior for calculation.
[0081] In some embodiments, the loss function of "in-domain modeling" can be constructed by using the BCE loss and KL divergence of "in-domain modeling". Among them, BCE is used to calculate whether the target push information is correct, and KL divergence is used to constrain the first predicted preference result to be consistent with the feedback information, for example, the decoded user click behavior distribution is consistent with the original viewing data distribution.
[0082] Taking the information push model including the sub-models corresponding to domain A and domain B as an example, the total intra-domain loss of domain A and domain B is:
[0083]
[0084]
[0085] Among them, 0≤β≤1 is the weight coefficient between BCE loss and KL divergence. In this way, the model parameters can be updated through the loss function so that the decoder can predict the possible click behavior of users in the domain.
[0086] Therefore, by accurately modeling user preferences in one domain, the prediction performance of its own domain can be improved and it helps to obtain effective auxiliary information from other domains.
[0087] In some embodiments, for “inter-domain modeling”, taking the information push model including sub-models corresponding to domain A and domain B as an example, Figure 2 FIG. 2 shows a schematic diagram of an exemplary “inter-domain modeling”. Figure 2 As shown, after encoders A and B, the preference latent variables z of users in domains A and B are obtained. A and z B ; Then use a transformation matrix to transfer knowledge and transform the latent variable z A and z B After transformation, they are respectively transferred to domain B and domain A. The transformed user feature variables are used and express.
[0088] Specifically, the mapping function in the transformation process should make the data retain the source domain attributes and effectively represent the transformation relationship. Therefore, an orthogonal matrix can be used as the transformation matrix, which satisfies:
[0089]
[0090]
[0091] W×W T =I
[0092] Where W is the transformation matrix. Represents user preference feature z A 、z B The migration feature values after being transformed and transferred to domain B and domain A. In this way, the cross-domain information transfer is completed by a shared matrix. During the model convergence process, the vector inner product retains the commonality between the latent variables of user features in different domains, which is conducive to the learning of shared features between domains. In addition, to ensure the orthogonality of the transformation matrix, the L2 norm is used to make z A W T W.z B WW T The value of z is close to A 、z B .
[0093] In this way, based on the orthogonal transformation matrix, the user preference knowledge in a domain can be input into other domains, and can be transformed again and re-entered into the domain, ensuring the invariance of the behavior of different users in different fields (i.e., the operation behavior corresponding to the feedback information) and the consistency of preferences in different domains.
[0094] In some embodiments, the converted and Input into decoders B and A respectively to obtain cross-domain reconstruction data, that is, the second prediction preference results of users for the corresponding fields of each sub-model. For example, the probability prediction of the music domain decoder for film and television products and the probability prediction of the film and television domain decoder for music products.
[0095] That is to say, the characteristic latent variables obtained after encoding can be transformed by using an orthogonal transformation matrix and transmitted to multiple sub-models except the sub-model corresponding to the characteristic latent variables to obtain migration characteristic values; then, the migration characteristic values are respectively input into the decoders of multiple sub-models except the sub-model corresponding to the characteristic latent variables for decoding to obtain the user's second predicted preference results for the fields corresponding to each sub-model.
[0096] In some embodiments, the loss function of "inter-domain modeling" can be constructed by using the BCE loss and KL divergence of "inter-domain modeling". Specifically, it can be expressed as:
[0097]
[0098] in, is L2 regularization, which is used to constrain the features of a domain to be further restored by the transformation matrix after passing through the transformation matrix, so that the transformation matrix can achieve the effect of retaining the features of the source domain. γ is a weight coefficient, which is used to adjust the knowledge transfer characteristics of the transformation matrix.
[0099] Therefore, the data in each domain has two information flow paths. For "intra-domain modeling", the intra-domain data is input from the encoder of the domain to the decoder of the domain to extract the intra-domain user preference features; for "inter-domain modeling", the data features of the domain are mapped to the feature space of the external domain through the orthogonal transformation matrix, and then passed to the decoder of the external domain to reconstruct user preferences and realize the sharing of inter-domain preference information.
[0100] Further, in some embodiments, in step S104, the joint loss function can be determined by combining the loss coefficients of “intra-domain modeling” and “inter-domain modeling”, that is, the joint loss function can be expressed as:
[0101]
[0102] Among them, 0≤η≤1 is the weight coefficient between the intra-domain loss and the inter-domain loss, which is used to balance the impact of different domain knowledge on the recommendation results in the cross-domain recommendation process.
[0103] Thus, in step S105, when the joint loss function does not meet the preset training termination condition, the network parameters of the information push model are adjusted, and the step of inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain the feature latent variable is returned until the preset training termination condition is met to obtain the target information push model. The preset training termination condition is that the number of times the test loss value remains continuously undecreased reaches a preset number threshold, and the test loss value is obtained based on the joint loss function.
[0104] In addition, the present application provides a simulation experiment to test the performance of the target information push model through data sets corresponding to the three fields of books, movies, and music. Moreover, all data sets are highly sparse, with the maximum interaction density (push information has its corresponding feedback information) being 0.14%.
[0105] Specifically, for model parameters, the dimension of latent variables is set to 200 and the number of training rounds is 500 to ensure that the model fully converges. All parameters of the model are randomly initialized by the Xavier initializer and optimized by the Adam optimizer. The learning rate of the entire training process is 0.001 and the Dropout rate is 0.5. The hyperparameter λ in the combined prior is set to 0.25. The additional coefficient β in the regularization term of the evidence lower bound is set to 0.005 in the movie and book datasets and to 0.001 in the movie and music and book and music datasets. For γ, it is 5.0 for movies and books, 0.5 for movies and music, and 1.0 for books and music. η is fixed to 0.2 in all experiments. All experimental models are built using the PyTorch framework.
[0106] The experiment evaluates the model by the leave-one-out method (LOO), randomly selecting an interaction item for each user as the test item, and retaining the rest as the training set. The experiment uses commonly used quantitative evaluation criteria: HR, NDCG, and MRR. The experiment compares the top 5 indicator values in the returned ranking list. The higher the indicator value, the better the prediction performance.
[0107] The following Tables 1, 2 and 3 show the experimental results of the model of this application and other models on three pairs of data sets. As shown in Tables 1, 2 and 3, the model of this application has good performance in terms of HR, NDCG and MRR indicators.
[0108] Table 1 Performance comparison of movie and book datasets
[0109]
[0110]
[0111] Table 2 Performance comparison of movie and music datasets
[0112]
[0113]
[0114] Table 3 Performance comparison of book and music datasets
[0115]
[0116] It can be seen from Table 1, Table 2 and Table 3 that the effects of CoNet and DDTCDR are worse than other CDR algorithms, because CoNet and DDTCDR require additional private information such as user age, gender and product information during training, while the present application can obtain better prediction results only through the interactive information of users in different fields, which shows that the present application model has better feature extraction capabilities. In addition, the design of inter-domain propagation through a single transformation matrix adopted by the present application model introduces less noise, and the asymmetric codec structure and the joint prior strategy make the model more accurate in extracting features for a single domain. Compared with the design of the inter-domain propagation part of DARec, it will introduce greater noise, resulting in poor model effect. The present application model compares DARec's top5 HR, NDCG and MRR test results on the movie and book datasets, respectively, and improves by 15.6%, 18.9% and 20.8%. Compared with ETL, the top5 HR, NDCG and MRR test results of the present application model on the movie and book datasets are improved by 14.3%, 18.5% and 19.1%, respectively.
[0117] In addition, the present application also provides an information push method 300. Figure 3 FIG. 3 is a flow chart showing an information push method 300 according to an embodiment of the present application. Figure 3 As shown, the information push method 300 may specifically include the following steps:
[0118] S301, obtaining multiple groups of historical data of the user in multiple fields, wherein the historical data includes multiple historical push information in corresponding fields and historical feedback information of the user on the historical push information;
[0119] S302: for each piece of historical push information and its corresponding historical feedback information in each set of historical data, establish a historical feature vector corresponding to the historical data;
[0120] S303, for each set of historical data, respectively executing: inputting the historical feature vector into a pre-trained target information push model to obtain the user's target preference information for the field corresponding to the historical data;
[0121] S304, determining a target push information set of a corresponding field according to the target preference information;
[0122] S305: Push target information to the user according to the target push information set.
[0123] It should be noted that the target information push model can be obtained according to the information push model training method 100 of any of the above embodiments. In addition, the specific implementation of steps S301 and S302 is similar to that of steps S101 and S102 in the information push model training method 100, so they will not be described in detail here.
[0124] In some embodiments, in step S303, based on the trained target information push model, the historical feature vector of each group of historical data is input into it, and the user's target preference information for the field corresponding to the historical data can be output.
[0125] Furthermore, in some embodiments, in step S304, since alternative data sets for various fields are pre-established, the target push information set for the field can be determined according to the target preference information in the alternative data sets for the field corresponding to the historical data; thus, in step S305, all or part of the target information included in the target push information set is pushed to the corresponding user.
[0126] Therefore, the information push method 300, based on the trained target information push model including multiple sub-models corresponding to multiple fields, can solve the problem in the related technology that the user's operation data on the pushed information in a single field may be small, resulting in low accuracy of the model and thus unable to guarantee the push of appropriate information to the user. It can provide users with more accurate target push information and improve user experience.
[0127] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0128] Based on the same technical concept, corresponding to the training method of the information push model in any of the above embodiments, the present application also provides a training device 400 for an information push model. In addition, the information push model includes multiple sub-models corresponding to multiple fields, and the sub-models include an encoder and a decoder.
[0129] like Figure 4 As shown, the training device 400 of the information push model may include:
[0130] An acquisition module 401 is used to acquire multiple groups of data samples corresponding to multiple fields, wherein the data samples include multiple push information corresponding to the field and feedback information of multiple users on the push information;
[0131] Establishing module 402, for establishing a feature vector corresponding to each push information and its corresponding feedback information in each group of data samples;
[0132] The input module 403 is used to respectively perform the following operations for the feature vector of each group of data samples: inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain a feature latent variable; decoding the feature latent variable through the decoder of the sub-model corresponding to the feature latent variable to obtain a first prediction preference result of the user for the field corresponding to the sub-model; respectively decoding the feature latent variable through the decoders of multiple sub-models other than the sub-model corresponding to the feature latent variable to obtain each second prediction preference result of the user for the field corresponding to each sub-model;
[0133] A determination module 404, configured to determine a joint loss function of the information push model according to the feedback information, the first prediction preference result, and the second prediction preference result;
[0134] The adjustment module 405 is used to adjust the network parameters of the information push model when the joint loss function does not meet the preset training termination conditions, and return to the step of inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain the feature latent variable, until the preset training termination conditions are met to obtain the target information push model.
[0135] In some embodiments, a module 402 is established, which is specifically used to establish a feature matrix corresponding to the data sample for each push information and its corresponding feedback information in each group of data samples, the number of rows of the feature matrix being the number of users, the number of columns of the feature matrix being the number of the push information, and the element values in the feature matrix being the values corresponding to the feedback information; for each feature matrix, word vectorization is performed on the feature matrix to obtain a word vector matrix; for each feature matrix, noise is added to the word vector matrix to obtain a feature vector.
[0136] In some embodiments, the establishment module 402 is further specifically used to set the values of any number of elements in the word vector matrix to preset characters to obtain a feature vector.
[0137] In some embodiments, the input module 403 is specifically used to transform the feature latent variable using an orthogonal transformation matrix and transfer it to multiple sub-models other than the sub-model corresponding to the feature latent variable to obtain a migration feature value; the migration feature value is respectively input into the decoders of the multiple sub-models other than the sub-model corresponding to the feature latent variable for decoding to obtain the user's second prediction preference results for the fields corresponding to each sub-model.
[0138] It should be noted that, for the convenience of description, the above device is described in various modules according to their functions. Of course, when implementing this application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0139] The device of the above embodiment is used to implement the training method of the corresponding information push model in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0140] Based on the same technical concept, corresponding to the training method of the information push model of any of the above embodiments, the present application also provides an electronic device.
[0141] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided by this embodiment is shown.
[0142] The electronic device 500 may include a processor 501 and a memory 502 storing computer program instructions.
[0143] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0144] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.
[0145] In certain embodiments, the memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present application.
[0146] The processor 501 implements any one of the information push model training methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .
[0147] In some examples, the electronic device 500 may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0148] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0149] Bus 510 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus 510 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0150] Exemplarily, the electronic device 500 may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).
[0151] Based on the same technical concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by the processor, a training method for any of the information push models in the above-mentioned embodiments is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as portable disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, etc.
[0152] Based on the same technical concept, corresponding to the training method of the information push model in any of the above embodiments, the present application also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the training method of the information push model. Corresponding to the execution subject corresponding to each step in each embodiment of the training method of the information push model, the processor that executes the corresponding step may belong to the corresponding execution subject.
[0153] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0154] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0155] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0156] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0157] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A training method for an information push model, characterized in that: The information push model includes a plurality of sub-models corresponding to a plurality of fields respectively, and the sub-models include an encoder and a decoder; The method comprises: Acquire multiple groups of data samples corresponding to multiple fields, wherein the data samples include multiple push information in the corresponding fields and feedback information of multiple users on the push information; For each push information and its corresponding feedback information in each group of data samples, establish a feature vector corresponding to the data sample; For the feature vector of each group of data samples, the following are respectively performed: inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain a feature latent variable; decoding the feature latent variable through the decoder of the sub-model corresponding to the feature latent variable to obtain a first prediction preference result of the user for the field corresponding to the sub-model; respectively decoding the feature latent variable through the decoders of multiple sub-models except the sub-model corresponding to the feature latent variable to obtain each second prediction preference result of the user for the field corresponding to each sub-model; Determining a joint loss function of the information push model according to the feedback information, the first prediction preference result, and the second prediction preference result; When the joint loss function does not meet the preset training termination conditions, the network parameters of the information push model are adjusted, and the step of inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain the feature latent variables is returned until the preset training termination conditions are met to obtain the target information push model.
2. The method according to claim 1, characterized in that The step of establishing a feature vector corresponding to each push information and its corresponding feedback information in each group of data samples includes: For each push information and its corresponding feedback information in each group of data samples, a feature matrix corresponding to the data sample is established, wherein the number of rows of the feature matrix is the number of users, the number of columns of the feature matrix is the number of the push information, and the element values in the feature matrix are the values corresponding to the feedback information; For each feature matrix, perform word vectorization processing on the feature matrix to obtain a word vector matrix; For each feature matrix, noise is added to the word vector matrix to obtain a feature vector.
3. The method according to claim 2, characterized in that The step of adding noise to the word vector matrix to obtain a feature vector includes: The numerical values of any number of elements in the word vector matrix are set to preset characters to obtain a feature vector.
4. The method according to claim 1, characterized in that: The decoding of the characteristic latent variable by the decoders of the plurality of sub-models except the sub-model corresponding to the characteristic latent variable to obtain the second predicted preference results of the user for the fields corresponding to the sub-models includes: The characteristic latent variable is transformed by using an orthogonal transformation matrix and transmitted to a plurality of sub-models other than the sub-model corresponding to the characteristic latent variable to obtain a migration characteristic value; The migration feature values are respectively input into the decoders of multiple sub-models except the sub-model corresponding to the feature latent variable for decoding, so as to obtain the second predicted preference results of the user for the fields corresponding to the sub-models.
5. The method according to claim 1, characterized in that The encoder is a neural network structure with several layers, and the decoder is a single fully connected layer structure.
6. The method according to claim 1, characterized in that The preset training termination condition is that the number of times the test loss value remains continuously undecreased reaches a preset number threshold, and the test loss value is obtained based on the joint loss function.
7. An information push method, characterized in that: include: Acquire multiple groups of historical data of the user in multiple fields, wherein the historical data includes multiple historical push information in the corresponding fields and historical feedback information of the user on the historical push information; For each piece of historical push information and its corresponding historical feedback information in each set of historical data, establish a historical feature vector corresponding to the historical data; For each set of historical feature vectors of historical data, respectively: inputting the historical feature vectors into a pre-trained target information push model to obtain target preference information of the user for the field corresponding to the historical data, wherein the target information push model is obtained according to the training method of the information push model according to any one of claims 1 to 6; Determine a target push information set for a corresponding field according to the target preference information; Push target information to the user according to the target push information set.
8. A training device for an information push model, characterized in that: The information push model includes a plurality of sub-models corresponding to a plurality of fields respectively, and the sub-models include an encoder and a decoder; The device comprises: An acquisition module, used to acquire multiple groups of data samples corresponding to multiple fields, wherein the data samples include multiple push information corresponding to the fields and feedback information of multiple users on the push information; An establishing module, for establishing a feature vector corresponding to each push information and its corresponding feedback information in each group of data samples; The input module is used to respectively perform the following operations for the feature vector of each group of data samples: inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain a feature latent variable; decoding the feature latent variable through the decoder of the sub-model corresponding to the feature latent variable to obtain a first prediction preference result of the user for the field corresponding to the sub-model; respectively decoding the feature latent variable through the decoders of multiple sub-models other than the sub-model corresponding to the feature latent variable to obtain each second prediction preference result of the user for the field corresponding to each sub-model; A determination module, configured to determine a joint loss function of the information push model according to the feedback information, the first prediction preference result, and the second prediction preference result; The adjustment module is used to adjust the network parameters of the information push model when the joint loss function does not meet the preset training termination conditions, and return to the step of inputting the feature vector into the encoder of the corresponding sub-model for encoding to obtain the feature latent variable, until the preset training termination conditions are met to obtain the target information push model.
9. An electronic device, characterized in that: The device includes: a processor and a memory storing computer program instructions; when the processor calls the computer program instructions, it implements the training method of the information push model as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are called by the processor, the training method of the information push model as described in any one of claims 1-6 is implemented.
