A personalized review text recommendation method based on multi-task learning

The personalized review text recommendation method through multi-task learning uses review text information and user item interaction behavior to extract semantic information, which solves the problem of lack of personalization in sorting in personalized review recommendation and achieves more efficient user preference recommendation.

CN112528141BActive Publication Date: 2024-10-15SUN YAT SEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011396078.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-03
Publication Date
2024-10-15
Estimated Expiration
2040-12-03

AI Technical Summary

Technical Problem

The existing technology lacks a method of utilizing review text information in personalized review recommendations, making it difficult for users to find information that matches their preferences in massive reviews, and sorting mainly relies on user feedback and lacks personalization.

Method used

Using a personalized review text recommendation method based on multi-task learning, by constructing a user review personalized transformer, extracting semantic information, using the interactive behavior of users and items for modeling, and combining multi-layer perceptron machines to predict review quality and user preferences, it is achieved Personalized review recommendations.

Benefits of technology

It greatly improves user decision-making efficiency, effectively utilizes review text information, provides more personalized review recommendations, reduces reliance on interactive information, and can better model user preferences for reviews under rich semantics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112528141B_ABST
    Figure CN112528141B_ABST
Patent Text Reader

Abstract

The present invention provides a personalized review text recommendation method based on multi-task learning. This method utilizes the text information of the review, greatly alleviating the amount of data required by the method that only relies on interactive information. Secondly, this patent takes into account the user's preference for reviews under different items. It is a personalized method that can more effectively provide different review recommendations for different users. Finally, this work is the first to use the deep semantic information of the review text in personalized review recommendations. With rich semantics, it is possible to better model the user's preference for reviews.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet user preference recommendation algorithms, and more specifically, to a personalized review text recommendation method based on multi-task learning. Background Art

[0002] Nowadays, many Internet service providers such as Amazon, Taobao, and Taptap Mobile Game Mall provide review services. In the review function, users share their experience of using items with others by writing reviews. At the same time, by browsing other people's reviews, users can also obtain more subjective information about the items, rather than just the objective information provided by the item description. With this information, users can better obtain information about the items and make purchase decisions more quickly. However, as the user community becomes more and more active, the reviews of some popular products have exploded, and it is difficult for users to find the reviews they are interested in among the massive reviews. Therefore, an algorithm that can filter out reviews that meet user preferences needs to be developed urgently.

[0003] Currently, websites mainly use a method based on user feedback to perform preliminary sorting of reviews. Most online services generally provide sorting based on the number of user likes and the helpfulness score of the reviews provided by users. These sortings are more targeted at popular preference sorting and lack personalization. In the academic field, more research focuses on how to use the text of the reviews to predict the usefulness of the reviews, or to select a set of reviews that best represent the various characteristics of the items. In terms of personalized review recommendations, there is much less related work. It mainly focuses on using collaborative filtering methods to recommend related reviews by finding similar users, but lacks the use of the text information of the reviews themselves for recommendation. Summary of the invention

[0004] The present invention provides a personalized review text recommendation method based on multi-task learning, and the algorithm can greatly improve the decision-making efficiency of users.

[0005] In order to achieve the above technical effects, the technical solution of the present invention is as follows:

[0006] A personalized review text recommendation method based on multi-task learning includes the following steps:

[0007] S1: Build a user review personalized transformer;

[0008] S2: Use the personalized transformer obtained in step S1 to obtain the representation of the user's historical comments and the comments to be sorted;

[0009] S3: Use the personalized transformer obtained in step S1 to extract semantic information from the comments to be ranked, and use the semantic vector to obtain a prediction of the quality of the comments themselves;

[0010] S4: Use the personalized transformer obtained in step S1 to represent users and items as dense vectors, and use the interaction behavior between users and items to model the user and item vectors.

[0011] Furthermore, the personalized transformer includes a personalized embedding layer, a multi-layer stacked transformer block and an output layer; the transformer block includes a multi-head self-attention module, a Dropout module, a weighting and normalization module and a forward propagation module

[0012] Furthermore, the personalized embedding layer is the input layer of the personalized transformer, which represents the comment text as a dense vector y by word embedding. In order to add personalized information, the user's feature representation u′ is added to the text sequence as the first word;

[0013] The user's feature representation is first obtained by encoding the user's unique ID through the embedding layer. In order to be consistent with the dimension of the word embedding, the user's representation is linearly transformed to obtain the user representation that is finally added to the personalized embedding layer;

[0014] In order to make the personalized transformer aware of the items, the representation v′ of the items is added to the representation of each word. The representation of the items is the same as the representation of the user. First, the one-hot encoding of the items is converted into a dense encoding using the embedding matrix. Then, a linear transformation is used to obtain the representation v′ of the same dimension as the word embedding. Finally, because the input words have sequential characteristics, position encoding is added to the personalized encoding. The input encoding can be expressed as

[0015]

[0016] Among them, h i Represents the i-th input.

[0017] Furthermore, the specific process of step S2 is:

[0018] Use the personalized transformer to get the representation of the user's historical comments and the comments to be sorted:

[0019] o u =PT(H u ,u,V H )

[0020] o r =PT(r c ,u,v c )

[0021] Among them, H uis the historical review set of user u, V H ={v|v=φ(r)∧r∈H u} is the item corresponding to the historical review set, r c ∈R is the review to be sorted, v c is the item corresponding to the comment to be sorted, user u's comment r c The preference score of is given by:

[0022]

[0023] where · is the dot product calculation.

[0024] Furthermore, the specific process of step S3 is:

[0025] The personalized transformer and multi-layer perceptron are used to predict the quality of the review itself through the text of the review. Because there is no user in the item-review task, the user input used in the original user-review task will be replaced by a special word [CLS]. This word replaces the original user representation and is input into the personalized transformer. The review score is given by:

[0026]

[0027] where t [CLS] is the word vector embedding representation of the word [CLS], and for the parameters in this task, the loss is calculated and minimized The loss is calculated using mean squared error:

[0028]

[0029] Among them, N vr is the number of samples for the item-review task.

[0030] Furthermore, the specific process of step S4 is:

[0031] Users have more similar preferences for comments on similar items. The items corresponding to the comments that users have interacted with are also considered as interacted items. That is, as long as the user has interacted with any comment under the item, it is considered that the user has interacted with the item. The interaction between users and items is modeled using the matrix decomposition method:

[0032]

[0033] Among them, u is the dense vector representation of the user's one-hot encoding obtained by the embedding matrix, and v is the dense vector representation of the item's one-hot encoding obtained by the embedding matrix. This task uses cross entropy to optimize the embedding representation between users and items:

[0034]

[0035] Furthermore, when the user's estimate of the reviews to be ranked is obtained through the user-review task and the quality score of the reviews to be ranked is obtained through the item-review task, a hyperparameter α is used to balance the predicted scores on both sides, and the final score of a review to be ranked is given by the following formula:

[0036]

[0037] For model training, the pairing loss function is used for training, which is specifically expressed as follows:

[0038]

[0039] in, It means that user u prefers positive likes. It means that user u is more inclined to negative sentiment, λ controls the strength of normalization, and Θ represents all the parameters that need to be trained.

[0040] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0041] This invention utilizes the text information of the comments, greatly alleviating the amount of data required by methods that rely only on interactive information. Secondly, this patent takes into account the user's preference for comments on different items. It is a personalized method that can more effectively provide different comment recommendations for different users. Finally, this work is the first to use the deep semantic information of the comment text in personalized comment recommendations. With rich semantics, it is possible to better model the user's preference for comments. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a logic block diagram of the method of the present invention;

[0043] Figure 2(a) shows the overall structure of the personalized converter;

[0044] Figure 2(b) shows the specific structure of the converter block;

[0045] Figure 2(c) shows the input representation of the personalized embedding layer in the user-comment task;

[0046] Figure 2(d) shows the representation in the item-review task. DETAILED DESCRIPTION

[0047] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0048] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0049] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0050] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0051] like Figure 1 As shown in the figure, a personalized review text recommendation method based on multi-task learning is divided into three tasks: the main task of predicting user preference for reviews, the auxiliary task of predicting review quality, and the task of modeling the relationship between users and items. In the following description, the three tasks will be abbreviated as user-review task, item-review task, and user-item task.

[0052] The main purpose of the user-comment task is to calculate the user's preference for the ranking comments under a given item. This task mainly takes the user's history and the comments to be ranked as input. Among them, the user's history is the comments that the user has interacted with before. These comment texts and user / item representations are respectively input into the personalized transformer (Transformer) to extract their semantic information. The user's representation output and the comment's representation output are obtained respectively. The two outputs are finally dot-producted to obtain the user's preference prediction for the comment. The item-comment task mainly uses the personalized transformer to extract semantic information from the ranking comments, inputs the obtained semantic vector into the multi-layer perceptron, and finally obtains the prediction of the quality of the comment itself. The user-item task mainly uses the embedding layer to represent users and items as dense vectors, and uses the interaction between users and items to model the user and item vectors. Next, the personalized transformer is introduced first, and then each task is introduced in detail.

[0053] 1. Personalized converter

[0054] As shown in Figure 2, this section mainly introduces the personalized transformer. The overall structure of the personalized transformer is shown in Figure 2(a), which includes a personalized embedding layer, a multi-layer stacked transformer block, and the final output layer. The specific structure of the transformer block is shown in Figure 2(b), which includes a multi-head self-attention module, a Dropout module, a weighted and normalized module, a forward propagation module, etc.

[0055] 1.1 Personalized Embedding Layer

[0056] The personalized embedding layer is the input layer of the personalized transformer. The main structure of this layer is shown in Figure 2(c)(d). Figure 2(c) is the input representation of the personalized embedding layer in the user-comment task, and Figure 2(d) is the representation in the item-comment task. The difference between the two is very subtle, so only Figure 2(c) is introduced.

[0057] As shown in Figure 2(c), a series of texts are first represented as dense vectors t by word embedding. In order to add personalized information, the user's feature representation u′ is added to the text sequence as the first word. The user's feature representation is first obtained by the user's unique ID encoding through the embedding layer. In order to be consistent with the dimension of the word embedding, the user's representation is then linearly transformed to obtain the user representation that is finally added to the personalized embedding layer. It is known that each comment has a corresponding item. In order to make the personalized transformer aware of the item, the item representation v′ is added to the representation of each word. The representation of the item is the same as the user's representation. First, the embedding matrix is ​​used to convert the item's unique hot encoding into a dense encoding. Then a linear transformation is used to obtain a representation v′ with the same dimension as the word embedding. Finally, because the input words have sequential characteristics, position encoding is added to the personalized encoding. Finally, the input encoding can be expressed as:

[0058]

[0059] Among them, h i Represents the i-th input.

[0060] 1.2 Converter Block and Output

[0061] After the transformer block is constructed, the representation of the word vector is strengthened using mechanisms such as multi-head self-attention. Finally, the output of the first word in the transformer block of the last layer is taken as the output of the personalized transformer. This output is passed through a multi-layer perceptron to obtain the final output of this personalized transformer.

[0062] 2. User-Comment Task

[0063] Use the personalized transformer to get the representation of the user's historical comments and the comments to be sorted:

[0064] o u =PT(H u ,u,V H )

[0065] o r =PT(r c ,u,v c )

[0066] Among them, H u is the historical review set of user u, V H ={v|v=φ(r)∧r∈H u} is the item corresponding to the historical review set. c ∈R is the review to be sorted. c is the item corresponding to the comment to be sorted. Finally, user u has a comment on r c The preference score of is given by:

[0067]

[0068] where · is the dot product calculation.

[0069] 3. Item-Review Task

[0070] The personalized transformer and multi-layer perceptron are used to predict the quality of the review itself through the text of the review. Because there are no users in the item-review task, the user input used in the original user-review task will be replaced by a special word [CLS]. This word replaces the original user representation and is input into the personalized transformer. The specific input is shown in Figure 2(d). Finally, the review score is given by:

[0071]

[0072] where t [CLS] is the word vector embedding representation of the word [CLS]. For the parameters in this task, the loss is calculated and minimized The loss is calculated using mean squared error:

[0073]

[0074] Among them, N vr is the number of samples for the item-review task.

[0075] 4. User-Item Tasks

[0076] We know that users have similar preferences for comments on similar items. For example, if they are all clothing items, their preferences for these items will be similar. Here, the items corresponding to the comments that users have interacted with are also considered as interacted items. That is, as long as the user has interacted with any comment under the item, it is considered that the user has interacted with the item. Use matrix decomposition to model the interaction between users and items.

[0077]

[0078] Among them, u is the dense vector representation of the user's one-hot encoding obtained by the embedding matrix, and v is the dense vector representation of the item's one-hot encoding obtained by the embedding matrix. This task uses cross entropy to optimize the embedding representation between users and items:

[0079]

[0080] 5. Preference Estimation and Parameter Optimization

[0081] When obtaining the user's estimate of the reviews to be ranked through the user-review task and the quality score of the reviews to be ranked through the item-review task, a hyperparameter α is used to balance the predicted scores on both sides. The final score of a review to be ranked is given by the following formula:

[0082]

[0083] For model training, the pairing loss function is used for training, which is specifically expressed as follows:

[0084]

[0085] in, It means that user u prefers positive likes. Indicates that user u is more inclined to negative sentiment. λ controls the strength of normalization. Θ represents all the parameters that need to be trained.

[0086] The same or similar reference numerals correspond to the same or similar components;

[0087] The positional relationships described in the drawings are only for illustrative purposes and should not be construed as limiting the present patent.

[0088] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A personalized review text recommendation method based on multi-task learning, characterized in that: The following steps are involved: S1: Build a user review personalized transformer; S2: Using the personalized transformer obtained in step S1, the representation of the user's historical comments and the comments to be sorted is obtained; the specific process of step S2 is: Use the personalized transformer to get the representation of the user's historical comments and the comments to be sorted: o u =PT(H u ,u,V H ) o r =PT(r c ,u,v c ) Among them, H u is the historical review set of user u, V H ={v|v=φ(r)∧r∈H u } is the item corresponding to the historical review set, r c ∈R is the review to be sorted, v c is the item corresponding to the comment to be sorted, user u's comment r c The preference score of is given by: Where, · is the dot product calculation; S3: Using the personalized transformer obtained in step S1 to extract semantic information from the comments to be ranked, and using the semantic vector to obtain a prediction of the quality of the comments themselves; the specific process of step S3 is: The personalized transformer and multi-layer perceptron are used to predict the quality of the review itself through the text of the review. Because there is no user in the item-review task, the user input used in the original user-review task will be replaced by a special word [CLS]. This word replaces the original user's feature representation and is input into the personalized transformer. The review score is given by: where t [CLS] is the word vector embedding representation of the word [CLS], and for the parameters in this task, the loss is calculated and minimized The loss is calculated using mean squared error: Among them, N vr is the number of samples of the item-review task; S4: using the personalized transformer obtained in step S1 to represent the user and the item as dense vectors, and using the interaction between the user and the item to model the user and item vectors; the specific process of step S4 is: Users have more similar preferences for comments on similar items. The items corresponding to the comments that users have interacted with are also considered as interacted items. That is, as long as the user has interacted with any comment under the item, it is considered that the user has interacted with the item. The interaction between users and items is modeled using the matrix decomposition method: Among them, u is the dense vector representation of the user's one-hot encoding obtained by the embedding matrix, and v is the dense vector representation of the item's one-hot encoding obtained by the embedding matrix. This task uses cross entropy to optimize the embedding representation between users and items:

2. The personalized review text recommendation method based on multi-task learning according to claim 1 is characterized in that: The personalized transformer includes a personalized embedding layer, a multi-layer stacked transformer block and an output layer.

3. The personalized review text recommendation method based on multi-task learning according to claim 2 is characterized in that: The transformer block includes a multi-head self-attention module, a Dropout module, a weighting and normalization module and a forward propagation module.

4. The personalized review text recommendation method based on multi-task learning according to claim 3 is characterized in that: The personalized embedding layer is the input layer of the personalized transformer. The comment text is represented as a dense vector t by word embedding. In order to add personalized information, the user's feature representation u′ is added to the text sequence as the first word. The user's feature representation is first obtained by encoding the user's unique ID through the embedding layer. In order to be consistent with the dimension of the word embedding, the user's feature representation is linearly transformed to obtain the user's feature representation that is finally added to the personalized embedding layer; In order to make the personalized transformer aware of the items, the representation v′ of the items is added to the representation of each word. The representation of the items is the same as the feature representation of the user. First, the one-hot encoding of the items is converted into a dense encoding using the embedding matrix. Then, a linear transformation is used to obtain the representation v′ of the items with the same dimension as the word embedding. Finally, because the input words have sequential characteristics, position encoding is added to the personalized encoding. The input encoding is represented as Among them, h i Represents the i-th input.

5. The personalized review text recommendation method based on multi-task learning according to claim 4 is characterized in that: When obtaining the user's estimate of the comments to be ranked through the user-comment task and the quality score of the comments to be ranked through the item-comment task, a hyperparameter α is used to balance the predicted scores on both sides, and the final score of a comment to be ranked is given by the following formula: For model training, the pairing loss function is used for training, which is specifically expressed as follows: in, It means that user u prefers positive likes. It means that user u is more inclined to negative sentiment, λ controls the strength of normalization, and Θ represents all the parameters that need to be trained.