Real-time matching recall method and device based on interaction characteristics

By adopting a real-time matching recall method based on interactive features in the recommendation system, the problem of low screening efficiency in the recall stage is solved, more accurate and diversified recommendation results are achieved, and real-time response to changes in user preferences is achieved.

CN118606549APending Publication Date: 2024-09-06BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410696150.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing recommendation systems have low screening efficiency in the recall stage, resulting in low accuracy of recommendation results and difficulty in responding to changes in user preferences in real time.

Method used

A real-time matching recall method based on interactive features is used to calculate the weight value of candidate news by regularly loading the latest candidate set files and model files. When the user triggers a recall request, the interactive features of user features and candidate news features are calculated in real time and weighted calculation is performed. and, obtain the estimated click-through rate to optimize the recall set.

Benefits of technology

It improves the screening efficiency and accuracy of the recommendation system, responds to changes in user preferences in real time, speeds up model inference, and ensures the rationality and diversity of the recall set.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606549A
    Figure CN118606549A
Patent Text Reader

Abstract

The invention provides a real-time matching recall method and device based on interaction characteristics, and can be applied to the technical field of data processing. The method comprises the following steps: loading a newest candidate set file and a newest model file at regular time, obtaining newest candidate news, loading a newest click rate estimation sorting model, calculating weight values of all the candidate news by utilizing the click rate estimation sorting model in advance, and when a user triggers a recall request, carrying out recall on all the candidate news according to the weight values of all the candidate news. Interaction features between the user features and the candidate news features are calculated in real time according to the user features, weighted summation is performed on the interaction features in parallel, preference changes of the user are responded in real time, and the pre-estimation reasoning speed of the model is further increased; and interaction characteristics are fully utilized, so that model reasoning is more reliable. And in combination with a preset diversity control method, target news with a relatively high estimated click rate is selected from all candidate news, so that the reasonability and reliability of the final recall set are ensured, and meanwhile, the diversity of recommendation results is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a real-time matching recall method and device based on interactive features. Background Art

[0002] With the explosive growth of information, how to quickly locate the information needed by the target in the massive amount of information and improve the efficiency of information search is an urgent problem to be solved. Therefore, the recommendation system came into being. However, in the recommendation process of most recommendation systems, due to the large number of candidate sets in the recall stage, simple models with small parameters are often used in the recall stage, and only the unilateral features of the item side are used to calculate the item feature vector, thereby screening out the candidate set.

[0003] However, the interactive features between the user side and the item side are particularly important for improving the accuracy of the recommendation system. Therefore, how to effectively improve the screening efficiency while ensuring the recommendation performance and system time consumption of the recommendation system, make the recommendation results more reasonable and reliable, and improve the user experience is a problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a real-time matching recall method and device based on interactive features to solve the problem of low screening efficiency in the recommendation recall stage.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] The first aspect of the present invention discloses a real-time matching recall method based on interactive features, the method comprising:

[0007] The latest candidate set file and the latest model file are loaded periodically; wherein the latest candidate set file contains at least a plurality of candidate news and candidate news features; the latest model file contains at least model parameters and feature weight parameters of the candidate news; the latest model file is obtained by pre-training a click rate prediction ranking model based on the latest sample data;

[0008] Loading a click rate prediction and sorting model corresponding to the model parameters, and calculating weight values ​​of all candidate news in the latest candidate set file according to the feature weight parameters through the click rate prediction and sorting model;

[0009] When a recall request carrying user features is received, the interaction features between the user features and the candidate news features are obtained, and all the interaction features are re-encoded to obtain target interaction features;

[0010] Using the click rate estimation and ranking model, weight values ​​corresponding to all target interactive features in the latest model file and weight values ​​of all candidate news are weighted and summed to obtain an estimated click rate for each candidate news;

[0011] According to the order of the estimated click-through rates from high to low, a preset number of target news are obtained according to a preset method to obtain a final recall set, wherein the target news is any of the candidate news.

[0012] Preferably, before the timed loading of the latest candidate set file and the latest model file, the method further includes:

[0013] Collect the latest news information of the current period, wherein the latest news information is authorized news information;

[0014] Filter the latest news information according to a preset filtering rule to obtain a plurality of candidate news and candidate news information corresponding to the candidate news, wherein the candidate news information at least includes candidate news features;

[0015] A latest candidate set file is created based on the plurality of candidate news and the candidate news information.

[0016] Preferably, the process of pre-training the click rate prediction ranking model based on the latest sample data to obtain the latest model file includes:

[0017] Obtaining the click rate prediction ranking model trained in the previous training cycle and the latest sample data added between the current training cycle and the previous training cycle;

[0018] Extracting news features, user features, and interaction features between the news features and the user features from the latest sample data to obtain an incremental data set;

[0019] Based on the incremental data set, incremental training is performed on the click rate prediction ranking model trained in the previous training cycle to obtain a new click rate prediction ranking model;

[0020] A latest model file is created based on the new click rate prediction ranking model.

[0021] Preferably, obtaining a preset number of target news according to a preset method in the order of the estimated click rates from high to low to obtain a final recall set includes:

[0022] Obtaining a preset number of target news in descending order of estimated click rates to obtain an initial recall set, wherein the target news is any of the candidate news;

[0023] Determine quantity thresholds corresponding to a plurality of news types according to the user characteristics, and obtain the news type of each of the target news;

[0024] If the number of target news corresponding to any of the news types exceeds the number threshold corresponding to the current news type, the target news corresponding to the current news type is deleted from the initial recall set according to the order of the estimated click-through rates from low to high, until the number of target news corresponding to the current news type does not exceed the number threshold corresponding to the current news type;

[0025] According to the order of the estimated click-through rates from high to low, target news corresponding to other news types are obtained and stored in the initial recall set until the number of all target news in the initial recall set is equal to the preset number, thereby obtaining a final recall set; wherein the other news types are any news types other than the multiple news types.

[0026] Preferably, re-encoding all interaction features to obtain target interaction features includes:

[0027] All interaction features are encoded using respective preset encoding values ​​in the latest model file to obtain target interaction features.

[0028] A second aspect of the present invention discloses a real-time matching recall device based on interactive features, the device comprising:

[0029] The first loading unit is used to periodically load the latest candidate set file and the latest model file; wherein the latest candidate set file contains at least a plurality of candidate news and candidate news features; the latest model file contains at least model parameters and feature weight parameters of the candidate news; the latest model file is obtained by pre-training a click rate prediction ranking model based on the latest sample data;

[0030] A second loading unit is used to load a click rate estimation and ranking model corresponding to the model parameters, and calculate the weight values ​​of all candidate news in the latest candidate set file according to the feature weight parameters through the click rate estimation and ranking model;

[0031] A first acquisition unit is used for, when receiving a recall request carrying a user feature, acquiring an interaction feature between the user feature and the candidate news feature, and re-encoding all the interaction features to obtain a target interaction feature;

[0032] An estimation unit, used to use the click rate estimation and ranking model to perform weighted summation on the weight values ​​corresponding to all target interactive features in the latest model file and the weight values ​​of all candidate news, so as to obtain an estimated click rate of each candidate news;

[0033] The recall unit is used to obtain a preset number of target news according to a preset method in the order of the estimated click rate from high to low, and obtain a final recall set, wherein the target news is any of the candidate news.

[0034] Preferably, the device further comprises:

[0035] A collection unit, used for collecting the latest news information of the current period, wherein the latest news information is authorized news information;

[0036] A filtering unit, configured to filter the latest news information according to a preset filtering rule to obtain a plurality of candidate news and candidate news information corresponding to the candidate news, wherein the candidate news information at least includes candidate news features;

[0037] The first creating unit is used to create a latest candidate set file based on the multiple candidate news and the candidate news information.

[0038] Preferably, the device further comprises:

[0039] A second acquisition unit is used to acquire the click rate prediction ranking model trained in the previous training cycle and the latest sample data added in the period between the current training cycle and the previous training cycle;

[0040] An extraction unit, used to extract news features, user features, and interaction features between the news features and the user features from the latest sample data to obtain an incremental data set;

[0041] A training unit, configured to perform incremental training on the click rate prediction ranking model trained in the previous training cycle based on the incremental data set to obtain a new click rate prediction ranking model;

[0042] The second creating unit is used to create a latest model file based on the new click rate prediction ranking model.

[0043] Preferably, the recall unit comprises:

[0044] A first acquisition module is used to acquire a preset number of target news in descending order of estimated click rates to obtain an initial recall set, wherein the target news is any of the candidate news;

[0045] A second acquisition module is used to determine the quantity thresholds corresponding to the multiple news types according to the user characteristics, and acquire the news type of each of the target news;

[0046] A deletion module, for deleting the target news corresponding to the current news type from the initial recall set according to the order of the estimated click-through rates from low to high, if the number of target news corresponding to any of the news types exceeds the number threshold corresponding to the current news type, until the number of target news corresponding to the current news type does not exceed the number threshold corresponding to the current news type;

[0047] The third acquisition module is used to acquire target news corresponding to other news types in the order of the estimated click-through rate from high to low, and store them in the initial recall set until the number of all target news in the initial recall set is equal to the preset number, thereby obtaining a final recall set; wherein the other news types are any news types other than the multiple news types.

[0048] Preferably, the first acquisition unit is specifically used to:

[0049] All interaction features are encoded using respective preset encoding values ​​in the latest model file to obtain target interaction features.

[0050] Based on the above-mentioned embodiment of the present invention, a real-time matching recall method and device based on interactive features are provided. The method periodically loads the latest candidate set file and the latest model file, obtains the latest candidate news and loads the latest click-through rate estimation ranking model, and pre-calculates the weight values ​​of all candidate news using the click-through rate estimation ranking model. When the user triggers a recall request, the interactive features between the user features and the candidate news features are calculated in real time according to the user features, and the interactive features are weighted and summed in parallel, which responds to the changes in user preferences in real time and further speeds up the model's estimated reasoning speed; and fully utilizes the interactive features to make the model reasoning more reliable. Combined with the preset diversity control method, the target news with a higher estimated click-through rate is selected from all candidate news, which ensures the rationality and reliability of the final recall set while further improving the diversity of the recommendation results. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0052] Figure 1 A flowchart of a real-time matching and recall method based on interactive features provided by an embodiment of the present invention;

[0053] Figure 2A partial flow chart of a real-time matching and recall method based on interactive features provided by an embodiment of the present invention;

[0054] Figure 3 A flowchart of a real-time matching and recall method based on interactive features provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0057] As can be seen from the background technology, currently, simple models with small parameters are often used in the recall stage, and only the unilateral features of the item side are used to calculate the item feature vector, resulting in a low accuracy rate of the candidate set screened. If a complex model with a large number of parameters is used, the calculation time will increase and the screening efficiency will be low.

[0058] Therefore, an embodiment of the present invention provides a real-time matching recall method and device based on interactive features. The method periodically loads the latest candidate set file and the latest model file, obtains the latest candidate news and loads the latest click-through rate estimation ranking model, and pre-calculates the weight values ​​of all candidate news using the click-through rate estimation ranking model. When a user triggers a recall request, the interactive features between the user features and the candidate news features are calculated in real time based on the user features, and the interactive features are weighted and summed in parallel, which responds to changes in user preferences in real time and further speeds up the model's estimated reasoning speed; and fully utilizes the interactive features to make the model reasoning more reliable. Combined with the preset diversity control method, the target news with a higher estimated click-through rate is selected from all candidate news, which ensures the rationality and reliability of the final recall set while further improving the diversity of the recommendation results.

[0059] See also Figure 1 , showing a flow chart of a real-time matching and recall method based on interactive features provided in an embodiment of the present invention.

[0060] It should be noted that the recall method is deployed on the server, that is, a C++ recall service is built on the server. Furthermore, since the query of the map structure is time-consuming, all data that needs to be stored using the map structure in the entire C++ recall service, such as the correspondence between the candidate news features and the weight values ​​of the candidate news, are re-encoded and converted into vector storage, with the storage location being the re-encoded candidate news feature id and the stored value being the weight value.

[0061] Specifically, the recall method includes:

[0062] Step S101: regularly loading the latest candidate set file and the latest model file.

[0063] In the specific implementation of step S101, the machine deployed by the recall service periodically loads the latest candidate set file and the latest model file delivered by other data-end machines.

[0064] It is understandable that the click-through rate prediction and sorting model (i.e., the full-database sorting CTR model that can realize online real-time reasoning, where CTR is the click-through rate) is incrementally trained based on the latest sample data on other data-end machines at regular intervals, and the latest model file is created based on the trained click-through rate prediction and sorting model, where the latest model file contains at least the model parameters and the feature weight parameters of the candidate news. The latest model file is loaded regularly by the machine deployed by the recall service.

[0065] At the same time, the latest news information is obtained regularly on other data end machines to create the latest candidate set file. The machine deployed by the recall service regularly loads the latest candidate set file, where the latest candidate set file contains at least multiple candidate news and candidate news features (such as news category features, news keyword features, news account features, etc.).

[0066] It should be noted that the latest candidate set file is a text file, each line in the file is a candidate news, and each column is a feature of the candidate news, for example: news1_id—news1_keyword—news1_type.

[0067] It is understandable that the click rate prediction ranking model is a linear regression model. The higher the model complexity, the longer it takes, the higher the timeout rate and the poorer the fitting effect. Therefore, a linear regression model is selected to achieve the effect of controlling the timeout rate below 5 / 10,000 when facing a candidate set with a data volume of 50,000. Furthermore, the smaller the data volume of the candidate set, the lower the timeout rate.

[0068] It should be noted that the process of creating the latest candidate set file is as follows: collect the latest news information of the current period, wherein the latest news information is authorized news information; filter the collected latest news information according to preset filtering rules to obtain multiple candidate news and candidate news information corresponding to the candidate news, wherein the candidate news information at least includes candidate news features; create the latest candidate set file based on the multiple candidate news and candidate news information.

[0069] For example, every 2 hours is a collection cycle, and the latest news information of the current cycle is collected. Since the more information in the candidate set, the longer it takes to screen, the latest news information collected is filtered according to the preset filtering rules, such as deleting offline news, news that does not meet the requirements, expired news, high exposure and low click news, news published by low-quality accounts, etc., to obtain multiple candidate news and candidate news information corresponding to the candidate news; create the latest candidate set file based on multiple candidate news and candidate news information.

[0070] It is understandable that the latest news information collected in advance is the news information that is authorized in advance by the news publishing side and is allowed to be collected. Filtering the latest news information collected in advance is conducive to improving the screening performance of the click rate prediction ranking model and reducing time consumption in the future.

[0071] It should be noted that in the recommendation system, the click-through rate estimation ranking model needs to be updated regularly based on the user's real samples and real feedback. Therefore, the click-through rate estimation ranking model is incrementally trained regularly based on the latest sample data to obtain the latest model file. The process is as follows:

[0072] In the current training cycle, the click rate prediction ranking model trained in the previous training cycle and the latest sample data added between the current training cycle and the previous training cycle are obtained.

[0073] For example, one hour is a training cycle. At 15:01, the latest sample data added between 14:00 and 15:01 is obtained. That is, the latest behavior information added between 14:00 and 15:01 of the user is obtained from the user behavior log, and the news information added between 14:00 and 15:01 is obtained.

[0074] It is understandable that each user's behavior during browsing will cause changes in user characteristics. Therefore, obtaining user characteristics in combination with user behavior logs is conducive to timely responding to changes in user characteristics and improving the recommendation performance and recommendation effect of the click-through rate prediction and ranking model.

[0075] It is worth noting that before collecting user behavior logs and other data, this solution has displayed data collection prompt information to users and obtained user authorization for data collection, that is, this solution collects user behavior and other data on a legal and compliant basis.

[0076] News features, user features, and interaction features between news features and user features are extracted from the latest sample data to obtain an incremental data set.

[0077] Based on the incremental data set, the click rate estimation ranking model trained in the previous training cycle is incrementally trained to obtain a new click rate estimation ranking model; and the latest model file is created based on the new click rate estimation ranking model.

[0078] It is understandable that after the incremental training is completed, the latest model file will be delivered to the machine deployed by the recall service on a regular basis.

[0079] Step S102: Load the click rate prediction and sorting model corresponding to the model parameters, and calculate the weight values ​​of all candidate news in the latest candidate set file according to the feature weight parameters through the click rate prediction and sorting model.

[0080] In the specific implementation process of step S102, the click-through rate prediction ranking model corresponding to the model parameters in the latest model file is loaded, and the weight values ​​of all candidate news in the latest candidate set file are calculated using the feature weight parameters corresponding to all candidate news in the click-through rate prediction ranking model. The calculated weight values ​​of all candidate news are stored in the memory to reduce the time consumption of the subsequent reasoning stage.

[0081] It should be noted that the linear regression model (LR) is used to calculate the weight values ​​of all candidate news in the latest candidate set file.

[0082] For example: y = w1*x1+w2*x2+w3*x3+....... Among them, x represents each feature, and the feature value is generally 0 / 1, representing two different states of the feature (included / not included). Some of x1....xn are unilateral features of news, and some are interactive features between news and users. w represents the weight of each feature, such as 0.1, 0, 2. y represents the final estimated click rate of user a for news b. The larger y is, the greater the probability that the user clicks on the news. The correspondence between x and w is stored in the latest model file.

[0083] It is understandable that the candidate news features of each candidate news are stored in the latest candidate set file. The weight parameter corresponding to each candidate news feature can be obtained by querying the latest model file.

[0084] For example, in the latest model file: news1_id——news1_keyword——news1_type;

[0085] News1_id (after querying, the feature is x=0, w=0.8) - News1_keyword (after querying, the feature is x=1, w=0.2) - News1_type (after querying, the feature is x=1, w=0.3);

[0086] Then we can first calculate the weighted sum of the three features given by the latest model file:

[0087] y1=0*0.8+1*0.2+1*0.3;

[0088] Among them, y = the weighted sum of news one-sided features (y1) + the weighted sum of news and user interaction features (y2).

[0089] Specifically, y1 can be calculated based on the features of each news item in the latest model file without the involvement of user features. However, y2 needs to be calculated based on the user features obtained when each online user triggers a recall request.

[0090] Step S103: When a recall request carrying user features is received, the interaction features between the user features and the candidate news features are obtained, and all the interaction features are re-encoded to obtain the target interaction features.

[0091] In the specific implementation process of step S103, when a recall request triggered by a user is received, the interaction features between the user features and the candidate news features are obtained based on the user features carried in the recall request, and all the interaction features are encoded using the preset coding values ​​in the latest model file to obtain the target interaction features.

[0092] It is understandable that the interactive features between the user features and the candidate news features are generally obtained by using comparable features in the user features and the candidate news features and calculating the interactive features according to different interactive feature calculation methods.

[0093] For example: whether there is an inclusion relationship between features (0 / 1), whether there is an intersection (0 / 1), the number of intersections (1, 2, 3); distance relationship (1, 2, 3); quantitative relationship, such as how much the difference is (1, 2, 3...).

[0094] Specifically, for example, candidate news features include: news location (Zhengzhou), news keywords (celebrity, entertainment, Oscars, etc.), news type (entertainment news). User features include: user location (Zhengzhou), user preference keywords (celebrity, gossip, movies, etc.), preference type (entertainment news, social news, military news, etc.).

[0095] In other words, calculating the interaction features requires obtaining user features as well as candidate news features.

[0096] For example: User & News, location interaction features: whether the locations are the same (0 / 1), how far apart the locations are (12); User & News, keyword interaction features: how many of the 10 news keywords hit the user's preferred keywords (3), whether news keyword 1 hits the user's interest (0 / 1)... and so on. Interaction features generally include these types.

[0097] It should be noted that since user features and interaction features are mostly represented by string types, the efficiency is lower than that of integer types when querying and storing. Therefore, all interaction features are encoded using the preset encoding values ​​in the latest model file to obtain the target interaction features.

[0098] That is to say, all interaction features are encoded starting from 0 to obtain an integer feature id.

[0099] It is understandable that generally various types of features are encoded within each type. For example, news keyword features are generally encoded in advance: character strings ntag_0, ntag_1, ... ntag_xxxx, represented by 0-the total number of keywords (0, 1, 2, ..., xxxx).

[0100] Since the interaction features are not encoded in advance, the interaction features are represented in the form of strings: user_news_location_distance_0; user_news_location_distance_1; user_news_location_distance_2….

[0101] The latest model file stores the correspondence between news features and corresponding weight values. For example: ntag_0 corresponds to weight 0.2; ntag_1 corresponds to weight 0.4; ntag_xxx corresponds to weight -0.2... Because a dictionary structure is usually required to store a string and its corresponding weight value, but the dictionary structure storage method will result in a slower query speed. Therefore, all interactive features are encoded starting from 0 so that a complete memory block (0-xxxx) can be used to store all weight values ​​directly. For example: 0 corresponds to ntag_0, which corresponds to 0.2; 1 corresponds to ntag_1, which corresponds to weight 0.4; 2 corresponds to ntag_xxx, which corresponds to weight -0.2...

[0102] Step S104: using the click rate estimation ranking model, weighted summing up the weight values ​​corresponding to all target interactive features in the latest model file and the weight values ​​of all candidate news, to obtain the estimated click rate of each candidate news.

[0103] In the specific implementation process of step S104, the weight values ​​corresponding to all target interactive features in the latest model file are queried, and the click rate prediction ranking model is used to perform weighted summation on all weight values ​​and weight values ​​of all candidate news to estimate the click rate of each candidate news.

[0104] In actual application, the interaction features between user features and candidate news features are calculated in real time, and the weighted sum of the target interaction features and the weight values ​​of all candidate news are performed in real time. These two parts are processed in parallel to speed up the reasoning.

[0105] Step S105: Obtain a preset number of target news in descending order of estimated click rates according to a preset method to obtain a final recall set.

[0106] In the process of implementing step S105, in order to ensure the diversity of target news in the final recall set, avoid excessive homogeneity of content, and improve user experience, a preset number of target news are obtained according to a preset method in order of estimated click-through rate from high to low to obtain the final recall set.

[0107] It should be noted that first, a preset number of target news are obtained in descending order of estimated click rates to obtain an initial recall set, wherein the target news is any candidate news.

[0108] For example, 100 target news are obtained in descending order of estimated click-through rate to obtain an initial recall set.

[0109] Secondly, the quantity thresholds corresponding to multiple news types are determined according to user characteristics, and the news type of each target news in the initial recall set is obtained; if the number of target news corresponding to any news type exceeds the quantity threshold corresponding to the current news type, the target news corresponding to the current news type is deleted from the initial recall set according to the estimated click-through rate from low to high, until the number of target news corresponding to the current news type does not exceed the quantity threshold corresponding to the current news type.

[0110] For example, according to user characteristics, the number threshold corresponding to the military type is determined to be 50, the number threshold corresponding to the sports type is determined to be 30, and the number threshold corresponding to the entertainment type is determined to be 20. The news type of each target news in the initial recall set is obtained. When it is detected that the number of target news of the military type in the initial recall set is 80, since 80>50, the target news of the military type is deleted to 50 according to the estimated click rate of each target news from low to high.

[0111] Then, in descending order of estimated click-through rates, target news corresponding to other news types are obtained and stored in the initial recall set until the number of all target news in the initial recall set is equal to the preset number, and the final recall set is obtained; wherein other news types are any news types except multiple news types.

[0112] For example, in descending order of estimated click-through rates, target news corresponding to other news types are obtained starting from the 101st candidate news and stored in the initial recall set until 100 target news are stored in the initial recall set to obtain the final recall set.

[0113] In an embodiment of the present invention, weight values ​​of all candidate news are calculated in advance and stored in memory. When a user triggers a recall request, interaction features between user features and candidate news features are calculated in real time based on user features, and weighted summation of the interaction features is performed in parallel, thereby further accelerating the estimated reasoning speed of the model. Combined with a preset diversity control method, target news with a higher estimated click-through rate is selected from all candidate news, thereby ensuring the reliability of the final recall set while further improving the diversity of recommendation results.

[0114] Combination Figure 2 , showing a partial flow chart of a real-time matching and recall method based on interactive features provided in an embodiment of the present invention.

[0115] In some specific embodiments, after receiving a recall request triggered by a user, a user portrait, that is, user features, is obtained.

[0116] On the one hand, user features or candidate news features are screened and recalled through collaborative filtering recall algorithm (i.e. CF recall), content similarity-based recall algorithm (i.e. CB recall) and operational recall algorithms.

[0117] On the other hand, asynchronously calling the online real-time matching algorithm of users and news (i.e. Figure 2 In "cb_deep_match", the model (i.e. the latest model file) and candidate pool (i.e. the latest candidate set file) delivered by other data end machines are loaded regularly; and the user behavior sequence (i.e. Figure 2 Item embedding) to quickly match and infer the target news.

[0118] All the news retrieved by the two methods are merged and pushed to the refined ranking stage to obtain more accurate news to be recommended.

[0119] It should be noted that the current recall stage technologies, from the algorithm point of view, mainly include: collaborative filtering recall (also known as CF recall), content similarity-based recall (also known as CB recall), deep vector recall (dssm dual-tower recall, random walk deepwalk), etc.

[0120] From an engineering perspective, the implementation technologies in the recall phase mainly include: offline index recall and online vector recall.

[0121] Among them, offline index recall means calculating the index file required for recall offline or storing it in redis. During online recall, the index corresponding to the key value is obtained according to the user's key value. CF recall and CB recall often use offline index recall. This type of recall often only uses user features or news features, and does not use the interactive features between users and news. In addition, since the index is updated offline, the frequency of update is not high due to the time-consuming reasoning, and the response to changes in user preferences is not timely.

[0122] Deep vector recall often uses online vector recall methods. Generally, it is also necessary to calculate the vectors of the candidate set offline and create an index. However, when a user accesses the data, the user's vector can be inferred online, and the preset candidate news that best matches the user can be retrieved. Generally, only user features or news features will be used.

[0123] Therefore, in the embodiment of the present invention, not only user features and news features are used, but also the interactive features of users and news are combined to make full use of the features, so as to more accurately recall the news that users are interested in and improve the accuracy of the recommendation results.

[0124] Corresponding to the real-time matching recall method based on interactive features provided in the above embodiment of the present invention, see Figure 3 , showing a structural block diagram of a real-time matching and recalling device based on interactive features provided in an embodiment of the present invention, the device includes: a first loading unit 301, a second loading unit 302, a first acquisition unit 303, an estimation unit 304 and a recalling unit 305.

[0125] The first loading unit 301 is used to periodically load the latest candidate set file and the latest model file; wherein the latest candidate set file contains at least a plurality of candidate news and candidate news features; the latest model file contains at least model parameters and feature weight parameters of candidate news; the latest model file is obtained by pre-training the click rate prediction ranking model based on the latest sample data.

[0126] The second loading unit 302 is used to load the click rate prediction and sorting model corresponding to the model parameters, and calculate the weight values ​​of all candidate news in the latest candidate set file according to the feature weight parameters through the click rate prediction and sorting model.

[0127] The first acquisition unit 303 is used to acquire the interaction features between the user features and the candidate news features when receiving a recall request carrying the user features, and re-encode all the interaction features to obtain the target interaction features.

[0128] Specifically, the first acquisition unit 303 is specifically used to: encode all interaction features using each preset encoding value in the latest model file to obtain the target interaction feature.

[0129] The estimation unit 304 is used to use the click rate estimation ranking model to perform weighted summation on the weight values ​​corresponding to all target interactive features in the latest model file and the weight values ​​of all candidate news to obtain the estimated click rate of each candidate news.

[0130] The recall unit 305 is used to obtain a preset number of target news according to a preset method in the order of estimated click rates from high to low, and obtain a final recall set, wherein the target news is any candidate news.

[0131] In an embodiment of the present invention, weight values ​​of all candidate news are calculated in advance and stored in memory. When a user triggers a recall request, interaction features between user features and candidate news features are calculated in real time based on user features, and weighted summation of the interaction features is performed in parallel, thereby further accelerating the estimated reasoning speed of the model. Combined with a preset diversity control method, target news with a higher estimated click-through rate is selected from all candidate news, thereby ensuring the reliability of the final recall set while further improving the diversity of recommendation results.

[0132] Combination Figure 3 The device further includes: a collection unit, a filtering unit and a first creation unit, and the implementation principle of each unit is as follows:

[0133] The collection unit is used to collect the latest news information of the current period, wherein the latest news information is the authorized news information.

[0134] The filtering unit is used to filter the latest news information according to a preset filtering rule to obtain a plurality of candidate news and candidate news information corresponding to the candidate news, wherein the candidate news information at least includes candidate news features.

[0135] The first creating unit is used to create a latest candidate set file based on a plurality of candidate news and candidate news information.

[0136] Combination Figure 3 The device further includes: a second acquisition unit, an extraction unit, a training unit, and a second creation unit. The implementation principle of each unit is as follows:

[0137] The second acquisition unit is used to acquire the click rate prediction ranking model trained in the previous training cycle and the latest sample data added in the period between the current training cycle and the previous training cycle.

[0138] The extraction unit is used to extract news features, user features, and interaction features between news features and user features from the latest sample data to obtain an incremental data set.

[0139] The training unit is used to perform incremental training on the click rate prediction ranking model trained in the previous training cycle based on the incremental data set to obtain a new click rate prediction ranking model.

[0140] The second creation unit is used to create a latest model file based on the new click rate estimation ranking model.

[0141] Combination Figure 3 The content shown, the recall unit 305 includes: a first acquisition module, a second acquisition module, a deletion module and a third acquisition module, and the implementation principle of each module is as follows:

[0142] The first acquisition module is used to acquire a preset number of target news in descending order of estimated click rates to obtain an initial recall set, wherein the target news is any candidate news.

[0143] The second acquisition module is used to determine the quantity thresholds corresponding to the multiple news types according to the user characteristics, and to acquire the news type of each target news.

[0144] The deletion module is used to delete the target news corresponding to the current news type from the initial recall set according to the estimated click-through rate from low to high if the number of target news corresponding to any news type exceeds the number threshold corresponding to the current news type, until the number of target news corresponding to the current news type does not exceed the number threshold corresponding to the current news type.

[0145] The third acquisition module is used to acquire target news corresponding to other news types in order of estimated click-through rate from high to low, and store them in the initial recall set until the number of all target news in the initial recall set is equal to a preset number, thereby obtaining a final recall set; wherein other news types are any news types except multiple news types.

[0146] In summary, the present invention provides a real-time matching recall method and device based on interactive features, which periodically loads the latest candidate set file and the latest model file, obtains the latest candidate news and loads the latest click-through rate estimation ranking model, and pre-calculates the weight values ​​of all candidate news using the click-through rate estimation ranking model and stores them in memory. When a user triggers a recall request, the interactive features between user features and candidate news features are calculated in real time based on user features, and the interactive features are weighted and summed in parallel, which responds to changes in user preferences in real time and further speeds up the model's estimated reasoning speed; and fully utilizes the interactive features to make the model reasoning more reliable. Combined with the preset diversity control method, target news with a higher estimated click-through rate is selected from all candidate news, which ensures the rationality and reliability of the final recall set while further improving the diversity of the recommendation results.

[0147] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0148] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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 the present invention.

[0149] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A real-time matching and recall method based on interactive features, characterized in that: The method comprises: The latest candidate set file and the latest model file are loaded periodically; wherein the latest candidate set file contains at least a plurality of candidate news and candidate news features; the latest model file contains at least model parameters and feature weight parameters of the candidate news; the latest model file is obtained by pre-training a click rate prediction ranking model based on the latest sample data; Loading a click rate prediction and sorting model corresponding to the model parameters, and calculating weight values ​​of all candidate news in the latest candidate set file according to the feature weight parameters through the click rate prediction and sorting model; When a recall request carrying user features is received, the interaction features between the user features and the candidate news features are obtained, and all the interaction features are re-encoded to obtain target interaction features; Using the click rate estimation and ranking model, weight values ​​corresponding to all target interactive features in the latest model file and weight values ​​of all candidate news are weighted and summed to obtain an estimated click rate for each candidate news; According to the order of the estimated click-through rates from high to low, a preset number of target news are obtained according to a preset method to obtain a final recall set, wherein the target news is any of the candidate news.

2. The method according to claim 1, characterized in that Before the latest candidate set file and the latest model file are loaded periodically, the method further includes: Collect the latest news information of the current period, wherein the latest news information is authorized news information; Filter the latest news information according to a preset filtering rule to obtain a plurality of candidate news and candidate news information corresponding to the candidate news, wherein the candidate news information at least includes candidate news features; A latest candidate set file is created based on the plurality of candidate news and the candidate news information.

3. The method according to claim 1, characterized in that The process of pre-training the click rate prediction ranking model based on the latest sample data to obtain the latest model file includes: Obtaining the click rate prediction ranking model trained in the previous training cycle and the latest sample data added between the current training cycle and the previous training cycle; Extracting news features, user features, and interaction features between the news features and the user features from the latest sample data to obtain an incremental data set; Based on the incremental data set, incremental training is performed on the click rate prediction ranking model trained in the previous training cycle to obtain a new click rate prediction ranking model; A latest model file is created based on the new click rate prediction ranking model.

4. The method according to claim 1, characterized in that: The method of obtaining a preset number of target news in the order of the estimated click rates from high to low according to a preset method to obtain a final recall set includes: Obtaining a preset number of target news in descending order of estimated click rates to obtain an initial recall set, wherein the target news is any of the candidate news; Determine quantity thresholds corresponding to a plurality of news types according to the user characteristics, and obtain the news type of each of the target news; If the number of target news corresponding to any of the news types exceeds the number threshold corresponding to the current news type, the target news corresponding to the current news type is deleted from the initial recall set according to the order of the estimated click-through rates from low to high, until the number of target news corresponding to the current news type does not exceed the number threshold corresponding to the current news type; According to the order of the estimated click-through rates from high to low, target news corresponding to other news types are obtained and stored in the initial recall set until the number of all target news in the initial recall set is equal to the preset number, thereby obtaining a final recall set; wherein the other news types are any news types other than the multiple news types.

5. The method according to claim 1, characterized in that The re-encoding of all interaction features to obtain target interaction features includes: All interaction features are encoded using respective preset encoding values ​​in the latest model file to obtain target interaction features.

6. A real-time matching and recall device based on interactive features, characterized in that: The device comprises: The first loading unit is used to periodically load the latest candidate set file and the latest model file; wherein the latest candidate set file contains at least a plurality of candidate news and candidate news features; the latest model file contains at least model parameters and feature weight parameters of the candidate news; the latest model file is obtained by pre-training a click rate prediction ranking model based on the latest sample data; A second loading unit is used to load a click rate estimation and ranking model corresponding to the model parameters, and calculate the weight values ​​of all candidate news in the latest candidate set file according to the feature weight parameters through the click rate estimation and ranking model; A first acquisition unit is used for, when receiving a recall request carrying a user feature, acquiring an interaction feature between the user feature and the candidate news feature, and re-encoding all the interaction features to obtain a target interaction feature; An estimation unit, used to use the click rate estimation and ranking model to perform weighted summation on the weight values ​​corresponding to all target interactive features in the latest model file and the weight values ​​of all candidate news, so as to obtain an estimated click rate of each candidate news; The recall unit is used to obtain a preset number of target news according to a preset method in the order of the estimated click rate from high to low, and obtain a final recall set, wherein the target news is any of the candidate news.

7. The device according to claim 6, characterized in that The device also includes: A collection unit, used for collecting the latest news information of the current period, wherein the latest news information is authorized news information; A filtering unit, configured to filter the latest news information according to a preset filtering rule to obtain a plurality of candidate news and candidate news information corresponding to the candidate news, wherein the candidate news information at least includes candidate news features; The first creating unit is used to create a latest candidate set file based on the multiple candidate news and the candidate news information.

8. The device according to claim 6, characterized in that The device also includes: A second acquisition unit is used to acquire the click rate prediction ranking model trained in the previous training cycle and the latest sample data added in the period between the current training cycle and the previous training cycle; An extraction unit, used to extract news features, user features, and interaction features between the news features and the user features from the latest sample data to obtain an incremental data set; A training unit, configured to perform incremental training on the click rate prediction ranking model trained in the previous training cycle based on the incremental data set to obtain a new click rate prediction ranking model; The second creation unit is used to create a latest model file based on the new click rate prediction ranking model.

9. The device according to claim 6, characterized in that The recall unit comprises: A first acquisition module is used to acquire a preset number of target news in descending order of estimated click rates to obtain an initial recall set, wherein the target news is any of the candidate news; A second acquisition module is used to determine the quantity thresholds corresponding to the multiple news types according to the user characteristics, and acquire the news type of each of the target news; A deletion module, for deleting the target news corresponding to the current news type from the initial recall set according to the order of the estimated click-through rates from low to high, if the number of target news corresponding to any of the news types exceeds the number threshold corresponding to the current news type, until the number of target news corresponding to the current news type does not exceed the number threshold corresponding to the current news type; The third acquisition module is used to acquire target news corresponding to other news types in the order of the estimated click-through rate from high to low, and store them in the initial recall set until the number of all target news in the initial recall set is equal to the preset number, thereby obtaining a final recall set; wherein the other news types are any news types other than the multiple news types.

10. The device according to claim 6, characterized in that The first acquisition unit is specifically used to: All interaction features are encoded using respective preset encoding values ​​in the latest model file to obtain target interaction features.