Deviation determination method, double-tower model training method, recommendation method and related products
By combining the similarity of materials and historical materials, integrating material deviations and object deviations, a more accurate target deviation is generated, which solves the problem of the influence of deviation factors in the interaction process between objects and materials in the recommendation system, and improves the accuracy of the recommendation system.
Patent Information
- Application Number
- CN202410984556.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-29
AI Technical Summary
In existing recommendation systems, the interaction process between objects and materials is easily affected by bias factors, causing materials that the objects are not interested in to be recommended, thereby reducing the accuracy of prediction information.
The deviation determination method is used to obtain the interaction data between the target object and the material, combine the similarity of the material and historical materials, and integrate the material deviation and object deviation to generate a more accurate target deviation to improve the accuracy of the recommendation system.
It improves the accuracy of target deviation, enhances the recommendation system's ability to identify materials of interest, and improves prediction accuracy.
Smart Images

Figure CN118861985A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep learning technology, and in particular to a deviation determination method, a dual-tower model training method, a recommendation method and related products. Background Art
[0002] Nowadays, in recommendation scenarios, the materials that the object has interacted with are usually used as an important basis for predicting the materials that the object is interested in. Specifically, the representation of the object is generated based on the materials that the user has interacted with, wherein the representation of the object carries information used to predict the materials that the object is interested in, and then the materials that the object is interested in can be determined based on the representation of the object, and the materials are recommended to the object. However, in the process of interaction between the object and the material, it will be affected by the deviation factor, and the influence of the deviation factor will cause the object to interact with the materials that the object is not interested in. Therefore, the materials that have interacted with the object may contain materials that the object is not interested in, which will lead to the generation of the object's representation based on the materials that the object is not interested in, which is easy to lead to the low accuracy of the information used to predict the materials that the object is interested in in the representation of the object, and the greater the degree of influence of the deviation factor, the lower the accuracy. Therefore, how to determine the degree of influence of the deviation factor is of great significance to measuring the accuracy of the information used to predict the materials that the object is interested in in the representation of the object. Summary of the invention
[0003] The present application provides a deviation determination method, a twin-tower model training method, a recommendation method and related products to generate a target deviation that characterizes the degree to which a target object is affected by a target deviation factor during the interaction between the target object and the target material, and the target deviation has high accuracy. The related products include a deviation determination device, a twin-tower model training device, a recommendation device, an electronic device, a computer-readable storage medium and a computer program product.
[0004] In a first aspect, a deviation determination method is provided, the method being used to determine a target deviation according to a target object and a target material that has interacted with the target object, the target deviation characterizing the degree to which the target object is affected by a target deviation factor during the interaction between the target object and the target material; the target deviation factor includes a material deviation factor and an object deviation factor, both of which are factors that cause the target object to interact with a material that the target object is not interested in, the material deviation factor is generated by the target material, and the object deviation factor is generated by the target object, the method comprising:
[0005] Acquire the target material and historical materials; the historical materials are materials that have interacted with the target object; the historical materials are different from the target material;
[0006] Obtaining a first deviation; wherein the first deviation represents the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material;
[0007] Based on the target similarity between the target material and the historical material, a second deviation is determined; the second deviation is negatively correlated with the target similarity; the second deviation represents the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material;
[0008] The first deviation and the second deviation are merged to obtain the target deviation; the target deviation is positively correlated with the first deviation; the target deviation is positively correlated with the second deviation.
[0009] In combination with any implementation manner of the present application, the step of fusing the first deviation with the second deviation to obtain a target deviation includes:
[0010] The first deviation and the second deviation are merged to obtain a reference deviation; the reference deviation is positively correlated with the first deviation; the reference deviation is positively correlated with the second deviation;
[0011] Based on the reference deviation, determining a reference interest representation of the target object; the reference interest representation includes interest information of the target object when the degree of influence of the target deviation factor on the target object is the reference deviation, and the interest information is used to determine the material of interest to the target object;
[0012] Predicting a reference probability of interaction between the target object and the target material based on the reference interest representation and the characteristics of the target material;
[0013] When the first difference between the reference probability and the preset label is less than a preset threshold, the reference deviation is determined as the target deviation; the preset label indicates that the target object has interacted with the target material.
[0014] In combination with any embodiment of the present application, when the first difference between the reference probability and the preset label is less than a preset threshold, before determining the reference deviation as the target deviation, the method further includes:
[0015] The first difference is determined according to the reference probability and the target distance of the preset tag; the first difference is positively correlated with the target distance.
[0016] In combination with any implementation manner of the present application, obtaining the first deviation includes:
[0017] Obtaining M preset deviations; the preset deviations are preset influence degrees of the material deviation factors; the M preset deviations are different from each other;
[0018] Based on the M preset deviations, M deviation interest representations of the target object are determined; the deviation interest representations correspond to the preset deviations one by one; any of the deviation interest representations includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation, and the interest information is used to determine the material of interest to the target object;
[0019] According to the M deviation interest representations and the characteristics of the target material, predict M deviation probabilities of the target object interacting with the target material; the deviation probabilities correspond one-to-one to the preset deviations;
[0020] The differences between the M deviation probabilities and the preset labels are calculated respectively to obtain M second differences; the preset labels indicate that the target object has interacted with the target material; and the second differences correspond to the preset deviations one by one;
[0021] The preset deviation corresponding to the smallest difference among the M second differences is used as the first deviation.
[0022] In combination with any implementation manner of the present application, the M preset deviations include a first reference deviation;
[0023] The determining, based on the M preset deviations, M deviation interest representations of the target object includes:
[0024] Acquire target interaction data; the target interaction data is data generated during the process of interaction between the target object and the historical material;
[0025] Determine a first interest representation according to the first reference deviation, the target interaction data, and the historical material; the first reference deviation is one of the M preset deviations; the first interest representation includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the first reference deviation;
[0026] According to the first interest representation and one or more second interest representations, the M deviation interest representations are obtained; the second interest representations correspond one-to-one to the second reference deviation; any representation in the second interest representations includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the corresponding second reference deviation; the second reference deviation is the deviation of the M preset deviations except the first reference deviation; the sum of the first interest representation and the one or more second interest representations is M.
[0027] In combination with any implementation manner of the present application, determining the first interest representation according to the first reference deviation, the target interaction data, and the historical material includes:
[0028] Fusing the first reference deviation, the target interaction data, and the historical material to obtain a fusion feature;
[0029] The first interest representation is determined according to the fusion feature.
[0030] In combination with any implementation manner of the present application, the fusing of the first reference deviation, the target interaction data, and the historical material to obtain a fusion feature includes:
[0031] Extracting a feature of the first reference deviation to obtain a reference deviation feature;
[0032] Extracting features of the target interaction data to obtain interaction data features;
[0033] Extract the characteristics of the historical material to obtain the historical material characteristics; the reference deviation characteristics, the interactive data characteristics, and the historical material characteristics are matrices with the same number of rows and columns;
[0034] The matrix obtained by multiplying the elements in the same position in the reference deviation feature, the interactive data feature, and the historical material feature matrices is used as the fusion feature; the fusion feature, the reference deviation feature, the interactive data feature, and the historical material feature are matrices with the same number of rows and columns.
[0035] In combination with any implementation manner of the present application, the respectively calculating the differences between the M deviation probabilities and the preset labels to obtain M second differences includes:
[0036] Calculating the distances between the M deviation probabilities and the preset labels to obtain M label distances;
[0037] The M second differences are determined according to the M label distances; the second differences correspond to the label distances one by one; and any of the second differences is positively correlated with the corresponding label distance.
[0038] In combination with any implementation manner of the present application, the target interaction data is data arranged in chronological order according to the time when the target object views the historical material.
[0039] In combination with any embodiment of the present application, predicting M deviation probabilities of the target object interacting with the target material according to the M deviation interest representations and the characteristics of the target material includes:
[0040] The similarities between the M deviation interest representations and the target material are calculated respectively, and the M deviation probabilities of the target object interacting with the target material are predicted; the deviation probability is positively correlated with the similarity between the corresponding deviation interest representation and the target material.
[0041] In a second aspect, a dual-tower model training method is provided, and the dual-tower model training method includes:
[0042] Obtaining a target deviation, a target feature of a target object, a target material, a dual-tower model to be trained, and a target label; the target deviation is obtained by a deviation determination method; the target material is a material that has interacted with the target object; and the target label represents the degree of interest of the target object in the target material;
[0043] Processing the target feature and the target material using the twin-tower model to be trained to obtain a target material representation of the target material output by a material branch of the twin-tower model to be trained, and a target object representation of the target object output by an object branch of the twin-tower model to be trained;
[0044] Determine the degree of interest of the target object in the target material according to the training similarity between the target object representation and the target material representation, and obtain a predicted interest degree; the predicted interest degree is positively correlated with the training similarity;
[0045] Determining a reference loss according to a target difference between the predicted interest level and the target label; the reference loss is positively correlated with the target difference;
[0046] The reference loss is adjusted according to the target deviation to determine the target loss; the target loss is negatively correlated with the target deviation;
[0047] The parameters of the material branch and the object branch in the dual-tower model to be trained are updated according to the target loss to obtain a target dual-tower model.
[0048] In a third aspect, a recommendation method is provided, the recommendation method comprising:
[0049] Acquire a target twin-tower model; the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes a material branch and an object branch;
[0050] Acquire reference features and a material library of a reference object; the material library includes reference materials and reference material representations of the reference materials; the reference material representations are obtained by extracting features of the reference materials through the material branch;
[0051] Processing the reference feature by using the object branch to obtain a reference object representation of the reference object output by the object branch;
[0052] According to the first similarity between the reference object representation and the reference material representation, the degree of interest of the reference object in the reference material is determined to obtain a first interest degree; the first interest degree is positively correlated with the first similarity.
[0053] In combination with any embodiment of the present application, after determining the second similarity between the reference object representation and the reference material representation, predicting the degree of interest of the reference object in the reference material, and obtaining the first degree of interest, the method further includes:
[0054] In a case where the first interest level is greater than a first threshold, determining the reference material corresponding to the reference material representation in the material library;
[0055] The reference material is recommended to the reference object.
[0056] In a fourth aspect, another recommendation method is provided, the recommendation method comprising:
[0057] Obtain a target twin-tower model; the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes a material branch;
[0058] Obtaining a material of interest and a material library; the material of interest is a material of interest to a reference object; the material library includes reference materials and reference material representations of the reference materials; the reference material representation is obtained by extracting the characteristics of the reference material through the material branch;
[0059] Processing the material of interest using the material branch to obtain a material of interest representation of the material of interest;
[0060] A second similarity between the representation of the material of interest and the representation of the reference material is determined, and the degree of interest of the reference object in the reference material is predicted to obtain a second degree of interest; the second degree of interest is positively correlated with the second similarity.
[0061] In combination with any embodiment of the present application, after determining the third similarity between the representation of the material of interest and the representation of the reference material, predicting the degree of interest of the reference object in the reference material, and obtaining the second degree of interest, the method further includes:
[0062] In a case where the second interest level is greater than a second threshold, determining the reference material corresponding to the reference material representation in the material library;
[0063] The reference material is recommended to the reference object.
[0064] In a fifth aspect, another recommendation method is provided, the recommendation method comprising:
[0065] Acquire a target twin-tower model, wherein the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes an object branch;
[0066] Acquire reference features of the reference object and a comparison object representation; the comparison object representation is obtained by extracting the comparison object representation through the object branch;
[0067] Processing the reference feature by using the object branch to obtain a reference object representation of the reference object output by the object branch;
[0068] Determine a third similarity between the reference object representation and the control object representation, predict the reference object's interest in the control material, and obtain a third interest level, wherein the third interest level is positively correlated with the third similarity; the control material is a material in which the control object is interested.
[0069] In combination with any embodiment of the present application, after determining a fourth similarity between the reference object representation and the control object representation, predicting the reference object's interest in the control material, and obtaining the third interest level, the method further includes:
[0070] In a case where the third interest level is greater than a third threshold, the control material is recommended to the reference subject.
[0071] In a sixth aspect, a deviation determination device is provided, the deviation determination device comprising:
[0072] An acquisition unit, used for acquiring the target material and historical materials; the historical materials are materials that have interacted with the target object; the historical materials are different from the target material;
[0073] The acquisition unit is further used to acquire a first deviation; the first deviation represents the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material;
[0074] a calculation unit, configured to determine a second deviation based on a target similarity between the target material and the historical material; the second deviation is negatively correlated with the target similarity; the second deviation represents the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material;
[0075] A fusion unit is used to fuse the first deviation with the second deviation to obtain the target deviation; the target deviation is positively correlated with the first deviation; the target deviation is positively correlated with the second deviation.
[0076] In conjunction with any embodiment of the present application, the fusion unit is specifically used for:
[0077] The first deviation and the second deviation are merged to obtain a reference deviation; the reference deviation is positively correlated with the first deviation; the reference deviation is positively correlated with the second deviation;
[0078] Based on the reference deviation, determining a reference interest representation of the target object; the reference interest representation includes interest information of the target object when the degree of influence of the target deviation factor on the target object is the reference deviation, and the interest information is used to determine the material of interest to the target object;
[0079] Predicting a reference probability of interaction between the target object and the target material based on the reference interest representation and the characteristics of the target material;
[0080] When the first difference between the reference probability and the preset label is less than a preset threshold, the reference deviation is determined as the target deviation; the preset label indicates that the target object has interacted with the target material.
[0081] In conjunction with any embodiment of the present application, the fusion unit is specifically used for:
[0082] The first difference is determined according to the reference probability and the target distance of the preset tag; the first difference is positively correlated with the target distance.
[0083] In conjunction with any embodiment of the present application, the acquisition unit is specifically used to:
[0084] Obtaining M preset deviations; the preset deviations are preset influence degrees of the material deviation factors; the M preset deviations are different from each other;
[0085] Based on the M preset deviations, M deviation interest representations of the target object are determined; the deviation interest representations correspond to the preset deviations one by one; any of the deviation interest representations includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation, and the interest information is used to determine the material of interest to the target object;
[0086] According to the M deviation interest representations and the characteristics of the target material, predict M deviation probabilities of the target object interacting with the target material; the deviation probabilities correspond one-to-one to the preset deviations;
[0087] The differences between the M deviation probabilities and the preset labels are calculated respectively to obtain M second differences; the preset labels indicate that the target object has interacted with the target material; and the second differences correspond to the preset deviations one by one;
[0088] The preset deviation corresponding to the smallest difference among the M second differences is used as the first deviation.
[0089] In combination with any embodiment of the present application, the M preset deviations include a first reference deviation;
[0090] The acquisition unit is specifically used for:
[0091] Acquire target interaction data; the target interaction data is data generated during the process of interaction between the target object and the historical material;
[0092] Determine a first interest representation according to the first reference deviation, the target interaction data, and the historical material; the first reference deviation is one of the M preset deviations; the first interest representation includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the first reference deviation;
[0093] According to the first interest representation and one or more second interest representations, the M deviation interest representations are obtained; the second interest representations correspond one-to-one to the second reference deviation; any representation in the second interest representations includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the corresponding second reference deviation; the second reference deviation is the deviation of the M preset deviations except the first reference deviation; the sum of the first interest representation and the one or more second interest representations is M.
[0094] In conjunction with any embodiment of the present application, the acquisition unit is specifically used to:
[0095] Fusing the first reference deviation, the target interaction data, and the historical material to obtain a fusion feature;
[0096] The first interest representation is determined according to the fusion feature.
[0097] In conjunction with any embodiment of the present application, the acquisition unit is specifically used to:
[0098] Extracting a feature of the first reference deviation to obtain a reference deviation feature;
[0099] Extracting features of the target interaction data to obtain interaction data features;
[0100] Extract the characteristics of the historical material to obtain the historical material characteristics; the reference deviation characteristics, the interactive data characteristics, and the historical material characteristics are matrices with the same number of rows and columns;
[0101] The matrix obtained by multiplying the elements in the same position in the reference deviation feature, the interactive data feature, and the historical material feature matrices is used as the fusion feature; the fusion feature, the reference deviation feature, the interactive data feature, and the historical material feature are matrices with the same number of rows and columns.
[0102] In conjunction with any embodiment of the present application, the acquisition unit is specifically used to:
[0103] Calculating the distances between the M deviation probabilities and the preset labels to obtain M label distances;
[0104] The M second differences are determined according to the M tag distances; the second differences correspond to the tag distances one by one; and any of the second differences is positively correlated with the corresponding tag distance.
[0105] In combination with any embodiment of the present application, the target interaction data is data arranged in chronological order according to the time when the target object views the historical material.
[0106] In combination with any embodiment of the present application, predicting M deviation probabilities of the target object interacting with the target material according to the M deviation interest representations and the characteristics of the target material includes:
[0107] The similarities between the M deviation interest representations and the target material are calculated respectively, and the M deviation probabilities of the target object interacting with the target material are predicted; the deviation probability is positively correlated with the similarity between the corresponding deviation interest representation and the target material.
[0108] In a seventh aspect, a double-tower model training device is provided, the double-tower model training device comprising:
[0109] An acquisition unit is used to acquire a target deviation, a target feature of a target object, a target material, a dual-tower model to be trained, and a target label; the target deviation is obtained by a deviation determination method; the target material is a material that has interacted with the target object; and the target label represents the degree of interest of the target object in the target material;
[0110] a determination unit, configured to process the target feature and the target material using the twin-tower model to be trained, to obtain a target material representation of the target material output by the material branch of the twin-tower model to be trained, and a target object representation of the target object output by the object branch of the twin-tower model to be trained;
[0111] a similarity calculation unit, for determining the degree of interest of the target object in the target material according to the training similarity between the target object representation and the target material representation, and obtaining a predicted degree of interest; the predicted degree of interest is positively correlated with the training similarity;
[0112] A loss calculation unit, configured to determine a reference loss according to a target difference between the predicted interest level and the target tag; the reference loss is positively correlated with the target difference;
[0113] The loss calculation unit is further used to adjust the reference loss according to the target deviation to determine a target loss; the target loss is negatively correlated with the target deviation;
[0114] An updating unit is used to update the parameters of the material branch and the object branch in the dual-tower model to be trained according to the target loss to obtain a target dual-tower model.
[0115] In an eighth aspect, a recommendation device is provided, the recommendation device comprising:
[0116] An acquisition unit is used to acquire a target twin-tower model; the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes a material branch and an object branch;
[0117] The acquisition unit is further used to acquire reference features and a material library of a reference object; the material library includes reference materials and reference material representations of the reference materials; the reference material representations are obtained by extracting features of the reference materials through the material branches;
[0118] a branch computing unit, configured to process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch;
[0119] The similarity calculation unit is used to determine the degree of interest of the reference object in the reference material according to the first similarity between the reference object representation and the reference material representation, and obtain a first interest degree; the first interest degree is positively correlated with the first similarity.
[0120] In combination with any embodiment of the present application, the recommendation device further includes a recommendation unit, which is used to:
[0121] In a case where the first interest level is greater than a first threshold, determining the reference material corresponding to the reference material representation in the material library;
[0122] The reference material is recommended to the reference object.
[0123] In a ninth aspect, another recommendation device is provided, the recommendation device comprising:
[0124] An acquisition unit, used for acquiring a target twin-tower model; the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes a material branch;
[0125] The acquisition unit is further used to acquire an interest material and a material library; the interest material is a material that the reference object is interested in; the material library includes reference materials and reference material representations of the reference materials; the reference material representation is obtained by extracting the characteristics of the reference material through the material branch;
[0126] a branch calculation unit, configured to process the material of interest by using the material branch to obtain a material of interest representation of the material of interest;
[0127] The similarity calculation unit is used to determine a second similarity between the representation of the material of interest and the representation of the reference material, predict the degree of interest of the reference object in the reference material, and obtain a second degree of interest; the second degree of interest is positively correlated with the second similarity.
[0128] In combination with any embodiment of the present application, the recommendation device further includes a recommendation unit, which is used to:
[0129] In a case where the second interest level is greater than a second threshold, determining the reference material corresponding to the reference material representation in the material library;
[0130] The reference material is recommended to the reference object.
[0131] In a tenth aspect, another recommendation device is provided, the recommendation device comprising:
[0132] An acquisition unit, used for acquiring a target twin-tower model, wherein the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes an object branch;
[0133] The acquisition unit is further used to acquire reference features of the reference object and a representation of the control object; the representation of the control object is obtained by extracting the representation of the control object through the object branch;
[0134] a branch computing unit, configured to process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch;
[0135] a similarity calculation unit, configured to determine a third similarity between the reference object representation and the control object representation, predict the reference object's interest in the control material, and obtain a third interest level, wherein the third interest level is positively correlated with the third similarity; and the control material is a material in which the control object is interested.
[0136] In combination with any embodiment of the present application, the recommendation device further includes a recommendation unit, which is used to:
[0137] In a case where the third interest level is greater than a third threshold, the control material is recommended to the reference subject.
[0138] In the eleventh aspect, an electronic device is provided, comprising: a processor and a memory, the memory being used to store computer program code, the computer program code comprising computer instructions, and when the processor executes the computer instructions, the electronic device executes the first aspect and any embodiment thereof, or executes the second aspect and any embodiment thereof, or executes the third aspect and any embodiment thereof, or executes the fourth aspect and any embodiment thereof, or executes the fifth aspect and any embodiment thereof.
[0139] In the twelfth aspect, another electronic device is provided, comprising: a processor, a sending device, an input device, an output device and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the first aspect and any embodiment thereof, or executes the second aspect and any embodiment thereof, or executes the third aspect and any embodiment thereof, or executes the fourth aspect and any embodiment thereof, or executes the fifth aspect and any embodiment thereof.
[0140] In the thirteenth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to execute the first aspect and any embodiment thereof, or the second aspect and any embodiment thereof, or the third aspect and any embodiment thereof, or the fourth aspect and any embodiment thereof, or the fifth aspect and any embodiment thereof.
[0141] In the fourteenth aspect, a computer program product is provided, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer is caused to execute the above-mentioned first aspect and any embodiment thereof, or execute the above-mentioned second aspect and any embodiment thereof, or execute the above-mentioned third aspect and any embodiment thereof, or execute the above-mentioned fourth aspect and any embodiment thereof, or execute the above-mentioned fifth aspect and any embodiment thereof.
[0142] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
[0143] In the present application, the deviation determination device obtains the target material, the historical material, and the first deviation, wherein the first deviation characterizes the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material. Based on the target similarity between the target material and the historical material, the second deviation is determined, wherein the second deviation characterizes the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material. The first deviation and the second deviation are then fused to determine the target deviation, wherein the target deviation characterizes the degree to which the target object is affected by the material deviation factor and the object deviation factor during the interaction between the target object and the target material. The deviation determination device obtains the target deviation through the above steps, and because both the material deviation factor and the object deviation factor are considered at the same time, the accuracy of the target deviation is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0144] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0145] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0146] Figure 1 A schematic diagram of a flow chart of a deviation determination method provided in an embodiment of the present application;
[0147] Figure 2 A schematic diagram of a flow chart of a dual-tower model training method provided in an embodiment of the present application;
[0148] Figure 3 A flowchart of a recommended method provided in an embodiment of the present application;
[0149] Figure 4 A flowchart of another recommended method provided in an embodiment of the present application;
[0150] Figure 5 A flowchart of another recommended method provided in an embodiment of the present application;
[0151] Figure 6 A schematic diagram of a weight learning method based on interaction bias provided in an embodiment of the present application;
[0152] Figure 7 A schematic diagram of the structure of a deviation determination device provided in an embodiment of the present application;
[0153] Figure 8 A schematic diagram of the structure of a double-tower model training device provided in an embodiment of the present application;
[0154] Fig. 9 A schematic diagram of a recommended device provided in an embodiment of the present application;
[0155] Fig.10 A schematic diagram of the structure of another recommended device provided in an embodiment of the present application;
[0156] Fig.11 A schematic diagram of the structure of another recommended device provided in the embodiment of the present application;
[0157] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0158] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0159] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0160] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0161] The execution subject of the embodiment of the present application is a deviation determination device, wherein the deviation determination device can be any electronic device that can execute the technical solution disclosed in the method embodiment of the present application. Optionally, the deviation determination device can be one of the following: a computer, a server.
[0162] It should be understood that the method embodiment of the present application can also be implemented by a processor executing a computer program code. The following describes the embodiment of the present application in conjunction with the drawings in the embodiment of the present application. Figure 1 , Figure 1 A flowchart of a deviation determination method provided in an embodiment of the present application.
[0163] 101. Obtain target materials and historical materials.
[0164] In the embodiment of the present application, the target material and the historical material are both materials that have interacted with the target object, and the target material and the historical material are different materials. The target object can be any object, for example, the target object is a user of an Internet platform. The material can be any material, and optionally, the material includes: notes, videos, images, audio, and commodities. For example, the material can be a note containing text. For another example, the material can be a note containing a picture. For another example, the material can also be a note containing a video, a picture, and text. Interaction refers to one or more behaviors such as browsing, liking, and commenting between an object and a material. Optionally, the number of historical materials is one or more.
[0165] It should be understood that in the embodiment of the present application, the step of the deviation determination device acquiring the target material and the step of acquiring the historical material can be executed separately or simultaneously, and the present application does not limit this.
[0166] 102. Obtain a first deviation.
[0167] In the embodiment of the present application, the first deviation represents the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material. The material deviation factor is a factor that causes the target object to interact with a material that the target object is not interested in, and the material deviation factor is generated by the target material.
[0168] In a possible implementation, the material deviation factor includes a position deviation factor. When the target object interacts with the target material in the material consumption platform, the closer the position of the target material is in the recommendation list in the material consumption platform, the higher the degree of influence of the material deviation factor on the target object. For example, the materials in the recommendation list include material a1 and material a2. When the target object browses the recommendation list, the position of material a1 in the recommendation list is the first position among all recommended materials, and the position of material a2 in the recommendation list is the fifth position among all recommended materials. When the target object interacts with material a1, the degree of influence of the position deviation factor is greater than the degree of influence of the position deviation factor when the target object interacts with material a2. In the case where both material a1 and material a2 are materials of interest to the target object, since the position of material a1 is closer to the front than that of material a2, the target object is affected by the position deviation factor, resulting in the probability of the target object interacting with material a1 being greater than the probability of the target object interacting with material a2. When material a2 is the material of interest to the target object, but material a1 is not, since material a1 is positioned closer to the front than material a2, the target object is affected by the position deviation factor, which may cause the probability of the target object interacting with material a1 to be greater than the probability of the target object interacting with material a2.
[0169] In another possible implementation, the material deviation factor includes a popularity deviation factor. The higher the similarity between the target material and the currently popular material, the higher the degree of influence of the popularity deviation factor on the target object during the process of the target object interacting with the target material. For example, there are material a1, material a2, and material a3, and material a3 is the currently popular material. The similarity between material a1 and material a3 is greater than the similarity between material a2 and material a3. When the target object interacts with material a1, the degree of influence of the popularity deviation factor on the target object is greater than the degree of influence of the popularity deviation factor on the target object when interacting with material a2. In the case where both material a1 and material a2 are materials of interest to the target object, since the similarity between material a1 and material a3 is greater than the similarity between material a2 and material a3, the target object is affected by the popularity deviation factor, resulting in the probability of the target object interacting with material a1 being greater than the probability of the target object interacting with material a2. When material a2 is the material of interest to the target object, but material a1 is not, since the similarity between material a1 and material a3 is greater than the similarity between material a2 and material a3, the target object is affected by the popularity deviation factor, which may cause the probability of the target object interacting with material a1 to be greater than the probability of the target object interacting with material a2.
[0170] In another possible implementation, the material deviation factor includes an exposure deviation factor. When a material that the target object is not interested in is pushed to the target object many times, it may cause the target object to interact with the material that the target object is not interested in. Before the target object interacts with the target material, the more times the target material is pushed to the target object, the more the target object is affected by the exposure deviation factor when interacting with the target material.
[0171] In a method for obtaining a first deviation, one or more candidate interaction probabilities are obtained based on one or more candidate deviations, and the candidate interaction probability is the probability that the target object interacts with the target material when the degree of influence of the material deviation factor on the target object is the candidate deviation. Since the target object and the target material have already interacted, the larger the candidate interaction probability, the more accurate the candidate interaction probability, and thus the more accurate the candidate deviation. Thus, the deviation determination device may use the candidate deviation corresponding to the probability greater than the interaction threshold in one or more candidate interaction probabilities as the first deviation. Alternatively, the deviation determination device may use the candidate deviation corresponding to the maximum value in one or more candidate interaction probabilities as the first deviation.
[0172] 103. Determine a second deviation based on the target similarity between the target material and the historical material.
[0173] In the embodiment of the present application, the second deviation characterizes the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material. The object deviation factor is a factor that causes the target object to interact with a material that the target object is not interested in, and the object deviation factor is a deviation factor generated by the target object, such as a deviation factor generated by the psychological factors of the target object, or a deviation factor generated by the herd factor of the target object. In a possible implementation, the object deviation factor includes a herd deviation factor. The herd deviation factor characterizes that the target object interacts with the target material under the influence of other objects, and the probability of the target object interacting with the target material is low without the influence of other objects. For example, there is material a1, and the target object is not interested in material a1. When other objects share material a1 with the target object, it may cause the target object to interact with material a1. The more times other objects share a1 with the target object, the higher the degree of influence of the herd deviation factor when the target object interacts with material a1.
[0174] The higher the target similarity between the target material and the historical material, the more interested the target object is in the material of the same type as the target material, which means that the target object is less affected by the object deviation factor, that is, the smaller the second deviation is. Conversely, the lower the target similarity between the target material and the historical material, the less interested the target object is in the material of the same type as the target material, which means that the target object is greatly affected by the object deviation factor, that is, the larger the second deviation is. Therefore, the second deviation is negatively correlated with the target similarity between the target material and the historical material. Optionally, the more materials there are in the historical material, the more accurate the judgment result of whether the target object is interested in the target material based on the target similarity between the target material and the historical material.
[0175] In one possible implementation, the formula for calculating target similarity is as follows:
[0176] Q i =(E i +P i )W Q …Formula (1)
[0177] K i =(E i +P i )W K …Formula (2)
[0178]
[0179] Among them, Q (query) is the set of queries in the process of calculating similarity, Q iis the query of target item i in Q, where target item i is the item that has interacted with the target object. K(key) is the set of keys used in similarity calculation. i is the key of target material i in K. b i is the target similarity of the target material i and the materials other than the target material among the materials that have interacted with the object. E is the set of features of the materials that have interacted with the object, E i is the feature of target material i. P is the set of features of the interaction between the target object and the materials that have interacted with it. The interaction includes likes, comments, etc. i is the characteristic of the interaction behavior between the target object and the target material i. Q , W K From the set of real numbers The projection matrix learned in . The dimension is L×L.
[0180] Softmax(G / H) is the normalized exponent used to calculate G / H.
[0181] 104. The first deviation and the second deviation are combined to obtain the target deviation.
[0182] In the embodiment of the present application, the target deviation represents the degree to which the target object is affected by the target deviation factor during the interaction between the target object and the target material. The target deviation factor includes a material deviation factor and an object deviation factor.
[0183] Because the first deviation represents the degree to which the target object is affected by the material deviation factor, and the second deviation represents the degree to which the target object is affected by the object deviation factor, the deviation determination device fuses the first deviation and the second deviation, and can fuse the degree to which the target object is affected by the material deviation with the degree to which the target object is affected by the object deviation factor to obtain a target deviation, wherein the target deviation is positively correlated with the first deviation and positively correlated with the second deviation factor.
[0184] In one possible implementation, the formula for calculating the target deviation is as follows:
[0185]
[0186] Among them, Z new Characterizes the target deviation after the first deviation and the second deviation are fused. z′ u,i Characterize the first deviation, Characterize the second deviation.
[0187] In an embodiment of the present application, the deviation determination device obtains the target material, the historical material, and the first deviation, wherein the first deviation characterizes the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material. Based on the target similarity between the target material and the historical material, the second deviation is determined, wherein the second deviation characterizes the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material. The first deviation and the second deviation are then fused to determine the target deviation, wherein the target deviation characterizes the degree to which the target object is affected by the material deviation factor and the object deviation factor during the interaction between the target object and the target material. The deviation determination device obtains the target deviation through the above steps, and because both the material deviation factor and the object deviation factor are considered at the same time, the accuracy of the target deviation is improved.
[0188] As an optional implementation manner, the deviation determination device performs the following steps during the process of executing step 104:
[0189] 2001. The first deviation and the second deviation are combined to obtain a reference deviation.
[0190] In the embodiment of the present application, the reference deviation represents the degree to which the target object is affected by the target deviation factor. The reference deviation is positively correlated with the first deviation and positively correlated with the second deviation.
[0191] 2002. Based on the reference deviation, determine the reference interest representation of the target object.
[0192] In the embodiment of the present application, the reference interest representation includes interest information of the target object when the degree to which the target object is affected by the target deviation factor is a reference deviation.
[0193] In a method for generating a reference interest representation, a neural network model is used to learn the preferences of a target object from a large amount of behavior data, wherein the behavior data is generated by the target object, and the preferences of the target object include the interest information of the target object. The reference interest representation can be obtained by fusing the preferences of the target object with the features of the reference deviation.
[0194] In another method of generating reference interest representation, a topic model is used to extract the topics of materials that have interacted with the target object, and the preference of the target object is determined based on the topics of the materials that have interacted with the target object. The preference of the target object and the characteristics of the reference deviation are fused to obtain the reference interest representation.
[0195] In a possible implementation, the formula for calculating the reference interest representation is as follows:
[0196] r b =S b ⊙E I ⊙Znew …Formula (5)
[0197] Among them, r b is the reference interest representation. b The interactive data feature is obtained by extracting the characteristics of the interactive behavior generated during the interaction between the target object and the historical material. I is the historical material feature, which is obtained by extracting the features of historical materials. new is the feature extracted based on the reference deviation. b 、E I , Z new is a matrix with the same number of rows and columns. B⊙C⊙D is the product of the elements in the same position in the three matrices B, C, and D with the same number of rows and columns.
[0198] 2003. Predicting a reference probability of interaction between the target object and the target material based on the reference interest representation and the characteristics of the target material.
[0199] In the embodiment of the present application, the reference probability is the probability of interaction between the target object and the target material when the degree of influence of the target deviation factor is the reference deviation.
[0200] In a possible implementation, association information between the reference interest representation and the target material is extracted. The extracted association information is used to predict the reference probability of the target object interacting with the target material when the target object is affected by the target deviation factor to the same degree as the reference deviation.
[0201] In another possible implementation, the similarity between the reference interest representation and the target material is used to predict the probability of interaction between the target object and the target material. By judging the similarity between the reference interest representation and the target material, it can be determined whether the target material matches the reference interest representation. When the similarity is higher, the target material matches the reference interest representation more, and the target object has a greater probability of interaction with the target material under the influence of the target deviation factor.
[0202] 2004. When the first difference between the reference probability and the preset label is smaller than a preset threshold, the reference deviation is determined as the target deviation.
[0203] In an embodiment of the present application, a preset label indicates that the target object has interacted with the target material. The first difference between the reference probability and the preset label is less than a preset threshold value, indicating that the accuracy of the reference probability determined based on the reference interest representation is high. The reference probability is determined by referring to the interest information of the target object carried in the interest representation, so the accuracy of the reference probability is high, indicating that the accuracy of the interest information of the target object carried in the reference interest representation is high. The reference interest representation is obtained through a reference deviation, so the accuracy of the interest information of the target object carried in the reference interest representation is high. Because the reference deviation representation is determined based on the reference deviation, the accuracy of the interest information in the reference deviation representation is high, indicating that the accuracy of the reference deviation is high. At this time, determining the reference deviation as the target deviation can improve the accuracy of the target deviation.
[0204] In a possible implementation manner, the angle between the reference probability and the preset label is determined, and the first difference is determined according to the cosine of the angle between the reference probability and the preset label.
[0205] In another possible implementation, the first difference is determined by determining a difference between the reference probability and the preset label of data of the same dimension, and according to the maximum absolute value of the difference between the two.
[0206] In yet another possible implementation, the first difference is determined by determining the distance between the reference probability and the two straight line segments of the preset label and according to the shortest distance between the two.
[0207] In an embodiment of the present application, the deviation determination device obtains a reference deviation by fusing the first deviation and the second deviation, and determines a reference interest representation of the target object based on the reference deviation, and predicts a reference probability of the target object interacting with the target material based on the reference interest representation and the characteristics of the target material. When the first difference between the reference probability and the preset label is less than a preset threshold, the reference deviation is determined as the target deviation.
[0208] The smaller the first difference is, the higher the accuracy of the reference probability of the interaction between the target object and the target material is. The reference probability is determined by the interest information of the target object carried in the reference interest representation. Therefore, the higher the accuracy of the reference probability, the higher the accuracy of the interest information of the target object carried in the reference interest representation. The reference interest representation is determined by the reference deviation. Therefore, the higher the accuracy of the interest information of the target object carried in the reference interest representation, the higher the accuracy of the reference deviation. Using a reference deviation with high accuracy as the target deviation can improve the accuracy of the target deviation.
[0209] As an optional implementation manner, the deviation determination device performs the following steps during the process of executing step 102:
[0210] 3001. Obtain M preset deviations.
[0211] In the embodiment of the present application, the preset deviation is the influence degree of the preset material deviation factor, and the M preset deviations are different from each other. Optionally, the preset deviation is a weight value, that is, the M preset deviations are M weight values of different numerical values.
[0212] 3002. Based on the M preset deviations, determine M deviation interest representations of the target object.
[0213] In an embodiment of the present application, the deviation interest representation corresponds to the preset deviation one-to-one, and the deviation interest representation includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation. For example, the M preset deviations include: preset deviation c1 and preset deviation c2. The deviation interest representation d1 is obtained based on the preset deviation c1, and the deviation interest representation d2 is obtained based on the preset deviation c2. At this time, the M deviation interest representations include the deviation interest representation d1 and the deviation interest representation d2. The deviation interest representation d1 includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation c1. The deviation interest representation d2 includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation c2.
[0214] In a method for generating a deviation interest representation, a neural network model is used to learn the preferences of a target object from a large amount of behavior data, wherein the behavior data is generated by the target object, and the preferences of the target object include the interest information of the target object. The preferences of the target object are respectively fused with the features of M preset deviations to obtain M deviation interest representations.
[0215] In another method for generating deviation interest representations, a topic model is used to extract the topics of materials that have interacted with the target object, and the target object's preference is determined based on the topics of the materials that have interacted with the target object. The target object's preference is fused with the features of M preset deviations to obtain M deviation interest representations.
[0216] 3003. Based on the M deviation interest representations and the characteristics of the target material, predict M deviation probabilities of the target object interacting with the target material.
[0217] In the embodiment of the present application, the deviation probability corresponds to the deviation interest representation one-to-one, and the deviation interest representation corresponds to the preset deviation one-to-one, so there is also a one-to-one correspondence between the deviation probability and the preset deviation. The deviation probability represents the probability of the target object interacting with the target material when the target deviation factor affects the target object to a preset deviation. For example, the M preset deviations include: preset deviation c1 and preset deviation c2. Based on the preset deviation, the deviation interest representation d1 is obtained, and then the deviation probability e1 is obtained according to the deviation interest representation d1. Based on the preset deviation, the deviation interest representation d2 is obtained, and then the deviation probability e2 is obtained according to the deviation interest representation d2. At this time, the M deviation probabilities include the deviation probability e1 and the deviation probability e2. The deviation probability e1 represents the probability of the target object interacting with the target material when the material deviation factor affects the target object to a preset deviation c1. The deviation probability e2 represents the probability of the target object interacting with the target material when the material deviation factor affects the target object to a preset deviation c2.
[0218] In a possible implementation, association information between the target material and any one of the M deviation interest representations is extracted, and prediction is performed using the extracted association information to obtain M deviation probabilities.
[0219] In another possible implementation, the degree of matching between the target material and the interest information of the target object carried in the M deviation interest representations is determined based on the similarity between the target material and the M deviation interest representations. The higher the similarity, the higher the degree of matching between the target material and the interest information of the target object carried in the predicted interest representation. Then, based on the degree of matching between the target material and the interest information of the target object carried in the M deviation interest representations, the M deviation probabilities are determined.
[0220] 3004. Calculate the differences between the M deviation probabilities and the preset labels respectively to obtain M second differences.
[0221] In the embodiment of the present application, the preset label indicates that the target object has interacted with the target material.
[0222] In a possible implementation, the cosine of the angle between any probability among the M deviation probabilities and the preset label is determined, and the difference is determined according to the cosine between the two, so as to finally obtain M second differences.
[0223] In another possible implementation, by determining the difference between any probability in the M deviation probabilities and the data of the same dimension of the preset label, and determining the difference according to the maximum absolute value of the difference between the two, M second differences are finally obtained.
[0224] In yet another possible implementation, the distance between any probability in the M deviation probabilities and two straight line segments of the preset label is determined respectively, and the difference is determined according to the shortest distance between the two, so as to finally obtain M second differences.
[0225] 3005. Use the preset deviation corresponding to the smallest difference among the M second differences as the first deviation.
[0226] In the embodiment of the present application, the second difference corresponds to the deviation probability one-to-one. The deviation probability corresponds to the deviation interest representation one-to-one. The deviation interest representation corresponds to the preset deviation one-to-one, so there is also a one-to-one correspondence between the second difference and the preset deviation.
[0227] In the embodiment of the present application, by determining the smallest difference among the M second differences, the preset deviation corresponding to the smallest second difference is used as the first deviation. The second difference represents the difference between the deviation probability and the preset label, and the M second differences represent the difference between the M deviation probabilities and the preset labels respectively. The smallest second difference among the M second differences indicates that the difference between the deviation probability corresponding to the smallest second difference and the preset deviation is small, that is, the accuracy of the deviation probability corresponding to the smallest second difference is high. The deviation probability is determined by the interest information of the target object carried in the deviation interest representation, so the accuracy of the deviation probability corresponding to the smallest second difference is high, indicating that the accuracy of the interest information of the target object carried in the deviation interest representation corresponding to the smallest second difference is high. The deviation interest representation is determined based on the preset deviation, so the accuracy of the interest information of the target object carried in the deviation interest representation corresponding to the smallest second difference is high, indicating that the accuracy of the preset deviation corresponding to the smallest second difference is high. Taking the preset deviation with high accuracy as the first deviation can improve the accuracy of the first deviation. For example, there are preset deviation x1, preset deviation x2, deviation probability y1, deviation probability y2, second difference n1, and second difference n2. The deviation probability y1 represents the probability of the target object interacting with the target material when the degree of influence of the target deviation factor is the corresponding preset deviation x1. The deviation probability y2 represents the probability of the target object interacting with the target material when the degree of influence of the target deviation factor is the corresponding preset deviation x2. The second difference n1 is the difference between the deviation probability y1 and the preset label. The second difference n2 is the difference between the deviation probability y2 and the preset label. There is a corresponding relationship between the second difference n1 and the preset deviation x1, and there is a corresponding relationship between the second difference n2 and the preset deviation x2. When the second difference n1 is greater than the second difference n2, the preset deviation x1 corresponding to the second difference n1 is used as the first deviation.
[0228] In a possible implementation, the formula for calculating the first deviation is as follows:
[0229]
[0230] Among them, q u,i The second difference. The preset deviation that characterizes the minimum value of data A is z′ u,i When the preset deviation is z′ u,i When the target object is affected by the material deviation factor, the degree of influence is z′ u,i In the case of u,i is the smallest difference among the M second differences, so the first deviation is determined as z′ u,i .
[0231] In the embodiment of the present application, the deviation determination device determines M deviation interest representations of the target object based on M preset deviations, and then predicts M deviation probabilities of the target object and the target material interacting according to the M deviation interest representations and the characteristics of the target material, calculates the difference between the M deviation probabilities and the preset labels, obtains M second differences, and takes the preset deviation corresponding to the smallest difference among the M second differences as the first deviation. Since the difference between the deviation probability corresponding to the smallest difference among the M second differences and the preset label is the smallest, it means that the deviation probability corresponding to the smallest difference among the M second differences is the most accurate, and the deviation probability is determined by the interest information of the target object carried in the corresponding deviation interest representation, so the more accurate the deviation probability is, the more accurate the interest information of the target object carried in the deviation interest representation corresponding to the probability is. The deviation interest representation is determined by the preset deviation, so the more accurate the interest information of the target object carried in the deviation interest representation is, the more accurate the preset deviation is. Therefore, the preset deviation corresponding to the smallest difference among the M second differences is the most accurate, and the preset deviation corresponding to the smallest difference is used as the first deviation, which can improve the accuracy of the first deviation.
[0232] As an optional implementation, the M preset deviations include a first reference deviation. The deviation determination device performs the following steps during the execution of step 3002:
[0233] 4001. Obtain target interaction data.
[0234] In the embodiment of the present application, the target interaction data is the data generated during the process of interaction between the target object and the historical material.
[0235] In a possible implementation, the target interaction data includes like data. For example, the target object interacted with material a1. During the interaction between the target object and material a1, the target object clicked the like button of material a1. Therefore, the target interaction data includes the like data between the target object and material a1.
[0236] In another possible implementation, the target interaction data includes comment data. For example, the target object interacts with material a2. During the interaction between the target object and material a2, the target object comments in the comment area of material a2. Therefore, the target interaction data includes comment data between the target object and material a2.
[0237] In another possible implementation, the target interaction data includes like data and comment data. For example, the target object interacted with material a1 and material a2. During the interaction between the target object and material a1, the target object clicked the like button of material a1. During the interaction between the target object and material a2, the target object commented in the comment area of material a2. Therefore, the target interaction data includes the like data between the target object and material a1 and the comment data between the target object and material a2.
[0238] Optionally, the target interaction data is data arranged in the chronological order of the target object viewing historical materials. For example, when the target interaction data includes like data and comment data, the target object has interacted with materials a1 and a2. During the interaction between the target object and material a1, the target object clicked the like button of material a1. During the interaction between the target object and material a2, the target object commented in the comment area of material a2. Since the target object first commented in the comment area of material a2 and then clicked the like button of material a1, the target interaction data includes the comment data between the target object and material a2 and the like data between the target object and material a1. The target interaction data arranged in the chronological order of the target object viewing historical materials can generate a first interest representation using the chronological order of the interaction, thereby making the generated first interest representation more accurate.
[0239] 4002. Determine a first interest representation based on the first reference deviation, the target interaction data, and the historical material.
[0240] In the embodiment of the present application, the first interest representation includes interest information of the target object when the degree of influence of the material deviation factor on the target object is the first reference deviation.
[0241] In a possible implementation, feature extraction is used to extract features from the first reference deviation, target interaction data, and historical materials, and the first interest representation is determined based on the extracted features.
[0242] In another possible implementation, feature interaction is used to extract correlation information between different data from the first reference deviation, target interaction data, and historical materials, and the first interest representation is determined using the extracted correlation information.
[0243] 4003. Obtain the M deviation interest representations based on the first interest representation and one or more second interest representations.
[0244] In the embodiment of the present application, the first interest representation includes interest information of the target object when the degree of influence of the material deviation factor on the target object is the first reference deviation.
[0245] In the embodiment of the present application, the second interest representation corresponds to the second reference deviation one by one, and the second reference deviation is the deviation of the M preset deviations except the first reference deviation. M is a positive real number greater than 1, so the second reference deviation is one or more deviations.
[0246] In an embodiment of the present application, the second interest representation includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the second reference deviation. And the sum of the number of one or more second interest representations and the first interest representation is M.
[0247] For example, there are a second reference deviation c4, a second reference deviation c5, and a second interest representation d4 and a second interest representation d5. The second interest representation d4 corresponds to the second reference deviation c4, and the second interest representation d5 corresponds to the second reference deviation c5. The second interest representation d4 includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation c4. The deviation interest representation d5 includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation c5.
[0248] In the embodiment of the present application, the deviation determination device obtains the target interaction data, and determines the first interest representation according to the first reference deviation, the target interaction data, and the historical data, and then determines the second interest representation according to the second reference deviation, and obtains M deviation interest representations according to the first interest representation and the second interest representation. By adding different data, namely the target interaction data and the historical data, in the process of determining the first interest representation, it can obtain richer and more comprehensive feature information, thereby improving the accuracy of generating the first interest representation.
[0249] As an optional implementation, the deviation determination device performs the following steps during the execution of step 4002:
[0250] 5001. Fuse the first reference deviation, the target interaction data, and the historical material to obtain a fusion feature.
[0251] In an embodiment of the present application, the first reference deviation, target interaction data, and historical materials are fused so that the fused data contains different data and correlation information between different data, thereby obtaining more comprehensive features.
[0252] 5002. Determine the first interest representation based on the fusion features.
[0253] In the embodiment of the present application, the first interest representation is determined using information in the fused feature. Since the fused feature contains different data and the association information between different data, determining the first interest representation based on the fused feature can enrich the information of the first interest representation, thereby obtaining a more accurate first interest representation.
[0254] In one possible implementation, the deep learning model determines the interest relationship between the target object and the material based on the fusion features to obtain a first interest representation.
[0255] In another possible implementation, the fused features include features generated by the interaction between the target object and historical materials and sorted by interaction time, and a time series model is used to predict the interest information of the target object to obtain a first interest representation of the target object, wherein the time series model is a model capable of processing time series data.
[0256] In a possible implementation, after obtaining the first interest representation, step 3003 is performed to obtain the following formula for the deviation probability:
[0257]
[0258] Among them, r z′ is the first interest representation, which includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the first reference deviation. r (r z′ ) indicates determining the similarity between the first interest representation and the target material i, so as to determine the interaction probability between the target object u and the target material i under the influence of the material deviation factor. The deviation probability of the interaction between the target object u and the target material i when the target object is affected by the target deviation factor to the extent of the first reference deviation.
[0259] In a possible implementation, when the degree of influence of the material deviation factor on the target object is obtained to be the first reference deviation, after the interaction probability between the target object and the target material i, the second difference can be obtained by the following formula:
[0260]
[0261] in, The probability that the target object u interacts with the target material i when the target object is affected by the target deviation factor to the first reference deviation. u,iis the preset label between the target object u and the target material i, and the preset label indicates that the target object u and the target material i have interacted. euclid (E, F) is the Euclidean distance between E and F. u,i It is the second difference between the interaction probability between the target object and the target material i and the preset label when the degree of influence of the material deviation factor on the target object is the first reference deviation.
[0262] In this embodiment, the deviation determination device obtains a fusion feature by fusing the first reference deviation, the target interaction data and the historical material, and then determines the first interest representation based on the fusion feature, so as to enrich the information of the first interest representation and obtain a more accurate first interest representation.
[0263] As an optional implementation manner, the deviation determination device performs the following steps during the execution of step 5001:
[0264] 6001. Extract the characteristics of the first reference deviation to obtain reference deviation characteristics.
[0265] 6002. Extract features of the target interaction data to obtain interaction data features.
[0266] 6003. Extract the characteristics of the above historical materials to obtain historical material characteristics.
[0267] In the embodiment of the present application, the reference deviation feature, the interaction data feature and the historical material feature are all matrices with the same number of rows and columns.
[0268] 6004. A matrix obtained by multiplying the elements at the same position in the three matrices of the reference deviation feature, the interactive data feature, and the historical material feature is used as the fusion feature.
[0269] In the embodiment of the present application, the elements with the same number of rows and columns in the three matrices of reference deviation features, interactive data features, and historical material features are multiplied to obtain the matrix of fused features. For example, the matrix of reference deviation features is [m1, m2], the matrix of interactive data features is [m3, m4], and the matrix of historical material features is [m5, m6]. Then the matrix of fused features is [m1×m3×m5, m2×m4×m6].
[0270] In the embodiment of the present application, the fusion features, reference deviation features, interactive data features and historical material features are all matrices with the same number of rows and columns.
[0271] In one possible implementation, the formula for calculating the fusion feature is as follows:
[0272] r z′ =S b ⊙EI ⊙Z ′ …Formula (9)
[0273] Among them, r z′ is the fusion feature. b is the interactive data feature. b is the historical material feature. Z′ is the reference deviation feature obtained by extracting the feature based on the first reference deviation. S b 、E I , Z′ is a matrix with the same number of rows and columns. B⊙C⊙D is to calculate the product of the elements in the same position in the three matrices B, C, and D with the same number of rows and columns.
[0274] In the embodiment of the present application, the deviation determination device extracts the first reference deviation, the target interaction data, and the characteristics of the historical material to obtain the reference deviation characteristics, interaction data characteristics, and historical material characteristics with the same number of rows and columns, and multiplies the elements with the same number of rows and columns in the above three feature matrices to obtain a fusion matrix with the same number of rows and columns. Through the above steps, the deviation determination device can efficiently process different types of data, so that it can efficiently complete the work in various application scenarios, and can maintain the integrity of the data without changing the dimension of the matrix in the process of fusing data.
[0275] See also Figure 2 , Figure 2 A flow chart of a dual-tower model training method provided in an embodiment of the present application. The executing subject of the dual-tower model training method is a dual-tower model training device, wherein the dual-tower model training device can be any electronic device that can execute the technical solution disclosed in the embodiment of the method of the present application. Optionally, the dual-tower model training device can be one of the following: a computer, a server.
[0276] 201. Obtain target deviation, target features of target objects, target materials, dual-tower models to be trained, and target labels.
[0277] In the embodiment of the present application, the target material is a material that has interacted with the target object. The target deviation is obtained by the deviation determination method described above. The target feature of the target object includes one or more of the following: attribute information of the target object, identity information of the target object. For example, the attribute information of the target object includes the interests of the target object, the region to which the target object belongs, and the age of the target object.
[0278] In one possible implementation, the target object is the target user who views the materials on the material consumption platform, the target characteristics of the target user include the target user's identity information, interest tags, etc., and the target materials are the materials that the target user has interacted with on the material consumption platform. When it is necessary to collect the target characteristics of the target user and the materials that the target user has interacted with, the personal information processing rules are notified by obvious identification / information, and personal authorization is obtained through pop-up information or by the individual uploading his or her personal information. Among them, personal information processing may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
[0279] In the embodiment of the present application, the target tag represents the degree of interest of the target object in the target material.
[0280] 202. Process the target features and the target material using the to-be-trained dual-tower model to obtain the target material representation of the target material output by the material branch of the to-be-trained dual-tower model and the target object representation of the target object output by the object branch of the to-be-trained dual-tower model.
[0281] In the embodiment of the present application, the dual-tower model to be trained includes a material branch and an object branch. The material branch is used to output the representation of the material. The object branch is used to output the representation of the target feature of the target object.
[0282] In one possible implementation, the target object is the target user who views the material on the material consumption platform, and the target features of the target user are the target user's identity information, interest tags, etc. The object branch is used to output the target user's identity information and interest tag representation. When it is necessary to collect the target features of the target user, use obvious identification / information to inform the personal information processing rules, and obtain personal authorization through pop-up information or by the individual uploading their personal information. Among them, personal information processing may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
[0283] 203. Determine the degree of interest of the target object in the target material based on the training similarity between the target object representation and the target material representation, and obtain a predicted degree of interest.
[0284] In the embodiment of the present application, the predicted interest level is the degree of interest of the target object in the target material predicted based on the training similarity between the target object representation and the target material representation. The predicted interest level is positively correlated with the training similarity. The higher the training similarity between the target object representation and the target material representation, the more interested the target object is in the target material, that is, the higher the predicted interest level.
[0285] 204. Determine a reference loss according to the target difference between the predicted interest level and the target label.
[0286] In the embodiment of the present application, the dual tower model training device determines the reference loss by predicting the target difference between the interest level and the target label. The reference loss is positively correlated with the target difference.
[0287] 205. Adjust the reference loss according to the target deviation to determine the target loss.
[0288] In an embodiment of the present application, the dual-tower model training device adjusts the reference loss through the target deviation to determine the target loss, and the target loss is negatively correlated with the target deviation, that is, the larger the target deviation, the smaller the target loss.
[0289] In the embodiment of the present application, the target deviation is the degree to which the target object is affected by the target deviation factor during the interaction between the target object and the target material, and the target deviation factor includes the material deviation factor and the object deviation factor. When the target deviation is larger, that is, during the interaction between the target object and the target material, the target object is more affected by the target deviation factor, the confidence of the sample of the interaction between the target object and the target material is lower, and therefore the target loss is lower. When the target deviation is smaller, that is, during the interaction between the target object and the target material, the target object is less affected by the target deviation factor, the confidence of the sample of the interaction between the target object and the target material is higher, and therefore the target loss is greater.
[0290] 206. Update the parameters of the material branch and the object branch in the to-be-trained dual-tower model according to the target loss to obtain a target dual-tower model.
[0291] In the embodiment of the present application, the parameters of the material branch and the object branch in the dual-tower model to be trained are updated according to the target loss to obtain the target dual-tower model. Specifically, the dual-tower model training device updates the parameters in the material branch and the object branch to make the target loss smaller until the target loss converges to obtain the target dual-tower model.
[0292] In a possible implementation, the dual-tower model training device determines the gradients of the material branch and the object branch based on the target loss. Based on the gradients of the material branch and the object branch, reverse gradient propagation is performed on the material branch and the object branch, and the parameters of the material branch and the object branch are updated until the losses of the material branch and the object branch converge to obtain the target dual-tower model.
[0293] In an embodiment of the present application, a twin-tower model training device obtains a target deviation, a target feature of a target object, a target material, a twin-tower model to be trained, and a target label. The target material representation of the target material is output using the material branch in the twin-tower model to be trained, and the target object representation of the target object is output using the object branch in the twin-tower model to be trained. Then, based on the training similarity between the target material representation and the target object representation, the degree of interest of the target object in the target material is determined, that is, the predicted degree of interest. Based on the target difference between the predicted interest representation and the target label, a reference loss is determined. The reference loss is positively correlated with the target difference. The reference loss is adjusted based on the target deviation to determine the target loss. Then, based on the target loss, the parameters of the material branch and the object branch are adjusted to obtain the target twin-tower model.
[0294] Since the target deviation is the degree of influence of the target deviation factor in the process of interaction between the target object and the target material, the larger the target deviation is, the greater the degree of influence of the target deviation factor is in the process of interaction between the target object and the target material. The greater the degree of influence of the target object by the target deviation factor is, the lower the confidence of the interaction sample between the target object and the target material will be, so the target loss is negatively correlated with the target deviation. This can reduce the influence of the target deviation factor on the accuracy of the target loss, thereby improving the training effect of the dual-tower model to be trained, and making the representation of the material branch and object branch prediction of the target dual-tower model more accurate.
[0295] See also Figure 3 , Figure 3 A flowchart of a recommendation method provided in an embodiment of the present application. The execution subject of the recommendation method is a recommendation device, wherein the recommendation device can be any electronic device that can execute the technical solution disclosed in the embodiment of the method of the present application. Optionally, the recommendation device can be one of the following: a computer, a server.
[0296] 301. Obtain the target twin tower model.
[0297] In the embodiment of the present application, the target twin-tower model is obtained by training through a twin-tower model training method. The target twin-tower model includes a material branch and an object branch.
[0298] 302. Obtain reference features and material library of the reference object.
[0299] In the embodiment of the present application, the material library includes reference materials and reference material representations of the reference materials, and the reference material representations are obtained by extracting the characteristics of the reference materials through material branches.
[0300] In the embodiment of the present application, the reference feature of the reference object is the basic information of the reference object, and the reference feature is the unique identifier of the reference object.
[0301] In a possible implementation, the reference object is a reference user who views materials on the material consumption platform, and the reference characteristics of the reference user are the reference user's identity identification information, interest tags, etc. When it is necessary to collect the target characteristics of the target user, use obvious signs / information to inform the personal information processing rules, and obtain personal authorization through pop-up information or by individuals uploading their personal information. Among them, personal information processing may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
[0302] 303. Process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch.
[0303] 304. Determine the degree of interest of the reference object in the reference material according to the first similarity between the reference object representation and the reference material representation, and obtain a first degree of interest.
[0304] In the embodiment of the present application, the first interest level is the degree to which the reference object is interested in the reference material, and the first interest level is positively correlated with the first similarity.
[0305] In a possible implementation, when the first interest level is greater than a first threshold, a reference material corresponding to the reference material representation in the material library is recommended to the reference object as a recommended material.
[0306] In another possible implementation, when the reference material is one or more materials, the reference materials are arranged from large to small according to the degree of interest of the reference object, and the materials for which the degree of interest of the reference object is greater than a second threshold are recommended materials to the reference object.
[0307] In yet another possible implementation, when the reference object is one or more materials, the three materials that are of greatest interest to the reference object are recommended to the reference object as recommended materials.
[0308] In an embodiment of the present application, the recommendation device obtains a target twin-tower model, a reference feature of a reference object, and a material library. The material library includes reference materials and reference material representations of the reference materials, and the reference material representations are output through the material branch in the target twin-tower model. The object branch in the target twin-tower model outputs the reference object representation of the reference feature. Based on the reference object representation and the first similarity with the reference material representation, the degree of interest of the reference object in the reference material is determined to obtain a first degree of interest. The recommendation device uses the high accuracy of the reference material representation and the reference object representation output by the target model, so the accuracy of the first degree of interest predicted based on the first similarity between the reference material representation and the reference object representation is high.
[0309] Optionally, the recommendation device uses the object branch to output the reference object representation of the object, and matches it with the reference material representation in the material library. When the matching degree is high, that is, the first interest level is high, it is determined that the reference object is interested in the reference material, thereby determining the recommendation strategy of the recommendation device. Through the above steps, the material of interest is pushed to the reference object, thereby improving the interactive experience of the reference object.
[0310] See also Figure 4 , Figure 4 A flowchart of another recommendation method provided in an embodiment of the present application. The execution subject of the recommendation method is a recommendation device, wherein the recommendation device can be any electronic device that can execute the technical solution disclosed in the method embodiment of the present application. Optionally, the recommendation device can be one of the following: a computer, a server.
[0311] 401. Obtain the target twin tower model.
[0312] The implementation of step 401 is the same as that of step 301 and will not be described again here.
[0313] 402. Get the materials of interest and the material library.
[0314] In the embodiment of the present application, the material library includes reference materials and reference material representations of the reference materials, and the reference material representations are obtained by extracting the characteristics of the reference materials through the material branches.
[0315] In the embodiment of the present application, the material of interest is the material that the reference object is interested in.
[0316] 403. Process the material of interest using the material branch to obtain a material of interest representation of the material of interest.
[0317] 404. Determine a second similarity between the representation of the material of interest and the representation of the reference material, predict the degree of interest of the reference object in the reference material, and obtain a second degree of interest.
[0318] In the embodiment of the present application, the second interest level is the degree of interest of the reference object in the reference material, and the second interest level is positively correlated with the second similarity. The more similar the representation of the interest material is to the representation of the reference material, the more interested the reference object is in the reference material, and the higher the second interest level is.
[0319] In a possible implementation, when the second interest level is greater than a second threshold, a reference material corresponding to the reference material representation in the material library is recommended to the reference object as a recommended material.
[0320] In another possible implementation, when the reference material is one or more materials, the reference materials are arranged from large to small according to the degree of similarity with the material of interest, and the materials with a similarity greater than a second threshold are recommended materials to the reference object.
[0321] In another possible implementation, when the reference object is one or more materials, the top three most similar materials in terms of similarity to the material of interest are recommended to the reference object as recommended materials.
[0322] In an embodiment of the present application, the recommendation device obtains a target dual-tower model, a material of interest to a reference object, and a material library. The material library includes reference materials and reference material representations of the reference materials, and the reference material representations are output through the material branch in the target dual-tower model. The material branch in the target dual-tower model outputs the material representation of interest for the material of interest. Based on the second similarity between the material representation of interest and the reference material representation, the degree of interest of the reference object in the reference material is determined to obtain a second degree of interest. The recommendation device uses the high accuracy of the reference material representation and the material representation of interest output by the target model, so the accuracy of the second degree of interest predicted based on the second similarity between the reference material representation and the material representation of interest is high.
[0323] Optionally, the recommendation device outputs the material representation of the material of interest of the object by using the material branch, and matches it with the reference material representation in the material library. When the matching degree is high, that is, the second interest degree is high, it is judged that the reference object is interested in the reference material, so as to determine the recommendation strategy of the recommendation device. Through the above steps, the material of interest is pushed to the reference object, thereby improving the interactive experience of the reference object.
[0324] See also Figure 5 , Figure 5 A flowchart of another recommendation method provided in an embodiment of the present application. The execution subject of the recommendation method is a recommendation device, wherein the recommendation device can be any electronic device that can execute the technical solution disclosed in the embodiment of the method of the present application. Optionally, the recommendation device can be one of the following: a computer, a server.
[0325] 501. Obtain the target twin tower model.
[0326] The implementation method of step 501 is the same as that of step 301 and will not be repeated here.
[0327] 502. Obtain reference features of the reference object and representation of the control object.
[0328] In the embodiment of the present application, the characterization of the control object is obtained by extracting the characterization of the control object through object branching.
[0329] In the embodiment of the present application, the representation of the control object is the basic information of the control object, and the representation of the control object is the unique identifier of the control object.
[0330] In the embodiment of the present application, the reference feature of the reference object is the basic information of the reference object, and the reference feature is the unique identifier of the reference object.
[0331] In one possible implementation, the reference object is a reference user who views materials on the material consumption platform, and the reference characteristics of the reference user are the reference user's identity identification information, interest tags, etc. The control object is a control user who views materials on the material consumption platform, and the characterization of the control user is the control user's identity identification information, interest tags, etc. When it is necessary to collect the target characteristics of the target user and the characterization of the control object, use obvious identification / information to inform the personal information processing rules, and obtain personal authorization through pop-up information or by the individual uploading their personal information. Among them, personal information processing may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
[0332] 503. Process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch.
[0333] 504. Determine a third similarity between the reference object representation and the control object representation, predict the interest level of the reference object in the control material, and obtain a third interest level.
[0334] In the embodiment of the present application, the control material is a material of interest to the control subject.
[0335] In the embodiment of the present application, the third interest level is characterized by the interest level of the reference object in the control material, and the third interest level is positively correlated with the third similarity. The more similar the reference object representation is to the control object representation, the higher the interest level of the reference object in the material that the control object is interested in.
[0336] In a possible implementation, when the third interest level is greater than a third threshold, the control material is recommended to the reference object as a recommended material.
[0337] In another possible implementation, when the reference material is one or more materials, the reference materials are arranged from large to small according to the degree of interest of the reference object. When the third interest degree is greater than a third threshold, the top three materials of interest to the reference object are recommended as recommended materials to the reference object.
[0338] In an embodiment of the present application, the recommendation device obtains a target twin-tower model, a reference feature of a reference object, and a control object representation of a control object. The control object representation is output by an object branch in the target twin-tower model. The object branch in the target twin-tower model outputs a reference object representation of a reference feature. Based on the third similarity between the reference object representation and the control object representation, the degree of interest of the reference object in the control material is determined to obtain a third degree of interest. The recommendation device uses the high accuracy of the control object representation and the reference object representation output by the target model, so the accuracy of the third degree of interest predicted based on the third similarity between the control object representation and the reference object representation is high.
[0339] Optionally, the recommendation device utilizes the reference object representation of the object output by the object branch and matches it with the reference object representation. When the matching degree is high, that is, the third interest level is high, it is judged that the reference object is interested in the reference material, and the recommendation strategy of the recommendation device is determined, thereby pushing more interesting materials to the reference object, thereby improving the interactive experience of the reference object.
[0340] Figure 6A schematic diagram of a weight learning method based on interaction bias provided in an embodiment of the present application. Training objects and interaction materials are used as inputs, the training objects include training objects u1 and training objects u2, and the interaction materials include materials i1, i2, i3, i4, and i5, wherein materials i1, i2, and i3 are materials consumed by training object u1 on the material consumption platform, and materials i4 and i5 are materials consumed by training object u2 on the material consumption platform; then, through step E, i.e., formula (8) and step M, i.e., formula (6), the degree of influence Z1 of the material deviation factor on training object u1 during the interaction between training object u1 and material i1 is obtained, as well as the degree of influence Z1 of the material deviation factor on training object u1 during the interaction between training object u1 and material i2 is obtained. During the interaction process, the training object u1 is affected by the material deviation factor to a certain extent Z2, and during the interaction between the training object u1 and the material i3, the training object u1 is affected by the material deviation factor to a certain extent Z3, and during the interaction between the training object u2 and the material i4, the training object u2 is affected by the material deviation factor to a certain extent Z4, and during the interaction between the training object u2 and the material i5, the training object u2 is affected by the material deviation factor to a certain extent Z5; by taking the interaction material as the input of the embedding layer, the target interaction data Su1 of the training object u1 is obtained, and the target interaction data Su2 of the training object u2 is obtained. Among them, Su1 includes the target interaction data V1,1 between training object u1 and material i1, the target interaction data V1,2 between training object u1 and material i2, and the target interaction data V1,3 between training object u1 and material i3. Su2 includes the target interaction data V2,4 between training object u2 and material i4, and the target interaction data V2,5 between training object u1 and material i5. The self-attention network layer obtains the similarity b1 between material i1 and material i2 and material i3, the similarity b2 between material i2 and material i1 and material i3, and the similarity b3 between material i3 and material i2 and material i1 according to the target interaction data Su1, and obtains the similarity b4 between material i3 and material i2 and material i1 according to the target interaction data Su2. 4 and material i5's similarity b4, material i5 and material i4's similarity b5; based on similarity b1, the influence degree Z1 is updated to obtain the influence degree z1 of the target deviation factor on the training object u1; based on similarity b2, the influence degree Z2 is updated to obtain the influence degree z2 of the target deviation factor on the training object u1; based on similarity b3, the influence degree Z3 is updated to obtain the influence degree z3 of the target deviation factor on the training object u1; based on similarity b4, the influence degree Z4 is updated to obtain the influence degree z4 of the target deviation factor on the training object u2; based on similarity b5, the influence degree Z5 is updated to obtain the influence degree z5 of the target deviation factor on the training object u2. The embedding layer obtains the interest representation of the training object u1 according to the influence degrees z1, z2, and z3.When the interaction probability between the training object u1 and the material determined according to the interest representation of the training object u1 is significantly different from the first difference of the preset label, the first loss is determined according to the first difference, and step E, that is, the value of the preset deviation in formula (8), is adjusted according to the first loss until the first loss converges.
[0341] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0342] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.
[0343] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of a deviation determination device provided in an embodiment of the present application. The deviation determination device 1 includes: an acquisition unit 11, a calculation unit 12, and a fusion unit 13. Among them:
[0344] The acquisition unit 11 is used to acquire the target material and historical materials; the historical materials are materials that have interacted with the target object; the historical materials are different from the target material;
[0345] The acquisition unit 11 is further used to acquire a first deviation; the first deviation represents the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material;
[0346] The calculation unit 12 is used to determine a second deviation based on the target similarity between the target material and the historical material; the second deviation is negatively correlated with the target similarity; the second deviation represents the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material;
[0347] The fusion unit 13 is used to fuse the first deviation with the second deviation to obtain the target deviation; the target deviation is positively correlated with the first deviation; the target deviation is positively correlated with the second deviation.
[0348] In combination with any embodiment of the present application, the fusion unit 13 is specifically used for:
[0349] The first deviation and the second deviation are combined to obtain a reference deviation; the reference deviation is positively correlated with the first deviation; the reference deviation is positively correlated with the second deviation;
[0350] Based on the reference deviation, determining the reference interest representation of the target object; the reference interest representation includes the interest information of the target object when the degree of influence of the target deviation factor on the target object is the reference deviation, and the interest information is used to determine the material of interest to the target object;
[0351] Predicting a reference probability of interaction between the target object and the target material based on the reference interest representation and the characteristics of the target material;
[0352] When the first difference between the reference probability and the preset label is smaller than a preset threshold, the reference deviation is determined as the target deviation; the preset label indicates that the target object has interacted with the target material.
[0353] In combination with any embodiment of the present application, the fusion unit 13 is specifically used for:
[0354] The first difference is determined according to the reference probability and the target distance of the preset label; the first difference is positively correlated with the target distance.
[0355] In combination with any embodiment of the present application, the acquisition unit 11 is specifically used for:
[0356] Obtaining M preset deviations; the preset deviations are preset influence degrees of the material deviation factors; the M preset deviations are different from each other;
[0357] Based on the M preset deviations, M deviation interest representations of the target object are determined; the deviation interest representations correspond to the preset deviations one by one; any of the deviation interest representations includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the corresponding preset deviation, and the interest information is used to determine the material of interest to the target object;
[0358] According to the M deviation interest representations and the characteristics of the target material, M deviation probabilities of the target object interacting with the target material are predicted; the deviation probabilities correspond to the preset deviations one by one;
[0359] The differences between the M deviation probabilities and the preset labels are calculated respectively to obtain M second differences; the preset labels indicate that the target object has interacted with the target material; and the second differences correspond to the preset deviations one by one.
[0360] The preset deviation corresponding to the smallest difference among the M second differences is used as the first deviation.
[0361] In combination with any embodiment of the present application, the M preset deviations include a first reference deviation;
[0362] The acquisition unit 11 is specifically used for:
[0363] Obtain target interaction data; the target interaction data is data generated during the process of interaction between the target object and the historical material;
[0364] Determine a first interest representation according to the first reference deviation, the target interaction data, and the historical material; the first reference deviation is one of the M preset deviations; the first interest representation includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the first reference deviation;
[0365] The M deviation interest representations are obtained based on the above-mentioned first interest representation and one or more second interest representations; the above-mentioned second interest representations correspond one-to-one to the second reference deviation; any one of the above-mentioned second interest representations includes the above-mentioned interest information of the above-mentioned target object when the degree of influence of the above-mentioned material deviation factor on the above-mentioned target object is the corresponding above-mentioned second reference deviation; the above-mentioned second reference deviation is the deviation of the above-mentioned M preset deviations except the above-mentioned first reference deviation; the sum of the number of the above-mentioned first interest representation and the above-mentioned one or more second interest representations is M.
[0366] In combination with any embodiment of the present application, the acquisition unit 11 is specifically used for:
[0367] Fusing the first reference deviation, the target interaction data, and the historical material to obtain a fusion feature;
[0368] According to the fusion features, the first interest representation is determined.
[0369] In combination with any embodiment of the present application, the acquisition unit 11 is specifically used for:
[0370] Extracting the feature of the first reference deviation to obtain a reference deviation feature;
[0371] Extracting features of the target interaction data to obtain interaction data features;
[0372] Extract the characteristics of the historical materials to obtain historical material characteristics; the reference deviation characteristics, the interactive data characteristics, and the historical material characteristics are matrices with the same number of rows and columns;
[0373] The matrix obtained by multiplying the elements in the same position in the three matrices of the reference deviation feature, the interactive data feature, and the historical material feature is used as the fusion feature; the fusion feature, the reference deviation feature, the interactive data feature, and the historical material feature are matrices with the same number of rows and columns.
[0374] In combination with any embodiment of the present application, the acquisition unit 11 is specifically used for:
[0375] Calculate the distances between the M deviation probabilities and the preset labels to obtain M label distances;
[0376] The M second differences are determined according to the M label distances; the second differences correspond to the label distances one by one; and any of the second differences is positively correlated with the corresponding label distance.
[0377] In combination with any embodiment of the present application, the target interaction data is data arranged in chronological order according to the target object viewing the historical materials.
[0378] In combination with any embodiment of the present application, the M deviation probabilities of the target object interacting with the target material are predicted based on the M deviation interest representations and the characteristics of the target material, including:
[0379] The similarities between the M deviation interest representations and the target material are calculated respectively, and the M deviation probabilities of the target object interacting with the target material are predicted; the deviation probability is positively correlated with the similarities between the corresponding deviation interest representations and the target material.
[0380] In an embodiment of the present application, the deviation determination device obtains the target material, the historical material, and the first deviation, wherein the first deviation characterizes the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material. Based on the target similarity between the target material and the historical material, the second deviation is determined, wherein the second deviation characterizes the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material. The first deviation and the second deviation are then fused to determine the target deviation, wherein the target deviation characterizes the degree to which the target object is affected by the material deviation factor and the object deviation factor during the interaction between the target object and the target material. The deviation determination device obtains the target deviation through the above steps, and because both the material deviation factor and the object deviation factor are considered at the same time, the accuracy of the target deviation is improved.
[0381] See also Figure 8 , Figure 8 A structural schematic diagram of a twin-tower model training device provided in an embodiment of the present application, the twin-tower model training device 2 includes: an acquisition unit 21, a determination unit 22, a similarity calculation unit 23, a loss calculation unit 24, and an update unit 25.
[0382] in:
[0383] The acquisition unit 21 is used to acquire a target deviation, a target feature of a target object, a target material, a dual-tower model to be trained, and a target label; the target deviation is obtained by a deviation determination method; the target material is a material that has interacted with the target object; and the target label represents the degree of interest of the target object in the target material.
[0384] A determination unit 22 is used to process the target feature and the target material using the to-be-trained dual-tower model to obtain a target material representation of the target material output by the material branch of the to-be-trained dual-tower model and a target object representation of the target object output by the object branch of the to-be-trained dual-tower model;
[0385] A similarity calculation unit 23 is used to determine the degree of interest of the target object in the target material according to the training similarity between the target object representation and the target material representation, and obtain a predicted interest degree; the predicted interest degree is positively correlated with the training similarity;
[0386] A loss calculation unit 24 is used to determine a reference loss according to the predicted interest level and the target difference of the target label; the reference loss is positively correlated with the target difference;
[0387] The loss calculation unit 24 is further used to adjust the reference loss according to the target deviation to determine the target loss; the target loss is negatively correlated with the target deviation;
[0388] The updating unit 25 is used to update the parameters of the material branch and the object branch in the to-be-trained double-tower model according to the target loss to obtain a target double-tower model.
[0389] In an embodiment of the present application, a twin-tower model training device obtains a target deviation, a target feature of a target object, a target material, a twin-tower model to be trained, and a target label. The target material representation of the target material is output using the material branch in the twin-tower model to be trained, and the target object representation of the target object is output using the object branch in the twin-tower model to be trained. Then, based on the training similarity between the target material representation and the target object representation, the degree of interest of the target object in the target material is determined, that is, the predicted degree of interest. Based on the target difference between the predicted interest representation and the target label, a reference loss is determined. The reference loss is positively correlated with the target difference. The reference loss is adjusted based on the target deviation to determine the target loss. Then, based on the target loss, the parameters of the material branch and the object branch are adjusted to obtain the target twin-tower model.
[0390] In the embodiment of the present application, the target deviation is the degree of influence of the target deviation factor in the process of interaction between the target object and the target material. The larger the target deviation, the greater the degree of influence of the target deviation factor in the process of interaction between the target object and the target material. The greater the degree of influence of the target object by the target deviation factor, the lower the confidence of the interaction sample between the target object and the target material, so the target loss is negatively correlated with the target deviation. When the target deviation is larger, that is, the confidence of the interaction sample between the target object and the target material is low, the target loss will be smaller, thereby reducing the impact on the parameters in the material branch and the object branch. When the target deviation is smaller, that is, the confidence of the interaction sample between the target object and the target material is high, the target loss will be larger, thereby increasing the impact on the parameters in the material branch and the object branch, thereby improving the training effect of the target twin-tower model and making the characterization of the material branch and object branch prediction of the target twin-tower model more accurate.
[0391] See also Fig. 9 , Fig. 9 This is a schematic diagram of the structure of a recommendation device provided in an embodiment of the present application. The recommendation device 3 includes: an acquisition unit 31, a branch calculation unit 32, and a similarity calculation unit 33. Among them:
[0392] An acquisition unit 31 is used to acquire a target twin-tower model; the target twin-tower model is obtained by training with a twin-tower model training method; the target twin-tower model includes a material branch and an object branch;
[0393] The acquisition unit 31 is further used to acquire reference features and a material library of a reference object; the material library includes reference materials and reference material representations of the reference materials; the reference material representations are obtained by extracting features of the reference materials through the material branches;
[0394] A branch calculation unit 32, configured to process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch;
[0395] The similarity calculation unit 33 is used to determine the degree of interest of the reference object in the reference material according to the first similarity between the reference object representation and the reference material representation, and obtain a first interest degree; the first interest degree is positively correlated with the first similarity.
[0396] In combination with any embodiment of the present application, the recommendation device further includes a recommendation unit 34, which is used to:
[0397] In a case where the first interest level is greater than a first threshold, determining the reference material corresponding to the reference material representation in the material library;
[0398] Recommend the above reference materials to the above reference objects.
[0399] In an embodiment of the present application, the recommendation device obtains a target dual-tower model, a reference feature of a reference object, and a material library. Among them, the material library includes reference materials and reference material representations of the reference materials, and the reference material representations are output through the material branch in the target dual-tower model. The object branch in the target dual-tower model outputs the reference object representation of the reference feature. Based on the first similarity between the reference object representation and the reference material representation, the degree of interest of the reference object in the reference material is determined to obtain a first degree of interest. The recommendation device uses the reference object representation of the object output by the object branch and matches it with the reference material representation in the material library. When the matching degree is high, that is, the second similarity is high, it is judged that the reference object is interested in the reference material, thereby determining the recommendation strategy of the recommendation device. Through the above steps, the materials of interest are pushed to the reference object, thereby improving the interactive experience of the reference object.
[0400] See also Fig.10 , Fig.10 This is a schematic diagram of the structure of another recommendation device provided in an embodiment of the present application. The recommendation device 4 includes: an acquisition unit 41, a branch calculation unit 42, and a similarity calculation unit 43. Among them:
[0401] An acquisition unit 41 is used to acquire a target twin-tower model; the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes a material branch;
[0402] The acquisition unit 41 is further used to acquire an interest material and a material library; the interest material is a material that the reference object is interested in; the material library includes reference materials and reference material representations of the reference materials; the reference material representation is obtained by extracting the characteristics of the reference material through the material branch;
[0403] A branch calculation unit 42, configured to process the material of interest using the material branch to obtain a material of interest representation of the material of interest;
[0404] The similarity calculation unit 43 is used to determine the second similarity between the above-mentioned interest material representation and the above-mentioned reference material representation, predict the degree of interest of the above-mentioned reference object in the above-mentioned reference material, and obtain a second interest degree; the above-mentioned second interest degree is positively correlated with the above-mentioned second similarity.
[0405] In combination with any embodiment of the present application, the recommendation device further includes a recommendation unit 44, which is used to:
[0406] In a case where the second interest level is greater than a second threshold, determining the reference material corresponding to the reference material representation in the material library;
[0407] Recommend the above reference materials to the above reference objects.
[0408] In an embodiment of the present application, the recommendation device obtains a target dual-tower model, materials of interest to a reference object, and a material library. Among them, the material library includes reference materials and reference material representations of the reference materials, and the reference material representations are output through material branches in the target dual-tower model. The material branch in the target dual-tower model outputs the material representation of interest for the material of interest. Based on the second similarity between the material representation of interest and the reference material representation, the degree of interest of the reference object in the reference material is determined to obtain a second degree of interest. The recommendation device outputs the material representation of interest for the material of interest of the object by using the material branch, and matches it with the reference material representation in the material library. When the matching degree is high, that is, the second similarity is high, it is judged that the reference object is interested in the reference material, thereby determining the recommendation strategy of the recommendation device. Through the above steps, the material of interest is pushed to the reference object, thereby improving the interactive experience of the reference object.
[0409] See also Fig.11 , Fig.11 This is a structural diagram of another recommendation device provided in an embodiment of the present application. The recommendation device 5 includes: an acquisition unit 51, a branch calculation unit 52, and a similarity calculation unit 53. Among them:
[0410] An acquisition unit 51 is used to acquire a target twin-tower model, wherein the target twin-tower model is obtained by training using a twin-tower model training method; the target twin-tower model includes an object branch;
[0411] The acquisition unit 51 is further used to acquire the reference feature of the reference object and the representation of the control object; the above-mentioned representation of the control object is obtained by extracting the representation of the control object through the above-mentioned object branch;
[0412] A branch calculation unit 52, configured to process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch;
[0413] The similarity calculation unit 53 is used to determine the third similarity between the above-mentioned reference object representation and the above-mentioned control object representation, predict the degree of interest of the above-mentioned reference object in the control material, and obtain a third interest degree, and the above-mentioned third interest degree is positively correlated with the above-mentioned third similarity; the above-mentioned control material is the material that the above-mentioned control object is interested in.
[0414] In combination with any embodiment of the present application, the recommendation device further includes a recommendation unit 54, which is used to:
[0415] In a case where the third interest level is greater than a third threshold, the control material is recommended to the reference object.
[0416] In an embodiment of the present application, the recommendation device obtains the target twin-tower model, the reference features of the reference object, and the control object representation of the control object. Among them, the control object representation is output through the object branch in the target twin-tower model. The object branch in the target twin-tower model outputs the reference object representation of the reference feature. Based on the third similarity between the reference object representation and the control object representation, the degree of interest of the reference object in the control material is determined to obtain the third degree of interest. The recommendation device uses the reference object representation of the object output by the object branch and matches it with the control object representation. When the matching degree is high, that is, the third similarity is high, it is judged that the reference object is interested in the control material, and the recommendation strategy of the recommendation device is determined, so as to push more interesting materials to the reference object and improve the interactive experience of the reference object.
[0417] In some embodiments, the functions or modules included in the device provided in the embodiments of the present application can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.
[0418] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device 6 includes a processor 61 and a memory 62. Optionally, the electronic device 6 also includes an input device 63 and an output device 64. The processor 61, the memory 62, the input device 63 and the output device 64 are coupled via a connector, and the connector includes various interfaces, transmission lines or buses, etc., which are not limited in the embodiments of the present application. It should be understood that in each embodiment of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, it can be connected through various interfaces, transmission lines, buses, etc.
[0419] The processor 61 may include one or more processors, for example, one or more central processing units (CPUs). When the processor is a CPU, the CPU may be a single-core CPU or a multi-core CPU. Optionally, the processor 61 may be a processor group consisting of multiple CPUs, and the multiple processors are coupled to each other through one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present application.
[0420] The memory 62 can be used to store computer program instructions and various computer program codes including the program code for executing the program code of the present application. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.
[0421] The input device 63 is used to input data and / or signals, and the output device 64 is used to output data and / or signals. The input device 63 and the output device 64 can be independent devices or an integrated device.
[0422] It can be understood that in the embodiment of the present application, the memory 62 can be used not only to store relevant instructions, but also to store relevant data. For example, the memory 62 can be used to store target materials, historical materials and first deviations obtained through the input device 63, or the memory 62 can also be used to store target deviations obtained through the processor 61, etc. The embodiment of the present application does not limit the specific data stored in the memory.
[0423] Understandably, Fig.12 Only a simplified design of an electronic device is shown. In practical applications, the electronic device may also include other necessary components, including but not limited to any number of input / output devices, processors, memories, etc., and all electronic devices that can implement the embodiments of the present application are within the protection scope of the present application.
[0424] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0425] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present application have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.
[0426] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0427] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0428] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0429] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0430] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
Claims
1. A deviation determination method, characterized in that: The method is used to determine a target deviation according to a target object and a target material that has interacted with the target object, wherein the target deviation represents the degree to which the target object is affected by a target deviation factor during the interaction between the target object and the target material; the target deviation factor includes a material deviation factor and an object deviation factor, both of which are factors that cause the target object to interact with a material that the target object is not interested in, the material deviation factor is generated by the target material, and the object deviation factor is generated by the target object, and the method includes: Acquire the target material and historical materials; the historical materials are materials that have interacted with the target object; the historical materials are different from the target material; Obtaining a first deviation; wherein the first deviation represents the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material; Based on the target similarity between the target material and the historical material, a second deviation is determined; the second deviation is negatively correlated with the target similarity; the second deviation represents the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material; The first deviation and the second deviation are merged to obtain the target deviation; the target deviation is positively correlated with the first deviation; the target deviation is positively correlated with the second deviation.
2. The method according to claim 1, characterized in that The step of fusing the first deviation with the second deviation to obtain a target deviation includes: The first deviation and the second deviation are merged to obtain a reference deviation; the reference deviation is positively correlated with the first deviation; the reference deviation is positively correlated with the second deviation; Based on the reference deviation, determining a reference interest representation of the target object; the reference interest representation includes interest information of the target object when the degree of influence of the target deviation factor on the target object is the reference deviation, and the interest information is used to determine the material of interest to the target object; Predicting a reference probability of interaction between the target object and the target material based on the reference interest representation and the characteristics of the target material; When the first difference between the reference probability and the preset label is less than a preset threshold, the reference deviation is determined as the target deviation; the preset label indicates that the target object has interacted with the target material.
3. The method according to claim 2, characterized in that When the first difference between the reference probability and the preset label is less than a preset threshold, before determining the reference deviation as the target deviation, the method further includes: The first difference is determined according to the reference probability and the target distance of the preset tag; the first difference is positively correlated with the target distance.
4. The method according to any one of claims 1 to 3, characterized in that The obtaining of the first deviation comprises: Obtaining M preset deviations; the preset deviations are preset influence degrees of the material deviation factors; the M preset deviations are different from each other; Based on the M preset deviations, M deviation interest representations of the target object are determined; the deviation interest representations correspond to the preset deviations one by one; the deviation interest representations include interest information of the target object when the degree of influence of the material deviation factor on the target object is the preset deviation, and the interest information is used to determine the material of interest to the target object; According to the M deviation interest representations and the characteristics of the target material, predict M deviation probabilities of the target object interacting with the target material; the deviation probabilities correspond one-to-one to the preset deviations; The differences between the M deviation probabilities and the preset labels are calculated respectively to obtain M second differences; the preset labels indicate that the target object has interacted with the target material; and the second differences correspond to the preset deviations one by one; The preset deviation corresponding to the smallest difference among the M second differences is used as the first deviation.
5. The method according to claim 4, characterized in that The M preset deviations include a first reference deviation; The determining, based on the M preset deviations, M deviation interest representations of the target object includes: Acquire target interaction data; the target interaction data is data generated during the process of interaction between the target object and the historical material; Determine a first interest representation according to the first reference deviation, the target interaction data, and the historical material; the first reference deviation is one of the M preset deviations; the first interest representation includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the first reference deviation; According to the first interest representation and one or more second interest representations, the M deviation interest representations are obtained; the second interest representations correspond one-to-one to the second reference deviation; any representation in the second interest representations includes the interest information of the target object when the degree of influence of the material deviation factor on the target object is the corresponding second reference deviation; the second reference deviation is the deviation of the M preset deviations except the first reference deviation; the sum of the first interest representation and the one or more second interest representations is M.
6. The method according to claim 5, characterized in that The determining the first interest representation according to the first reference deviation, the target interaction data, and the historical material includes: Fusing the first reference deviation, the target interaction data, and the historical material to obtain a fusion feature; The first interest representation is determined according to the fusion feature.
7. The method according to claim 6, characterized in that The fusing the first reference deviation, the target interaction data, and the historical material to obtain a fusion feature includes: Extracting a feature of the first reference deviation to obtain a reference deviation feature; Extracting features of the target interaction data to obtain interaction data features; Extract the characteristics of the historical material to obtain the historical material characteristics; the reference deviation characteristics, the interactive data characteristics, and the historical material characteristics are matrices with the same number of rows and columns; The matrix obtained by multiplying the elements in the same position in the reference deviation feature, the interactive data feature, and the historical material feature matrices is used as the fusion feature; the fusion feature, the reference deviation feature, the interactive data feature, and the historical material feature are matrices with the same number of rows and columns.
8. The method according to claim 4, characterized in that The respectively calculating the differences between the M deviation probabilities and the preset labels to obtain M second differences includes: Calculating the distances between the M deviation probabilities and the preset labels to obtain M label distances; The M second differences are determined according to the M tag distances; the second differences correspond to the tag distances one by one; and any of the second differences is positively correlated with the corresponding tag distance.
9. The method according to claim 4, characterized in that The predicting, based on the M deviation interest representations and the characteristics of the target material, M deviation probabilities of the target object interacting with the target material includes: The similarities between the M deviation interest representations and the target material are calculated respectively, and the M deviation probabilities of the target object interacting with the target material are predicted; the deviation probability is positively correlated with the similarity between the corresponding deviation interest representation and the target material.
10. The method according to any one of claims 5 to 9, characterized in that The target interaction data is data arranged in the chronological order of when the target object viewed the historical materials.
11. A twin-tower model training method, characterized in that: The method comprises: Obtaining a target deviation, a target feature of a target object, a target material, a dual-tower model to be trained, and a target label; the target deviation is obtained by the method described in any one of claims 1 to 10, and the target label represents the degree of interest of the target object in the target material; Processing the target feature and the target material using the twin-tower model to be trained to obtain a target material representation of the target material output by a material branch of the twin-tower model to be trained, and a target object representation of the target object output by an object branch of the twin-tower model to be trained; Determine the degree of interest of the target object in the target material according to the training similarity between the target object representation and the target material representation, and obtain a predicted interest degree; the predicted interest degree is positively correlated with the training similarity; Determining a reference loss according to a target difference between the predicted interest level and the target label; the reference loss is positively correlated with the target difference; The reference loss is adjusted according to the target deviation to determine the target loss; the target loss is negatively correlated with the target deviation; The parameters of the material branch and the object branch in the dual-tower model to be trained are updated according to the target loss to obtain a target dual-tower model.
12. A recommendation method, characterized in that: The method comprises: Obtain a target twin-tower model; the target twin-tower model is obtained by training according to claim 11; the target twin-tower model includes a material branch and an object branch; Acquire reference features and a material library of a reference object; the material library includes reference materials and reference material representations of the reference materials; the reference material representations are obtained by extracting features of the reference materials through the material branch; Processing the reference feature by using the object branch to obtain a reference object representation of the reference object output by the object branch; According to the first similarity between the reference object representation and the reference material representation, the degree of interest of the reference object in the reference material is determined to obtain a first interest degree; the first interest degree is positively correlated with the first similarity.
13. The method according to claim 12, characterized in that After determining the second similarity between the reference object representation and the reference material representation, predicting the reference object's interest in the reference material, and obtaining the first interest level, the method further includes: In a case where the first interest level is greater than a first threshold, determining the reference material corresponding to the reference material representation in the material library; The reference material is recommended to the reference object.
14. A recommendation method, characterized in that: The method comprises: Obtain a target twin-tower model; the target twin-tower model is obtained through training according to claim 11; the target twin-tower model includes a material branch; Obtaining a material of interest and a material library; the material of interest is a material of interest to a reference object; the material library includes reference materials and reference material representations of the reference materials; the reference material representation is obtained by extracting the characteristics of the reference material through the material branch; Processing the material of interest using the material branch to obtain a material of interest representation of the material of interest; A second similarity between the representation of the material of interest and the representation of the reference material is determined, and the degree of interest of the reference object in the reference material is predicted to obtain a second degree of interest; the second degree of interest is positively correlated with the second similarity.
15. The method according to claim 14, characterized in that After determining the third similarity between the representation of the material of interest and the representation of the reference material, predicting the degree of interest of the reference object in the reference material, and obtaining the second degree of interest, the method further includes: In a case where the second interest level is greater than a second threshold, determining the reference material corresponding to the reference material representation in the material library; The reference material is recommended to the reference object.
16. A recommendation method, characterized in that: The method comprises: Acquire a target twin-tower model, wherein the target twin-tower model is obtained by training according to claim 11; the target twin-tower model includes an object branch; Acquire reference features of the reference object and a comparison object representation; the comparison object representation is obtained by extracting features of the comparison object through the object branch; Processing the reference feature by using the object branch to obtain a reference object representation of the reference object output by the object branch; Determine a third similarity between the reference object representation and the control object representation, predict the reference object's interest in the control material, and obtain a third interest level, wherein the third interest level is positively correlated with the third similarity; the control material is a material in which the control object is interested.
17. The method according to claim 16, characterized in that After determining a fourth similarity between the reference object representation and the control object representation, predicting the reference object's interest in the control material, and obtaining a third interest level, the method further includes: In a case where the third interest level is greater than a third threshold, the control material is recommended to the reference subject.
18. A deviation determination device, characterized in that: The deviation determination device is used to determine the target deviation according to the target object and the target material that has interacted with the target object, wherein the target deviation represents the degree to which the target object is affected by the target deviation factor during the interaction between the target object and the target material; the target deviation factor includes a material deviation factor and an object deviation factor, both of which are factors that cause the target object to interact with a material that the target object is not interested in, the material deviation factor is generated by the target material, and the object deviation factor is generated by the target object, and the deviation determination device includes: An acquisition unit, used for acquiring the target material and historical materials; the historical materials are materials that have interacted with the target object; the historical materials are different from the target material; The acquisition unit is further used to acquire a first deviation; the first deviation represents the degree to which the target object is affected by the material deviation factor during the interaction between the target object and the target material; a calculation unit, configured to determine a second deviation based on a target similarity between the target material and the historical material; the second deviation is negatively correlated with the target similarity; the second deviation represents the degree to which the target object is affected by the object deviation factor during the interaction between the target object and the target material; A fusion unit is used to fuse the first deviation with the second deviation to obtain the target deviation; the target deviation is positively correlated with the first deviation; the target deviation is positively correlated with the second deviation.
19. A twin tower model training device, characterized in that: The double tower model training device comprises: An acquisition unit, used for acquiring a target deviation, a target feature of a target object, a target material, a dual-tower model to be trained, and a target label; the target deviation is obtained by the method described in any one of claims 1 to 10; the target material is a material that has interacted with the target object; the target label represents the degree of interest of the target object in the target material; a determination unit, configured to process the target feature and the target material using the twin-tower model to be trained, to obtain a target material representation of the target material output by the material branch of the twin-tower model to be trained, and a target object representation of the target object output by the object branch of the twin-tower model to be trained; a similarity calculation unit, for determining the degree of interest of the target object in the target material according to the training similarity between the target object representation and the target material representation, and obtaining a predicted degree of interest; the predicted degree of interest is positively correlated with the training similarity; A loss calculation unit, configured to determine a reference loss according to a target difference between the predicted interest level and the target tag; the reference loss is positively correlated with the target difference; The loss calculation unit is further used to adjust the reference loss according to the target deviation to determine a target loss; the target loss is negatively correlated with the target deviation; An updating unit is used to update the parameters of the material branch and the object branch in the dual-tower model to be trained according to the target loss to obtain a target dual-tower model.
20. A recommendation device, characterized in that: The recommended devices include: An acquisition unit, used for acquiring a target twin-tower model; the target twin-tower model is obtained by training according to claim 11; the target twin-tower model includes a material branch and an object branch; The acquisition unit is further used to acquire reference features and a material library of a reference object; the material library includes reference materials and reference material representations of the reference materials; the reference material representations are obtained by extracting features of the reference materials through the material branches; a branch computing unit, configured to process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch; The similarity calculation unit is used to determine the degree of interest of the reference object in the reference material according to the first similarity between the reference object representation and the reference material representation, and obtain a first interest degree; the first interest degree is positively correlated with the first similarity.
21. A recommendation device, characterized in that: The recommended devices include: An acquisition unit, used for acquiring a target twin-tower model; the target twin-tower model is obtained through training according to claim 11; the target twin-tower model includes a material branch; The acquisition unit is further used to acquire an interest material and a material library; the interest material is a material that the reference object is interested in; the material library includes reference materials and reference material representations of the reference materials; the reference material representation is obtained by extracting the characteristics of the reference material through the material branch; a branch calculation unit, configured to process the material of interest by using the material branch to obtain a material of interest representation of the material of interest; The similarity calculation unit is used to determine a second similarity between the representation of the material of interest and the representation of the reference material, predict the degree of interest of the reference object in the reference material, and obtain a second degree of interest; the second degree of interest is positively correlated with the second similarity.
22. A recommendation device, characterized in that: The recommended devices include: An acquisition unit, used for acquiring a target twin-tower model, wherein the target twin-tower model is obtained through training according to claim 11; the target twin-tower model includes an object branch; The acquisition unit is further used to acquire reference features of the reference object and a representation of the control object; the representation of the control object is obtained by extracting the representation of the control object through the object branch; a branch computing unit, configured to process the reference feature using the object branch to obtain a reference object representation of the reference object output by the object branch; a similarity calculation unit, configured to determine a third similarity between the reference object representation and the control object representation, predict the reference object's interest in the control material, and obtain a third interest level, wherein the third interest level is positively correlated with the third similarity; and the control material is a material in which the control object is interested.
23. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program code, wherein the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1 to 10, or the electronic device executes the method according to claim 11, or the electronic device executes the method according to claim 12 or 13, or the electronic device executes the method according to claim 14 or 15, or the electronic device executes the method according to claim 16 or 17.
24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the method described in any one of claims 1 to 10, or the method described in claim 11, or the method described in claim 12 or 13, or the method described in claim 14 or 15, or the method described in claim 16 or 17.
25. A computer program product, characterized in that The computer program product includes a computer program or instructions; when the computer program or instructions are run on a computer, the computer executes the method described in any one of claims 1 to 10, or the computer executes the method described in claim 11, or the computer executes the method described in claim 12 or 13, or the computer executes the method described in claim 14 or 15, or the computer executes the method described in claim 16 or 17.
