Method and device for training sorting model and sorting

Through the thread-and-wire network and the twin-tower diversion strategy, the problem of low prediction accuracy and inconsistent recommendation system links in the rough ranking model of the e-commerce system in multiple scenarios has been solved, improving the recommendation effect and user experience.

CN118864041APending Publication Date: 2024-10-29BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410807085.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The rough ranking model of the e-commerce system has low prediction accuracy in multiple scenarios. There are problems such as multi-scenario material training bias, inconsistent recommendation system links, and failure to consider positive and negative sample modeling, which affects the recommendation effect.

Method used

The NeNet and twin-tower diversion strategies are used to improve the model's adaptability to multiple scenarios and the link consistency of the recommendation system, and the pair-wise loss function is used to reduce the impact of the ratio of positive and negative samples on model scoring, and joint modeling recall Click-through rate and recall-impression-no-click rate.

Benefits of technology

Significantly improves the multi-scene recommendation effect under the e-commerce rough ranking service, making the estimated value of the recommendation system more in line with user interests and preferences, improving click-through rates and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864041A_ABST
    Figure CN118864041A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a sorting model training method and device and a sorting method and device. The specific implementation mode of the method comprises the steps that features and a sorting model of a sample are obtained, and the sorting model comprises a feature embedding layer, a vector fusion layer, a multi-layer perceptron, two needle threading and lead wire networks, a deep cross network, a deep neural network layer and an output layer; processing the features of the sample through a feature embedding layer and a vector fusion layer to obtain fusion features; respectively inputting the fusion features into a first threading network and a deep cross network, and inputting the obtained results into a multi-layer perceptron to obtain a sensing result; processing the sensing result through a second threading network, and inputting the processed sensing result into a deep neural network layer to obtain an output result; inputting the output result into an output layer to obtain a prediction result, and calculating a loss value based on the prediction result; and adjusting network parameters of the sorting model according to the loss value. The ranking model generated by the embodiment improves the accuracy of the recommendation result and the user satisfaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method and device for training a sorting model and sorting. Background Art

[0002] With the rapid development of the Internet, the amount of information users face has exploded, which requires users to invest a lot of time and energy in finding content of interest. On the other hand, different users have different interests, hobbies, needs and preferences, making personalized recommendations an urgent problem to be solved. E-commerce recommendation systems can improve user experience and enhance the business value of enterprises by mining users' potential needs and efficiently matching users with relevant information.

[0003] Industrial recommendation systems in e-commerce scenarios are usually divided into three stages: recall, rough sorting, and fine sorting. Recall, also known as candidate generation, is mainly responsible for selecting a certain number of candidates from a large number of items. These candidates are potentially attractive but may not be accurate. The task of the rough sorting stage is to preliminarily sort the candidates and select items that users may be interested in. The fine sorting stage further refines the sorted items and finally outputs personalized recommendation results.

[0004] Among them, the coarse ranking stage plays a key role in the recommendation system. First, coarse ranking can effectively reduce the number of candidates and reduce the massive candidate items to a controllable range, which facilitates the subsequent fine ranking stage. At the same time, by preliminarily sorting the candidate items, coarse ranking can meet the personalized needs of users to a certain extent and improve the accuracy of recommendations. However, coarse ranking faces some challenges. First, the number of candidates may still be large, resulting in a long amount of calculation and processing time in the coarse ranking stage. Second, the ranking in the coarse ranking stage may be too simple and cannot fully explore the deep needs of users. In addition, the coarse ranking stage needs to balance the accuracy and diversity of the recommendation results to meet the needs of different users. Summary of the invention

[0005] The embodiments of the present disclosure provide a method and apparatus for training a ranking model.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for training a sorting model, comprising: obtaining features and a sorting model of a sample, wherein the sorting model comprises a feature embedding layer, a vector fusion layer, a multi-layer perceptron, a first threading network, a second threading network, a deep cross network, a deep neural network layer, and an output layer; processing the features of the sample through the feature embedding layer and the vector fusion layer to obtain fused features; inputting the fused features into the first threading network and the deep cross network respectively, and inputting the obtained results into the multi-layer perceptron together to obtain a perceived result; processing the perceived result through the second threading network and then inputting it into the deep neural network layer to obtain an output result; inputting the output result into the output layer to obtain a predicted result, and calculating a loss value based on the predicted result; and adjusting the network parameters of the sorting model according to the loss value.

[0007] In some embodiments, the sorting model also includes a dual-tower diversion network and a dual-tower diversion layer; and the output result is input into the output layer to obtain a prediction result, and a loss value is calculated based on the prediction result, including: inputting the fusion feature into the dual-tower diversion network to obtain a click layer output result and a non-click layer output result; inputting the output result, the click layer output result and the non-click layer output result into the dual-tower diversion layer to obtain a diversion result; inputting the diversion result into the output layer to obtain a prediction result, and calculating the loss value based on the prediction result.

[0008] In some embodiments, calculating the loss value based on the prediction result includes: calculating a weighted sum of a recall click rate loss value, a recall exposure non-click rate loss value, and a recall exposure positive and negative sample pairing loss value.

[0009] In some embodiments, the first needle-threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network; and the fusion features are respectively input into the first needle-threading network and the deep cross network, and the results are input into the multi-layer perceptron together to obtain the perception result, including: inputting the fusion features into the neural network module to obtain the first original feature; inputting the first original feature vector into the Sigmoid activation function to obtain the first activation feature; inputting the first original feature and the first activation feature into the batch normalization layer to obtain the first normalized feature; inputting the first normalized feature and the first original feature into the multi-layer perceptron to obtain the first perception feature; splicing the first perception feature and the first normalized feature through the residual network to obtain the output result of the first needle-threading network.

[0010] In some embodiments, the second threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network; and the perception result is processed by the second threading network and then input into the deep neural network layer to obtain an output result, including: inputting the perception result into the neural network module to obtain a second original feature; inputting the second original feature vector into the Sigmoid activation function to obtain a second activation feature; inputting the second original feature and the second activation feature into the batch normalization layer to obtain a second normalized feature; inputting the second normalized feature and the second original feature into the multi-layer perceptron to obtain a second perception feature; splicing the second perception feature and the second normalized feature through the residual network to obtain the output result of the second threading network.

[0011] In some embodiments, the dual-tower shunt network includes: two expert networks, a mapping matrix, a click layer and a non-click layer, wherein the two expert networks are respectively used to model the recall click task and the recall non-click task under the current sample, and the weights are shared between the two expert networks. The Dive activation function is used as the activation function shared by the expert networks, and the output results of the two expert networks are shunt-weighted by the matrix stationary point multiplication method of the mapping matrix, and then respectively input into the click layer and the non-click layer.

[0012] In some embodiments, the dual-tower diversion layer includes a click diversion layer and a non-click diversion layer, and the click layer output results and the non-click layer output results are respectively merged with the output results and then input into the click diversion layer and the non-click diversion layer respectively.

[0013] In some embodiments, the feature includes at least one of the following: user feature, product feature, scene feature, and statistical feature.

[0014] In a second aspect, an embodiment of the present disclosure provides a sorting method, comprising: receiving a user request including scene information and product information; recalling a set of candidate products based on the scene information and the product information; acquiring user characteristics and scene characteristics as well as product characteristics and statistical characteristics of each candidate product; inputting the user characteristics and scene characteristics as well as product characteristics and statistical characteristics of each candidate product into a sorting model trained according to any one of the methods described in the first aspect, and outputting a sorting result.

[0015] In a third aspect, an embodiment of the present disclosure provides a device for training a sorting model, comprising: an acquisition unit, configured to acquire features and a sorting model of a sample, wherein the sorting model comprises a feature embedding layer, a vector fusion layer, a multi-layer perceptron, a first threading network, a second threading network, a deep cross network, a deep neural network layer, and an output layer; a fusion unit, configured to process the features of the sample through the feature embedding layer and the vector fusion layer to obtain a fused feature; a perception unit, configured to input the fused feature into the first threading network and the deep cross network respectively, and input the obtained results into the multi-layer perceptron together to obtain a perception result; an output unit, configured to process the perception result through the second threading network and then input it into the deep neural network layer to obtain an output result; a prediction unit, configured to input the output result into the output layer to obtain a prediction result, and calculate a loss value based on the prediction result; an adjustment unit, configured to adjust the network parameters of the sorting model according to the loss value.

[0016] In some embodiments, the sorting model also includes a dual-tower diversion network and a dual-tower diversion layer; and the prediction unit is further configured to: input the fusion features into the dual-tower diversion network to obtain the click layer output results and the non-click layer output results; input the output results, the click layer output results and the non-click layer output results into the dual-tower diversion layer to obtain the diversion results; input the diversion results into the output layer to obtain the predicted results, and calculate the loss value based on the predicted results.

[0017] In some embodiments, the prediction unit is further configured to: calculate a weighted sum of a recall click rate loss value, a recall exposure non-click rate loss value, and a recall exposure positive and negative sample pairing loss value.

[0018] In some embodiments, the first threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network; and the perception unit is further configured to: input the fused feature into the neural network module to obtain a first original feature; input the first original feature vector into the Sigmoid activation function to obtain a first activation feature; input the first original feature and the first activation feature into the batch normalization layer to obtain a first normalized feature; input the first normalized feature and the first original feature into the multi-layer perceptron to obtain a first perceived feature; splice the first perceived feature and the first normalized feature through a residual network to obtain an output result of the first threading network.

[0019] In some embodiments, the second threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network; and the output unit is further configured to: input the perception result into the neural network module to obtain a second original feature; input the second original feature vector into the Sigmoid activation function to obtain a second activation feature; input the second original feature and the second activation feature into the batch normalization layer to obtain a second normalized feature; input the second normalized feature and the second original feature into the multi-layer perceptron to obtain a second perceived feature; splice the second perceived feature and the second normalized feature through the residual network to obtain the output result of the second threading network.

[0020] In some embodiments, the dual-tower shunt network includes: two expert networks, a mapping matrix, a click layer and a non-click layer, wherein the two expert networks are respectively used to model the recall click task and the recall non-click task under the current sample, and the weights are shared between the two expert networks. The Dive activation function is used as the activation function shared by the expert networks, and the output results of the two expert networks are shunt-weighted by the matrix stationary point multiplication method of the mapping matrix, and then respectively input into the click layer and the non-click layer.

[0021] In some embodiments, the dual-tower diversion layer includes a click diversion layer and a non-click diversion layer, and the click layer output results and the non-click layer output results are respectively merged with the output results and then input into the click diversion layer and the non-click diversion layer respectively.

[0022] In some embodiments, the feature includes at least one of the following: user feature, product feature, scene feature, and statistical feature.

[0023] In a fourth aspect, an embodiment of the present disclosure provides a sorting device, comprising: a receiving unit, configured to receive a user request including scene information and product information; a recall unit, configured to recall a set of candidate products based on the scene information and the product information; an acquisition unit, configured to acquire user features and scene features as well as product features and statistical features of each candidate product; a sorting unit, configured to input the user features and scene features as well as the product features and statistical features of each candidate product into a sorting model trained according to the method described in any one of the first aspects, and output a sorting result.

[0024] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more computer programs are stored, and when the one or more computer programs are executed by the one or more processors, the one or more processors implement any one of the methods in the first aspect or the second aspect.

[0025] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any one of the first aspect or the second aspect.

[0026] The training ranking model and ranking method and device provided by the embodiments of the present disclosure are intended to solve the problem of estimation accuracy of the rough ranking model of the e-commerce system in multiple scenarios. Three technical solutions are proposed: "Needle Threading Network" (NeNet) to solve the problem of material training deviation in multiple scenarios; "Dual Tower Diversion Strategy" to improve the consistency of the recommendation system link; and pair-wise loss to improve the accuracy of model estimation and reduce the influence of the positive and negative sample ratio on the model score, which can significantly improve the multi-scenario recommendation effect under the e-commerce rough ranking service, make the estimation value of the entire recommendation system more in line with the user's interest preference, thereby improving the click-through rate of e-commerce recommendation scenarios and enriching the user experience.

[0027] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0029] Figure 1 It is a schematic diagram of an application scenario of a coarse-grained model in the prior art;

[0030] Figure 2 is a flowchart of an embodiment of a method for training a ranking model according to the present disclosure;

[0031] Figure 3a , 3b is a schematic diagram of an application scenario of the method for training a ranking model according to the present disclosure;

[0032] Figure 4 is a flow chart of an embodiment of a sorting method according to the present disclosure;

[0033] Figure 5 is a structural schematic diagram of an embodiment of an apparatus for training a ranking model according to the present disclosure;

[0034] Figure 6 is a schematic structural diagram of an embodiment of a sorting device according to the present disclosure;

[0035] Figure 7 It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0037] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0038] First, let’s explain the special terms used in this article:

[0039] Commonly used sorting learning is divided into three types: PointWise, PairWise, and ListWise.

[0040] PointWise: This means that each sample is considered an independent object and is predicted and optimized independently. Under this learning strategy, each sample is considered a data point, and the learning goal of the model is to minimize the prediction error of each sample.

[0041] PairWise: refers to treating the relationship between each pair of samples as a whole for prediction and optimization. Under this learning strategy, the learning goal of the model is to minimize the difference or similarity between each pair of samples.

[0042] Shared-bottom: usually refers to a model architecture that shares the underlying feature representation. Specifically, this model structure usually consists of two or more different tasks, each with its own top-level feature representation, but they share a bottom-level feature representation.

[0043] DCN: Deep & Cross Network is a deep learning model for recommendation systems. It combines the advantages of shallow models and deep models and can better deal with the sparsity and high-dimensionality problems in recommendation systems. The DCN model uses a cross network to learn the intrinsic correlation between low-order features and a deep network to learn the nonlinear relationship between high-order features.

[0044] As recommendation systems become more sophisticated and diversified, more and more complex recommendation scenarios emerge. Different scenarios can provide different types of recommended content based on user behavior and needs, thereby improving user purchase conversion rates and user experience. The LSTM (Long Short-Term Memory) network can be used to automatically extract feature representations of items and users, achieving efficient sorting in coarse sorting.

[0045] Based on this, we proposed a method for optimizing click-through rate in coarse-ranking and multi-scenario recommendations for e-commerce, which can effectively improve user click-through rate. Specifically, we designed a model structure of "needle threading network" (NeNet) in the recommendation coarse-ranking model, and proposed a "dual-tower diversion strategy" for post-link sorting optimization to improve the exposure and click-through rate of personalized materials. In addition, in order to allow the model to better learn the common characteristics of multi-scenario coarse-ranking models while taking into account the differences between various application scenarios, we added a more fine-grained pair-wise loss on the basis of the original point-wise loss. This method reduces the interference of the positive and negative sample ratios in each estimation scenario on the coarse-ranking score. Finally, we also jointly modeled the loss of recalled non-clicks and recalled clicks to further help the entire model system better model user interest preferences.

[0046] In existing e-commerce systems, considering the online load problem, multi-scenario coarse-ranking models generally adopt a shared-bottom modeling architecture. This model can simultaneously consider multiple factors such as user features, item features, and edge information to improve the recommendation effect. The following will introduce in detail a multi-scenario coarse-ranking model based on a shared bottom layer, including model features, model structure, estimated value, and loss function. Multi-scenario general coarse-ranking model such as Figure 1 Note: The actual deployment scenario is larger than the multi-tower scenario shown in the figure. For convenience, four typical scenarios are used as examples for illustration.

[0047] Model features: The features of this model include three parts: user features, item features, and scene features (also known as edge information). User features include user ID, gender, age, geographic location, etc.; item features include price, brand, category, attributes, etc. of the recommended product; scene features include time, weather, promotion, and other information related to the recommendation scene. Scene features are used to distinguish the user preference scene to which the current item belongs. These features can be used to describe factors such as users, products, and environment to improve the recommendation effect.

[0048] Model body: The model adopts a shared underlying modeling architecture, including components such as DCN and multi-layer perceptron (MLP). Specifically, the model consists of four towers, each of which corresponds to a recommendation scenario, such as "recommended for you scenario", "mini business details page scenario", "watched again and again scenario" and "good product recommendation scenario". Each tower has the same underlying network for learning shared cross-features and nonlinear features. The upper network and output layer of each tower are independent, used to learn scenario-related features and predict ETR indicators. The loss function uses point-wise loss, and the model-related operations include point-by-point addition. The gating network is used to control the stratification of the four towers.

[0049] Model loss: The optimization goal of this model is to minimize the point-wise loss to improve the prediction accuracy of the model. Point-wise loss is a loss function for a single sample, which is used to measure the prediction error of the model for a single sample. In this model, the loss function is composed of the output values ​​of four towers, where the output value of each tower is the prediction result of a binary classifier. Through the back-propagation algorithm, the model parameters can be updated according to the gradient of the loss function to improve the prediction accuracy of the model.

[0050] Figure 1 The prior art sorting model shown has the following problems:

[0051] 1. Multi-scenario material training deviation problem: In the existing general multi-scenario coarse-ranking hybrid recommendation model, the amount of commodity material data in each scenario is not uniform, resulting in a large deviation in the amount of data training for the scenario training. For example, the amount of data for the "recommended for you" scenario is much larger than that for the "watch again and again" scenario. This will cause the top model estimates of some small scenarios to be obscured by the top estimate model with large data volume, affecting the accuracy and recommendation effect of the overall coarse-ranking model. At the same time, the small amount of data will also lead to precision loss in gradient propagation and fitting training, further reducing the performance of the model.

[0052] 2. The coarse ranking model does not consider the modeling objectives of the downstream fine ranking, resulting in inconsistent links in the recommendation system: The general coarse ranking model is usually at the upstream of the recommendation system. However, the modeling objectives of the coarse ranking model and the fine ranking model are different. The coarse ranking model mainly focuses on the basic needs and interest preferences of users, while the fine ranking model pays more attention to the quality of the recommendation results and user satisfaction. Therefore, if the modeling objectives of the coarse ranking model and the fine ranking model are inconsistent, it may lead to inconsistent links in the recommendation system, affecting the accuracy of the recommendation results and user satisfaction.

[0053] 3. Positive and negative sample modeling in the coarse ranking mode is not considered: The general coarse ranking model uses a point-level loss function, namely point-wise loss, to measure the prediction error of the model for a single sample. However, in multi-scenario recommendations, user interest preferences and needs in different scenarios are different, so a more accurate pair-wise loss needs to be considered to improve the accuracy and generalization ability of the model. Pair-wise loss can make personalized recommendations for different scenarios and different users by comparing the relative importance of different samples.

[0054] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for training a ranking model according to the present disclosure. The method for training a ranking model comprises the following steps:

[0055] Step 201, obtaining sample features and a sorting model.

[0056] In this embodiment, the execution body of the method for training the sorting model (for example, a server on which the sorting model is deployed) can obtain the features of the samples. Sample features can be extracted from the samples through LSTM. The sample may include the SKUID and annotation information of the product, wherein the annotation information is used to identify whether the product has been exposed and whether it has been clicked after exposure. The exposed samples can be used as positive samples, and the unexposed samples can be used as negative samples. The features include at least one of the following: user features, product features, scene features, and statistical features. In addition to the three basic features mentioned above (user features, product features, and scene features), statistical features (the frequency of historical exposure of the item, the frequency of historical clicks on the item, etc.) are also included to characterize user interests.

[0057] Among them, the sorting model includes feature embedding layer, vector fusion layer, multi-layer perceptron, 2 threading networks, deep cross network, deep neural network layer, and output layer. The structure of the sorting model is as follows Figure 3b As shown, the double-tower diversion network and the double-tower diversion layer are optional structures.

[0058] The sorting model includes two threading networks, which are named the first threading network and the second threading network in the order of data flow in order to distinguish them. Each threading network includes: neural network module, sigmoid activation function, batch normalization layer, multi-layer perceptron, and residual network.

[0059] Step 202, the features of the samples are processed by the feature embedding layer and the vector fusion layer to obtain fused features.

[0060] In this embodiment, the feature embedding layer combines each feature into a vector by point-by-point addition, and the vector fusion layer concatenates vectors of multiple features into a fused feature.

[0061] Step 203, input the fusion features into the first threading network and the deep cross network respectively, and input the obtained results into the multi-layer perceptron together to obtain the perception results.

[0062] In this embodiment, the NeedleNet network is referred to as NeNet. For the mixed training model of multi-scene materials, scene data with a small data volume distribution will be overwhelmed by scene data with a large sample volume during model gradient conduction and fitting training. At the same time, the accuracy loss in gradient conduction makes it difficult for the model to learn scene information with a small sample distribution. For this reason, we propose a gradient conduction enhancement strategy similar to the "needle and thread structure".

[0063] The fusion features are respectively input into the first threading network and the deep cross network, and the obtained results are input into the multi-layer perceptron together to obtain the perception result, including: inputting the fusion features into the neural network module to obtain the first original feature; inputting the first original feature vector into the Sigmoid activation function to obtain the first activation feature; inputting the first original feature and the first activation feature into the batch normalization layer to obtain the first normalized feature; inputting the first normalized feature and the first original feature into the multi-layer perceptron to obtain the first perception feature; splicing the first perception feature and the first normalized feature through the residual network to obtain the output result of the first threading network. The first threading network collects the original vector features, and adopts a "staircase" gradient transition structure to decompose the key feature vector step by step, and passes the feature value through the Sigmoid activation function to obtain the unit activity of the feature. At the same time, we apply Batch Normalization (BN) to both the original features and the activated features for vector normalization to further maintain the expressive power of the features. The scaling coefficient and offset in BN can be optimized by the back propagation algorithm, so that the network can gradually learn the optimal parameters. Finally, we input the concatenated BN vector and the original input neural network model into the multi-layer perceptron (MLP), and introduce the residual network idea to concatenate the output vector obtained by BN with the final output vector, and finally obtain the enhanced expression of different material feature vectors. This "needle and thread interlaced" structure can effectively retain the neural factors of small sample data when training in unbalanced samples, and then cross-layer connections can make up for the gradient loss caused by small scene samples in the model gradient conduction, thereby improving the model's estimation accuracy for small scene samples. The above process can be expressed by the following formula:

[0064] x l+1 =[BN(xl ||σ(W·x l +b))||MLP(x l ||(BN(x l ||σ(W·x l +b))))] concat

[0065] The above x l represents the original neural network input, x l+1 Represents the neural network input of the next layer and the output of the current layer, and σ represents the Sigmoid activation function. The NeNet module learning parameters are relatively flexible and can be applied to various parameter layers of the model like "needle and thread".

[0066] Step 204, the perception result is processed by the second threading network and then input into the deep neural network layer to obtain the output result.

[0067] In this embodiment, if Figure 3b As shown, two threading network constructions are made between the vector fusion layer and the main neural network layer to make up for the gradient loss of training in the model gradient conduction. The perception result is input into the neural network module to obtain the second original feature; the second original feature vector is input into the Sigmoid activation function to obtain the second activation feature; the second original feature and the second activation feature are input into the batch normalization layer to obtain the second normalized feature; the second normalized feature and the second original feature are input into the multi-layer perceptron to obtain the second perception feature; the second perception feature and the second normalized feature are spliced ​​through the residual network to obtain the output result of the second threading network.

[0068] Step 205: input the output result into the output layer to obtain the prediction result, and calculate the loss value based on the prediction result.

[0069] In this embodiment, the output layer can predict the probability of a sample being clicked (pCTR) and the probability of being recalled and exposed (pETR). pCTR and pETR are multiplied to obtain the probability of recall click pETCTR. Then, pETCTR is subtracted from pETR to obtain the probability of recall exposure not being clicked pETR-ETCTR. The output layer can also calculate the weighted sum of pETCTR, pETR-ETCTR, and pETR of each sample and sort them to obtain the prediction result. The loss value can be the weighted sum of the recall click rate loss value, the recall exposure non-click rate loss value, and the recall exposure positive and negative sample pairing loss value.

[0070] Considering that the ranking model is at the upper layer of the recommendation system link, the training samples contain a large number of recalled unexposed negative samples. At the same time, for the exposed samples, the positive and negative samples are also extremely unbalanced, which will greatly affect the training performance of the model and interfere with the model estimation effect. To overcome this problem, we sampled the original unexposed samples and the exposed but unclicked samples. Figure 3b The sample balance loss estimation tower shown is used to control the collection ratio so that the difference between the prediction results of positive and negative samples is greater. In order to reduce the information loss and estimation interference caused by the sampling ratio on model training, we constructed a differential metric loss function, that is, a pair-wise loss loss. Pair-wise loss models the differentiation of positive and negative samples by pairing positive and negative samples to capture user interests. Specifically, for the prediction results of each pair of positive and negative samples, pair-wise loss calculates the distance between them (such as Euclidean distance or cosine similarity) and converts the distance into a loss value. By learning the similarities and differences between samples, it has been achieved that similar samples are closer and heterogeneous samples are farther away, thereby obtaining better sample prediction effects. Specifically, we use Bayesian posterior probability to estimate parameters, as follows:

[0071]

[0072] Θ represents the parameter we are looking for, > u It can be considered as a ranking, the ranking of users' preferences for products. Since the data set is composed of triplets, P(> u |Θ) is estimated by the above form. Among them,

[0073]

[0074] Assume that p(Θ) is normally distributed:

[0075] p(Θ)~N(0,Σ Θ )

[0076] For our ranking model, we can get the OPT optimization formula of BPR (Bayesian Personalized Ranking) in logarithmic form:

[0077]

[0078] Loss function:

[0079]

[0080] Among them, y1 is the true value of ETCTR in the sample’s annotation information, is the predicted value of ETCTR, y2 is the true value of ETR-ETCTR in the sample’s annotation information, is the predicted value of ETR-ETCTR, y3 + is the predicted value of ETR in the annotation information of the positive sample, y3 - It is the predicted value of ETR in the annotation information of negative samples.

[0081] It is worth noting that the loss function of the upgraded ranking model includes the point-wise loss for optimizing the recall click-through rate (ETCTR) and the recall exposure non-click rate (ETR-ETCTR) estimation, and the pair-wise loss for improving the accuracy of ETR estimation. This maintains the consistency of the recommendation system link while effectively reducing the model recall exposure rate estimation bias problem caused by excessive differences between positive and negative samples.

[0082] In some optional implementations of the present embodiment, the sorting model also includes a dual-tower diversion network and a dual-tower diversion layer; and the output result is input into the output layer to obtain a prediction result, and a loss value is calculated based on the prediction result, including: inputting the fusion feature into the dual-tower diversion network to obtain a click layer output result and a non-click layer output result; inputting the output result, the click layer output result and the non-click layer output result into the dual-tower diversion layer to obtain a diversion result; inputting the diversion result into the output layer to obtain a prediction result, and calculating the loss value based on the prediction result.

[0083] like Figure 3b As shown, the dual-tower shunting network includes: two expert networks, a mapping matrix, a click layer and a non-click layer, wherein the two expert networks are respectively used to model the recall click task and the recall non-click task under the current sample, and the two expert networks share weights, and use the Dive activation function as the activation function shared by the expert networks. The output results of the two expert networks are shunted and weighted by the matrix stationary point multiplication method of the mapping matrix, and then input into the click layer and the non-click layer respectively. The dual-tower shunting layer includes a click shunting layer and a non-click shunting layer, and the output results of the click layer and the output results of the non-click layer are respectively merged with the output results and then respectively input into the click shunting layer and the non-click shunting layer.

[0084] This application adopts a dual-tower diversion strategy, namely ForkTower (the meaning of the name comes from the dual-tower modeling method similar to a fork). Taking into account the consistency of the recommendation link, the coarse sorting not only needs to model the recall exposure rate (ETR), but also needs to consider the exposure click rate (CTR, which is consistent with the modeling goal of the back link). Therefore, we model the recall click rate (ETCTR) in the sorting model, and introduce the information of recall exposure and non-click (ETR-ETCTR) through the dual-tower diversion structure. We input it into two expert networks, which are used to model the recall click task and the recall non-click task under the current sample respectively. At the same time, the two expert networks will also share weights, and the Dive activation function is used as the activation function shared by the expert network. The non-monotonicity of Dive can enable the model to better learn the contour and boundary of the target, thereby improving the sample pattern segmentation accuracy of the model. At the same time, we also define a mapping matrix based on the input neural vector, and use the matrix stationary point multiplication method to divert and weight the output results of the two expert networks to enhance the model's personalized expression of user interests.

[0085] Step 206, adjusting the network parameters of the sorting model according to the loss value.

[0086] In this embodiment, the loss value is converged by adjusting the network parameters, and the network parameters of the feature embedding layer, the vector fusion layer, the multi-layer perceptron, the first threading network, the second threading network, the deep cross network, the deep neural network layer, and the output layer are adjusted.

[0087] The method provided by the above embodiment of the present disclosure can have the following advantages by modifying the rough arrangement model of the prior art:

[0088] 1. Multi-scenario coarse-scale model tuning: A needle-threading network NeNet is proposed to address the information loss and information drowning problems caused by the imbalance of multi-scenario training samples. Through a gradient conduction enhancement strategy similar to the "needle-thread structure" and the idea of ​​a residual network, the gradient loss in the gradient conduction of model parameters is compensated for, and small-scene data information and user interest expression are effectively retained.

[0089] 2. Upgrade the consistency of link modeling: By jointly modeling the recall exposure rate (ETR) and the recall click rate (ETCTR), the post-coarse ranking link CTR estimation is integrated into the coarse ranking stage. A dual-tower diversion network (ForkTower) is proposed to input the underlying shared features into the expert network of shared weights. The dual-tower diversion enhancement method is used to fully integrate the click information and non-click information on the coarse ranking side, thereby improving the click rate of the recommendation system.

[0090] 3. Reform of the training sample balance mechanism: In order to address the problems of a large number of negative samples that were recalled but not exposed or exposed but not clicked on the coarse ranking side, the model training load is heavy when samples are not sampled, negative sampling of training samples will lead to information loss, and the sampling ratio will interfere with model training. We construct a pair-wise loss loss measurement method for training to eliminate the model estimation bias problem caused by excessive differences between positive and negative samples.

[0091] Further references Figure 4 , which shows a process 400 of an embodiment of a sorting method. The process 400 of the sorting method includes the following steps:

[0092] Step 401, receiving a user request including scene information and product information.

[0093] In this embodiment, if Figure 3a As shown, when a user browses e-commerce terminal products, the recommendation system sends the current user request to the background. The request includes the time of the user's request, basic information about the product, and the current scenario. After the request is parsed by the system, it enters the next stage.

[0094] Step 402: Recall a candidate product set based on the scene information and product information.

[0095] In this embodiment, after receiving the request sent by the user, the system will extract the products related to the current user's interest from the material library and put them into the recall system. The recall system will recall products based on different materials in different scenarios. These product candidates recalled from the huge recommendation system library will enter the next stage.

[0096] Step 403: Obtain user features and scene features as well as product features and statistical features of each candidate product.

[0097] In this embodiment, the user features and scene features extracted in advance by a network such as LSTM and the product features and statistical features of each candidate product can be directly obtained. These features are the same as those in step 201.

[0098] Step 404: input the user features and scene features as well as the product features and statistical features of each candidate product into a ranking model, and output a ranking result.

[0099] In this embodiment, the rough sorting system is mainly responsible for screening and filtering the recalled materials, using the multi-scenario estimation mode to divide the upstream materials by scenario, and finally giving the candidate recommended materials suitable for the current user scenario. At the same time, the rough sorting system will also sort the huge recalled materials to enhance the personalized recommendation ability of the recommendation system. The rough sorting system of this application uses a sorting model trained according to the method described in process 200, which can not only realize the rough sorting function, but also achieve the effect of fine sorting. There is no need to perform fine sorting and re-sorting.

[0100] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for training a sorting model. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0101] like Figure 5 As shown, the apparatus 500 for training a sorting model in this embodiment includes: an acquisition unit 501, a fusion unit 502, a perception unit 503, an output unit 504, a prediction unit 505 and an adjustment unit 506. Among them, the acquisition unit 501 is configured to acquire the features and sorting model of the sample, wherein the sorting model includes a feature embedding layer, a vector fusion layer, a multi-layer perceptron, a first threading network, a second threading network, a deep cross network, a deep neural network layer, and an output layer; the fusion unit 502 is configured to process the features of the sample through the feature embedding layer and the vector fusion layer to obtain a fused feature; the perception unit 503 is configured to input the fused feature into the first threading network and the deep cross network respectively, and input the obtained results into the multi-layer perceptron together to obtain a perception result; the output unit 504 is configured to process the perception result through the second threading network and then input it into the deep neural network layer to obtain an output result; the prediction unit 505 is configured to input the output result into the output layer to obtain a prediction result, and calculate a loss value based on the prediction result; the adjustment unit 506 is configured to adjust the network parameters of the sorting model according to the loss value.

[0102] In this embodiment, the specific processing of the acquisition unit 501, the fusion unit 502, the perception unit 503, the output unit 504, the prediction unit 505 and the adjustment unit 506 of the apparatus 500 for training the sorting model can be referred to. Figure 2 This corresponds to steps 201-206 in the embodiment.

[0103] In some optional implementations of this embodiment, the sorting model also includes a dual-tower diversion network and a dual-tower diversion layer; and the prediction unit 505 is further configured to: input the fusion features into the dual-tower diversion network to obtain the click layer output results and the non-click layer output results; input the output results, the click layer output results and the non-click layer output results into the dual-tower diversion layer to obtain the diversion results; input the diversion results into the output layer to obtain the prediction results, and calculate the loss value based on the prediction results.

[0104] In some optional implementations of this embodiment, the prediction unit 505 is further configured to: calculate a weighted sum of a recall click rate loss value, a recall exposure non-click rate loss value, and a recall exposure positive and negative sample pairing loss value.

[0105] In some optional implementations of this embodiment, the device further includes a sample balancing unit (not shown in the drawings) configured to sample unexposed samples and exposed but not clicked samples.

[0106] In some optional implementations of this embodiment, the first needle-threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network. The perception unit 503 is further configured to: input the fusion feature into the neural network module to obtain a first original feature; input the first original feature vector into the Sigmoid activation function to obtain a first activation feature; input the first original feature and the first activation feature into the batch normalization layer to obtain a first normalized feature; input the first normalized feature and the first original feature into the multi-layer perceptron to obtain a first perceived feature; and splice the first perceived feature and the first normalized feature through a residual network to obtain an output result of the first needle-threading network.

[0107] In some optional implementations of this embodiment, the second threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network. The output unit 504 is further configured to: input the perception result into the neural network module to obtain a second original feature; input the second original feature vector into the Sigmoid activation function to obtain a second activation feature; input the second original feature and the second activation feature into the batch normalization layer to obtain a second normalized feature; input the second normalized feature and the second original feature into the multi-layer perceptron to obtain a second perception feature; and splice the second perception feature and the second normalized feature through the residual network to obtain the output result of the second threading network.

[0108] In some optional implementations of the present embodiment, the dual-tower shunt network includes: two expert networks, a mapping matrix, a click layer and a non-click layer, wherein the two expert networks are respectively used to model the recall click task and the recall non-click task under the current sample, and the two expert networks share weights, and use the Dive activation function as the activation function shared by the expert networks. The output results of the two expert networks are shunt-weighted by the matrix stationary point multiplication method of the mapping matrix, and then input into the click layer and the non-click layer respectively.

[0109] In some optional implementations of this embodiment, the dual-tower diversion layer includes a click diversion layer and a non-click diversion layer, and the click layer output results and the non-click layer output results are respectively merged with the output results and then input into the click diversion layer and the non-click diversion layer respectively.

[0110] In some optional implementations of this embodiment, the feature includes at least one of the following: user feature, product feature, scene feature and statistical feature.

[0111] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a sorting device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0112] like Figure 6 As shown, the sorting device 600 of this embodiment includes: a receiving unit 601, a recall unit 602, an acquisition unit 603, and a sorting unit 604. The receiving unit 601 is configured to receive a user request including scene information and product information; the recall unit 602 is configured to recall a candidate product set according to the scene information and the product information; the acquisition unit 603 is configured to acquire user features and scene features as well as product features and statistical features of each candidate product; the sorting unit 604 is configured to input the user features and scene features as well as the product features and statistical features of each candidate product into the sorting model trained by the device 500, and output a sorting result.

[0113] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0114] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0115] An electronic device comprises: one or more processors; a storage device on which one or more computer programs are stored, and when the one or more computer programs are executed by the one or more processors, the one or more processors implement the method described in process 200 or 400.

[0116] A computer-readable medium stores a computer program, wherein the computer program implements the method described in process 200 or 400 when executed by a processor.

[0117] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0118] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0119] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0120] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as a method for training a sorting model. For example, in some embodiments, the method for training a sorting model may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or a communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the method for training a sorting model described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform a method for training a sorting model in any other appropriate manner (e.g., by means of firmware).

[0121] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0122] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0123] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0124] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0125] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0126] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0127] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0128] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for training a ranking model, include: Acquire features and a sorting model of the samples, wherein the sorting model includes a feature embedding layer, a vector fusion layer, a multi-layer perceptron, a first threading network, a second threading network, a deep cross network, a deep neural network layer, and an output layer; The features of the sample are processed by a feature embedding layer and a vector fusion layer to obtain fused features; The fusion features are input into the first threading network and the deep cross network respectively, and the obtained results are input into the multi-layer perceptron together to obtain the perception results; Processing the perception result through the second threading network and then inputting it into the deep neural network layer to obtain an output result; Inputting the output result into the output layer to obtain a prediction result, and calculating a loss value based on the prediction result; The network parameters of the sorting model are adjusted according to the loss value.

2. The method according to claim 1, in, The sequencing model also includes a double-tower diversion network and a double-tower diversion layer; as well as The step of inputting the output result into the output layer to obtain a prediction result, and calculating a loss value based on the prediction result, comprises: The fusion features are input into a dual-tower shunting network to obtain a click layer output result and a non-click layer output result; Input the output result, the click layer output result and the non-click layer output result into the double-tower diversion layer to obtain the diversion result; The diversion result is input into the output layer to obtain a prediction result, and the loss value is calculated based on the prediction result.

3. The method according to claim 1, in, The calculating the loss value based on the prediction result includes: Calculate the weighted sum of the recall click rate loss value, the recall exposure non-click rate loss value, and the recall exposure positive and negative sample pairing loss value.

4. The method according to claim 1, in, The first threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network; and The fusion features are input into the first threading network and the deep cross network respectively, and the obtained results are input into the multi-layer perceptron together to obtain the perception results, including: Inputting the fused feature into the neural network module to obtain a first original feature; Inputting the first original feature vector into a Sigmoid activation function to obtain a first activation feature; Inputting the first original feature and the first activated feature into the batch normalization layer to obtain a first normalized feature; Inputting the first normalized feature and the first original feature into a multi-layer perceptron to obtain a first perceptual feature; The first perception feature and the first normalized feature are spliced ​​through a residual network to obtain an output result of a first threading network.

5. The method according to claim 1, in, The second threading network includes: a neural network module, a Sigmoid activation function, a batch normalization layer, a multi-layer perceptron, and a residual network; and The sensing result is processed by the second threading network and then input into the deep neural network layer to obtain an output result, including: Inputting the perception result into the neural network module to obtain a second original feature; Inputting the second original feature vector into a Sigmoid activation function to obtain a second activation feature; Inputting the second original feature and the second activated feature into the batch normalization layer to obtain a second normalized feature; Inputting the second normalized feature and the second original feature into a multilayer perceptron to obtain a second perceptual feature; The second perceptual feature and the second normalized feature are concatenated through a residual network to obtain an output result of a second threading network.

6. The method according to claim 2, in, The dual-tower shunting network includes: two expert networks, a mapping matrix, a click layer and a non-click layer, wherein the two expert networks are respectively used to model the recall click task and the recall non-click task under the current sample, and the two expert networks share weights. The Dive activation function is used as the activation function shared by the expert networks, and the output results of the two expert networks are shunted and weighted by the matrix stationary point multiplication method of the mapping matrix, and then input into the click layer and the non-click layer respectively.

7. The method according to claim 6, in, The dual-tower diversion layer includes a click diversion layer and a non-click diversion layer. The click layer output result and the non-click layer output result are respectively merged with the output result and then respectively input into the click diversion layer and the non-click diversion layer.

8. The method according to any one of claims 1 to 7, in, The feature includes at least one of the following: user feature, product feature, scene feature and statistical feature.

9. A sorting method, include: Receiving a user request including scene information and product information; Recalling a candidate product set according to the scenario information and the product information; Obtain user features and scenario features as well as product features and statistical features of each candidate product; The user features and scene features as well as the product features and statistical features of each candidate product are input into a ranking model trained according to any one of the methods of claims 1-8, and a ranking result is output.

10. A device for training a sorting model, include: An acquisition unit is configured to acquire features and a sorting model of the sample, wherein the sorting model includes a feature embedding layer, a vector fusion layer, a multi-layer perceptron, a first threading network, a second threading network, a deep cross network, a deep neural network layer, and an output layer; A fusion unit is configured to process the features of the sample through a feature embedding layer and a vector fusion layer to obtain a fused feature; A perception unit is configured to input the fusion features into the first threading network and the deep cross network respectively, and input the obtained results into the multi-layer perceptron together to obtain a perception result; An output unit is configured to process the perception result through the second threading network and then input it into the deep neural network layer to obtain an output result; A prediction unit, configured to input the output result into an output layer to obtain a prediction result, and calculate a loss value based on the prediction result; An adjustment unit is configured to adjust the network parameters of the sorting model according to the loss value.

11. A sorting device, include: A receiving unit configured to receive a user request including scene information and product information; a recall unit, configured to recall a candidate commodity set according to the scenario information and the commodity information; An acquisition unit configured to acquire user features and scene features as well as product features and statistical features of each candidate product; The ranking unit is configured to input user features and scene features as well as product features and statistical features of each candidate product into a ranking model trained according to the method described in any one of claims 1 to 8, and output a ranking result.

12. An electronic device, include: one or more processors; a storage device having one or more computer programs stored thereon, When the one or more computer programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

13. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.