Training method and device for dual-target domain recommendation model
By determining the user representation data and project representation data of shared users based on interactive data in the dual-target domain, and data conversion and fusion are performed through a trainable orthogonal mapping matrix, the dual-target domain recommendation model is obtained by using machine learning methods, solving the problem of one-way migration in the existing technology, and achieving the accuracy of bidirectional migration between the dual-target domains and improving the accuracy of the recommended results.
Patent Information
- Application Number
- CN202211686837.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-12-26
AI Technical Summary
The existing cross-domain recommendation methods only focus on one-way migration of the target domain performance with the help of auxiliary domain data, resulting in the benefit of one party of the target domain, while the auxiliary domain fails to obtain corresponding benefits, and there is a problem of data sparseness.
A training method for a dual-object domain recommendation model is proposed. By determining the user representation data and project representation data of common users based on interactive data in the dual-object domain, and data conversion and fusion are carried out through a trainable orthogonal mapping matrix, the dual-object domain recommendation model is obtained by using machine learning methods.
Two-way data migration between two-target domains is achieved, which solves the problem of data sparseness in each target domain, ensures that both corporate users can benefit from the data migration process, and improves the accuracy of recommended results.
Smart Images

Figure CN116415064B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of artificial intelligence technology, specifically to deep learning technology, and more particularly to a training method and device for a dual-target domain recommendation model, and a dual-target domain recommendation method and device. Background Art
[0002] Recommendation systems help alleviate the problem of information overload. Collaborative filtering methods are widely used techniques in modern recommendation systems. They can effectively learn embedded representations of users and items and make recommendations based on these embedded representations. However, these methods are plagued by the problem of data sparsity to a certain extent, making it difficult to accurately and effectively model user preferences, resulting in a sharp decline in the quality of recommendations. CDR (Cross Domain Recommendation) technology has recently been widely studied to alleviate the problem of data sparsity. It uses data in the auxiliary domain to improve the recommendation performance of the target domain. However, existing cross-domain recommendation methods only focus on one-way migration to improve the performance of the target domain with the help of auxiliary domain data, and there is a problem that only the target domain benefits. Summary of the invention
[0003] The embodiments of the present application provide a dual-target domain recommendation model training method and device, a dual-target domain recommendation method and device, a computer-readable medium, and an electronic device.
[0004] In a first aspect, an embodiment of the present application provides a training method for a dual-target domain recommendation model. For each target domain in the dual target domains, the following training operations are performed: based on the interaction data between the common users in the common user set and the items in the item set corresponding to the dual target domains, the user representation data of the common users and the item representation data of the items in the target domain are determined; the user representation data in the target domain is converted to another target domain to obtain the converted user representation data corresponding to the target domain; the user representation data in the target domain representing the same common user is fused with the converted user representation data corresponding to another target domain to obtain the fused user representation data; a machine learning method is adopted, with the fused user representation data and the item representation data as input, and a label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train and obtain the dual-target domain recommendation model.
[0005] In some examples, the above-mentioned converting the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain includes: converting the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain the converted user representation data corresponding to the target domain.
[0006] In some examples, the above method also includes: after each iterative operation in the training process of the dual-target domain recommendation model, obtaining the orthogonal mapping matrix corresponding to the next iterative operation of the dual-target domain according to the orthogonal mapping matrix in the target domain and the orthogonal mapping matrix in another target domain.
[0007] In some examples, the above-mentioned converting the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain the converted user representation data corresponding to the target domain includes: converting the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; using local differential privacy technology to process the initial converted user representation data to obtain the converted user representation data.
[0008] In some examples, the above-mentioned fusing the user representation data in the target domain representing the same shared user with the converted user representation data corresponding to another target domain to obtain the fused user representation data includes: determining a gated selection vector according to the similarity between the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain through a trainable embedding fusion module; and fusing the user representation data in the target domain representing the same shared user with the converted user representation data corresponding to another target domain according to the gated selection vector to obtain the fused user representation data.
[0009] In some examples, the above-mentioned fusing the user representation data in the target domain representing the same shared user with the converted user representation data corresponding to another target domain according to the gated selection vector to obtain the fused user representation data includes: performing weighted summation of the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain according to the gated selection vector to obtain the fused user representation data.
[0010] In some examples, the above-mentioned machine learning method uses fused user representation data and project representation data as input, and takes labels representing whether there is interaction between common users corresponding to the input fused user representation data and projects corresponding to the input project representation data as expected output, to train a dual-target domain recommendation model, including: predicting the interaction probability between common users corresponding to the fused user representation data and projects corresponding to the project representation data based on the fused user representation data and the project representation data; determining the loss between the interaction probability and the label through the objective function according to the interaction probability, the label and a preset normalization parameter; and training the dual-target domain recommendation model based on the loss.
[0011] In some examples, the above-mentioned interaction data is an interaction matrix that characterizes the interaction between common users in the common user set and projects in the project set; and the above-mentioned interaction data between common users in the common user set corresponding to the dual target domains and projects in the project set is used to determine the user representation data of common users and the project representation data of projects in the target domain, including: using matrix decomposition to determine the user representation data of common users and the project representation data of projects in the target domain based on the interaction matrix.
[0012] In the second aspect, an embodiment of the present application provides a dual-target domain recommendation method, which performs the following recommendation operations for each target domain in the dual target domains: determining the user representation data of the target common users and the project representation data of the projects based on the interaction data between the target common users corresponding to the dual target domains and the projects in the project set; converting the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain; fusing the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain the fused user representation data; and determining the projects to be recommended for the target common users based on the fused user representation data and project representation data through the trained dual-target domain recommendation model.
[0013] In some examples, the above-mentioned converting the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain includes: converting the user representation data in the target domain to another target domain through an orthogonal mapping matrix trained in a dual-target domain recommendation model to obtain the converted user representation data corresponding to the target domain.
[0014] In some examples, the above-mentioned orthogonal mapping matrix trained in the dual-target domain recommendation model is used to convert the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain, including: converting the user representation data in the target domain to another target domain through an orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; using local differential privacy technology to process the initial converted user representation data to obtain the converted user representation data.
[0015] In some examples, the above-mentioned fusing the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain the fused user representation data includes: determining a gating selection vector according to the user representation data in the target domain and the converted user representation data corresponding to another target domain through an embedded fusion module trained in a dual-target domain recommendation model; and fusing the user representation data in the target domain with the converted user representation data corresponding to another target domain according to the gating selection vector to obtain the fused user representation data.
[0016] In some examples, the above-mentioned fusing the user representation data in the target domain with the converted user representation data corresponding to another target domain according to the gate selection vector to obtain the fused user representation data includes: performing weighted summation of the user representation data in the target domain and the converted user representation data corresponding to another target domain according to the gate selection vector to obtain the fused user representation data.
[0017] In some examples, the above-mentioned trained dual-target domain recommendation model determines the items to be recommended for the target common user based on the fused user representation data and item representation data, including: predicting the interaction probability between the target common user and the items represented by the item representation data based on the fused user representation data and item representation data; determining the items to be recommended for the target common user based on the interaction probability.
[0018] In some examples, the above-mentioned determining the user representation data of the target common users and the project representation data of the projects based on the interaction data between the target common users and the projects in the project set corresponding to the dual target domains includes: using matrix decomposition to determine the user representation data of the target common users and the project representation data of the projects in the target domain based on the interaction matrix, wherein the interaction matrix represents the interaction data between the common users in the common user set corresponding to the dual target domains and the projects in the project set.
[0019] In a third aspect, an embodiment of the present application provides a training device for a dual-target domain recommendation model. For each target domain in the dual target domains, a training operation is performed by the following units: a first determination unit is configured to determine user representation data of common users and item representation data of items in the target domain based on interaction data between common users in a common user set corresponding to the dual target domains and items in an item set; a first obtaining unit is configured to convert the user representation data in the target domain to another target domain to obtain converted user representation data corresponding to the target domain; a second obtaining unit is configured to fuse the user representation data in the target domain representing the same common user with the converted user representation data corresponding to another target domain to obtain fused user representation data; a training unit is configured to adopt a machine learning method, with the fused user representation data and item representation data as input, and a label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train and obtain the dual-target domain recommendation model.
[0020] In some examples, the first obtaining unit is further configured to: convert the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain converted user representation data corresponding to the target domain.
[0021] In some examples, the above-mentioned device also includes: a matrix updating unit, which is configured to obtain an orthogonal mapping matrix corresponding to the next iterative operation of the dual target domains according to the orthogonal mapping matrix in the target domain and the orthogonal mapping matrix in another target domain after each iterative operation in the training process of the dual target domain recommendation model.
[0022] In some examples, the first obtaining unit is further configured to: convert the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; and use local differential privacy technology to process the initial converted user representation data to obtain converted user representation data.
[0023] In some examples, the second obtaining unit is further configured to: determine a gated selection vector according to the similarity between the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain through a trainable embedding fusion module; and fuse the user representation data in the target domain representing the same shared user with the converted user representation data corresponding to another target domain according to the gated selection vector to obtain fused user representation data.
[0024] In some examples, the second obtaining unit is further configured to: perform weighted summation of the user representation data in the target domain representing the same common user and the converted user representation data corresponding to another target domain according to the gated selection vector to obtain fused user representation data.
[0025] In some examples, the training unit is further configured to: predict the interaction probability between the common users corresponding to the fused user representation data and the items corresponding to the item representation data based on the fused user representation data and the item representation data; determine the loss between the interaction probability and the label based on the objective function, the interaction probability, the label and a preset normalization parameter; and train a dual-target domain recommendation model based on the loss.
[0026] In some examples, the interaction data is an interaction matrix that characterizes the interaction between common users in a common user set and projects in a project set; and the first determination unit is further configured to: determine the user representation data of common users and the project representation data of projects in the target domain based on the interaction matrix by matrix decomposition.
[0027] In a fourth aspect, an embodiment of the present application provides a dual-target domain recommendation device, which performs a recommendation operation for each target domain in the dual target domains through the following units: a second determination unit is configured to determine the user representation data of the target common user and the project representation data of the project based on the interaction data between the target common user corresponding to the dual target domains and the projects in the project set; a third obtaining unit is configured to convert the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain; a fourth obtaining unit is configured to fuse the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain the fused user representation data; a recommendation unit is configured to determine the to-be-recommended projects of the target common user based on the fused user representation data and project representation data through the trained dual-target domain recommendation model.
[0028] In some examples, the third obtaining unit is further configured to: convert the user representation data in the target domain to another target domain through the orthogonal mapping matrix trained in the dual-target domain recommendation model, and obtain the converted user representation data corresponding to the target domain.
[0029] In some examples, the third obtaining unit is further configured to: convert the user representation data in the target domain to another target domain through an orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; and use local differential privacy technology to process the initial converted user representation data to obtain converted user representation data.
[0030] In some examples, the fourth obtaining unit is further configured to: determine a gating selection vector according to the user representation data in the target domain and the converted user representation data corresponding to another target domain through an embedded fusion module trained in the dual-target domain recommendation model; and fuse the user representation data in the target domain with the converted user representation data corresponding to another target domain according to the gating selection vector to obtain fused user representation data.
[0031] In some examples, the fourth obtaining unit is further configured to: perform weighted summation of the user representation data in the target domain and the converted user representation data corresponding to another target domain according to the gated selection vector to obtain fused user representation data.
[0032] In some examples, the recommendation unit is further configured to: predict the interaction probability between the target common user and the items represented by the item representation data based on the fused user representation data and item representation data; and determine the items to be recommended for the target common user based on the interaction probability.
[0033] In some examples, the second determination unit is further configured to: determine the user representation data of the target common users and the project representation data of the projects in the target domain based on the interaction matrix by matrix decomposition, wherein the interaction matrix represents the interaction data between the common users in the common user set and the projects in the project set corresponding to the dual target domains.
[0034] In a fifth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation of the first aspect and the second aspect is implemented.
[0035] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner of the first aspect and the second aspect.
[0036] The training method and device of the dual-target domain recommendation model provided in the embodiment of the present application perform the following training operations for each target domain in the dual-target domain: determine the user representation data of the common users and the item representation data of the items in the target domain according to the interaction data between the common users in the common user set corresponding to the dual-target domain and the items in the item set; convert the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain; fuse the user representation data in the target domain representing the same common user with the converted user representation data corresponding to another target domain to obtain the fused user representation data; adopt a machine learning method to train the recommendation model of the dual-target domain. The method takes the fused user representation data and the item representation data as input, and takes the label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, and trains a dual-target domain recommendation model, thereby enabling bidirectional data migration between the dual target domains, solving the data sparsity problem in each target domain, and achieving the goal that all enterprise users in the dual target domains benefit from the data migration process; and it is more in line with the actual situation under the dual target domain situation, which is conducive to the active participation of enterprise users on both sides of the dual target domains; in addition, based on the data migration process between the dual target domains, the accuracy of the recommendation results is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0038] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
[0039] Figure 2 is a flowchart of an embodiment of a training method for a dual-target domain recommendation model according to the present application;
[0040] Figure 3 is a schematic diagram of the structure of a dual-target domain recommendation model according to this embodiment;
[0041] Figure 4 is a schematic diagram of an application scenario of the training method of the dual-target domain recommendation model according to this embodiment;
[0042] Figure 5 is a flowchart of another embodiment of a training method for a dual-target domain recommendation model according to the present application;
[0043] Figure 6 is a flow chart of an embodiment of a dual-target domain recommendation method according to the present application;
[0044] Figure 7 is a flow chart of another embodiment of the dual-target domain recommendation method according to the present application;
[0045] Figure 8 is a structural diagram of an embodiment of a training device for a dual-objective domain recommendation model according to the present application;
[0046] Fig. 9 is a structural diagram of an embodiment of a dual-target domain recommendation device according to the present application;
[0047] Fig.10 It is a structural diagram of a computer system suitable for implementing the embodiments of the present application. DETAILED DESCRIPTION
[0048] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0049] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0050] It should also be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0051] Figure 1 An exemplary architecture 100 is shown to which the training method and apparatus of the dual-target domain recommendation model and the dual-target domain recommendation method and apparatus of the present application can be applied.
[0052] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The communication connection between the terminal devices 101, 102, 103 constitutes a topological network, and the network 104 is used to provide a medium for the communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0053] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be hardware devices or software that support network connection for data interaction and data processing. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices that support network connection, information acquisition, interaction, display, processing and other functions, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.
[0054] The server 105 may be a server that provides various services, for example, a background processing server that trains a dual-target domain recommendation model for both enterprise users corresponding to the dual target domains in response to receiving a model training request from the terminal devices 101, 102, and 103. For another example, a background processing server that recommends information to service users of both enterprise users through the dual-target domain recommendation models corresponding to the dual target domains. As an example, the server 105 may be a cloud server.
[0055] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0056] It should also be noted that the training method of the dual-target domain recommendation model and the dual-target domain recommendation method provided in the embodiments of the present application can be executed by a server, or by a terminal device, or by a server and a terminal device in cooperation with each other. Accordingly, the various parts (such as various units) included in the training device of the dual-target domain recommendation model and the dual-target domain recommendation device can be all set in the server, or all set in the terminal device, or can be set in the server and the terminal device respectively.
[0057] It should be understood that Figure 1 The number of terminal devices, networks, and servers in the system is only illustrative. Any number of terminal devices, networks, and servers may be provided as required. When the training method of the dual-target domain recommendation model and the electronic device on which the dual-target domain recommendation method is running do not need to transmit data with other electronic devices, the system architecture may only include the training method of the dual-target domain recommendation model and the electronic device (e.g., server or terminal device) on which the dual-target domain recommendation method is running.
[0058] Continue to refer Figure 2 , a process 200 of an embodiment of a training method for a dual-target domain recommendation model is shown. For each target domain in the dual-target domain, a training operation represented by the following steps is performed:
[0059] Step 201 : determining user representation data of common users and item representation data of items in the target domain according to interaction data between common users in a common user set corresponding to dual target domains and items in an item set.
[0060] In this embodiment, the execution subject of the training method of the dual-target domain recommendation model (for example Figure 1 The terminal device or server in the target domain can adopt a wired network connection method or a wireless network connection method to remotely or locally obtain the interaction data between the common users in the common user set corresponding to the dual target domains and the projects in the project set; and determine the user representation data of the common users in the target domain and the project representation data of the projects based on the interaction data.
[0061] The dual target domains may be two domains with a certain correlation. As an example, the dual target domains are the first target domain corresponding to the e-commerce platform and the second target domain corresponding to the short video platform. It can be understood that there is a certain correlation between the item information browsed by the user on the e-commerce platform and the video information browsed by the user on the short video platform. Both the e-commerce platform and the short video platform can use each other's data to solve their own data sparseness problem.
[0062] The common user set includes common users in the two target domains. Each target domain corresponds to a project set, and the project set includes projects in the corresponding target domain. Projects represent the type of information that users interact with in the target domain. Taking e-commerce platforms as an example, projects can be various items; taking short video platforms, projects can be short videos containing a given type of information.
[0063] For each target domain in the dual target domain, the same encoding method can be used to determine the unique identifier of the user it serves; then, by comparing the unique identifiers of the users in the dual target domains, all common users in the dual target domains are determined to obtain a common user set; finally, for each target domain, based on the common user set, the interaction data between the common users in the target domain and the items in the item set is determined. It should be noted that the interaction data includes both the relationship data between the user and the items that have interacted, and the relationship data between the user and the items that have not interacted.
[0064] After determining the interaction data, the execution subject may encode the interaction data using the encoding model to obtain user representation data of common users in each target domain, that is, the user's embedded representation information, and project representation data of projects, that is, the project's embedded representation information. As an example, the execution subject may encode the interaction data using an existing embedded representation model of the target (for example, a recommendation model obtained using a collaborative filtering method) to obtain user representation data and project representation data.
[0065] Continue to refer Figure 3 , shows a structural diagram of a dual-target domain recommendation model. The training process of the dual-target domain recommendation model 300 includes four stages: embedding representation, embedding conversion, embedding fusion, and parameter updating and synchronization.
[0066] In some optional implementations of this embodiment, the interaction data is an interaction matrix that characterizes the interaction between the common users in the common user set and the items in the item set.
[0067] As an example, the dual target domains include domain A and domain B, which have the same common user set U but different item sets. The item sets in domain A and domain B are denoted as V A and V B . R A represents the interaction matrix between common users and items in domain A; correspondingly, R B represents the interaction matrix between all users and items in domain B.
[0068] In domain A, each common user i can be represented as the interaction matrix R A The i-th row of Similarly, each item j can be represented as the interaction matrix RA The jth column of
[0069] In this implementation, the execution subject may perform step 201 in the following manner: using matrix decomposition to determine user representation data of common users and project representation data of projects in the target domain based on the interaction matrix.
[0070] As an example, through deep matrix factorization (DMF) and neural matrix factorization (NeuMF), user representation data and item representation data can be generated in each target domain. Taking the deep matrix factorization method as an example, in domain A, two multi-layer networks are used to map user i and item j to the latent space respectively, and a low-dimensional embedding vector is obtained:
[0071]
[0072]
[0073] Among them, σ represents the nonlinear activation function ReLU, k represents the dimension of user representation data and item representation data, …and …represent the weights of different layers in the multi-layer network corresponding to the shared users and the weights of different layers in the multi-layer network corresponding to the items, respectively.
[0074] Similarly, referring to the above embedding representation process in domain A, it can be determined that there are user representation data of user i in domain B: and items z represent data and Where z∈V B .
[0075] In this implementation, matrix decomposition is used to determine user representation data and item representation data in each target domain, thereby improving the efficiency and accuracy of the embedding representation process.
[0076] Step 202: convert the user representation data in the target domain into another target domain to obtain converted user representation data corresponding to the target domain.
[0077] In this embodiment, the execution subject may convert the user representation data in the target domain into another target domain to obtain converted user representation data corresponding to the target domain.
[0078] In order to better understand the user preferences of common users in one target domain, external user representation data from users in another target domain is used, and vice versa. In this embodiment, the user representation data of common users in one target domain needs to be converted for domain adaptation before being sent to another target domain.
[0079] As an example, the execution subject performs domain adaptation conversion on the user representation data through a trainable conversion network, wherein the parameter data in the conversion network can be updated during the training process.
[0080] As another example, before the execution subject sends the converted user representation data to another target domain, an encryption method may be used to encrypt the data to improve the security of the data transmission process.
[0081] In some optional implementations of the present embodiment, the execution entity may perform step 202 as follows: convert the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain the converted user representation data corresponding to the target domain.
[0082] The orthogonal mapping matrix has the following two advantages: first, since the orthogonal transformation preserves the inner product of the vector, the orthogonal mapping matrix preserves the similarity of the user representation data before and after the transformation; second, the inverse matrix of the orthogonal matrix is equivalent to its transpose. In this way, the transformation of the user representation data between the two target domains can directly use its transpose to simplify the learning process and reduce the computational complexity.
[0083] In some optional implementations of the present embodiment, the above-mentioned execution entity may perform the above-mentioned data conversion process in the following manner: first, the user representation data in the target domain is converted to another target domain through a trainable orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; then, the local differential privacy technology is used to process the initial converted user representation data to obtain the converted user representation data.
[0084] In this implementation, local differential privacy technology is first used to further hide the true distribution of the transformed user representation data, and then the hidden transformed user representation data is migrated to another target domain.
[0085] The local differential privacy technology is as follows: For any local differential privacy function f, with domain Dom(f) and range Ran(f), for any input t, t′∈Dom(f), the output t *∈Ran(f), all have:
[0086] P[f(t)=t * ]≤eεP[f(t′)=t * ]
[0087] Local differential privacy technology ensures that algorithm f satisfies local differential privacy by controlling the similarity of the output results of any two records, that is, the output is the same as t * , so that the eavesdropper cannot confirm whether the input is t or t * .
[0088] The use of local differential privacy technology can not only prevent external attackers from performing inference attacks, but also prevent corporate partners corresponding to another target domain from inferring the real user representation data based on the orthogonal mapping matrix, thereby infringing on business privacy.
[0089] As an example, there are user representation data of user i in domain A: Migration to domain B can be expressed as Similarly, there are user representation data of user i in domain B Migration to domain A can be expressed as in:
[0090]
[0091]
[0092] Represent the orthogonal mapping matrices in domain A and domain B respectively, and the two orthogonal mapping matrices always remain synchronized and equal. [·] T Represents the transpose of the matrix. La(0,λ) represents Laplace noise with mean 0, and λ controls the intensity of Laplace noise. The larger λ is, the greater the noise is, and the better the local differential privacy protection is.
[0093] Step 203 , the user representation data in the target domain representing the same common user is fused with the converted user representation data corresponding to another target domain to obtain fused user representation data.
[0094] In this embodiment, the execution entity may fuse the user representation data in the target domain representing the same shared user with the converted user representation data corresponding to another target domain to obtain fused user representation data.
[0095] As an example, for each common user in each target domain, the execution entity may directly add the user representation data corresponding to the common user in the target domain and the converted user representation data corresponding to the common user in another target domain to obtain fused user representation data.
[0096] As another example, for each common user in each target domain, the execution entity may perform weighted summation of the user representation data corresponding to the common user in the target domain and the converted user representation data corresponding to the common user in another target domain to obtain fused user representation data.
[0097] In some optional implementations of this embodiment, the execution subject may perform step 203 in the following manner:
[0098] First, through a trainable embedding fusion module, a gated selection vector is determined according to the similarity between the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain; second, according to the gated selection vector, the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain are fused to obtain the fused user representation data.
[0099] Taking domain A as an example, using L1 distance To represent the user data in domain A The transformed user representation data corresponding to domain B The similarity between:
[0100]
[0101] It can be understood that the user in domain B represents data The transformed user representation data corresponding to domain A The similarity between them is expressed as:
[0102]
[0103] Ideally, A feature dimension in and In terms of similarity at the feature level, the smaller the parameter value of the feature dimension, the more similar the two target domains are in this specific dimension. At the same time, in each feature dimension, the distance between the user representation data in the domain and the corresponding transformed user representation data in the external domain contributes differently to the target domain. Therefore, the embedding fusion module using a two-layer fully connected neural network is used to automatically learn and derive the distance between the user representation data in domain A and the target domain. The gate selection vector to control the information flow of each feature dimension; similarly, the information in domain B can also be learned and derived The gate selection vector in:
[0104]
[0105]
[0106] in, and denote the trainable weights and biases in the embedding fusion module in domain A, respectively. and They represent the trainable weights and biases in the embedding fusion module in domain B, respectively, and σ represents the nonlinear activation function ReLU.
[0107] Existing cross-domain recommendation methods usually align and fuse features based on the embedding representation within the entire domain and the cross-domain embedding representation. The fusion methods include splicing, maximum pooling, average pooling and other operations. However, not all features contained in the auxiliary domain are beneficial to the target domain. If there is also a data sparsity problem in the auxiliary domain, the migrated embedding representation is not sufficient, or the quality of the embedding representation in the target domain is sufficient and no additional supplement is needed, negative transfer will occur. That is, in the process of transfer learning, the knowledge learned in the auxiliary domain has a negative effect on the learning in the target domain.
[0108] In this implementation, information fusion in cross-domain recommendation is explicitly considered, and a gated selection vector is derived to extract fine-grained signals that are highly relevant to the target domain at the feature level, which can effectively avoid the negative transfer problem and thus improve the accuracy of the fused user representation data.
[0109] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned second step in the following manner: according to the gated selection vector, weighted summation is performed on the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain to obtain fused user representation data.
[0110] As an example, the above execution entity can perform data fusion through the following formula:
[0111]
[0112]
[0113] in, represents the fused user representation data in domain A, Represents the fused user representation data in domain B.
[0114] In this implementation, based on the gated selection vector, a weighted sum is performed on the user representation data in the target domain and the converted user representation data corresponding to another target domain, thereby further improving the accuracy of the obtained fused user representation data.
[0115] Step 204, adopting a machine learning method, taking the fused user representation data and the item representation data as input, and taking a label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train a dual-target domain recommendation model.
[0116] In this embodiment, the above-mentioned execution entity can adopt a machine learning method, with the fused user representation data and the item representation data as input, and a label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train a dual-target domain recommendation model.
[0117] As an example, the above execution subject can iteratively perform the following update operations: first, input the fused user representation data and the item representation data into the initial dual-target domain recommendation model, and predict the interaction probability between the common users represented by the fused user representation data and the items represented by the item representation data; then, according to the objective function, calculate the loss between the interaction probability and the label, wherein the label represents whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data; then, calculate the update gradient according to the loss; finally, update the initial dual-target domain recommendation model by using the stochastic gradient descent method. The initial dual-target domain recommendation model can use a deep learning model.
[0118] In response to reaching a preset end condition, a trained dual-target domain recommendation model is obtained, wherein the preset end condition is, for example, that the training time exceeds a preset time threshold, the number of training times exceeds a preset number threshold, and the training loss tends to converge.
[0119] In some optional implementations of this embodiment, the execution subject may perform step 204 in the following manner:
[0120] First, based on the fused user representation data and item representation data, the interaction probability between the common users corresponding to the fused user representation data and the items corresponding to the item representation data is predicted.
[0121] Taking domain A as an example, a simple and widely used inner product model is used to estimate the interaction probability between common user i and item j
[0122]
[0123] Second, through the objective function, the loss between the interaction probability and the label is determined according to the interaction probability, label and preset normalization parameters.
[0124] As an example, the model is trained in two target domains using the following objective functions:
[0125]
[0126] Among them, y ij Indicates label, Y + represents the set of positive samples where the interaction between users and items can be observed, Y -represents the set of negative samples where no user-item interaction has ever been observed, and max(R) represents the normalization parameter, which is the maximum rating in the entire dataset. For explicit feedback, in a 5-star system, max(R) is 5, and different y ij The impact on the loss function is different; for implicit feedback, max(R) is 1, y ij Is either 0 or 1.
[0127] Third, based on the loss, a dual-target domain recommendation model is trained.
[0128] The parameters that can be updated in the dual-target domain recommendation model include parameters of the embedding representation network that determines the user representation data and the item representation data, parameters in the orthogonal mapping matrix, and parameters of the embedding fusion model.
[0129] In this implementation, a specific training method for the dual-target domain recommendation model is provided, which further improves the accuracy of the trained dual-target domain recommendation model.
[0130] In some optional implementations of this embodiment, the above-mentioned execution entity may also perform the following operations: after each iterative operation in the training process of the dual-target domain recommendation model, the orthogonal mapping matrix corresponding to the next iterative operation of the dual-target domain is obtained according to the orthogonal mapping matrix in the target domain and the orthogonal mapping matrix in the other target domain.
[0131] Taking domain A as an example, domain B directly updates its orthogonal mapping matrix X B′ Sent to domain A in plain text, domain A based on X B′ The orthogonal mapping matrix X updated in the domain A′ Average to get a new orthogonal mapping matrix X A The same is true for field B, and the new orthogonal mapping matrix X is obtained B This ensures that the orthogonal mapping matrices in the two domains are always the same in each iteration.
[0132] In this embodiment, federated learning is introduced into the cross-domain recommendation scenario. In the federated learning framework of this embodiment, the service user data of the enterprise organization corresponding to each target domain will never leave the local area, but will always be stored on the local corresponding device, such as a local database. The federated learning architecture is designed as a peer-to-peer network structure to further reduce the risk of privacy leakage, that is, there is no curious or malicious third party. The two target domains only communicate twice in one iteration to exchange information related to the model.
[0133] In the first communication, the migrated transformed user representation data is exchanged between the two domains. If the transformed user representation data is directly migrated, the other target domain may infer the real data of the user in the target domain (inference attack). To this end, local differential privacy technology is used to add noise that follows the Laplace distribution to hide the user's real representation data before transferring the transformed user representation data to another domain, which further enhances the privacy protection of user data. Because this not only prevents external attackers from intercepting the transmitted information, but also prevents the other party's enterprise partner from restoring the original user representation data through the orthogonal mapping matrix. In local differential privacy, a higher noise intensity λ will lead to a decrease in data availability, thereby reducing the recommendation performance. Therefore, a trade-off needs to be made between recommendation performance and privacy protection.
[0134] In the second communication, each domain exchanges updated orthogonal mapping matrices with each other. In this embodiment, no privacy protection method is used for this communication process. Because the orthogonal mapping matrix represents the migration correspondence between the two domains and does not involve sensitive data. In addition, even if an external attacker intercepts the updated orthogonal mapping matrix and the user representation data after differential privacy, it is difficult to infer valid information.
[0135] Continue to see Figure 4 , Figure 4 FIG4 is a schematic diagram 400 of an application scenario of the training method of the dual-target domain recommendation model according to this embodiment. Figure 4 In the application scenario, first, in the target domain A, according to the interaction data 403 between the common users in the common user set 401 corresponding to the dual target domains A and B and the projects in the project set 402, the user representation data 404 of the common users in the target domain A and the project representation data 405 of the projects are determined; in the target domain B, according to the interaction data 407 between the common users in the common user set 401 corresponding to the dual target domains A and B and the projects in the project set 406, the user representation data 408 of the common users in the target domain B and the project representation data 409 of the projects are determined.
[0136] Then, the user representation data 404 in the target domain A is converted to the target domain B to obtain the converted user representation data 410 corresponding to the target domain A; the user representation data 408 in the target domain B is converted to the target domain A to obtain the converted user representation data 411 corresponding to the target domain B. Then, in the target domain A, the user representation data 404 representing the same common user is fused with the converted user representation data 411 corresponding to the target domain B to obtain the fused user representation data 412; in the target domain B, the user representation data 408 representing the same common user is fused with the converted user representation data 410 corresponding to the target domain A to obtain the fused user representation data 413.
[0137] Finally, for the dual target domains A and B, machine learning methods are used, with the fused user representation data and item representation data as input, and the labels representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train and obtain the dual target domain recommendation models 414 and 415 corresponding to the domains A and B respectively.
[0138] The method provided by the above-mentioned embodiment of the present application performs bidirectional data migration between dual target domains, solves the data sparsity problem in each target domain, and achieves the purpose of benefiting enterprise users of the dual target domains from the data migration process; and is more in line with the actual situation under the dual target domain situation, which facilitates the active participation of enterprise users of both parties corresponding to the dual target domains; in addition, based on the data migration process between the dual target domains, the accuracy of the recommendation results is improved.
[0139] Continue to refer Figure 5 , shows a schematic process 500 of another embodiment of a training method for a dual-target domain recommendation model according to the present application, wherein for each target domain in the dual-target domain, a training operation including the following steps is performed:
[0140] Step 501, through a trainable embedding representation module, according to the interaction data between the common users in the common user set corresponding to the dual target domains and the projects in the project set, determine the user representation data of the common users in the target domain and the project representation data of the projects.
[0141] Step 502: transform the user representation data in the target domain into another target domain through a trainable orthogonal mapping matrix to obtain the initial transformed user representation data corresponding to the target domain.
[0142] Step 503: Use local differential privacy technology to process the initial converted user representation data to obtain converted user representation data.
[0143] Step 504 , determining a gated selection vector through a trainable embedding fusion module according to the similarity between the user representation data in the target domain and the converted user representation data corresponding to another target domain that represent the same common user.
[0144] Step 505 , according to the gated selection vector, weighted sum is performed on the user representation data in the target domain and the converted user representation data corresponding to another target domain that represent the same shared user, to obtain fused user representation data.
[0145] Step 506 , predicting the interaction probability between the common users corresponding to the fused user representation data and the items corresponding to the item representation data based on the fused user representation data and the item representation data.
[0146] Step 507, determining the loss between the interaction probability and the label through the objective function according to the interaction probability, the label and the preset normalization parameter.
[0147] Step 508: According to the loss, the embedding representation module, the orthogonal mapping matrix, and the embedding fusion module are updated, and the dual-target domain recommendation model is trained.
[0148] It can be seen from this embodiment that Figure 2 Compared with the corresponding embodiments, process 500 of the training method of the dual-target domain recommendation model in this embodiment specifically illustrates the conversion process, hiding process, and fusion process of the user representation data, and further improves the security of the data in the dual-target domains on the basis of ensuring the bidirectional migration of the dual-target domains and the accuracy of the recommendation results.
[0149] Continue to refer Figure 6 , a process 600 of an embodiment of a dual-target domain recommendation method is shown. For each target domain in the dual-target domain, a recommendation operation including the following steps is performed:
[0150] Step 601 : determining user representation data of the target common users and item representation data of the items according to interaction data between the target common users and the items in the item set corresponding to the dual target domains.
[0151] In this embodiment, the execution subject of the dual-target domain recommendation method (for example Figure 1 The terminal device or server in the dual target domain can determine the user representation data of the target common user and the project representation data of the project according to the interaction data between the target common user and the project in the project set corresponding to the dual target domains.
[0152] The dual target domains can be two fields with certain correlation. As an example, the dual target domains are the first target domain corresponding to the e-commerce platform and the second target domain corresponding to the short video platform. The project represents the type of information involved by the user in the target domain. Taking the e-commerce platform as an example, the project can be a variety of items; taking the short video platform, the project can be a short video containing a given type of information.
[0153] In this embodiment, after determining the target shared user, the above-mentioned execution entity can determine the unique identifier of the target shared user; then, based on the unique identifier, determine the interaction data between the target shared user and the projects in the project set; finally, by using the currently existing embedding representation module of the deep neural network, the interaction data is processed to obtain the user representation data of the target shared user and the project representation data of the project.
[0154] In some optional implementations of the present embodiment, the execution subject may perform step 601 in the following manner: determining the user representation data of the target common users and the project representation data of the projects in the target domain based on the interaction matrix in a matrix decomposition manner, wherein the interaction matrix represents the interaction data between the common users in the common user set and the projects in the project set corresponding to the dual target domains.
[0155] Step 602: convert the user representation data in the target domain into another target domain to obtain converted user representation data corresponding to the target domain.
[0156] In this embodiment, the execution subject may refer to the implementation method in step 202 in embodiment 200 to convert the user representation data in the target domain into another target domain to obtain the converted user representation data corresponding to the target domain.
[0157] In some optional implementations of the present embodiment, the execution entity may perform step 602 as follows: convert the user representation data in the target domain to another target domain through the orthogonal mapping matrix trained in the dual-target domain recommendation model to obtain the converted user representation data corresponding to the target domain.
[0158] In some optional implementations of the present embodiment, the above-mentioned execution entity may perform the above-mentioned data conversion process in the following manner: first, the user representation data in the target domain is converted to another target domain through an orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; then, the local differential privacy technology is used to process the initial converted user representation data to obtain the converted user representation data.
[0159] Step 603: Fusing the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain fused user representation data.
[0160] In this embodiment, the execution subject may refer to the implementation method in step 203 in embodiment 200 to fuse the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain fused user representation data.
[0161] In some optional implementations of the present embodiment, the execution subject may perform step 603 in the following manner: first, the embedded fusion module trained in the dual-target domain recommendation model determines a gating selection vector according to the user representation data in the target domain and the converted user representation data corresponding to the other target domain; second, according to the gating selection vector, the user representation data in the target domain and the converted user representation data corresponding to the other target domain are fused to obtain fused user representation data.
[0162] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned second step in the following manner: according to the gated selection vector, weighted summation is performed on the user representation data in the target domain and the converted user representation data corresponding to another target domain to obtain fused user representation data.
[0163] Step 604 , using the trained dual-target domain recommendation model, according to the fused user representation data and item representation data, determine the items to be recommended for the target common user.
[0164] In this embodiment, the execution subject can determine the recommended items for the target common user according to the fused user representation data and item representation data through the trained dual-target domain recommendation model. The dual-target domain recommendation model can be obtained through training in the above embodiments 200 and 500.
[0165] In some optional implementations of the present embodiment, the execution entity may perform step 604 in the following manner: first, predict the interaction probability between the target common user and the items represented by the item representation data based on the fused user representation data and item representation data; and then, determine the items to be recommended for the target common user based on the interaction probability.
[0166] As an example, the above-mentioned execution entity can determine the interaction probability between the target shared user and each item in the item set; sort the items in descending order of the interaction probability, so as to recommend a preset number of items in the front order as the target shared user's to-be-recommended items to the target shared user.
[0167] It should be noted that the various implementation methods in this embodiment can be implemented with reference to the corresponding implementation methods in the above-mentioned embodiment 200, and will not be described in detail here.
[0168] In this embodiment, a dual-target domain recommendation method is provided, in which bidirectional data migration is performed between the dual target domains, which solves the data sparsity problem in each target domain and achieves the purpose of benefiting enterprise users of the dual target domains from the data migration process; moreover, it is more in line with the actual situation under the dual target domain situation, and is conducive to the active participation of enterprise users of both parties corresponding to the dual target domains; in addition, based on the data migration process between the dual target domains, the accuracy of the recommendation results is improved.
[0169] Continue to refer Figure 7 , a process 700 of another embodiment of a dual-target domain recommendation method is shown, comprising the following steps:
[0170] Step 701 : determining user representation data of the target common users and item representation data of the items according to interaction data between the target common users and the items in the item set corresponding to the dual target domains.
[0171] Step 702: transform the user representation data in the target domain into another target domain through an orthogonal mapping matrix to obtain the initial transformed user representation data corresponding to the target domain.
[0172] Step 703: Use local differential privacy technology to process the initial converted user representation data to obtain converted user representation data.
[0173] Step 704 , determining a gated selection vector according to the user representation data in the target domain and the converted user representation data corresponding to the other target domain through the trained embedding fusion module in the dual-target domain recommendation model.
[0174] Step 705 : performing weighted summation on the user representation data in the target domain and the converted user representation data corresponding to another target domain according to the gated selection vector to obtain fused user representation data.
[0175] Step 706 , determining the to-be-recommended items of the target common user according to the fused user representation data and item representation data through the trained dual-target domain recommendation model.
[0176] It can be seen from this embodiment that Figure 6 Compared with the corresponding embodiments, process 700 of the dual-target domain recommendation method in this embodiment specifically illustrates the conversion process, hiding process, and fusion process of user representation data, and further improves the security of data in the dual-target domains on the basis of ensuring the bidirectional migration of the dual-target domains and the accuracy of the recommendation results.
[0177] Continue to refer Figure 8 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a training device for a dual-target domain recommendation model. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0178] like Figure 8As shown, the training device of the dual-target domain recommendation model performs a training operation for each target domain in the dual-target domain through the following units: a first determining unit 801 is configured to determine the user representation data of the common users and the project representation data of the projects in the target domain according to the interaction data between the common users in the common user set and the projects in the project set corresponding to the dual-target domains; a first obtaining unit 802 is configured to convert the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain; a second obtaining unit 803 is configured to fuse the user representation data in the target domain representing the same common user with the converted user representation data corresponding to another target domain to obtain the fused user representation data; a training unit 804 is configured to adopt a machine learning method, with the fused user representation data and the project representation data as input, and with the label representing whether there is interaction between the common users corresponding to the input fused user representation data and the projects corresponding to the input project representation data as the expected output, to train and obtain the dual-target domain recommendation model.
[0179] In some optional implementations of the present embodiment, the first obtaining unit 802 is further configured to: convert the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain the converted user representation data corresponding to the target domain.
[0180] In some optional implementations of the present embodiment, the above-mentioned device also includes: a matrix updating unit (not shown in the figure), which is configured to obtain the orthogonal mapping matrix corresponding to the next iterative operation of the dual target domains according to the orthogonal mapping matrix in the target domain and the orthogonal mapping matrix in the other target domain after each iterative operation in the training process of the dual target domain recommendation model.
[0181] In some optional implementations of the present embodiment, the first obtaining unit 802 is further configured to: convert the user representation data in the target domain to another target domain through a trainable orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; and use local differential privacy technology to process the initial converted user representation data to obtain converted user representation data.
[0182] In some optional implementations of the present embodiment, the second obtaining unit 803 is further configured to: determine a gated selection vector according to the similarity between the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain through a trainable embedding fusion module; and fuse the user representation data in the target domain representing the same shared user with the converted user representation data corresponding to another target domain according to the gated selection vector to obtain fused user representation data.
[0183] In some optional implementations of this embodiment, the above-mentioned second obtaining unit 803 is further configured to: perform weighted summation of the user representation data in the target domain representing the same common user and the converted user representation data corresponding to another target domain according to the gated selection vector, to obtain fused user representation data.
[0184] In some optional implementations of the present embodiment, the training unit 804 is further configured to: predict the interaction probability between the common users corresponding to the fused user representation data and the items corresponding to the item representation data based on the fused user representation data and the item representation data; determine the loss between the interaction probability and the label based on the objective function, the interaction probability, the label and a preset normalization parameter; and train a dual-target domain recommendation model based on the loss.
[0185] In some optional implementations of this embodiment, the above-mentioned interaction data is an interaction matrix that characterizes the interaction between common users in the common user set and projects in the project set; and the above-mentioned first determination unit 801 is further configured to: determine the user representation data of the common users and the project representation data of the projects in the target domain based on the interaction matrix by matrix decomposition.
[0186] In the present embodiment, a training device for a dual-target domain recommendation model is provided, in which bidirectional data migration is performed between the dual target domains, which solves the data sparsity problem in each target domain and achieves the purpose that both enterprise users of the dual target domains benefit from the data migration process; moreover, it is more in line with the actual situation under the dual target domain situation, which facilitates the active participation of enterprise users of both parties corresponding to the dual target domains; in addition, based on the data migration process between the dual target domains, the accuracy of the recommendation results is improved.
[0187] Continue to refer Fig. 9 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a dual-target domain recommendation device. Figure 6 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0188] like Fig. 9As shown, the dual-target domain recommendation device performs a recommendation operation for each target domain in the dual-target domains through the following units: a second determining unit 901 is configured to determine the user representation data of the target common user and the item representation data of the item according to the interaction data between the target common user corresponding to the dual-target domains and the items in the item set; a third obtaining unit 902 is configured to convert the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain; a fourth obtaining unit 903 is configured to fuse the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain the fused user representation data; a recommendation unit 904 is configured to determine the items to be recommended of the target common user according to the fused user representation data and item representation data through the trained dual-target domain recommendation model.
[0189] In some optional implementations of the present embodiment, the third obtaining unit 902 is further configured to: convert the user representation data in the target domain to another target domain through the orthogonal mapping matrix trained in the dual-target domain recommendation model, and obtain the converted user representation data corresponding to the target domain.
[0190] In some optional implementations of the present embodiment, the third obtaining unit 902 is further configured to: convert the user representation data in the target domain to another target domain through an orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; and use local differential privacy technology to process the initial converted user representation data to obtain converted user representation data.
[0191] In some optional implementations of the present embodiment, the fourth obtaining unit 903 is further configured to: determine a gating selection vector according to the user representation data in the target domain and the converted user representation data corresponding to another target domain through an embedded fusion module trained in the dual-target domain recommendation model; and fuse the user representation data in the target domain with the converted user representation data corresponding to another target domain according to the gating selection vector to obtain fused user representation data.
[0192] In some optional implementations of this embodiment, the fourth obtaining unit 903 is further configured to: perform weighted summation of the user representation data in the target domain and the converted user representation data corresponding to another target domain according to the gated selection vector to obtain fused user representation data.
[0193] In some optional implementations of this embodiment, the recommendation unit 904 is further configured to: predict the interaction probability between the target common user and the items represented by the item representation data based on the fused user representation data and item representation data; and determine the items to be recommended for the target common user based on the interaction probability.
[0194] In some optional implementations of the present embodiment, the second determination unit 901 is further configured to: determine the user representation data of the target common users and the project representation data of the projects in the target domain based on the interaction matrix by means of matrix decomposition, wherein the interaction matrix represents the interaction data between the common users in the common user set and the projects in the project set corresponding to the dual target domains.
[0195] In the present embodiment, a dual-target domain recommendation device is provided, which performs bidirectional data migration between the dual target domains, solves the data sparsity problem in each target domain, and achieves the purpose of benefiting the enterprise users of the dual target domains from the data migration process; moreover, it is more in line with the actual situation under the dual target domain situation, and facilitates the active participation of enterprise users of both parties corresponding to the dual target domains; in addition, based on the data migration process between the dual target domains, the accuracy of the recommendation results is improved.
[0196] Reference below Fig.10 , which shows a device suitable for implementing the embodiments of the present application (eg Figure 1 Schematic diagram of the structure of a computer system 1000 having devices 101, 102, 103, 105) shown. Fig.10 The device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0197] like Fig.10 As shown, the computer system 1000 includes a processor (e.g., CPU, central processing unit) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. Various programs and data required for the operation of the system 1000 are also stored in the RAM 1003. The processor 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0198] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0199] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1009, and / or installed from a removable medium 1011. When the computer program is executed by the processor 1001, the above-mentioned functions defined in the method of the present application are executed.
[0200] It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0201] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the client computer, partially on the client computer, as a separate software package, partially on the client computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the client computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0202] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the device, method and computer program product according to various embodiments of the present application. 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 module, the program segment or a part of the 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 and / or flow chart, and the combination of the boxes in the block diagram and / 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.
[0203] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The described units may also be set in a processor. For example, they may be described as: a processor including a first determination unit, a first obtaining unit, a second obtaining unit, and a training unit; for another example, they may be described as: a processor including a second determination unit, a third obtaining unit, a fourth obtaining unit, and a recommendation unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the first obtaining unit may also be described as "a unit that converts the user representation data in the target domain to another target domain and obtains the converted user representation data corresponding to the target domain".
[0204] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the computer device: for each target domain in the dual target domain, performs the following training operations: according to the interaction data between the common users in the common user set corresponding to the dual target domain and the items in the item set, determine the user representation data of the common users in the target domain and the item representation data of the items; convert the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain; fuse the user representation data in the target domain representing the same common user with the converted user representation data corresponding to another target domain to obtain the fused user representation data; adopt a machine learning method, with the fused user representation data and the item representation data as input, and with the label representing whether the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data interact as the expected output, to train and obtain a dual target domain recommendation model. The computer device can also be made to: perform the following recommendation operations for each target domain in the dual target domains: determine the user representation data of the target common users and the project representation data of the projects based on the interaction data between the target common users corresponding to the dual target domains and the projects in the project set; convert the user representation data in the target domain to another target domain to obtain the converted user representation data corresponding to the target domain; fuse the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain the fused user representation data; and determine the projects to be recommended for the target common users based on the fused user representation data through the trained dual target domain recommendation model.
[0205] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A training method for a dual-target domain recommendation model, for each target domain in the dual-target domain, performing the following training operations: According to the interaction data between the common users in the common user set and the items in the item set corresponding to the dual target domains, the user representation data of the common users and the item representation data of the items in the target domain are determined, wherein: The interaction data includes relationship data between the user and items with which the user has interacted, and relationship data between the user and items with which the user has not interacted; Converting the user representation data in the target domain to another target domain to obtain converted user representation data corresponding to the target domain; fusing the user representation data in the target domain that represent the same common user with the converted user representation data corresponding to another target domain to obtain fused user representation data; A machine learning method is adopted, with the fused user representation data and item representation data as input, and the label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train a dual-target domain recommendation model.
2. The method according to claim 1, wherein: The converting the user representation data in the target domain to another target domain to obtain converted user representation data corresponding to the target domain includes: The user representation data in the target domain is converted to another target domain through a trainable orthogonal mapping matrix to obtain converted user representation data corresponding to the target domain.
3. The method according to claim 2, wherein: Also includes: After each iterative operation in the training process of the dual-target domain recommendation model, an orthogonal mapping matrix corresponding to the next iterative operation of the dual-target domain is obtained according to the orthogonal mapping matrix in the target domain and the orthogonal mapping matrix in another target domain.
4. The method according to claim 2, wherein: The user representation data in the target domain is converted to another target domain through a trainable orthogonal mapping matrix to obtain the converted user representation data corresponding to the target domain, including: The user representation data in the target domain is converted to another target domain through a trainable orthogonal mapping matrix to obtain initial converted user representation data corresponding to the target domain; The initial converted user representation data is processed by using a local differential privacy technology to obtain the converted user representation data.
5. The method according to claim 1, wherein: The step of fusing the user representation data in the target domain and corresponding to the converted user representation data of another target domain to obtain the fused user representation data includes: determining a gated selection vector according to a similarity between user representation data in the target domain and transformed user representation data corresponding to another target domain representing the same common user through a trainable embedding fusion module; According to the gated selection vector, the user representation data in the target domain representing the same common user is fused with the converted user representation data corresponding to another target domain to obtain the fused user representation data.
6. The method according to claim 5, wherein: The step of fusing the user representation data in the target domain and corresponding to another target domain and representing the same common user according to the gated selection vector to obtain the fused user representation data includes: According to the gated selection vector, a weighted sum is performed on the user representation data in the target domain representing the same shared user and the converted user representation data corresponding to another target domain to obtain the fused user representation data.
7. The method according to any one of claims 1 to 6, wherein: The machine learning method is adopted, with the fused user representation data and the item representation data as input, and a label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train a dual-target domain recommendation model, including: Predicting, based on the fused user representation data and the item representation data, an interaction probability between a common user corresponding to the fused user representation data and an item corresponding to the item representation data; Determining the loss between the interaction probability and the label according to the interaction probability, the label and a preset normalization parameter through an objective function; The dual-target domain recommendation model is trained based on the loss.
8. The method according to claim 1, wherein: The interaction data is an interaction matrix representing the interaction between the common users in the common user set and the items in the item set; as well as The step of determining the user representation data of the common users and the project representation data of the projects in the target domain according to the interaction data between the common users in the common user set and the projects in the project set corresponding to the dual target domains includes: By adopting a matrix decomposition method, based on the interaction matrix, the user representation data of the common users and the project representation data of the projects in the target domain are determined.
9. A dual-target domain recommendation method, for each target domain in the dual-target domain, performing the following recommendation operation: According to the interaction data between the target common users corresponding to the dual target domains and the items in the item set, the user representation data of the target common users and the item representation data of the items are determined, wherein: The interaction data includes relationship data between the user and items with which the user has interacted, and relationship data between the user and items with which the user has not interacted; Converting the user representation data in the target domain to another target domain to obtain converted user representation data corresponding to the target domain; fusing the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain fused user representation data; The trained dual-target domain recommendation model is used to determine the to-be-recommended items of the target common user according to the fused user representation data and the item representation data.
10. The method according to claim 9, wherein: The converting the user representation data in the target domain to another target domain to obtain converted user representation data corresponding to the target domain includes: The user representation data in the target domain is converted to another target domain through the orthogonal mapping matrix trained in the dual-target domain recommendation model to obtain the converted user representation data corresponding to the target domain.
11. The method according to claim 10, wherein: The step of converting the user representation data in the target domain to another target domain through the orthogonal mapping matrix trained in the dual-target domain recommendation model to obtain the converted user representation data corresponding to the target domain includes: The user representation data in the target domain is converted to another target domain by using the orthogonal mapping matrix to obtain the initial converted user representation data corresponding to the target domain; The initial converted user representation data is processed by using a local differential privacy technology to obtain the converted user representation data.
12. The method according to claim 9, wherein: The step of fusing the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain fused user representation data includes: Determining a gated selection vector according to the user representation data in the target domain and the converted user representation data corresponding to another target domain through the embedded fusion module trained in the dual-target domain recommendation model; According to the gated selection vector, the user representation data in the target domain is fused with the converted user representation data corresponding to another target domain to obtain the fused user representation data.
13. The method according to claim 12, wherein: The step of fusing the user representation data in the target domain with converted user representation data corresponding to another target domain according to the gated selection vector to obtain the fused user representation data includes: According to the gated selection vector, a weighted sum is performed on the user representation data in the target domain and the converted user representation data corresponding to another target domain to obtain the fused user representation data.
14. The method according to claim 9, wherein: The trained dual-target domain recommendation model determines the to-be-recommended items of the target common user according to the fused user representation data and the item representation data, including: Predicting the interaction probability between the target common user and the item represented by the item representation data according to the fused user representation data and the item representation data; According to the interaction probability, the to-be-recommended items of the target common user are determined.
15. The method according to claim 9, wherein: The step of determining the user representation data of the target common users and the item representation data of the items according to the interaction data between the target common users and the items in the item set corresponding to the dual target domains includes: By adopting the matrix decomposition method, based on the interaction matrix, the user representation data of the target common users and the project representation data of the projects in the target domain are determined, wherein the interaction matrix represents the interaction data between the common users in the common user set corresponding to the dual target domains and the projects in the project set.
16. A training device for a dual-target domain recommendation model, for each target domain in the dual-target domain, performing a training operation through the following units: The first determining unit is configured to determine the user representation data of the common users and the item representation data of the items in the target domain according to the interaction data between the common users in the common user set corresponding to the dual target domains and the items in the item set, wherein: The interaction data includes relationship data between the user and items with which the user has interacted, and relationship data between the user and items with which the user has not interacted; A first obtaining unit is configured to convert the user representation data in the target domain into another target domain to obtain converted user representation data corresponding to the target domain; A second obtaining unit is configured to fuse the user representation data in the target domain representing the same common user with the converted user representation data corresponding to another target domain to obtain fused user representation data; The training unit is configured to adopt a machine learning method, with the fused user representation data and the item representation data as input, and a label representing whether there is interaction between the common users corresponding to the input fused user representation data and the items corresponding to the input item representation data as the expected output, to train a dual-target domain recommendation model.
17. A dual-target domain recommendation device, for each target domain in the dual-target domain, performs a recommendation operation through the following units: The second determining unit is configured to determine the user representation data of the target common users and the item representation data of the items according to the interaction data between the target common users and the items in the item set corresponding to the dual target domains, wherein: The interaction data includes relationship data between the user and items with which the user has interacted, and relationship data between the user and items with which the user has not interacted; A third obtaining unit is configured to convert the user representation data in the target domain into another target domain to obtain converted user representation data corresponding to the target domain; a fourth obtaining unit, configured to fuse the user representation data in the target domain with the converted user representation data corresponding to another target domain to obtain fused user representation data; The recommendation unit is configured to determine the to-be-recommended items of the target common user according to the fused user representation data through the trained dual-target domain recommendation model.
18. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.
19. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Commodity mounting processing method and device, retrieval processing method and device, recommendation processing method and device and training processing method and device and electronic equipment
CN113420166A
Attention-based multi-view feature fusion cross-domain recommendation method and device
CN113806630A