Online knowledge sharing recommendation method based on attention mechanism and high-order feature interaction

By introducing the neural network model of attention mechanism and high-order feature interaction into the online knowledge sharing recommendation system, and combining interaction and deep neural networks, it solves the problem that the existing system cannot mine complex feature interactions and automatically extract important features, and achieves a better Accurate and personalized recommendation results.

CN118708709AActive Publication Date: 2024-09-27FUJIAN NORMAL UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410736034.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-27
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing online knowledge sharing recommendation systems cannot fully mine and model the complex feature interactions underlying the data in personalized knowledge recommendations, cannot automatically explore high-order feature interactions and distinguish the importance of different features, and cannot automatically extract features, resulting in recommendation Not very effective.

Method used

Using a neural network model based on attention mechanism and high-order feature interaction, combined with interactive neural network and deep neural network, the data dimension is reduced through the embedding layer, the interactive neural network generates high-order feature interaction, and the deep neural network implicitly captures potential information, and The attention network is used to explain feature importance and output the user's interest in the question.

Benefits of technology

It improves the expression and generalization capabilities of the model, creates more personalized recommendations, captures complex patterns, improves prediction accuracy, and dynamically assigns feature importance through the attention mechanism to enhance the model's robustness and representation capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708709A
    Figure CN118708709A
Patent Text Reader

Abstract

The invention relates to an online knowledge sharing recommendation method based on attention mechanism and high-order feature interaction. A high-order feature interaction neural network is added into the model, high-order feature interaction and an attention mechanism are combined, and meanwhile, a deep neural network is introduced to be combined with an interaction neural network. The expression ability of the model can be improved, and the generalization ability of the model is enhanced; according to the method, the defect that an existing solution cannot automatically explore high-order feature interaction and distinguish importance degrees of different features is overcome, and the defect that the existing solution cannot automatically extract features and mine potential important features from original input is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features. Background Art

[0002] Online users post and answer questions from different disciplines on knowledge sharing platforms such as Quora, Stackoverflow, and Zhihu. These platforms recommend new questions to users by analyzing their profiles and historical interactions. However, since users have a wide range of interests and backgrounds and the platform involves a vast amount of online resources, they often need to choose from a wide range of questions, which may prevent users from directly accessing the online resources they are interested in. If the question selection process is too cumbersome, users may become frustrated and eventually choose to leave, which runs counter to the original intention of the platform to promote user participation and knowledge sharing.

[0003] Traditional recommendation system methods, such as content / use-based collaborative filtering, have gradually failed to meet the current needs of large, complex, and dynamically changing data due to scalability challenges when processing large-scale data sets and difficulty in effectively modeling high-order features.

[0004] Previous research [2] proposed a hybrid model that combines a learning management system, a set of web2.0 tools, and an e-learning recommendation system to enhance personalized online learning. However, this work did not provide any technical innovation in the online learning service recommendation system. It simply combined existing technologies and failed to specifically address the problems caused by the data characteristics in the education field. In the previous review [1], several recommendation methods for e-learning services were listed and analyzed. However, they were too simple to be applied to online learning services in the big data environment of educational resources. Another study [3] proposed a hybrid recommendation algorithm that combines collaborative filtering and sequential pattern mining for peer-to-peer learning environments, but did not consider how to improve personalized learning services. [4] and [5] studied learning path recommendation. However, the proposed models mainly relied on demographic information and did not provide sufficient space for in-depth exploration of individual preferences.

[0005] The existing solutions have the following defects:

[0006] 1. Existing solutions cannot fully explore and model the complex feature interactions at the bottom of the data in personalized knowledge recommendation services.

[0007] 2. Existing solutions cannot automatically explore high-order feature interactions and distinguish the importance of different features.

[0008] 3. Existing solutions are unable to automatically extract features and mine potentially important features from raw input.

[0009] References:

[0010] [1] R.Sikka, A.Dhankhar and C.Rana, A survey paper on e-learningrecommender system. International Journal of Computer Applications.47(9).27-30(2012), DOI: http: / / dx.doi.org / 10.5120 / 7218-0024.

[0011] [2]N.Hoic-Bozic,MHDlab andV.Mornar,Recommender system andweb2.0tools to enhance ablended learning model.IEEE Transactions on education.59(1).39-44(2015).

[0012] [3]W.Chen,Z.Niu,X.Zhao andY.Li,A hybrid recommendation algorithm adapted in e-learning environments.WorldWide Web.17(2).271-284(2014).

[0013] [4]Z.Rusak.Exploitation of micro-learning for generating personalized learning paths.in DS 87-9Proceedings of the 21st International Conference onEngineering Design(ICED 17)Vol 9:Design Education,Vancouver,Canada,21-25.08.2017.2017,pp.129-138.

[0014] [5] Q. Zhao, Y. Zhang and J. Chen. An improved ant colony optimization algorithm for recommendation of micro-learning path. in 2016 IEEE International Conference on Computer and Information Technology (CIT). 2016, pp. 190-196, IEEE. Summary of the invention

[0015] The purpose of the present invention is to overcome the defects of existing solutions and provide an online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features, which improves the expressiveness of the model and enhances the generalization ability of the model.

[0016] To achieve the above objectives, the technical solution of the present invention is: an online knowledge sharing recommendation method based on attention mechanism and high-order feature interaction, adding a high-order feature interaction neural network to the model, and combining high-order feature interaction and attention mechanism, while introducing a deep neural network and combining it with an interactive neural network.

[0017] In one embodiment of the present invention, the method comprises:

[0018] Input steps:

[0019] Input a high-dimensional vector of information about users and items;

[0020] Embedding steps:

[0021] The high-dimensional vectors of information related to users and items are passed through the embedding layer to reduce the dimensionality and sparsity of the original data;

[0022] Interactive neural network steps:

[0023] Use interactive neural networks to automatically generate high-order feature interactions;

[0024] Deep Neural Network Steps:

[0025] Deep neural networks implicitly capture latent information and feature combinations in a way that is distinct from interactive neural networks;

[0026] Residual connection steps:

[0027] The residual is used to continuously add the original input information to the output of the deep neural network and the interactive neural network before providing the transformed information of the deep neural network to the attention network;

[0028] Attention network steps:

[0029] An attention network is used to interpret the importance differences between various features; the calculated attention scores are projected back to the output of the residual connection step;

[0030] Output steps:

[0031] Output a decimal number in the range 0-1, indicating the user's interest in the given question.

[0032] In one embodiment of the present invention, the high-dimensional vector of information related to the user and the item includes the historical records of the interaction between the user and the item and the accompanying information of the user and the item.

[0033] In one embodiment of the present invention, the embedding operation of the embedding layer is expressed as:

[0034] X embed,i =W embed,i X i

[0035] X embed,i is the embedding result of the i-th classification feature, W embed,i X is the embedding matrix that maps the i-th original classification feature to a low-dimensional space. i is the ith feature.

[0036] In one embodiment of the present invention, the interactive neural network is composed of several layers, each layer is a feature interaction operation, and for each interactive layer, the feature interaction operation is expressed as:

[0037] X l+1 =X0X l W l +b l +X l

[0038] Where X l is the output of the lth layer, W l and b l are the weights and bias parameters for each interaction layer.

[0039] In one embodiment of the present invention, each layer of the deep neural network is expressed as:

[0040] h l+1 =f(W l h l +b l )

[0041] where h l is the l-th layer output of the deep component, f(·) is the activation function, W l and b l are the parameters of the lth layer of the deep neural network.

[0042] In one embodiment of the present invention, the activation function uses the ReLU activation function.

[0043] In one embodiment of the present invention, the attention mechanism of the attention network is expressed as follows:

[0044] a′ i =ReLU(WX i +b)

[0045]

[0046] W and b are model parameters, X i For the i-th feature, the attention score is calculated by the activation function ReLU.

[0047] In one embodiment of the present invention, the calculated attention score is projected back to the output of the residual connection step, expressed as follows:

[0048] X s =a i WX

[0049] a i is the calculated attention score, W is the adopted weight, X is the output of the residual connection step, and X s is the output after applying the attention mechanism.

[0050] The present invention also provides an online knowledge sharing recommendation system based on the interaction of attention mechanism and high-order features, including a memory, a processor, and computer program instructions stored in the memory and capable of being executed by the processor. When the processor executes the computer program instructions, the method steps described above can be implemented.

[0051] Compared with the prior art, the present invention has the following beneficial effects:

[0052] 1. The present invention solves the defect that existing solutions cannot fully mine and model the complex feature interactions at the bottom of data in personalized knowledge recommendation services by adding a high-order feature interaction neural network to the model, thereby improving the expressive power of the model and enhancing the generalization ability of the model.

[0053] 2. The present invention combines high-order feature interactions with the attention mechanism, solving the problem that existing solutions cannot automatically explore high-order feature interactions and distinguish the importance of different features.

[0054] 3. The present invention solves the problem that existing solutions are unable to automatically extract features and mine potential important features from original inputs by introducing deep neural networks and combining them with interactive neural networks.

[0055] The advantages and uses of the present invention are as follows:

[0056] Personalized recommendations: Higher-order interactions help create more personalized recommendations. For example, in a recommendation system, considering higher-order feature interactions can help understand users’ subtle preferences based on different item combinations.

[0057] Capturing complex patterns: High-order interactions can capture complex nonlinear relationships between features, which are usually ignored by models that only consider low-order interactions. This helps to better understand and model user behavior and item characteristics.

[0058] Improved prediction accuracy: By incorporating higher-order interactions, the model can make more accurate predictions because it considers the synergistic effects of multiple features interacting with each other and can better explain the underlying data patterns.

[0059] Better generalization: Models that incorporate higher-order interactions tend to perform better on new, unseen data because they are able to learn more detailed and robust feature representations.

[0060] Powerful representation capabilities: Because deep neural networks have multi-layer structures, they are able to learn rich and complex representations of data, thereby capturing complex patterns and relationships in the data.

[0061] Capturing important information: The attention mechanism can dynamically assign different weights to different parts of the input sequence, allowing the model to focus on the most important information. This is particularly effective when processing long sequence data such as text or time series. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a schematic diagram of the model structure of the present invention.

[0063] Figure 2 The figure is a flow chart of the steps of the method of the present invention. DETAILED DESCRIPTION

[0064] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.

[0065] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0066] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0067] The present invention provides an online knowledge sharing recommendation method based on attention mechanism and high-order feature interaction. A high-order feature interaction neural network is added to the model, and the high-order feature interaction and attention mechanism are combined. At the same time, a deep neural network is introduced and combined with an interactive neural network.

[0068] The following are specific implementation examples of the present invention.

[0069] like Figure 1 As shown, the model proposed in the present invention includes three important networks:

[0070] An interactive neural network for exploring feature interactions, a deep neural network for mining latent information, and an attention network for distinguishing the importance of different features.

[0071] Figure 2 This is a flowchart of the steps of an online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features of the present invention. The specific steps are as follows:

[0072] Input steps:

[0073] The input of the model is a high-dimensional vector of information related to users and items, which contains the historical records of interactions between users and items as well as the accompanying information of users and items, such as user age and product category.

[0074] Embedding steps:

[0075] The high-dimensional vector of user and item related information is passed through the embedding layer to reduce the dimension and sparsity of the original data. The embedding operation can not only reduce the amount of calculation, but also improve the recommendation performance of the model.

[0076] X embed,i =W embed,i X i

[0077] X embed,i is the embedding result of the i-th classification feature, W embed,i X is the embedding matrix that maps the i-th original classification feature to a low-dimensional space. i is the ith feature.

[0078] Interactive neural network steps:

[0079] An interactive neural network is used to automatically generate high-order feature interactions. The network consists of several layers, each of which is a feature interaction operation. For each interaction layer, the feature interaction operation can be simply described as:

[0080] X l+1 =X0X l W l +b l +X l

[0081] Where X l is the output of the lth layer, W l and b l are the weights and bias parameters for each interaction layer. This special network structure can increase the degree of interaction as the network goes deeper.

[0082] Deep Neural Network Steps:

[0083] Deep networks implicitly capture latent information and feature combinations in a way that is different from interactive neural networks. Each layer of a deep neural network can be expressed as:

[0084] h l+1 =f(W l h l +b l )

[0085] where h l is the output of the lth layer of the deep component, f(·) is the activation function, and this example uses the ReLU activation function. l and b l are the parameters of the lth layer of the deep network.

[0086] Residual connection steps:

[0087] The original input information is continuously added to the output of the deep network and the interactive neural network using residuals before the transformed information is fed to the attention network. The purpose of this is to preserve the original input information, which may be lost after passing through multiple layers of the neural network.

[0088] Attention network steps:

[0089] Use attention networks to explain the importance differences between various features. The attention mechanism can be expressed as follows:

[0090] a′ i =ReLU(WX i +b)

[0091]

[0092] W and b are model parameters, and the attention score is calculated by the activation function ReLU.

[0093] The calculated attention scores are projected back to the output of the residual connection step. The process can be expressed as follows:

[0094] X s =a i WX

[0095] a i is the calculated attention score, W is the weight used in the network, X is the output of the residual connection step, and X s is the output after applying the attention mechanism.

[0096] Output steps:

[0097] The output of the model is a decimal number in the range 0-1, indicating the user's interest in a given question.

[0098] The process and method of using the product of the method of the present invention are as follows:

[0099] The application system of the method of the present invention can analyze the user's historical behavior and preferences and provide personalized product or content recommendations to the user.

[0100] 1. Data input

[0101] Recommendation system input data includes:

[0102] User historical behavior data (such as browsing history, purchase history, etc.)

[0103] Product or content information (such as product description, category, price, etc.)

[0104] User personal information (such as age, gender, interests, etc.)

[0105] 2. Data preprocessing

[0106] The input data goes through the following preprocessing steps:

[0107] Data cleaning: removing missing values ​​and outliers

[0108] Formatting: Converting data into a uniform format

[0109] Feature extraction: Extract useful features from raw data, such as user browsing frequency, product popularity, etc.

[0110] 3. Model training

[0111] Use this product to train the model. The training process includes:

[0112] Adjust model parameters such as learning rate, batch size, training rounds, etc.

[0113] Evaluate model performance using cross-validation and test sets

[0114] 4. Real-time recommendations

[0115] Call the trained model, generate recommendation results based on the user's historical behavior and current behavior, and display the recommendation results to the user.

[0116] The present invention also provides an online knowledge sharing recommendation system based on the interaction of attention mechanism and high-order features, including a memory, a processor, and computer program instructions stored in the memory and capable of being executed by the processor. When the processor executes the computer program instructions, the method steps described above can be implemented.

[0117] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0118] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0121] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. An online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features, characterized in that: A high-order feature interaction neural network is added to the model, and the high-order feature interaction and attention mechanism are combined. At the same time, a deep neural network is introduced and combined with the interactive neural network.

2. According to claim 1, the online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features is characterized in that: include: Input steps: Input a high-dimensional vector of information about users and items; Embedding steps: The high-dimensional vectors of information related to users and items are passed through the embedding layer to reduce the dimensionality and sparsity of the original data; Interactive neural network steps: Use interactive neural networks to automatically generate high-order feature interactions; Deep Neural Network Steps: Deep neural networks implicitly capture latent information and feature combinations in a way that is distinct from interactive neural networks; Residual connection step: The residual is used to continuously add the original input information to the output of the deep neural network and the interactive neural network before providing the transformed information of the deep neural network to the attention network; Attention network steps: An attention network is used to interpret the importance differences between various features; the calculated attention scores are projected back to the output of the residual connection step; Output steps: Outputs a decimal number in the range 0-1, indicating the user's interest in the given question.

3. According to claim 2, the online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features is characterized in that: A high-dimensional vector of information about users and items, containing the history of interactions between users and items as well as incidental information about users and items.

4. According to claim 2, the online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features is characterized in that: The embedding operation of the embedding layer is expressed as: X embed,i =W embed,i X i X embed,i is the embedding result of the i-th classification feature, W embed,i X is the embedding matrix that maps the i-th original classification feature to a low-dimensional space. i is the ith feature.

5. According to claim 2, the online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features is characterized in that: The interactive neural network consists of several layers, each of which is a feature interaction operation. For each interactive layer, the feature interaction operation is expressed as: X f+1 =X0X l W l +b l +X l Where X l is the output of the lth layer, W l and b l are the weights and bias parameters for each interaction layer.

6. The online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features according to claim 2, characterized in that: Each layer of a deep neural network is expressed as: h l+1 =f(W l h l +b l ) where h l is the l-th layer output of the deep component, f(·) is the activation function, W l and b l are the parameters of the lth layer of the deep neural network.

7. The online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features according to claim 6, characterized in that: The activation function uses the ReLU activation function.

8. The online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features according to claim 2, characterized in that: The attention mechanism of the attention network is described as follows: a′ i =ReLU(WX i +b) W and b are model parameters, X i For the i-th feature, the attention score is calculated by the activation function ReLU.

9. The online knowledge sharing recommendation method based on the interaction of attention mechanism and high-order features according to claim 2, characterized in that: The calculated attention scores are projected back to the output of the residual connection step and are expressed as follows: X s =a i WX a i is the calculated attention score, W is the adopted weight, X is the output of the residual connection step, and X s is the output after applying the attention mechanism.

10. An online knowledge sharing recommendation system based on the interaction of attention mechanism and high-order features, characterized in that: The method comprises a memory, a processor and computer program instructions stored in the memory and executable by the processor. When the processor executes the computer program instructions, the method steps as claimed in any one of claims 1 to 9 can be implemented.

Citation Information

Patent Citations

  • Knowledge enhancement recommendation method based on graph neural network multi-space interactive modeling

    CN116842260A

  • Click rate prediction method of decoupling attention network based on information sharing

    CN116976505A

  • Recommender system and its operation

    US20240184835A1

  • Interpretable recommendation method based on graph neural network inference

    WO2022222037A1