Dual fine-grained knowledge transfer system for cross-domain scenarios
By projecting intra-domain knowledge into multiple latent semantic spaces in cross-domain recommendation, using the attention mechanism for fine-grained knowledge transfer, and combining it with the gating mechanism for adaptive fusion, the problems of coarse-grained knowledge transfer and noise in the existing technology are solved. Improved recommendation performance and user experience.
Patent Information
- Application Number
- CN202210568362.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-23
AI Technical Summary
Existing technologies fail to effectively identify multiple potential factors behind the interaction between users and items in cross-domain recommendations, resulting in coarse-grained knowledge transfer, ignoring fine-grained information, limiting recommendation performance, and possibly introducing irrelevant factors during inter-domain knowledge transfer. As noise, it affects the recommendation effect.
By projecting intra-domain knowledge representations to multiple latent semantic spaces, fine-grained knowledge representations are generated, and the attention mechanism is used to achieve dual transfer of fine-grained knowledge between domains. The gating mechanism is combined with the adaptive fusion of intra-domain and cross-domain knowledge to generate The final knowledge representation.
Effectively identify and extract multiple potential factors behind the interaction between users and items, reduce the impact of noise, improve recommendation performance, and enhance user experience and system satisfaction.
Smart Images

Figure CN115033783B
Abstract
Description
Technical Field
[0001] The present invention relates to a technology in the field of recommendation systems, specifically a dual fine-grained knowledge transfer system for cross-domain scenarios. Background Art
[0002] Cross-domain recommendation is a recommendation system that was created and developed to solve the long-standing cold start problem and data sparsity problem of traditional recommendation systems. Its core idea is to use information collected from other domains to alleviate the above two problems in one domain. When the interactions between users and items in all domains are relatively sparse, and different domains contain complementary user / item information, in order to achieve knowledge complementarity between domains and jointly improve the recommendation performance of the two domains, the dual knowledge transfer mechanism is applied to cross-domain recommendation. In the cross-domain recommendation method based on dual knowledge transfer, there is no distinction between the source domain and the target domain. Its purpose is to enrich the two domains at the same time and jointly improve the recommendation performance of the two domains. This type of method generally has a symmetrical model structure. The model can be trained and optimized through a joint loss function, which can be simplified into a multi-task framework.
[0003] When performing knowledge transfer, existing technologies simply use user and item representations as knowledge to be transferred to other domains. This knowledge transfer method is coarse-grained and does not consider the various potential factors behind the interaction between users and items. It is easy to lose valuable fine-grained information. Ignoring this fine-grained valuable information will limit the recommendation performance.
[0004] Although there are multiple potential factors behind the interaction between users and items, the observation data that can be obtained is only the interaction record between users and items. In other words, multiple potential factors cannot be directly obtained. Therefore, the first challenge is how to identify the multiple potential factors behind the interaction between users and items; in the specific context of cross-domain recommendation, the multiple potential factors of the interaction between users and items include both domain-shared factors and domain-specific factors. When transferring knowledge between domains, if the knowledge of one domain is transferred to another domain indiscriminately, irrelevant factors may be introduced and become noise, thereby affecting the recommendation performance. Based on this, the second challenge is how to extract useful knowledge from the fine-grained knowledge of other domains and reduce the noise caused by irrelevant factors; since it involves knowledge transfer between domains, it is necessary to consider the fusion of intra-domain knowledge and cross-domain knowledge. Existing methods simply add the representations of these two types of knowledge without considering the different influences of these two types of knowledge. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the present invention proposes a dual fine-grained knowledge transfer system for cross-domain scenarios, which generates fine-grained knowledge representation by projecting the intra-domain knowledge representation into multiple latent semantic spaces, realizes the differentiated dual transfer of inter-domain fine-grained knowledge by designing an attention mechanism, and adaptively fuses the intra-domain knowledge representation and cross-domain knowledge representation through a gating mechanism. The invention can effectively model the user's behavior in cross-domain scenarios, realize the transfer, complementarity and fusion of inter-domain knowledge, thereby predicting the user's future interaction with items, generating effective recommendation results, and improving the user's experience and satisfaction with the system.
[0006] The present invention is achieved through the following technical solutions:
[0007] The present invention relates to a dual fine-grained knowledge transfer system for cross-domain scenarios, comprising: an input layer, an embedding layer, a dual fine-grained knowledge transfer layer and a prediction layer connected in sequence, wherein: the input layer generates a one-hot encoding representation of the user and the item according to the unique identifiers of the user and the item by a one-hot encoding method; the embedding layer maps the sparse, high-dimensional one-hot encoding representation to a continuous low-dimensional space based on the one-hot encoding representation of the user and the item by a table lookup method to obtain an initial embedding vector; the dual fine-grained knowledge transfer layer concatenates the initial embedding vectors of any interactive user-item pair to obtain an intra-domain knowledge representation, obtains a cross-domain knowledge representation through fine-grained knowledge extraction and migration, and adaptively fuses the intra-domain knowledge representation and the cross-domain knowledge representation to obtain a final knowledge representation; the prediction layer generates an interactive prediction score according to the final knowledge representation, and further obtains a recommendation result.
[0008] The one-hot encoding means that only the element corresponding to its number is 1, and the other elements are 0.
[0009] The dual fine-grained knowledge transfer layer is composed of several fine-grained knowledge transfer blocks (FGKT), each of which includes: a fine-grained knowledge extraction module, a fine-grained knowledge transfer module and an adaptive knowledge fusion module, wherein: the fine-grained knowledge extraction module projects the intra-domain knowledge representation into multiple potential semantic spaces to extract the fine-grained knowledge behind the interaction between users and items; the fine-grained knowledge transfer module considers the existence of domain-shared factors and domain-specific factors, realizes inter-domain knowledge transfer based on the attention mechanism, and generates cross-domain knowledge representation; the adaptive knowledge fusion module fuses the intra-domain knowledge representation and the cross-domain knowledge representation to obtain the final knowledge representation.
[0010] The prediction score indicates the probability that the model determines that the input user-item pair is a positive sample, and the user-item pair with the highest probability is the recommendation result.
[0011] Technical Effects
[0012] When performing inter-domain knowledge transfer, the present invention considers multiple potential factors behind the interaction, and considers the different influences of domain-specific factors and domain-shared factors, projects the intra-domain knowledge representation into multiple potential spaces, and generates knowledge representation under the influence of different factors; through the designed attention mechanism, the different influences of domain-shared factors and domain-specific factors are considered during inter-domain knowledge transfer; and the intra-domain knowledge representation and the inter-domain knowledge representation are adaptively fused through the gating mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a schematic diagram of the system structure;
[0014] Figure 2 Schematic diagram of the dual fine-grained knowledge transfer layer structure. DETAILED DESCRIPTION
[0015] like Figure 1 As shown, this embodiment relates to a dual fine-grained knowledge migration system for cross-domain scenarios, including: an input layer, an embedding layer, a dual fine-grained knowledge migration layer and a prediction layer connected in sequence.
[0016] The input layer takes into account that in the disclosed cross-domain recommendation system, the two domains D A and D B There is a common set of users. The inputs of the two domains are the same user u and an item i that he interacts with in the two domains. A and i B , that is, the input is a user-item pair (u,i A ) and (u,i B ). Users and items are represented by unique hot encoding, that is, Only the elements corresponding to the user or item index are 1, and the other elements are 0.
[0017] Since the number of users and items is relatively large, that is, |U|,|I A |,|I B | is large, so are both high-dimensional and sparse, so in the embedding layer, three embedding matrices are used Map the one-hot encoding representation of users and items to a continuous low-dimensional representation space to generate the initial embedding vectors of users and items in: d is the dimension of the generated initial embedding vector.
[0018] The dual fine-grained knowledge transfer layer realizes dual fine-grained knowledge transfer between domains. This layer realizes deep dual knowledge transfer by superimposing L fine-grained knowledge transfer blocks (FGKT), specifically: in: and Respectively represent the domain D in the l-1th FGKT A and D B domain knowledge, Indicates that the slave domain D B Migrate to D A Cross-domain knowledge, Indicates that the slave domain D A Migrate to D B For the first FGKT, that is, when l = 1, the in-domain knowledge is represented by the interaction representation of the user-item pair, which is generated by concatenating the initial embedding vectors of the user and the item, that is,
[0019] The prediction layer is based on the output of the last FGKT, namely A sigmoid function is used to output the probability that the original input user-item pair (u,i) is a positive interaction:
[0020] like Figure 2 As shown, the dual fine-grained knowledge transfer layer is composed of several fine-grained knowledge transfer blocks (FGKT), each of which specifically includes: a fine-grained knowledge extraction module, a fine-grained knowledge transfer module, and an adaptive knowledge fusion module.
[0021] For the sake of convenience, only domain D is considered. A Operations in domain D B The operations in can be performed in the same way.
[0022] The fine-grained knowledge extraction module obtains the initial embedding vectors of users and items based on the embedding layer. For each user-item pair (u, i) that has interacted with each other, the corresponding embedding vectors are concatenated as the representation of the interaction, that is, e ui =[e u ,e i ]. Since there are many potential factors behind the interaction between users and items, using a simple representation to represent the knowledge in a domain is coarse-grained and does not take into account the various factors behind it, which may lose valuable fine-grained knowledge and limit the recommendation performance. In this system, ui Projecting to multiple latent semantic spaces can identify and extract multiple latent factors behind the observed user-item interactions. When there are K latent factors behind the user-item interactions, by ui Projected to the kth latent space, we obtain the kth fine-grained knowledge representation of the user-item pair in: represents the projection matrix shared by all user-item pairs, is the obtained fine-grained knowledge representation, d′ is Dimension.
[0023] The fine-grained knowledge transfer module obtains K fine-grained knowledge representations for each user-item pair (u, i), namely When in domain D A There exists a user-item pair (u,i A ), in domain D B There exists a user-item pair (u,i B ), then the corresponding fine-grained knowledge representations are and
[0024] In the problem scenario of cross-domain recommendation, considering the various factors behind the interaction between users and items, there are both domain-shared factors and domain-specific factors. In order to extract useful knowledge between domains and reduce the noise impact caused by irrelevant factors, this system designs inter-domain dual knowledge transfer based on the attention mechanism.
[0025] Specifically, from domain D B To Domain D A When transferring knowledge, domain D A In the expression As a guide, calculate the domain D B The importance score of each fine-grained knowledge representation in the latent space: in: W M is the change weight matrix, b M is the offset term, ReLU is the activation function, The weight score of the fine-grained knowledge representation in the k-th latent semantic space is shown. Based on the obtained weight score, the weighted summation of the knowledge from domain D can be obtained. B To Domain D A Transferred cross-domain knowledge representation A←B :
[0026] Follow the same steps as above to get the A To Domain D B Transferred cross-domain knowledge representation B←A .
[0027] After the dual knowledge transfer process between domains, domain D A For example, for each user-item pair (u,i A ), there exists a knowledge representation in the domain r A and cross-domain knowledge representation A←BSince the influence of intra-domain and cross-domain knowledge is different for different user-item pairs, the adaptive knowledge fusion module adaptively balances the importance of these two different knowledge representations and fuses them to generate a unified representation. The adaptive knowledge fusion is achieved through a gating mechanism: δ = σ (W G r A +W C r A←B +b G ), s A =(1-δ)⊙r A +δ⊙r A←B , where: W G ,W C ,b G is the learnable parameter in the adaptive knowledge fusion mechanism, σ represents the sigmoid activation function, ⊙ is the element-wise multiplication, and s A The fused knowledge representation will be used as the domain knowledge input of the next FGKT.
[0028] In this embodiment, four different cross-domain recommendation tasks are constructed on the Amazon and Douban datasets to verify the recommendation effect of the system. Both datasets are collected from the real world and are widely used in experimental verification related to cross-domain recommendation. The specific information of the datasets and cross-domain recommendation tasks is shown in Table 1.
[0029] Table 1 Datasets used in the experiment and cross-domain scenarios defined
[0030]
[0031]
[0032] After specific practical experiments, in the embedding layer, the embedding vector dimension of users and items is set to 32, in the dual fine-grained knowledge transfer layer, the number of potential factors behind the interaction is set to 3, the number of FGKTs is 2, and the small batch gradient descent optimization method is used and the batch size is set to 1024. During training, the Adam optimizer is used and the learning rate is set to 0.001.
[0033] In order to evaluate the performance of this system, the experimental verification is compared with a variety of existing technologies, including single-domain recommendation methods, classic cross-domain recommendation methods, and the latest cross-domain recommendation methods. When evaluating the recommendation effect, the hit rate (HR) and normalized discounted cumulative gain (NDCG) are used as evaluation indicators, specifically comparing the performance of the disclosed system with the existing technology in HR@5, HR@10, and NDCG@10.
[0034] Finally In terms of the task, the HR@5, HR@10 and NDCG@10 values of the disclosed system are 0.5662, 0.6839, and 0.4809 respectively; In terms of the task, the HR@5, HR@10 and NDCG@10 values of the disclosed system are 0.4985, 0.5990 and 0.4264 respectively; In terms of the task, the HR@5, HR@10 and NDCG@10 values of the disclosed system are 0.6611, 0.7825, and 0.5595 respectively; In terms of the task, the HR@5, HR@10 and NDCG@10 values of the disclosed system are 0.6902, 0.8068, and 0.0.5788, respectively.
[0035] Compared with the existing technology, the system has improved the HR@5 indicator by 3.63%-5.90% on the four tasks; for the HR@10 indicator, it has improved by 2.46%-5.08% on the four tasks; for the NDCG@10 indicator, it has improved by 2.88%-7.70% on the four tasks.
[0036] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.
Claims
1. A dual fine-grained knowledge transfer system for cross-domain scenarios, characterized by: include: The input layer, embedding layer, dual fine-grained knowledge transfer layer and prediction layer are connected in sequence, wherein: the input layer uses one-hot encoding to generate one-hot encoding representations of users and items based on their unique identifiers; the embedding layer uses a table lookup method to map the sparse, high-dimensional one-hot encoding representations to a continuous low-dimensional space based on the one-hot encoding representations of users and items to obtain an initial embedding vector; the dual fine-grained knowledge transfer layer concatenates the initial embedding vectors of any interactive user-item pair to obtain an intra-domain knowledge representation, obtains a cross-domain knowledge representation through fine-grained knowledge extraction and migration, and adaptively fuses the intra-domain knowledge representation and the cross-domain knowledge representation to obtain the final knowledge representation; the prediction layer generates an interactive prediction score based on the final knowledge representation, and further obtains a recommendation result; The dual fine-grained knowledge transfer layer is composed of several fine-grained knowledge transfer blocks, each of which includes: a fine-grained knowledge extraction module, a fine-grained knowledge transfer module and an adaptive knowledge fusion module, wherein: the fine-grained knowledge extraction module projects the domain knowledge representation into multiple potential semantic spaces to extract the fine-grained knowledge behind the interaction between users and items; the fine-grained knowledge transfer module considers the existence of domain-shared factors and domain-specific factors, realizes inter-domain knowledge transfer based on the attention mechanism, and generates cross-domain knowledge representation; the adaptive knowledge fusion module fuses the domain knowledge representation and the cross-domain knowledge representation to obtain the final knowledge representation; The prediction score indicates the probability that the model determines that the input user-item pair is a positive sample, and the user-item pair with the highest probability is the recommendation result; The embedding layer uses three embedding matrices E U , Map the one-hot encoding representation of users and items to a continuous low-dimensional representation space to generate the initial embedding vectors of users and items in: d is the dimension of the generated initial embedding vector; The dual fine-grained knowledge transfer layer realizes dual fine-grained knowledge transfer between domains. This layer realizes deep dual knowledge transfer by superimposing L fine-grained knowledge transfer blocks. in: and Respectively represent the domain D in the l-1th FGKT A and D B domain knowledge, Indicates that the slave domain D B Migrate to D A Cross-domain knowledge, Indicates that the slave domain D A Migrate to D B For the first FGKT, that is, when l = 1, the in-domain knowledge is represented by the interaction representation of the user-item pair, which is generated by concatenating the initial embedding vectors of the user and the item, that is, The prediction layer is based on the output of the last FGKT, namely A sigmoid function is used to output the probability that the original input user-item pair (u,i) is a positive interaction: The fine-grained knowledge extraction module obtains the initial embedding vectors of users and items based on the embedding layer. For each user-item pair (u, i) that has interacted with each other, the corresponding embedding vectors are concatenated as the representation of the interaction, that is, e ui =[e u ,e i ], by adding e ui Projecting to multiple latent semantic spaces can identify and extract multiple latent factors behind the observed user-item interactions; when there are K latent factors behind the user-item interactions, ui Projected to the kth latent space, we obtain the kth fine-grained knowledge representation of the user-item pair in: represents the projection matrix shared by all user-item pairs, is the obtained fine-grained knowledge representation, d' is Dimensions; The fine-grained knowledge transfer module obtains K fine-grained knowledge representations for each user-item pair (u, i), namely When in domain D A There exists a user-item pair (u,i A ), in domain D B There exists a user-item pair (u,i B ), then the corresponding fine-grained knowledge representations are and From Domain D B To Domain D A When transferring knowledge, domain D A In the expression As a guide, calculate the domain D B The importance score of each fine-grained knowledge representation in the latent space: in: W M is the change weight matrix, b M is the offset term, ReLU is the activation function, The weight score of the fine-grained knowledge representation in the k-th latent semantic space is shown on the surface; based on the obtained weight score, the weighted summation is used to obtain the knowledge from domain D B To Domain D A Transferred cross-domain knowledge representation A←B : Similarly, we get A To Domain D B Transferred cross-domain knowledge representation B←A ; After the dual knowledge transfer process between domains, for domain D A For each user-item pair (u,i A ), there exists a knowledge representation in the domain r A and cross-domain knowledge representation A←B , since the influence of intra-domain and cross-domain knowledge is different for different user-item pairs, the adaptive knowledge fusion module adaptively balances the importance of these two different knowledge representations and fuses them to generate a unified representation; the adaptive knowledge fusion is achieved through a gating mechanism: δ = σ (W G r A +W C r A←B +b G ), s A =(1-δ)⊙r A +δ⊙r A←B , where: W G ,W C ,b G is the learnable parameter in the adaptive knowledge fusion mechanism, σ represents the sigmoid activation function, ⊙ is the element-wise multiplication, s A The fused knowledge representation will be used as the domain knowledge input of the next FGKT.
2. The dual fine-grained knowledge transfer system for cross-domain scenarios according to claim 1 is characterized in that: The input layer takes into account that in the disclosed cross-domain recommendation system, the two domains D A and D B There is a common set of users. The inputs of the two domains are the same user u and an item i that he interacts with in the two domains. A and i B , that is, the input is a user-item pair (u,i A ) and (u,i B ); users and items are represented by unique hot encoding, that is, Only the elements corresponding to the user or item index are 1, and the other elements are 0.
