Migration object generation and object recommendation method and device for target platform
By training the preset encoding model to generate a vector generation model, and using the user behavior data of the reference platform to generate migration objects for the new platform, it solves the accuracy and real-time problems of the new platform recommendation system in the cold start phase and improves the user experience.
Patent Information
- Application Number
- CN202011627705.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In the early stages of the launch of the new platform, the recommendation system lacked user behavior data, making it difficult to make accurate recommendations, resulting in poor pertinence and low accuracy of recommendations, affecting user experience.
By obtaining the low-dimensional dense vectors and inverse semantics of the reference platform, the preset encoding model is trained to generate a vector generation model, which is used to generate migration objects for the target platform to achieve accurate recommendations.
In the early stages of the launch of the new platform, accurate recommendations can be achieved to solve the cold start problem, improve user experience, and ensure the real-time and accuracy of recommendations.
Smart Images

Figure CN112598483B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, computer equipment and readable storage medium for generating migration objects and recommending objects for a target platform. Background Art
[0002] There are many recommendation models for recommendation systems, but they all face the problem of cold start, that is, when users do not have any behavioral interactions with objects such as products at the beginning of a platform's launch, the recommendation system does not know how to make corresponding recommendations to users on the platform because it does not know the user's preferences. At this time, traditional solutions often recommend some hot topics to users, or ask users for their preferences in advance, let users choose their own tags, and then recommend users based on the tag group. After accumulating a certain amount of user behavior, the recommendation system will model based on user behavior to achieve more accurate user recommendations. This accumulation process takes some time, sometimes even up to several months. During this accumulation process, the recommendation system of the new platform often finds it difficult to make accurate recommendations, making the recommended objects less targeted and less accurate, which has a greater impact on user experience. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment and readable storage medium for generating migration objects and recommending objects for a target platform, which can accurately recommend the target platform in the early stage of the launch of the relevant online platform, in response to the above technical problems.
[0004] A method for generating a migration object of a target platform, the method comprising:
[0005] Acquire various reference vectors used by the reference platform when making object recommendations; wherein the reference vector is a low-dimensional dense vector generated by the recommendation system of the reference platform according to user behavior during the operation of the reference platform;
[0006] A preset coding model is trained according to each reference vector and the inverse semantics corresponding to each reference vector to obtain a vector generation model; wherein the preset coding model is used to generate a low-dimensional dense vector of the input object; and the inverse semantics is the semantics obtained by reverse deduction based on the corresponding reference vector;
[0007] Each platform object provided by the target platform is input into the vector generation model to obtain a target vector corresponding to each platform object, and each target vector is determined as a migration object of the target platform for the recommendation system of the target platform to perform object recommendation; wherein the target platform is of the same type as the reference platform.
[0008] In one of the embodiments, the presetting the coding model according to the reference vectors and the semantics corresponding to the reference vectors to obtain the vector generation model comprises:
[0009] Input each inverse semantics into the preset coding model, and obtain output vectors respectively obtained by the preset coding model for each inverse semantics;
[0010] When the process of obtaining the output vector by the preset coding model reaches a preset training standard, the vector generation model is determined according to the current model parameters of the preset coding model.
[0011] As an embodiment, the preset coding model includes a bidirectional coding representation model and a fully connected layer; the step of inputting each inverse semantics into the preset coding model and obtaining output vectors obtained by the preset coding model for each inverse semantics includes:
[0012] Input each reverse semantics into the bidirectional coding representation model, and obtain the coding vectors respectively output by the bidirectional coding representation model for each reverse semantics;
[0013] The encoding vector is input into a fully connected layer for fitting to obtain an output vector; wherein the dimension of the output vector is the same as the dimension of the reference vector.
[0014] Specifically, the fully connected layer includes a first fully connected layer and a second fully connected layer; inputting the encoded vector into the fully connected layer for fitting to obtain an output vector includes:
[0015] Inputting the encoding vector into the first fully connected layer for first fitting to obtain an initial fitting vector;
[0016] The initial fitting vector is input into the second fully connected layer for a second fitting to obtain an output vector, so that the dimension of the output vector is equal to the dimension of the reference vector.
[0017] As an embodiment, when the process of obtaining the output vector by the preset coding model reaches a preset training standard, before determining the vector generation model according to the current model parameters of the preset coding model, the method further includes:
[0018] Dividing the reference vectors and the inverse semantics corresponding to the reference vectors into a training set and a validation set;
[0019] Using the training set to train the preset coding model to obtain an initial coding model, obtaining a loss function of the initial coding model, and obtaining a training loss function;
[0020] In the process of inputting the inverse semantics of the verification set into the initial coding model for vector output, obtaining a current loss function to obtain a verification loss function;
[0021] After the training loss function converges, when the verification loss function and the training loss function take equal values, it is determined that the process of obtaining the output vector by the preset coding model meets the preset training standard.
[0022] In one of the embodiments, before obtaining each reference vector used by the reference platform when performing object recommendation, the method further includes:
[0023] Reading each user behavior detected within a set time period on the reference platform to generate a behavior sequence; wherein the behavior sequence records the operation objects of each user on the reference platform and the associations between the operation objects;
[0024] The behavior sequence is input into a vector coding model to obtain a reference vector used by the recommendation system of the reference platform when performing object recommendation.
[0025] Specifically, the vector encoding model is an item2vec model.
[0026] A device for generating a migration object of a target platform, the device comprising:
[0027] An acquisition module, used to acquire each reference vector used by the reference platform when recommending an object; wherein the reference vector is a low-dimensional dense vector generated by the recommendation system of the reference platform according to user behavior during the operation of the reference platform;
[0028] A training module, used to train a preset coding model according to each reference vector and the reverse semantics corresponding to each reference vector to obtain a vector generation model; wherein the preset coding model is used to generate a low-dimensional dense vector of the input object; and the reverse semantics is the semantics obtained by reverse deduction based on the corresponding reference vector;
[0029] The determination module is used to input each platform object provided by the target platform into the vector generation model to obtain the target vector corresponding to each platform object, and determine each target vector as the migration object of the target platform for the recommendation system of the target platform to perform object recommendation.
[0030] A method for recommending an object on a target platform, the method comprising:
[0031] Generate a migration object for the target platform by using the migration object generation method for the target platform described in any of the above embodiments;
[0032] The migration object is imported into a target recommendation system, so that the target recommendation system recommends the object on the target platform; wherein the target recommendation system is a recommendation system of the target platform.
[0033] In one embodiment, importing the migration object into a target recommendation system so that the target recommendation system performs object recommendation on the target platform includes:
[0034] Importing the migration object into a target recommendation system so that the target recommendation system reads each target vector;
[0035] Acquire the user selection object currently received by the target platform, and use the target recommendation system to generate a current operation vector of the user selection object; wherein the current operation vector is a low-dimensional dense vector generated by the target recommendation system for the user selection object;
[0036] In the target recommendation system, a recommended object is determined according to the current operation vector and the target vector.
[0037] Specifically, determining the recommended object according to the current operation vector and the target vector includes:
[0038] Searching for a vector in the target vector whose Euclidean distance with the current operation vector is less than a set distance, to obtain a recommended vector;
[0039] The platform object corresponding to the recommendation vector is determined as the recommended object.
[0040] Specifically, after determining the platform object corresponding to the recommendation vector as the recommendation object, the method further includes:
[0041] If there are multiple recommended vectors, respectively obtain the Euclidean distance between each recommended vector and the current operation vector;
[0042] According to the Euclidean distance between each recommendation vector and the current operation vector, the recommendation objects corresponding to each recommendation vector are sorted in ascending order;
[0043] The recommended objects are recommended on the target platform according to the arrangement order of the recommended objects.
[0044] An object recommendation device for a target platform, the device comprising:
[0045] A migration object generation module, used by the migration object generation device for the target platform described in any of the above embodiments to generate a migration object for the target platform;
[0046] The object recommendation module is used to import the migration object into a target recommendation system so that the target recommendation system can make object recommendations on the target platform; wherein the target recommendation system is a recommendation system of the target platform.
[0047] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for generating a migration object for a target platform in any of the above embodiments or the method for recommending an object for a target platform in any of the above embodiments is implemented.
[0048] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for generating a migration object for a target platform in any of the above embodiments, or an object recommendation method for a target platform in any of the above embodiments.
[0049] The above-mentioned target platform migration object generation, object recommendation method, device, computer equipment and readable storage medium obtain various reference vectors used by the reference platform when recommending objects, and train a preset coding model according to the various reference vectors and the reverse semantics corresponding to each reference vector to obtain a vector generation model. The various platform objects provided by the target platform are input into the vector generation model to obtain the target vectors corresponding to each platform object, so as to determine each target vector as the migration object of the target platform for the recommendation system of the target platform to recommend objects, so that the target platform can realize the accurate recommendation of platform objects such as goods and / or services provided by the platform in the early stage of going online, solve the cold start problem faced by the target platform, and enable the recommendation system of the target platform to perform accurate and effective real-time recommendations in the cold start stage, thereby perfectly transitioning the cold start stage and improving the user experience brought by the target platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a flow chart of a method for generating a migration object of a target platform in one embodiment;
[0051] Figure 2 A schematic diagram of a working process of a preset coding model in an embodiment;
[0052] Figure 3 It is a structural block diagram of a migration object generating device of a target platform in one embodiment;
[0053] Figure 4 A schematic diagram of a flow chart of an object recommendation method for a target platform in one embodiment;
[0054] Figure 5 It is a structural block diagram of an object recommendation device for a target platform in one embodiment;
[0055] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0058] The target platform migration object generation method and / or the target platform object recommendation method provided in the present application can be applied to the intelligent terminal running the target platform. The above-mentioned intelligent terminal can obtain each reference vector used by the reference platform when recommending objects, and train the preset coding model according to each reference vector and the reverse semantics corresponding to each reference vector to obtain a vector generation model, and then input each platform object provided by the target platform into the vector generation model to obtain the target vectors corresponding to each platform object, so as to determine each target vector as the migration object of the target platform, and provide the target platform recommendation system for object recommendation, so that the target platform can realize the accurate recommendation of platform objects such as goods and / or services provided by the platform in the early stage of going online, solve the cold start problem faced by the target platform, and improve the user experience corresponding to the target platform. Among them, the reference platform is an online platform with enough user behavior data accumulated to enable the recommendation system therein to make accurate recommendations for various operation behaviors of users on the platform, and the type is the same as the target platform, such as a government affairs handling platform in a certain area or an online shopping platform, etc. The target platform is an online platform to be launched or just launched, such as a government affairs handling platform that needs to be introduced in a certain area or a shopping platform that a company needs to launch, etc. The above-mentioned smart terminal can communicate with other smart terminals through the network. For example, the smart terminal can obtain various reference vectors used by the reference platform when recommending objects from other smart terminals, execute the above-mentioned target platform migration object generation method, obtain the target platform migration object, so as to provide the target platform recommendation system running the smart terminal with object recommendation or send the target platform migration object to other smart terminals so that the target platform running other smart terminals can perform object recommendation, etc. The smart terminal running the above-mentioned target platform migration object generation method and / or target platform object recommendation method can be, but is not limited to, various personal computers, laptops, smart phones or tablet computers.
[0059] In one embodiment, Figure 1As shown, a method for generating a migration object of a target platform is provided, and the method is applied to an intelligent terminal running the target platform as an example for explanation, and includes the following steps:
[0060] S10, obtaining various reference vectors used by the reference platform when making object recommendations; wherein the reference vector is a low-dimensional dense vector generated by the recommendation system of the reference platform according to user behavior during the operation of the reference platform.
[0061] Specifically, the type of the reference platform is the same as that of the target platform, that is, they are online platforms of the same type. Normally, the reference platform has accumulated enough user behavior data to enable its recommendation system to make accurate recommendations for various user operations on the platform. For example, if the target platform is a government affairs processing platform that needs to be introduced in a certain area, the reference platform can be a government affairs processing platform that has been running for a period of time in other areas and handles the same type of business as the target platform. The reference platform can read the business object selected by the user on the platform and make accurate recommendations on the business object that the user needs to handle next; if the target platform is a shopping platform that a company needs to go online, the reference platform can be an online platform that sells the same type of goods as the target platform. The reference platform can read the goods entered or selected by the user on the platform and make accurate recommendations on the goods that the user may need to buy next.
[0062] S20, training a preset coding model according to each reference vector and the inverse semantics corresponding to each reference vector to obtain a vector generation model; wherein, the preset coding model is used to generate a low-dimensional dense vector of the input object; and the inverse semantics are semantics obtained by reverse deduction based on the corresponding reference vector.
[0063] The above-mentioned reverse semantics can be reversely deduced by the relevant semantic detection model based on the reference vector, and each reference vector has corresponding feedback semantics. Relative to the reference platform, the feedback semantics of a reference vector is the object name corresponding to the reference vector on the reference platform.
[0064] The above-mentioned preset coding model can be a simple two-layer neural network, which can specifically include a BERT model and a model of multiple fully connected layers. The vector generation model obtained by training the preset coding model with each reference vector and the inverse semantics corresponding to each reference vector can generate low-dimensional dense vectors (target vectors) corresponding to each platform object provided by the target platform according to the generation rules from each platform object (inverse semantics) provided by the reference platform to the corresponding low-dimensional dense vector (reference vector).
[0065] S30, inputting each platform object provided by the target platform into the vector generation model to obtain the target vector corresponding to each platform object, and determining each target vector as a migration object of the target platform for the recommendation system of the target platform to perform object recommendation; wherein the target platform is of the same type as the reference platform.
[0066] In actual use, although the reference platform and the target platform are of the same type, there may be differences in the descriptions of the same thing on the two platforms of the same type. Taking the government affairs processing platform as an example, the name of the item for reissuing an ID card on a certain government affairs processing platform is "reissuing an ID card", while the name of the item for reissuing an ID card on another government affairs processing platform may be "reissuing an ID card". In this way, if the reference vector used by the reference platform is directly used on the target platform to recommend platform objects in the target platform, inaccurate recommendation results may occur. This embodiment trains a preset encoding model based on the reference vector of the reference platform and the inverse semantics obtained by inversely inferring the reference vector to obtain a vector generation model, so that the vector generation model can generate low-dimensional dense vectors corresponding to each platform object provided by the target platform according to the generation rules from each platform object (inverse semantics) provided by the reference platform to the corresponding low-dimensional dense vector (reference vector), so as to obtain the target vector required for the target platform to recommend objects, so that the recommendation system of the target platform can use the target vector to perform accurate object recommendation.
[0067] The above-mentioned method for generating migration objects of the target platform obtains each reference vector used by the reference platform when recommending objects, and obtains a vector generation model based on each reference vector and the reverse semantic training corresponding to each reference vector. Each platform object provided by the target platform is input into the vector generation model to obtain the target vector corresponding to each platform object, so as to determine each target vector as the migration object of the target platform for the recommendation system of the target platform to recommend objects, so that the target platform can realize the accurate recommendation of platform objects such as goods and / or services provided by the platform in the early stage of going online, solve the cold start problem faced by the target platform, and enable the recommendation system of the target platform to perform accurate and effective real-time recommendations in the cold start stage, thereby perfectly transitioning the cold start stage and improving the user experience brought by the target platform.
[0068] In one embodiment, the training of a preset coding model according to each reference vector and the semantics corresponding to each reference vector to obtain a vector generation model includes:
[0069] Input each inverse semantics into the preset coding model, and obtain output vectors respectively obtained by the preset coding model for each inverse semantics;
[0070] When the process of obtaining the output vector by the preset coding model reaches a preset training standard, the vector generation model is determined according to the current model parameters of the preset coding model.
[0071] The above-mentioned training standards can be set according to the characteristics of a preset coding model, such as being set to the corresponding loss function convergence or satisfying other conditions. The vector generation model determined when the process of obtaining the output vectors for each inverse semantics of the preset coding model reaches the preset training standard can generate the target vector required for the target platform according to the generation rules of the reference vector in the reference platform.
[0072] As an embodiment, the preset coding model includes a bidirectional coding representation model and a fully connected layer; the step of inputting each inverse semantics into the preset coding model and obtaining output vectors obtained by the preset coding model for each inverse semantics includes:
[0073] Input each reverse semantics into the bidirectional coding representation model, and obtain the coding vectors respectively output by the bidirectional coding representation model for each reverse semantics;
[0074] The encoding vector is input into a fully connected layer for fitting to obtain an output vector; wherein the dimension of the output vector is the same as the dimension of the reference vector.
[0075] Specifically, the fully connected layer includes a first fully connected layer and a second fully connected layer; inputting the encoded vector into the fully connected layer for fitting to obtain an output vector includes:
[0076] Inputting the encoding vector into the first fully connected layer for first fitting to obtain an initial fitting vector;
[0077] The initial fitting vector is input into the second fully connected layer for a second fitting to obtain an output vector, so that the dimension of the output vector is equal to the dimension of the reference vector.
[0078] The above-mentioned bidirectional encoding representation model can be a BERT model (Bidirectional Encoder Representations from Transformers, a bidirectional encoding representation model based on transformers). Preferably, the bidirectional encoding representation model can adopt a more streamlined BERT Small model, which has an effectively simplified structure relative to BERT Base. In the process of training the preset encoding model, the short text representing the reverse semantics can be passed into the BERT Small model, the CLS vector is obtained, and the fully connected layer thereof is used for downstream task training, so that the required vector generation model can be obtained.
[0079] In one example, the working process of the preset coding model can refer to Figure 2 As shown, Figure 2 As shown, the size of the output vector of each part of the preset coding model can be set, and the corresponding training process may include: feeding each reverse semantics into the BERT Small model, the BERT Small model generates a 256*1 encoding vector for each reverse semantics, inputting the 256*1 encoding vector into the first fully connected layer, performing a 128-dimensional dense fully connected hidden layer fitting in this layer, and obtaining a 128*1 initial fitting vector, and then inputting the 128*1 initial fitting vector into the second fully connected layer for fitting again, and obtaining a 50*1 output vector, so that the preset coding model can output a 50-dimensional embedding vector (low-dimensional dense vector) corresponding to each reverse semantics.
[0080] As an embodiment, when the process of obtaining the output vector by the preset coding model reaches a preset training standard, before determining the vector generation model according to the current model parameters of the preset coding model, it also includes:
[0081] Dividing the reference vectors and the inverse semantics corresponding to the reference vectors into a training set and a validation set;
[0082] Using the training set to train the preset coding model to obtain an initial coding model, obtaining a loss function of the initial coding model, and obtaining a training loss function;
[0083] In the process of inputting the inverse semantics of the verification set into the initial coding model for vector output, obtaining a current loss function to obtain a verification loss function;
[0084] After the training loss function converges, when the verification loss function and the training loss function take equal values, it is determined that the process of obtaining the output vector by the preset coding model meets the preset training standard.
[0085] This embodiment can accurately determine whether the preset encoding model has been trained, so that the determined vector generation model can generate the required low-dimensional dense vectors for various platform objects according to corresponding rules.
[0086] In one embodiment, before obtaining each reference vector used by the reference platform when performing object recommendation, the method further includes:
[0087] Reading each user behavior detected within a set time period on the reference platform to generate a behavior sequence; wherein the behavior sequence records the operation objects of each user on the reference platform and the associations between the operation objects;
[0088] The behavior sequence is input into a vector coding model to obtain a reference vector used by the recommendation system of the reference platform when performing object recommendation.
[0089] The above-mentioned set time period can be set according to the type of reference platform, for example, it can be set to a time period within half a year before the time point when the required reference vector is generated.
[0090] Specifically, the above-mentioned vector encoding model may be an item2vec model, and the item2vec model may be pre-trained.
[0091] When the vector encoding model can be an item2vec model, the recommendation system in the reference platform is essentially a vector similarity recommendation model based on item2vec. In actual use, after the recommendation system of the reference platform goes online, it will collect enough user behavior interaction data, convert the user behavior interaction data into a behavior sequence, and perform embedding modeling on objects such as items in the behavior sequence. According to the item2vec modeling principle, items that users tend to interact with at the same time will also have similarities in the embedding vector. Therefore, when the recommendation system of the reference platform performs a recommendation task, it can find a set of the most similar items that have not been interacted with through the objects that the user has interacted with before for recommendation.
[0092] In one example, the government affairs handling platform of a provincial project is used as a reference platform to explain in detail the process of generating migration objects for the corresponding target platform. In this government affairs handling platform, 5 months of user government affairs handling records can be accumulated, and the interaction data between all users and handling items during this period can be extracted to generate a behavior sequence of each user who has interacted with the available items within 5 months. Examples of behavior sequences may include: $userid:['reissue ID card', 'reissue social security card', ...]. Next, the initial item2vec model is used to test the relevant sequences and debug parameters and modeling to obtain the required item2vec model pair, so that the item2vec model can map the names of all available items into a 50-dimensional low-dimensional dense vector for the corresponding government affairs handling platform to recommend items.
[0093] Compared with the above-mentioned reference platform, the target platform of the same type of government affairs processing platform that is newly launched or to be launched may not have completely consistent expressions for the same matter. For example, "renewal of ID card" and "renewal of ID card" can both represent the matter of users renewing their ID cards. Although "renewal of ID card" and "renewal of ID card" have the same meaning in the text, these two expressions cannot obtain the same vector expression in the item2vec model. To address this problem, this example compresses the 50-dimensional matter vector to 2 dimensions using the t-SNE algorithm (a dimensionality reduction algorithm that extracts low-dimensional features from high-dimensional vectors) to visualize the trained matter vectors. The visualized vector visualization shows that the matter relationships of the accountant qualification examination (upper left) are very dense, as are matters related to motor vehicle driver's licenses, matters related to laws and regulations, matters related to household registration, and matters related to provident funds. It can be found that these matter vectors trained from user behavior sequences are also highly semantically related to related matters. Therefore, this example uses the pre-trained model of bert small to produce Figure 2 As shown, the preset encoding model includes two layers of neural network. Figure 2 As shown, the item name of the reference platform is fed into BertSmall, and the CLS vector in the result vector of BertSmall is taken out to obtain a 256*1 vector (encoded vector); then this layer is fitted with a 128-dimensional dense fully connected hidden layer to obtain a 128*1 initial fitting vector, followed by a 50*1 fully connected output layer to obtain a 50*1 output vector. The activation function of the hidden layer can use ReLU. The optimization target of the preset encoding model is the cosine similarity between the 50-dimensional reference vector trained by item2vec and the 50-dimensional vector output by BertSmall+2 layers of full connection. In other words, the text semantics contained in the pre-trained language model can be used to extract some information so that it can be mapped to a vector that can be used for recommendation. The input of this model will be the name of the recommended item (such as the inverse semantics of the reference vector), and the output will be a 50-dimensional embedding vector (such as the reference vector). The vector similarity of the items that users tend to click on will be very close, so as to determine the required vector generation model and obtain the target vectors of each platform object in the target platform, so as to determine the migration object of the target platform. In this way, the migration representation of item2vec in the recommendation system is completed at a low cost. Next, the recommendation system of the target platform can read the business selected by the user in real time, generate the embedding vector of the selected business, and make real-time recommendations based on the embedding vector of the selected business and the migration object.
[0094] This example makes full use of the pre-trained language model to mine the relevance of descriptions of platform objects such as recommended items, and mines out the relevance vector representation used for recommendation, so that the target platform can make accurate recommendations in the early stage of launch, so that the target platform can perfectly transition to the cold start stage and make more effective real-time recommendations in the cold start stage.
[0095] In one embodiment, Figure 3 As shown, a migration object generation device for a target platform is provided, comprising:
[0096] An acquisition module 10 is used to acquire various reference vectors used by the reference platform when recommending objects; wherein the reference vector is a low-dimensional dense vector generated by the recommendation system of the reference platform according to user behavior during the operation of the reference platform;
[0097] The training module 20 is used to train a preset coding model according to each reference vector and the reverse semantics corresponding to each reference vector to obtain a vector generation model; wherein the preset coding model is used to generate a low-dimensional dense vector of the input object; and the reverse semantics is the semantics obtained by reverse deduction based on the corresponding reference vector;
[0098] The determination module 30 is used to input each platform object provided by the target platform into the vector generation model to obtain the target vector corresponding to each platform object, and determine each target vector as the migration object of the target platform for the recommendation system of the target platform to perform object recommendation.
[0099] In one embodiment, the training module includes:
[0100] An output vector acquisition module, used for inputting each reverse semantics into the preset coding model, and acquiring output vectors respectively obtained by the preset coding model for each reverse semantics;
[0101] The vector generation model determination module is used to determine the vector generation model according to the current model parameters of the preset coding model when the process of obtaining the output vector of the preset coding model reaches a preset training standard.
[0102] As an embodiment, the preset coding model includes a bidirectional coding representation model and a fully connected layer; the output vector acquisition module is further used for:
[0103] Input each reverse semantics into the bidirectional coding representation model, and obtain the coding vectors respectively output by the bidirectional coding representation model for each reverse semantics;
[0104] The encoding vector is input into a fully connected layer for fitting to obtain an output vector; wherein the dimension of the output vector is the same as the dimension of the reference vector.
[0105] Specifically, the fully connected layer includes a first fully connected layer and a second fully connected layer; the output vector acquisition module is further used for:
[0106] Inputting the encoding vector into the first fully connected layer for first fitting to obtain an initial fitting vector;
[0107] The initial fitting vector is input into the second fully connected layer for a second fitting to obtain an output vector, so that the dimension of the output vector is equal to the dimension of the reference vector.
[0108] As an embodiment, the training module further includes:
[0109] A division module, used for dividing the reference vectors and the inverse semantics corresponding to the reference vectors into a training set and a verification set;
[0110] A loss function acquisition module is used to train the preset coding model with the training set to obtain an initial coding model, obtain the loss function of the initial coding model, and obtain a training loss function; in the process of inputting the reverse semantics of the verification set into the initial coding model for vector output, obtain the current loss function and obtain a verification loss function;
[0111] A determination module is used to determine whether the process of obtaining the output vector by the preset coding model meets the preset training standard when the verification loss function and the training loss function take equal values after the training loss function converges.
[0112] In one embodiment, the migration object generating device of the target platform further includes:
[0113] A behavior sequence generation module is used to read each user behavior detected within a set time period of the reference platform and generate a behavior sequence; wherein the behavior sequence records the operation objects of each user on the reference platform and the association between each operation object;
[0114] The reference vector generation module is used to input the behavior sequence into a vector coding model to obtain a reference vector used by the recommendation system of the reference platform when performing object recommendation.
[0115] The specific definition of the migration object generation device of the target platform can be found in the definition of the migration object generation method of the target platform above, which will not be repeated here. Each module in the migration object generation device of the target platform can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0116] In one embodiment, Figure 4 As shown, a method for recommending an object on a target platform is provided, comprising the following steps:
[0117] S600, generating a migration object for a target platform by using the method for generating a migration object for a target platform described in any of the above embodiments;
[0118] S700, importing the migration object into a target recommendation system, so that the target recommendation system recommends the object on the target platform; wherein the target recommendation system is a recommendation system of the target platform.
[0119] The object recommendation method for the above-mentioned target platform adopts the migration object generation method of the above-mentioned target platform to generate the migration object of the target platform, and imports the migration object into the target recommendation system, so that the target recommendation system can perform accurate object recommendation at the initial stage of the target platform going online, so that the target platform can perfectly transition to the cold start stage and perform more effective real-time recommendations in the cold start stage.
[0120] In one embodiment, the importing of the migration object into the target recommendation system so that the target recommendation system performs object recommendation on the target platform includes:
[0121] Import the migration object into the target recommendation system so that the target recommendation system can read each target vector;
[0122] Acquire the user selection object currently received by the target platform, and use the target recommendation system to generate a current operation vector of the user selection object; wherein the current operation vector is a low-dimensional dense vector generated by the target recommendation system for the user selection object;
[0123] In the target recommendation system, a recommended object is determined according to the current operation vector and the target vector.
[0124] Specifically, determining the recommended object according to the current operation vector and the target vector includes:
[0125] Searching for a vector in the target vector whose Euclidean distance with the current operation vector is less than a set distance, to obtain a recommended vector;
[0126] The platform object corresponding to the recommendation vector is determined as the recommended object.
[0127] In actual use, after the target platform is launched, users can input products to the target platform or click on corresponding items on the target platform according to their own needs, so that the target platform can detect the current user-selected object. In this way, the target recommendation system can generate the current operation vector of the user-selected object, and accurately recommend other objects that the user needs to operate next based on the current operation vector. The above-mentioned target recommendation system can include vector encoding models such as item2vec models to accurately generate the required current operation vector for the user-selected object, further ensuring the accuracy of the target platform's object recommendation.
[0128] Preferably, after determining the platform object corresponding to the recommendation vector as the recommendation object, the method further includes:
[0129] If there are multiple recommended vectors, respectively obtain the Euclidean distance between each recommended vector and the current operation vector;
[0130] According to the Euclidean distance between each recommendation vector and the current operation vector, the recommendation objects corresponding to each recommendation vector are sorted in ascending order;
[0131] The recommended objects are recommended on the target platform according to the arrangement order of the recommended objects.
[0132] This embodiment may give priority to recommending the recommended objects that are arranged in front, that is, give priority to recommending platform objects that the user is more likely to need, so as to respond to user needs to the greatest extent possible and further improve the user experience brought by the target platform.
[0133] In one embodiment, Figure 5 As shown, a migration object generation device for a target platform is provided, comprising:
[0134] A migration object generation module 600, used in the migration object generation device for a target platform described in any of the above embodiments to generate a migration object for a target platform;
[0135] The object recommendation module 700 is used to import the migration object into a target recommendation system so that the target recommendation system can perform object recommendation on the target platform; wherein the target recommendation system is a recommendation system of the target platform.
[0136] In one embodiment, the object recommendation module includes:
[0137] A target vector reading module, used for importing the migration object into a target recommendation system so that the target recommendation system reads each target vector;
[0138] An operation vector generation module, used to obtain the user selection object currently received by the target platform, and use the target recommendation system to generate a current operation vector of the user selection object; wherein the current operation vector is a low-dimensional dense vector generated by the target recommendation system for the user selection object;
[0139] The recommended object determination module is used to determine the recommended object according to the current operation vector and the target vector in the target recommendation system.
[0140] Specifically, the above-mentioned recommendation object determination module is further used for:
[0141] Searching for a vector in the target vector whose Euclidean distance with the current operation vector is less than a set distance, to obtain a recommended vector;
[0142] The platform object corresponding to the recommendation vector is determined as the recommended object.
[0143] Specifically, the object recommendation module further includes:
[0144] A Euclidean distance acquisition module, used for respectively acquiring the Euclidean distance between each recommended vector and the current operation vector if there are multiple recommended vectors;
[0145] A recommendation object sorting module, used to sort the recommendation objects corresponding to each recommendation vector in ascending order according to the Euclidean distance between each recommendation vector and the current operation vector;
[0146] The sequential recommendation module is used to recommend each recommended object on the target platform according to the arrangement order of each recommended object.
[0147] For the specific definition of the object recommendation device for the target platform, please refer to the definition of the object recommendation method for the target platform above, which will not be repeated here. The various modules in the above-mentioned object recommendation device for the target platform can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0148] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the migration object generation method for the target platform described in any of the above embodiments or the object recommendation method for the target platform described in any of the above embodiments is implemented.
[0149] Specifically, the internal structure diagram of the above-mentioned computer device can be as follows: Figure 6As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the migration object generation method of the target platform described in any of the above embodiments or the object recommendation method of the target platform described in any of the above embodiments is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0150] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the migration object generation method for the target platform described in any of the above embodiments or the object recommendation method for the target platform described in any of the above embodiments is implemented.
[0152] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0153] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0154] It should be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\third" can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\third" can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0155] The terms "including" and "having" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products, or equipment.
[0156] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0157] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for generating a migration object of a target platform, It is characterized in that include: Acquire each reference vector used by the reference platform when recommending an object; wherein the reference vector is a low-dimensional dense vector generated by the recommendation system of the reference platform according to user behavior during the operation of the reference platform; A preset coding model is trained according to each reference vector and the inverse semantics corresponding to each reference vector to obtain a vector generation model; wherein the preset coding model is used to generate a low-dimensional dense vector of the input object; and the inverse semantics is the semantics obtained by reverse deduction based on the corresponding reference vector; Inputting each platform object provided by the target platform into the vector generation model to obtain the target vectors corresponding to each platform object, and determining each target vector as a migration object of the target platform for the recommendation system of the target platform to perform object recommendation; wherein the target platform is of the same type as the reference platform; The obtaining of the vector generation model according to the reference vectors and the semantics corresponding to the reference vectors comprises: Input each inverse semantics into the preset coding model, and obtain output vectors respectively obtained by the preset coding model for each inverse semantics; When the process of obtaining the output vector by the preset coding model reaches a preset training standard, determining the vector generation model according to the current model parameters of the preset coding model; The preset coding model includes a bidirectional coding representation model and a fully connected layer; the step of inputting each inverse semantics into the preset coding model and obtaining output vectors obtained by the preset coding model for each inverse semantics includes: Input each reverse semantics into the bidirectional coding representation model, and obtain the coding vectors respectively output by the bidirectional coding representation model for each reverse semantics; The encoding vector is input into a fully connected layer for fitting to obtain an output vector; wherein the dimension of the output vector is the same as the dimension of the reference vector.
2. The method according to claim 1, It is characterized in that The fully connected layer includes a first fully connected layer and a second fully connected layer; the inputting the encoding vector into the fully connected layer for fitting to obtain the output vector includes: Inputting the encoding vector into the first fully connected layer for first fitting to obtain an initial fitting vector; The initial fitting vector is input into the second fully connected layer for a second fitting to obtain an output vector, so that the dimension of the output vector is equal to the dimension of the reference vector.
3. The method according to claim 1, It is characterized in that When the process of obtaining the output vector by the preset coding model reaches a preset training standard, before determining the vector generation model according to the current model parameters of the preset coding model, the method further includes: Dividing the reference vectors and the inverse semantics corresponding to the reference vectors into a training set and a validation set; Using the training set to train the preset coding model to obtain an initial coding model, obtaining a loss function of the initial coding model, and obtaining a training loss function; In the process of inputting the inverse semantics of the verification set into the initial coding model for vector output, obtaining the current loss function to obtain the verification loss function; After the training loss function converges, when the verification loss function and the training loss function take equal values, it is determined that the process of obtaining the output vector by the preset coding model meets the preset training standard.
4. The method according to any one of claims 1 to 3, It is characterized in that Before obtaining each reference vector used by the reference platform when performing object recommendation, the method further includes: Reading each user behavior detected within a set time period on the reference platform to generate a behavior sequence; wherein the behavior sequence records the operation objects of each user on the reference platform and the associations between the operation objects; The behavior sequence is input into a vector coding model to obtain a reference vector used by the recommendation system of the reference platform when performing object recommendation.
5. The method according to claim 4, It is characterized in that The vector encoding model is an item2vec model.
6. A migration object generation device for a target platform, It is characterized in that include: An acquisition module, used to acquire each reference vector used by the reference platform when recommending an object; wherein the reference vector is a low-dimensional dense vector generated by the recommendation system of the reference platform according to user behavior during the operation of the reference platform; A training module, used to train a preset coding model according to each reference vector and the reverse semantics corresponding to each reference vector to obtain a vector generation model; wherein the preset coding model is used to generate a low-dimensional dense vector of the input object; and the reverse semantics is the semantics obtained by reverse deduction based on the corresponding reference vector; a determination module, configured to input each platform object provided by the target platform into the vector generation model to obtain a target vector corresponding to each platform object, and determine each target vector as a migration object of the target platform for the recommendation system of the target platform to perform object recommendation, wherein the target platform is of the same type as the reference platform; The obtaining of the vector generation model according to the reference vectors and the semantics corresponding to the reference vectors comprises: Input each inverse semantics into the preset coding model, and obtain output vectors respectively obtained by the preset coding model for each inverse semantics; When the process of obtaining the output vector by the preset coding model reaches a preset training standard, determining the vector generation model according to the current model parameters of the preset coding model; The preset coding model includes a bidirectional coding representation model and a fully connected layer; the step of inputting each inverse semantics into the preset coding model and obtaining output vectors obtained by the preset coding model for each inverse semantics includes: Input each reverse semantics into the bidirectional coding representation model, and obtain the coding vectors respectively output by the bidirectional coding representation model for each reverse semantics; The encoding vector is input into a fully connected layer for fitting to obtain an output vector; wherein the dimension of the output vector is the same as the dimension of the reference vector.
7. A method for recommending objects on a target platform, It is characterized in that include: Generate a migration object for a target platform using the method for generating a migration object for a target platform as described in any one of claims 1 to 5; The migration object is imported into a target recommendation system, so that the target recommendation system recommends the object on the target platform; wherein the target recommendation system is a recommendation system of the target platform.
8. The method according to claim 7, It is characterized in that The step of importing the migration object into the target recommendation system so that the target recommendation system performs object recommendation on the target platform includes: Importing the migration object into a target recommendation system so that the target recommendation system reads each target vector; Acquire the user selection object currently received by the target platform, and use the target recommendation system to generate a current operation vector of the user selection object; wherein the current operation vector is a low-dimensional dense vector generated by the target recommendation system for the user selection object; In the target recommendation system, a recommended object is determined according to the current operation vector and the target vector.
9. The method according to claim 8, It is characterized in that The determining the recommended object according to the current operation vector and the target vector comprises: Searching for a vector in the target vector whose Euclidean distance with the current operation vector is less than a set distance, to obtain a recommended vector; The platform object corresponding to the recommendation vector is determined as the recommended object.
10. The method according to claim 9, It is characterized in that After determining the platform object corresponding to the recommendation vector as the recommendation object, the method further includes: If there are multiple recommended vectors, respectively obtain the Euclidean distance between each recommended vector and the current operation vector; According to the Euclidean distance between each recommendation vector and the current operation vector, the recommendation objects corresponding to each recommendation vector are sorted in ascending order; The recommended objects are recommended on the target platform according to the arrangement order of the recommended objects.
11. An object recommendation device for a target platform, It is characterized in that include: A migration object generation module, used to generate a migration object of a target platform using the migration object generation device of a target platform according to claim 6; The object recommendation module is used to import the migration object into a target recommendation system so that the target recommendation system can make object recommendations on the target platform; wherein the target recommendation system is a recommendation system of the target platform.
12. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method for generating a migration object for a target platform according to any one of claims 1 to 5 or the method for recommending an object for a target platform according to any one of claims 7 to 10 is implemented.
13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for generating a migration object for a target platform according to any one of claims 1 to 5 or the method for recommending an object for a target platform according to any one of claims 7 to 10 is implemented.
Citation Information
Patent Citations
Text matching method and device based on transfer learning, medium and equipment
CN110377714A
Multi-behavior migration recommendation method based on deep learning
CN110910218A
Medical migration scheme recommendation method and system based on similarity learning
CN111061700A
Converting a first acquired data subset to a second acquired data subset
US20130265852A1
