Interactive behavior prediction model training method, interactive behavior prediction method and device
By performing feature extraction and interactive behavior prediction model training on historical non-recommended resource data, combined with knowledge transfer and fine-tuning technology, it solves the traditional model training time-consuming and forgetting problems, improves the long-term personalization and accuracy of the recommendation system, and is suitable for industry Real-time needs of recommendation systems.
Patent Information
- Application Number
- CN202410431496.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-11
AI Technical Summary
Traditional models take a long time to train on source domain data and cannot adapt to changes in user interests at any time. The focus on recent data results in models that can only capture recent personalized features between users and products, losing long-term features and unable to provide comprehensive and lasting results. Understanding user preferences.
By extracting features from historical non-recommended resource-related data, the first and second resource-related features are generated and input into the pre-trained feature fusion model to train the interactive behavior prediction model, using knowledge transfer and fine-tuning technology to alleviate data sparsity. and training convergence problems to improve the click-through rate prediction accuracy of the recommendation system.
It provides long-term personalized information, solves the forgetting problem caused by sliding window updates, improves the recommendation accuracy and efficiency of industrial recommendation systems, reduces online reasoning costs, and is suitable for the real-time needs of industrial recommendation systems.
Smart Images

Figure CN118035566B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of machine learning and data mining, and more specifically to a training method for an interactive behavior prediction model, an interactive behavior prediction method and a device. Background Art
[0002] Industrial recommendation systems usually combine natural content and advertising to display products to different users to increase user engagement and online revenue. In the exposed items, sellers who want to promote products may invest in advertising to get more impressions. Traditional models take a lot of time to train on source domain data and cannot adapt to changes in user interests at any time. The focus on recent data will cause the model to only capture the recent personalized features between users and products, while losing long-term features. Summary of the invention
[0003] In view of the above problems, the present invention provides a training method for an interactive behavior prediction model, an interactive behavior prediction method and a device.
[0004] According to a first aspect of the present invention, there is provided a training method for an interactive behavior prediction model, comprising: extracting features from historical non-recommended resource-related data to obtain first resource-related features and second resource-related features, wherein the historical non-recommended resource-related data comprises first historical non-recommended resource-related data corresponding to a first historical time period, and second historical non-recommended resource-related data corresponding to a second historical time period, and the duration represented by the second historical time period is shorter than the duration represented by the first historical time period;
[0005] Inputting the first resource-related features into a pre-trained first feature fusion model to generate a first fusion feature;
[0006] Training a first interactive behavior prediction model according to the second resource-related feature and the first fusion feature to obtain a trained first interactive behavior prediction model;
[0007] The second interactive behavior prediction model is trained according to the model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource-related data to obtain the trained second interactive behavior prediction model, wherein the historical recommended resource-related data is determined based on the recommended resources marked with recommended identifiers, and the historical non-recommended resource-related data is determined based on the non-recommended resources not marked with recommended identifiers.
[0008] According to an embodiment of the present invention, the first resource-related feature includes N, where N is greater than 1;
[0009] The step of inputting the first resource-related feature into a pre-trained first feature fusion model to generate the first fusion feature includes:
[0010] Based on the self-attention network algorithm, the N first resource related features are processed to obtain M intermediate feature vectors, where M<N.
[0011] The above intermediate feature vector is input into the pooling layer to obtain the above first fusion feature.
[0012] According to an embodiment of the present invention, the first interactive behavior prediction model is trained according to the second resource-related feature and the first fusion feature to obtain the trained first interactive behavior prediction model, including:
[0013] Inputting the second resource related features into the first interactive behavior prediction model, and outputting the second resource prediction probability;
[0014] Processing the second resource prediction probability and the label data associated with the second historical non-recommended resource related data according to the loss function to obtain a loss value;
[0015] The first interaction behavior prediction model is iteratively adjusted based on the loss value to obtain the trained first interaction behavior prediction model.
[0016] According to an embodiment of the present invention, the second interactive behavior prediction model is trained according to the model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource related data, and the trained second interactive behavior prediction model is obtained, including:
[0017] According to the model parameters of the trained first interactive behavior prediction model, the model parameters of the second interactive behavior prediction model are updated to obtain an intermediate second interactive behavior prediction model;
[0018] Input the historically recommended resource related data and the first fusion feature into the intermediate second interactive behavior prediction model, and output the historically recommended resource prediction probability;
[0019] The intermediate second interactive behavior prediction model is trained according to the predicted probability of the historically recommended resources and the labels associated with the data related to the historically recommended resources to obtain the trained second interactive behavior prediction model.
[0020] According to an embodiment of the present invention, the above-mentioned historical non-recommended resource related data includes at least one of the following: project name type data, category name type data, and project attribute type data.
[0021] A second aspect of the present invention provides an interactive behavior prediction method, comprising:
[0022] Extract features from resource recommendation related data to obtain resource recommendation related features;
[0023] The above resource recommendation related features are input into the trained second interactive behavior prediction model to output the resource recommendation prediction probability.
[0024] A third aspect of the present invention provides a training device for an interactive behavior prediction model, comprising:
[0025] a feature extraction module, configured to extract features from historical non-recommended resource-related data to obtain first resource-related features and second resource-related features, wherein the historical non-recommended resource-related data includes first historical non-recommended resource-related data corresponding to a first historical time period and second historical non-recommended resource-related data corresponding to a second historical time period, and a duration represented by the second historical time period is shorter than a duration represented by the first historical time period;
[0026] A fusion feature module, used for inputting the first resource-related feature into a pre-trained first feature fusion model to generate a first fusion feature;
[0027] An initial first training module, used for training a first interactive behavior prediction model according to the second resource-related features and the first fusion features, to obtain a trained first interactive behavior prediction model;
[0028] The initial second training module is used to train the second interaction behavior prediction model according to the model parameters of the trained first interaction behavior prediction model and the acquired historical recommended resource-related data to obtain the trained second interaction behavior prediction model, wherein the historical recommended resource-related data is determined based on the recommended resources marked with recommendation identifiers, and the historical non-recommended resource-related data is determined based on the non-recommended resources not marked with recommendation identifiers.
[0029] A fourth aspect of the present invention provides an interactive behavior prediction device, comprising:
[0030] The recommendation feature module is used to extract features from resource recommendation related data to obtain resource recommendation related features;
[0031] The recommendation prediction module is used to input the above-mentioned resource recommendation related features into the trained second interaction behavior prediction model and output the resource recommendation prediction probability.
[0032] A fifth aspect of the present invention provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above method.
[0033] The sixth aspect of the present invention also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above method.
[0034] The seventh aspect of the present invention also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0035] According to a training method, interactive behavior prediction method and device of an interactive behavior prediction model provided by the present invention, by extracting features from historical non-recommended resource-related data, a first resource-related feature and a second resource-related feature are obtained; the first resource-related feature is input into a pre-trained first feature fusion model to generate a first fusion feature; the first interactive behavior prediction model is trained according to the second resource-related feature and the first fusion feature to obtain a trained first interactive behavior prediction model; the second interactive behavior prediction model is trained according to the model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource-related data to obtain a trained second interactive behavior prediction model. The method is an asynchronous structure composed of three steps, and features are extracted from historical non-recommended resource-related data by using the first feature fusion model, thereby providing long-term personalized information and solving the forgetting problem caused by sliding window updates. However, in industrial recommendation systems, the amount of historical non-recommended resource-related data is larger and the clicks are more intensive. The knowledge transfer method can be used to transfer the model parameters in the first interactive behavior prediction model to the second interactive behavior prediction model, thereby alleviating the training convergence problem caused by data sparsity. In addition, using historical recommendation resource-related data to fine-tune the second interaction model requires less additional online inference cost, greatly improving the accuracy of the recommendation system's click-through rate estimation, which is well in line with the requirements of industrial recommendation systems for online inference latency and storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0037] Figure 1 A diagram showing an application scenario of a training method and a prediction method for an interactive behavior prediction model according to an embodiment of the present invention;
[0038] Figure 2 A flow chart showing a method for training an interactive behavior prediction model according to an embodiment of the present invention is shown;
[0039] Figure 3 A flowchart of an interactive behavior prediction method according to an embodiment of the present invention is shown;
[0040] Figure 4 A structural diagram of an interactive behavior prediction model according to an embodiment of the present invention is shown;
[0041] Figure 5A structural block diagram of a training device for an interactive behavior prediction model according to an embodiment of the present invention is shown;
[0042] Figure 6 It shows a structural block diagram of an interactive behavior prediction device according to an embodiment of the present invention; and
[0043] Figure 7 A block diagram of an electronic device suitable for implementing a training method and a prediction method for an interactive behavior prediction model according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0044] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0045] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0046] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0047] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0048] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, invention and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0049] Industrial recommendation systems usually combine organic content and advertising to display products to different users to increase user engagement and online revenue. Among the exposed items, sellers who want to promote their products may invest in advertising to get more impressions. Organic content and advertising coexist in industrial recommendation systems. Although these items and users occupy the same screen, the data distribution between them is very different, including the amount of user feedback, user behavior type, and item distribution, so they should be regarded as two different scenarios. Here, organic content is used as the source domain and advertising content as the target domain. The source domain is enriched with a large amount of user feedback and becomes a valuable knowledge base for the advertising target domain, with the aim of alleviating the problem of data sparsity.
[0050] The inventors found that the recommendation method can jointly improve the overall index by using multi-task learning methods. This method uses shared underlying representations and mixed data as input to establish connections between different domains. This method often produces cross-domain negative transfer problems. In addition, the source domain, which is mainly characterized by natural content, usually presents a much larger dataset, which is several times the size of the target advertising data. This difference exacerbates the imbalance between the two scenarios, resulting in poor learning effects in the target domain and more scarce user feedback. The second one often adopts the pre-training and fine-tuning paradigm to adapt to the knowledge transfer framework, that is, the pre-trained model is trained on a large-scale source domain and then fine-tuned on the target domain to improve model performance. It is worth noting that in this mode, the fine-tuning process of the target domain is completely dependent on the data of the target domain and is independent of the initial large-scale source domain training. Separating these two stages helps to achieve an efficient and practical deployment strategy. In addition, the target of the fine-tuning model is carefully tailored to the specific characteristics of the target domain, so the performance of the fine-tuning model is better than that of the joint training method that utilizes cross-domain mixed data.
[0051] However, the pre-training and fine-tuning paradigm of transferring source domain data from large-scale natural content to target advertising data still faces the following problems: (1) The data in the source domain mainly consists of natural content, and its data volume is huge, which also poses a challenge to the efficiency of model training. Although a large amount of natural content is valuable for enhancing the capabilities of the model, it takes a lot of time to train. If six months of data are used for training, the training process will take two days. Considering that the model in the online recommendation system needs to adapt to changes in user interests at any time, the extension of time cost is a major problem. (2) The data updated daily by the model changes in a sliding window manner to strike a balance between training efficiency and capturing changes in data distribution. Specifically, the daily updated model is trained using data from the last few dozen days, which will cause catastrophic forgetting. Unfortunately, this focus on recent data causes the model to only capture recent personalized features between users and items, while losing long-term features. This phenomenon poses a huge challenge because it undermines the comprehensive and lasting understanding of user preferences, which is crucial for providing accurate recommendations.
[0052] In view of this, the present invention provides a training method, an interactive behavior prediction method and a device for an interactive behavior prediction model, the training method comprising: extracting features from historical non-recommended resource-related data to obtain a first resource-related feature and a second resource-related feature, wherein the historical non-recommended resource-related data comprises first historical non-recommended resource-related data corresponding to a first historical time period, and second historical non-recommended resource-related data corresponding to a second historical time period, and the duration represented by the second historical time period is shorter than the duration represented by the first historical time period; inputting the first resource-related feature into a pre-trained first feature fusion model to generate a first fusion feature; training a first interactive behavior prediction model according to the second resource-related feature and the first fusion feature to obtain a trained first interactive behavior prediction model; training a second interactive behavior prediction model according to model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource-related data to obtain a trained second interactive behavior prediction model, wherein the historical recommended resource-related data is determined based on recommended resources marked with recommendation identifiers, and the historical non-recommended resource-related data is determined based on non-recommended resources not marked with recommendation identifiers.
[0053] It should be noted that the training method of the interactive behavior prediction model and the interactive behavior prediction method provided by the present invention can be used in the field of data mining, such as industrial recommendation, and can also be used in any field other than the field of data mining, such as machine learning and other fields. The application field of the training method of the interactive behavior prediction model and the interactive behavior prediction method provided by the present invention is not limited.
[0054] Figure 1A diagram showing an application scenario of a training method and a prediction method for an interactive behavior prediction model according to an embodiment of the present invention.
[0055] like Figure 1 As shown, the application scenario according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0056] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0057] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0058] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0059] It should be noted that the training method of the interactive behavior prediction model or the interactive behavior prediction method provided in the embodiment of the present invention can generally be executed by the server 105. Accordingly, the training device of the interactive behavior prediction model or the interactive behavior prediction device provided in the embodiment of the present invention can generally be set in the server 105. The training method of the interactive behavior prediction model or the interactive behavior prediction method provided in the embodiment of the present invention can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Correspondingly, the training device of the interactive behavior prediction model or the interactive behavior prediction device provided in the embodiment of the present invention can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0060] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0061] The following will be based on Figure 1 The scene described by Figure 2~Figure 4 The training method and prediction method of the interactive behavior prediction model of the embodiment of the invention are described in detail.
[0062] Figure 2 A flow chart of a method for training an interactive behavior prediction model according to an embodiment of the present invention is shown.
[0063] like Figure 2 As shown, the training method of the interactive behavior prediction model of this embodiment includes operations S210 to S240.
[0064] In operation S210, feature extraction is performed on historical non-recommended resource-related data to obtain first resource-related features and second resource-related features, wherein the historical non-recommended resource-related data includes first historical non-recommended resource-related data corresponding to the first historical time period, and second historical non-recommended resource-related data corresponding to the second historical time period, and the duration represented by the second historical time period is shorter than the duration represented by the first historical time period.
[0065] In operation S220, the first resource-related feature is input into a pre-trained first feature fusion model to generate a first fusion feature.
[0066] In operation S230, a first interactive behavior prediction model is trained according to the second resource-related feature and the first fusion feature to obtain a trained first interactive behavior prediction model.
[0067] In operation S240, a second interaction behavior prediction model is trained according to the model parameters of the trained first interaction behavior prediction model and the acquired historical recommended resource-related data to obtain a trained second interaction behavior prediction model, wherein the historical recommended resource-related data is determined based on recommended resources marked with recommendation identifiers, and the historical non-recommended resource-related data is determined based on non-recommended resources not marked with recommendation identifiers.
[0068] According to an embodiment of the present invention, historical recommended resource related data is determined based on recommended resources marked with recommendation identifiers, for example, commodities with advertisement identifiers on a shopping website. Historical non-recommended resource related data is determined based on non-recommended resources not marked with recommendation identifiers.
[0069] According to an embodiment of the present invention, the historical non-recommended resource-related data may include context information, project attributes, etc., wherein the context information represents some or all information that can perceive and affect objects in scenes and images, and the project attributes represent the inherent properties of the project itself. However, this is not limited to this, and the embodiments of the present invention do not limit the specific data of the historical non-recommended resource-related data.
[0070] According to an embodiment of the present invention, the first resource-related feature corresponds to the first historical non-recommended resource-related data, and the second resource-related feature corresponds to the second historical non-recommended resource-related data.
[0071] According to the embodiment of the present invention, the first resource-related features may include a small number of key features, such as user attributes, project attributes, etc., but are not limited thereto. The embodiment of the present invention does not limit the specific types of key features. Among them, the user information and data involved comply with relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good customs.
[0072] According to an embodiment of the present invention, the second resource-related features may include complete features, such as user behavior sequences and context information, but are not limited thereto. The embodiments of the present invention do not limit the specific types of features. The user information and data involved comply with relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good customs.
[0073] According to an embodiment of the present invention, the pre-trained first feature fusion model can adopt a lightweight architecture, consisting of an embedding layer and a shallow multilayer perceptron (MLP). The first feature fusion model can be updated on the first day of each month using data from the past six months to generate user or project embeddings for model training for the current month. However, this is not limited to this, and the present invention does not limit the specific usage time and update time of the data.
[0074] According to an embodiment of the present invention, the first fused features are obtained based on training data, which contain a large amount of information. The first fused features enable the downstream models (ie, the first interactive behavior prediction model and the second interactive behavior prediction model) to obtain these features at any time.
[0075] According to an embodiment of the present invention, the first fused feature is required whether accessing the original data or training the first interactive behavior prediction model to obtain model parameters. In order to solve the problem of large storage costs and low training efficiency caused by obtaining the first fused feature, the first fused feature can be divided into the first fused feature of the user and the first fused feature of the project, and they are stored separately, thereby improving the efficiency of using the first fused feature. Splitting and storing separately allows the first fused feature of a specific user or project to be effectively used as a feature input for the downstream model when retrieving it.
[0076] According to an embodiment of the present invention, the first interactive behavior prediction model may include a behavior sequence model, a feature interaction model, and a larger MLP layer.
[0077] According to an embodiment of the present invention, the second interactive behavior prediction model has a network structure consistent with the first interactive behavior prediction model. After the first interactive behavior prediction model completes the training of natural data, its parameters can be transferred to the second interactive behavior prediction model, the purpose is to provide a good initialization for accelerating the convergence of the second interactive behavior prediction model.
[0078] According to an embodiment of the present invention, by extracting features from historical non-recommended resource-related data, a first resource-related feature and a second resource-related feature are obtained; the first resource-related feature is input into a pre-trained first feature fusion model to generate a first fusion feature; the first interactive behavior prediction model is trained according to the second resource-related feature and the first fusion feature to obtain a trained first interactive behavior prediction model; the second interactive behavior prediction model is trained according to the model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource-related data to obtain a trained second interactive behavior prediction model. The method is an asynchronous structure consisting of three steps, and by using the first feature fusion model to extract features from historical non-recommended resource-related data, long-term personalized information is provided, thereby solving the forgetting problem caused by sliding window updates. However, in industrial recommendation systems, the amount of historical non-recommended resource-related data is larger and the clicks are more intensive. The knowledge transfer method can transfer the model parameters in the first interactive behavior prediction model to the second interactive behavior prediction model, thereby alleviating the training convergence problem caused by data sparsity. In addition, using historical recommendation resource-related data to fine-tune the second interaction model requires less additional online inference cost, greatly improving the accuracy of the recommendation system's click-through rate estimation, which is well in line with the requirements of industrial recommendation systems for online inference latency and storage.
[0079] According to an embodiment of the present invention, the first resource-related features include N, where N is greater than 1; wherein the first resource-related features are input into a pre-trained first feature fusion model, and generating the first fusion features includes: processing the N first resource-related features based on a self-attention network algorithm to obtain M intermediate feature vectors, where M<N; and inputting the intermediate feature vectors into a pooling layer to obtain the first fusion feature.
[0080] According to an embodiment of the present invention, when the second interactive behavior prediction model uses the features of a certain sample during the training process, relevant information of the corresponding multiple users or items can be retrieved based on historical non-recommended resource related data.
[0081] According to an embodiment of the present invention, the retrieved users / items may be embedded and connected, as shown in formula (1):
[0082] (1)
[0083] Among them, d is the embedding dimension, emb j Represents the user / item embedding of the most recent j-th month. Before being used as the input of the first interactive behavior prediction model, e will be self-attention calculated to further extract the contextual information of the collaborative filtering signal, as shown in formula (2), and compressed into a single input feature through the mean pooling operation, as shown in formula (3).
[0084] (2)
[0085] (3).
[0086] Therefore, the embedding table (first fused feature) input to the subsequent model is also divided into user side and item side.
[0087] According to an embodiment of the present invention, multiple embedding tables will greatly increase the memory and latency costs during online reasoning. By using self-attention to aggregate multiple embedding tables, after the parameters of the second interactive behavior prediction model are fixed, the merged embedding table can be used, thereby reducing the memory and latency costs.
[0088] According to an embodiment of the present invention, a first interactive behavior prediction model is trained according to the second resource-related features and the first fusion features to obtain the trained first interactive behavior prediction model, including: inputting the second resource-related features into the first interactive behavior prediction model and outputting the second resource prediction probability; processing the second resource prediction probability and the label data associated with the second historical non-recommended resource-related data according to the loss function to obtain the loss value; and iteratively adjusting the first interactive behavior prediction model based on the loss value to obtain the trained first interactive behavior prediction model.
[0089] According to an embodiment of the present invention, the first interactive behavior prediction model uses the user / item embedding information generated by the first feature fusion model in the past three months to supplement its input. The first feature fusion model and the first interactive behavior prediction model access these embedded data in a non-overlapping manner, which means that the months in which the first feature fusion model generates embedded data do not overlap with the months of natural data used to train the first interactive behavior prediction model. This misalignment can reduce the sample retraining problem and thus improve performance.
[0090] According to an embodiment of the present invention, the update frequency of the first interactive behavior prediction model is higher than that of the first feature fusion model.
[0091] According to an embodiment of the present invention, the second resource-related feature and the first fusion feature can be input into the first interactive behavior prediction model to output the second resource prediction probability; the second resource prediction probability and the label data associated with the second historical non-recommended resource-related data are processed according to the loss function to obtain a loss value, wherein the loss function can use a binary cross entropy function, but is not limited to this, and the embodiment of the present invention does not limit the specific type of the loss function. The first interactive behavior prediction model is iteratively adjusted based on the loss value to obtain a trained first interactive behavior prediction model.
[0092] According to an embodiment of the present invention, for example, models trained on advertising data generally have the problem of data sparsity, which means that positive samples only account for a small part of the total samples. However, in industrial recommendation systems, the amount of natural data is larger and the clicks are more intensive. An intuitive idea is to transfer the interactive information in the natural domain to the target advertising domain through knowledge transfer, thereby alleviating the training convergence problem caused by data sparsity. However, the training cost of a large amount of natural data is usually unacceptable. In order to further improve data utilization, a pre-training and fine-tuning paradigm can be adopted to better adapt to knowledge transfer.
[0093] According to an embodiment of the present invention, a second interactive behavior prediction model is trained according to the model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource-related data to obtain the trained second interactive behavior prediction model, which includes: updating the model parameters of the second interactive behavior prediction model according to the model parameters of the trained first interactive behavior prediction model to obtain an intermediate second interactive behavior prediction model; inputting the historical recommended resource-related data and the first fusion feature into the intermediate second interactive behavior prediction model, and outputting the historical recommended resource prediction probability; training the intermediate second interactive behavior prediction model according to the historical recommended resource prediction probability and the label associated with the historical recommended resource-related data to obtain the trained second interactive behavior prediction model.
[0094] According to an embodiment of the present invention, the model parameters of the second interactive behavior prediction model can be updated according to the model parameters of the trained first interactive behavior prediction model, wherein the parameters in batch normalization need to be reinitialized. Due to the difference in data distribution between natural data and advertising data. The parameters related to data distribution in the deep neural network are mainly encapsulated in batch normalization. Reinitializing these parameters helps to refresh the intermediate second interactive behavior prediction model and further improve performance.
[0095] According to an embodiment of the present invention, the intermediate second interactive behavior prediction model can load parameters from the latest model checkpoint of the first interactive behavior prediction model every day for initialization, and then fine-tune the advertising data of the previous month using the historical embedding of the first feature fusion model. The fine-tuning process only relies on the data of the target advertising domain, not the data of the natural source domain. The separation of the two stages greatly improves the efficiency and practicality of the deployment strategy. The intermediate second interactive behavior prediction model is fine-tuned using a binary cross entropy loss function.
[0096] According to an embodiment of the present invention, the historical non-recommended resource related data includes at least one of the following: project name type data, category name type data, and project attribute type data.
[0097] According to an embodiment of the present invention, historical non-recommended resource related data may also include user name type, user attribute type, etc. The user information and data involved comply with relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good customs.
[0098] According to the embodiment of the present invention, the category name type data is such as barbecue, BBQ, etc., the item attribute type data is such as average price, etc., and the item name type data can be the name of the store belonging to the category name, such as "XX barbecue", etc., but is not limited to this. The embodiment of the present invention does not limit the specific type of data. Among them, the user information and data involved comply with relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good customs.
[0099] Figure 3 A flow chart of an interactive behavior prediction method according to an embodiment of the present invention is shown.
[0100] like Figure 3 As shown, the interactive behavior prediction method of this embodiment includes operations S310 to S320.
[0101] In operation S310, feature extraction is performed on resource recommendation related data to obtain resource recommendation related features.
[0102] In operation S320, resource recommendation related features are input into the second interaction behavior prediction model, and a resource recommendation prediction probability is output.
[0103] According to an embodiment of the present invention, the second interactive behavior prediction model is obtained by training according to the training method provided in the above embodiment.
[0104] According to an embodiment of the present invention, considering the model effect and deployment efficiency, three click-through rate models (first feature fusion model, first interactive behavior prediction model and second interactive behavior prediction model) can be updated with different training data cycles. For example, since the long-term characteristics of users / items remain stable within a month, the first feature fusion model can be updated on the first day of each month. When updating, natural data from the past six months can be collected, and a tiny pre-trained model (i.e., the first interactive behavior prediction model) can be trained in a monthly order, and the user / item embedding table can be stored at the end of each month. By collecting data from the past six months, the data from the past three months can be used to warm up the model training, and only the user / item embedding table from the past three months is stored. After obtaining the newly generated embedding table, the old embedding table will be discarded to save storage space. The first interactive behavior prediction model is updated with natural data from the previous month on Monday every week. The pre-trained parameters will be saved, and the model parameters from the previous week will be abandoned. Every day, the second interactive behavior prediction model will load the latest model parameter initialization from the first interactive behavior prediction model, but abandon the parameters in BN (batch normalization parameters). Then, the second interactive behavior prediction model will use the advertising data from the previous month for self-fine tuning. In the online service stage, only the second interactive behavior prediction model and the user / item embedding information of the past three months will participate in the reasoning calculation. Since the self-attention algorithm is used to aggregate the user / item embeddings, and the parameters of the self-attention algorithm are fixed after fine-tuning, the three user / item embeddings can be merged into one user / item embedding table using a fixed self-attention algorithm. This merging operation can reduce the storage volume and latency of the online reasoning process. Here, there is no limit on the specific length of data collection and the number of months of data selected for use, and you can choose according to the actual situation.
[0105] According to an embodiment of the present invention, the interactive behavior prediction method provided by the embodiment of the present invention is applicable to actual industrial scenarios, such as search advertising. In a real large-scale online industrial system, the method brings a 2.9% increase in click-through rate and a 2.1% increase in revenue per thousand clicks.
[0106] It should be noted that the acquisition of data involved in any embodiment of the present invention, including but not limited to historical recommended resource-related data and historical non-recommended resource-related data, is obtained under the condition of obtaining the authorization of relevant users, and necessary confidentiality measures such as data encryption and data desensitization are taken for the acquired user information and data, all of which comply with relevant laws and regulations and do not violate public order and good morals.
[0107] According to an embodiment of the present invention, the duration represented by the second historical time period is shorter than the duration represented by the first historical time period.
[0108] Figure 4 A schematic diagram of a training method for an interactive behavior prediction model according to an embodiment of the present invention is shown.
[0109] like Figure 4 As shown, the schematic diagram of the training method of the interactive behavior prediction model of this embodiment includes a first feature fusion model 410, a first interactive behavior prediction model 420, and a second interactive behavior prediction model 430. Among them, the first feature fusion model 410 includes a first embedding layer 411, a multi-layer perceptron layer 412, a self-attention layer 413, and a pooling layer 414. The first interactive behavior prediction model 420 includes a second embedding layer 421, a first feature interaction layer 422, and a first multi-layer perceptron layer 423. The second interactive behavior prediction model 430 includes a third embedding layer 431, a second feature interaction layer 432, and a second multi-layer perceptron layer 433.
[0110] The historical non-recommended resource-related data includes first historical non-recommended resource-related data 401 corresponding to the first historical time period, and second historical non-recommended resource-related data 402 corresponding to the second historical time period. The first historical non-recommended resource-related data 401 is input into the first embedding layer 411 to obtain the first resource-related feature, and the first resource-related feature is input into the multi-layer perceptron layer 412, and the click rate corresponding to the first resource-related feature can be output. The first resource-related feature obtained from the first embedding layer 411 is input into the self-attention layer 413 for self-attention calculation to further extract the context information of the first fusion feature, and the mean pooling operation is performed through the pooling layer 414 to compress multiple first resource-related features into a single feature 415 (i.e., the first fusion feature). The second historical non-recommended resource related data 402 is input into the second embedding layer 421 to obtain the second resource related features, and the second resource related features are input into the first feature interaction layer 422, wherein the first fusion feature 415 is input into the first feature interaction layer 422 as a supplementary feature, and the obtained feature data is input into the first multi-layer perceptron layer 423 to obtain the second historical non-recommended resource related data click rate 424. The second historical non-recommended resource related data click rate 424 and the label data corresponding to the second historical non-recommended resource related data are input into the loss function, and the loss value is output. The model parameters in the first interactive behavior prediction model 420 are iteratively adjusted based on the loss value to obtain the trained first interactive behavior prediction model. The model parameters of the third embedding layer 431, the second feature interaction layer 432 and the second multi-layer perceptron layer 433 are updated corresponding to the model parameters of the second embedding layer 421, the first feature interaction layer 422 and the first multi-layer perceptron layer 423 in the trained first interactive behavior prediction model 420, wherein the updated batch normalization parameters are initialized to obtain the second interactive behavior prediction model 430. The historically recommended resource related data 403 is input into the third embedding layer 431 to obtain the historically recommended related features, and the historically recommended related features are input into the second feature interaction layer 432, wherein the first fused features 415 are input into the second feature interaction layer 432 together as supplementary features, and the obtained feature data are input into the second multi-layer perceptron layer 433 together to obtain the historically recommended resource related data click rate 434. The historically recommended resource related data click rate 434 and the label data corresponding to the historically recommended resource related data are input into the loss function, and the loss value is output. The model parameters in the second interactive behavior prediction model 430 are iteratively adjusted based on the loss value to obtain the trained second interactive behavior prediction model.
[0111] Based on the above-mentioned training method of the interactive behavior prediction model, the present invention also provides a training device for the interactive behavior prediction model. Figure 5 The device is described in detail.
[0112] Figure 5 A structural block diagram of a training device for an interactive behavior prediction model according to an embodiment of the present invention is shown.
[0113] like Figure 5 As shown, the training device 500 for the interactive behavior prediction model of this embodiment includes a feature extraction module 510 , a fusion feature module 520 , an initial first training module 530 and an initial second training module 540 .
[0114] The feature extraction module 510 is used to extract features from the historical non-recommended resource-related data to obtain a first resource-related feature and a second resource-related feature, wherein the historical non-recommended resource-related data includes first historical non-recommended resource-related data corresponding to the first historical time period, and second historical non-recommended resource-related data corresponding to the second historical time period, and the duration represented by the second historical time period is shorter than the duration represented by the first historical time period. In one embodiment, the feature extraction module 510 can be used to perform the operation S210 described above, which will not be repeated here.
[0115] The fusion feature module 520 is used to input the first resource-related feature into the pre-trained first feature fusion model to generate a first fusion feature. In one embodiment, the fusion feature module 520 can be used to perform the operation S220 described above, which will not be described in detail here.
[0116] The initial first training module 530 is used to train the first interactive behavior prediction model according to the second resource-related feature and the first fusion feature to obtain the trained first interactive behavior prediction model. In one embodiment, the initial first training module 530 can be used to perform the operation S230 described above, which will not be repeated here.
[0117] The initial second training module 540 is used to train the second interaction behavior prediction model according to the model parameters of the trained first interaction behavior prediction model and the acquired historical recommended resource-related data to obtain the trained second interaction behavior prediction model, wherein the historical recommended resource-related data is determined based on the recommended resources marked with the recommended identifier, and the historical non-recommended resource-related data is determined based on the non-recommended resources not marked with the recommended identifier. In one embodiment, the initial second training module 540 can be used to perform the operation S240 described above, which will not be repeated here.
[0118] According to an embodiment of the present invention, the first resource-related characteristics include N, where N is greater than 1.
[0119] According to an embodiment of the present invention, the fusion feature module includes: an intermediate feature vector unit and a first fusion feature unit.
[0120] The intermediate feature vector unit is used to process N first resource related features based on the self-attention network algorithm to obtain M intermediate feature vectors, M<N.
[0121] The first fusion feature unit is used to input the intermediate feature vector into the pooling layer to obtain the first fusion feature.
[0122] According to an embodiment of the present invention, the initial first training module includes: a second resource prediction unit, a loss value obtaining unit and a first prediction model unit.
[0123] The second resource prediction unit is used to input the second resource related characteristics into the first interactive behavior prediction model and output the second resource prediction probability.
[0124] The loss value obtaining unit is used to process the second resource prediction probability and the label data associated with the second historical non-recommended resource related data according to the loss function to obtain the loss value.
[0125] The first prediction model unit is used to iteratively adjust the first interactive behavior prediction model based on the loss value to obtain a trained first interactive behavior prediction model.
[0126] According to an embodiment of the present invention, the initial second training module includes: an intermediate prediction model unit, a recommended resource prediction unit and a second prediction model unit.
[0127] The intermediate prediction model unit is used to update the model parameters of the second interactive behavior prediction model according to the model parameters of the trained first interactive behavior prediction model to obtain an intermediate second interactive behavior prediction model.
[0128] The recommended resource prediction unit is used to input the historical recommended resource related data and the first fusion feature into the intermediate second interactive behavior prediction model, and output the historical recommended resource prediction probability.
[0129] The second prediction model unit is used to train the intermediate second interactive behavior prediction model according to the historically recommended resource prediction probability and the label associated with the historically recommended resource related data to obtain the trained second interactive behavior prediction model.
[0130] According to an embodiment of the present invention, the historical non-recommended resource related data includes at least one of the following: project name type data, category name type data, and project attribute type data.
[0131] According to an embodiment of the present invention, any multiple modules of the feature extraction module 510, the fusion feature module 520, the initial first training module 530 and the initial second training module 540 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the feature extraction module 510, the fusion feature module 520, the initial first training module 530 and the initial second training module 540 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the feature extraction module 510, the fusion feature module 520, the initial first training module 530, and the initial second training module 540 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be performed.
[0132] Figure 6 A structural block diagram of an interactive behavior prediction device according to an embodiment of the present invention is shown.
[0133] like Figure 6 As shown, the interactive behavior prediction device 600 of this embodiment includes a recommendation feature module 610 and a recommendation prediction module 620 .
[0134] The recommendation feature module 610 is used to extract features from the resource recommendation related data to obtain resource recommendation related features. In one embodiment, the recommendation feature module 610 can be used to perform the operation S310 described above, which will not be described in detail here.
[0135] The recommendation prediction module 620 is used to input the resource recommendation related features into the second interaction behavior prediction model and output the resource recommendation prediction probability. In one embodiment, the recommendation prediction module 610 can be used to perform the operation S320 described above, which will not be repeated here.
[0136] Figure 7 A block diagram of an electronic device suitable for implementing a training method for an interactive behavior prediction model and an interactive behavior prediction method according to an embodiment of the present invention is shown.
[0137] like Figure 7As shown, the electronic device according to an embodiment of the present invention includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0138] In RAM 703, various programs and data required for the operation of the electronic device are stored. The processor 701, ROM 702 and RAM 703 are connected to each other via a bus 704. The processor 701 performs various operations of the method flow according to the embodiment of the present invention by executing the programs in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. The processor 701 can also perform various operations of the method flow according to the embodiment of the present invention by executing the programs stored in the one or more memories.
[0139] According to an embodiment of the present invention, the electronic device may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.
[0140] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0141] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0142] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program includes a program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the training method of the interactive behavior prediction model and the interactive behavior prediction method provided by the embodiment of the present invention.
[0143] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when it is executed by the processor 701. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0144] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0145] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0146] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0148] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways, even if such combinations and / or combinations are not explicitly described in the present invention. In particular, the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways without departing from the spirit and teachings of the present invention. All of these combinations and / or combinations fall within the scope of the present invention.
[0149] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination. The scope of the present invention is defined by the attached claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A training method for an interactive behavior prediction model, characterized in that: include: Performing feature extraction on historical non-recommended resource-related data to obtain a first resource-related feature and a second resource-related feature, wherein the historical non-recommended resource-related data includes first historical non-recommended resource-related data corresponding to a first historical time period, and second historical non-recommended resource-related data corresponding to a second historical time period, the duration represented by the second historical time period is shorter than the duration represented by the first historical time period, the first resource-related feature corresponds to the first historical non-recommended resource-related data, the second resource-related feature corresponds to the second historical non-recommended resource-related data, the first resource-related feature includes user attributes and project attributes, and the second resource-related feature includes user behavior sequence and context information; Inputting the first resource-related feature into a pre-trained first feature fusion model to generate a first fusion feature; Training a first interactive behavior prediction model according to the second resource-related feature and the first fusion feature to obtain a trained first interactive behavior prediction model; A second interactive behavior prediction model is trained according to the model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource-related data to obtain a trained second interactive behavior prediction model, wherein the second interactive behavior prediction model and the first interactive behavior prediction model have a consistent network structure, and the model parameters of the trained first interactive behavior prediction model are transferred to the second interactive behavior prediction model, the historical recommended resource-related data are determined based on recommended resources marked with recommended identifiers, and the historical non-recommended resource-related data are determined based on non-recommended resources not marked with recommended identifiers.
2. The method according to claim 1, characterized in that The first resource-related features include N, where N is greater than 1; The step of inputting the first resource-related feature into a pre-trained first feature fusion model to generate the first fusion feature includes: Processing N first resource-related features based on a self-attention network algorithm to obtain M intermediate feature vectors, M<N; The intermediate feature vector is input into the pooling layer to obtain the first fusion feature.
3. The method according to claim 1, characterized in that The step of training the first interactive behavior prediction model according to the second resource-related feature and the first fusion feature to obtain the trained first interactive behavior prediction model comprises: Inputting the second resource-related features into the first interaction behavior prediction model, and outputting a second resource prediction probability; Processing the second resource prediction probability and the label data associated with the second historical non-recommended resource related data according to a loss function to obtain a loss value; The first interactive behavior prediction model is iteratively adjusted based on the loss value to obtain the trained first interactive behavior prediction model.
4. The method according to claim 1, characterized in that: The training of the second interactive behavior prediction model according to the model parameters of the trained first interactive behavior prediction model and the acquired historical recommended resource related data to obtain the trained second interactive behavior prediction model includes: According to the model parameters of the trained first interactive behavior prediction model, the model parameters of the second interactive behavior prediction model are updated to obtain an intermediate second interactive behavior prediction model; Inputting the historically recommended resource related data and the first fusion feature into the intermediate second interactive behavior prediction model, and outputting the historically recommended resource prediction probability; The intermediate second interactive behavior prediction model is trained according to the historically recommended resource prediction probability and the label associated with the historically recommended resource related data to obtain the trained second interactive behavior prediction model.
5. The method according to claim 1, characterized in that: The historical non-recommended resource related data includes at least one of the following: Item name type data, category name type data, item attribute type data.
6. A method for predicting interactive behavior, characterized in that: include: Extract features from resource recommendation related data to obtain resource recommendation related features; Inputting the resource recommendation related features into the trained second interaction behavior prediction model, and outputting the resource recommendation prediction probability; The trained second interactive behavior prediction model is obtained by training according to the method described in any one of claims 1 to 5.
7. A training device for an interactive behavior prediction model, characterized in that: include: a feature extraction module, configured to extract features from historical non-recommended resource-related data to obtain a first resource-related feature and a second resource-related feature, wherein the historical non-recommended resource-related data includes first historical non-recommended resource-related data corresponding to a first historical time period, and second historical non-recommended resource-related data corresponding to a second historical time period, the duration represented by the second historical time period is shorter than the duration represented by the first historical time period, the first resource-related feature corresponds to the first historical non-recommended resource-related data, the second resource-related feature corresponds to the second historical non-recommended resource-related data, the first resource-related feature includes user attributes and project attributes, and the second resource-related feature includes user behavior sequence and context information; A fusion feature module, used for inputting the first resource-related feature into a pre-trained first feature fusion model to generate a first fusion feature; An initial first training module, used for training a first interactive behavior prediction model according to the second resource-related feature and the first fusion feature to obtain a trained first interactive behavior prediction model; An initial second training module is used to train a second interaction behavior prediction model based on the model parameters of the trained first interaction behavior prediction model and the acquired historical recommended resource-related data to obtain a trained second interaction behavior prediction model, wherein the second interaction behavior prediction model and the first interaction behavior prediction model have a consistent network structure, and the model parameters of the trained first interaction behavior prediction model are transferred to the second interaction behavior prediction model, the historical recommended resource-related data are determined based on recommended resources marked with recommendation identifiers, and the historical non-recommended resource-related data are determined based on non-recommended resources not marked with recommendation identifiers.
8. An interactive behavior prediction device, characterized in that: include: The recommendation feature module is used to extract features from resource recommendation related data to obtain resource recommendation related features; A recommendation prediction module, used for inputting the resource recommendation related features into the trained second interaction behavior prediction model, and outputting resource recommendation prediction probability; The trained second interactive behavior prediction model is obtained by training according to the method described in any one of claims 1 to 5.
9. An electronic device, comprising: one or more processors; a storage device for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 5.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Commodity popularity prediction method based on time sequence and system thereof
CN104915734A
Resource recommendation method, recommendation prediction model training method, device and equipment
CN116775915A
Multimedia resource classification and recommendation
US20230084466A1
Recommendation method, recommendation model training method, and related product
WO2023011382A1
