CN111881363A - Recommendation method based on graph interaction network - Google Patents
Recommendation method based on graph interaction network Download PDFInfo
- Publication number
- CN111881363A CN111881363A CN202010578943.8A CN202010578943A CN111881363A CN 111881363 A CN111881363 A CN 111881363A CN 202010578943 A CN202010578943 A CN 202010578943A CN 111881363 A CN111881363 A CN 111881363A
- Authority
- CN
- China
- Prior art keywords
- user
- node
- interactive
- network
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9536—Search customisation based on social or collaborative filtering
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
- G06F18/253—Fusion techniques of extracted features
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0631—Recommending goods or services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- Software Systems (AREA)
- Biomedical Technology (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种基于图交互网络的推荐方法应用于用户个性化推荐领域。互联网产业的快速发展以及网络数据量的持续增长,传统的推荐方法和深度学习方法难以满足复杂的应用环境,在准确率和空间复杂度方面存在着不足。因此本发明提出了一种基于图交互网络的推荐方法,采用该方案可以保证个性化推荐准确率的同时,降低模型空间复杂度,有着广阔的应用前景。
A recommendation method based on graph interaction network is applied in the field of user personalized recommendation. With the rapid development of the Internet industry and the continuous growth of the amount of network data, traditional recommendation methods and deep learning methods are difficult to meet the complex application environment, and there are shortcomings in terms of accuracy and space complexity. Therefore, the present invention proposes a recommendation method based on a graph interaction network, which can ensure the accuracy of personalized recommendation and reduce the complexity of the model space, and has broad application prospects.
Description
技术领域technical field
本发明应用于基于U-I关系的推荐系统领域,具体涉及图深度网络、注意力机制、用户偏好信息以及物品属性信息特征提取,U-I交互信息建模等数据挖掘与深度学习技术。The invention is applied to the field of recommendation system based on U-I relationship, and specifically relates to data mining and deep learning technologies such as graph depth network, attention mechanism, user preference information and item attribute information feature extraction, U-I interaction information modeling and the like.
背景技术Background technique
个性化推荐是一个综合性的分析任务,在社交网络,音乐电台,电子商务,个性化广告,电影和视频网站等领域应用广泛,因此备受关注。随着互联网产业的快速发展以及网络数据量的持续增长,推荐系统面临着越来越复杂的推荐任务和应用环境。尤其是进入Web2.0时代以来,伴随着社会化网络媒体的异军突起,互联网民众既是网络信息的消费者,也是网络内容的生产者,互联网中的信息量呈指数级增长。由于用户的辨别能力有限,在面对庞大且复杂的互联网信息时往往感到无从下手,使得在互联网中找寻有用信息的成本巨大,信息过载问题由此诞生。因此,对于用户而言,如何在以指数增长的资源中快速、准确地定位到自己需要的内容是一个非常重要且极具挑战的事情。对于商家而言,如何把恰当的物品及时呈现给用户,从而促进交易量和经济增长,也是一件颇具难度的事情。推荐系统的出现极大地缓解了这个困难。Personalized recommendation is a comprehensive analysis task, which is widely used in social networking, music radio, e-commerce, personalized advertising, movie and video websites and other fields, so it has attracted much attention. With the rapid development of the Internet industry and the continuous growth of the amount of network data, recommendation systems are faced with increasingly complex recommendation tasks and application environments. Especially since entering the Web2.0 era, with the sudden emergence of social network media, Internet people are both consumers of network information and producers of network content, and the amount of information on the Internet has grown exponentially. Due to the limited ability of users to discriminate, they often feel helpless in the face of huge and complex Internet information, which makes the cost of finding useful information on the Internet huge, and the problem of information overload is born. Therefore, for users, how to quickly and accurately locate the content they need in the exponentially growing resources is a very important and challenging thing. It is also quite difficult for merchants to present appropriate items to users in a timely manner, thereby promoting transaction volume and economic growth. The emergence of recommender systems has greatly alleviated this difficulty.
协同过滤算法作为最为经典的传统推荐算法,在早些年的推荐场景中发挥了重要作用。协同过滤算法可以自然地建模用户和物品间的高阶关系,模型复杂度低,易于部署。这些优势让其成为至今为止应用最为广泛的推荐方法。但是随着互联网用户的爆发性增长,物品种类和属性越来越齐全,互联网资源的日益丰富性让用户偏好信息正在向多元化,细致化的趋势发展。在这种环境下,算法的推荐准确率存在着很大的不足,以协同过滤算法为代表的传统的推荐算法难以满足用户的个性化需求。As the most classic traditional recommendation algorithm, the collaborative filtering algorithm has played an important role in the recommendation scenarios in the early years. Collaborative filtering algorithms can naturally model higher-order relationships between users and items, with low model complexity and easy deployment. These advantages make it the most widely used recommendation method to date. However, with the explosive growth of Internet users, the types and attributes of items are becoming more and more complete, and the increasing abundance of Internet resources makes user preference information develop towards a diversified and detailed trend. In this environment, the recommendation accuracy rate of the algorithm has great shortcomings, and the traditional recommendation algorithm represented by the collaborative filtering algorithm is difficult to meet the personalized needs of users.
近些年来,深度学习技术得到了快速发展。深度学习在计算机视觉,自然语言处理,推荐系统领域应用越来越广泛。深度学习技术通过搭建深层网络深层次的挖掘用户偏好信息和物品属性信息。革新了推荐系统的模型架构,克服了传统模型的诸多缺陷。在推荐准确率上获得了较大的提高,以及在系统冷启动等问题上有了更为有效的解决方案,获得了人们广泛的关注。但是,传统的深度学习技术不能自然地结合用户和物品信息。一般只是根据用户和物品的交互关系,利用深层网络提取更为优质的用户及物品特征,再通过其他模型或者另一个深层网络预测用户对待推荐物品的偏好程度,这种多模型堆叠的方法虽然提高了个性化推荐准确率,但是模型难以得到方便部署,模型的可扩展性和空间复杂度方面难以得到有效保证。In recent years, deep learning technology has developed rapidly. Deep learning is more and more widely used in the fields of computer vision, natural language processing, and recommendation systems. Deep learning technology deeply mines user preference information and item attribute information by building a deep network. The model architecture of the recommender system is innovated, and many defects of the traditional model are overcome. The recommendation accuracy rate has been greatly improved, and there are more effective solutions to problems such as system cold start, which have gained widespread attention. However, traditional deep learning techniques cannot naturally combine user and item information. Generally, based on the interaction between users and items, the deep network is used to extract better user and item features, and then other models or another deep network are used to predict the user's preference for recommended items. Although this multi-model stacking method improves the The accuracy of personalized recommendation is improved, but the model is difficult to deploy easily, and the scalability and space complexity of the model cannot be effectively guaranteed.
近年来,非欧式数据的分析处理成为了学术界和工业界的热点话题,图深度网络能够自然地集成用户和物品的交互关系。有效地提取图数据特征以及节点特征,自然地挖掘用户偏好和物品属性信息表达,为个性化推荐任务提供了一个崭新的方向。近几年,图深度网络的研究有了很大的发展,Thomas Kpif于2017年提出了图卷积网络的概念,它为图结构数据的处理提供了一个崭新的思路,将深度学习中的卷积神经网络应用到图结构数据上。其中,基于空间域的图卷积方法,以任一节点为卷积对象,汇集邻居节点的信息来构建图卷积层,由于其灵活高效,因此相比基于频域的图卷积方法应用更为广泛。与此同时,Hamilton提出一种适用于大规模网络的归纳式学习方式,实现了无需额外训练就能为新增节点快速生成节点特征,极大缓解了图卷积神经网络的可扩展性问题。图深度网络的快速发展为个性化推荐系统的搭建指明了方向。In recent years, the analysis and processing of non-European data has become a hot topic in academia and industry, and graph deep networks can naturally integrate the interaction between users and items. Effectively extracting graph data features and node features, naturally mining user preferences and item attribute information expression, provides a new direction for personalized recommendation tasks. In recent years, the research of graph deep network has made great progress. Thomas Kpif proposed the concept of graph convolutional network in 2017, which provides a new idea for the processing of graph structure data. The product neural network is applied to graph-structured data. Among them, the graph convolution method based on the spatial domain takes any node as the convolution object and collects the information of the neighbor nodes to construct the graph convolution layer. Because of its flexibility and efficiency, it is more applicable than the graph convolution method based on the frequency domain. for broad. At the same time, Hamilton proposed an inductive learning method suitable for large-scale networks, which can quickly generate node features for new nodes without additional training, which greatly alleviates the scalability problem of graph convolutional neural networks. The rapid development of graph deep networks has pointed out the direction for the construction of personalized recommendation systems.
发明内容SUMMARY OF THE INVENTION
为了实现用户的个性化推荐系统,提出了一种基于图交互网络的个性化推荐方案。方法流程如图1所示。该方法以U-I交互关系图作为输入数据,各模块对用户偏好、物品属性完成特征提取和特征分析处理,最后输出用户对目标物品的预测评分。具体来说,该方法首先将用户和物品交互关系数据进行图结构建模,数据集均来自于工业界公开数据集。完成图结构化处理后,通过堆叠多层均值卷积层优化用户和物品的特征分布。在U-I特征优化完成后,用户特征和符合用户偏好的物品特征之间会有较大的相似性。随后利用注意力机制,融合目标用户节点特征和待推荐物品节点特征得到图交互网络的隐含特征表达,也就是U-I关系对的交互向量,最后方法通过多层图全连接层网络学习交互特征向量的分布规律,建模U-I之间高阶非线性关系,得到用户对目标物品的预测评分。最后通过top-N推荐机制实现对用户的个性化推荐任务。本方法总体框图如图1所示。In order to realize the user's personalized recommendation system, a personalized recommendation scheme based on graph interaction network is proposed. The method flow is shown in Figure 1. The method takes the U-I interaction diagram as input data, and each module completes feature extraction and feature analysis for user preferences and item attributes, and finally outputs the user's predicted score for the target item. Specifically, the method firstly models the interaction relationship data between users and items on a graph structure, and the datasets are all from the public datasets in the industry. After completing the graph structuring process, the feature distribution of users and items is optimized by stacking multiple mean convolutional layers. After the U-I feature optimization is completed, there will be a greater similarity between user features and item features that meet user preferences. Then, the attention mechanism is used to fuse the node features of the target user and the node features of the item to be recommended to obtain the implicit feature expression of the graph interaction network, that is, the interaction vector of the U-I relationship pair. Finally, the method learns the interaction feature vector through a multi-layer graph fully connected layer network The distribution law of , model the high-order nonlinear relationship between U-I, and get the user's predicted score for the target item. Finally, the personalized recommendation task for users is realized through the top-N recommendation mechanism. The overall block diagram of this method is shown in Figure 1.
本方法各主要模块的发明内容如下:The invention contents of each main module of this method are as follows:
1.用户偏好信息和物品属性信息优化1. Optimization of user preference information and item attribute information
第一个模块是用户偏好和物品属性特征优化模块,用户偏好信息建模的目的是根据用户交互行为得到精确的用户特征表示,进而充分挖掘用户的兴趣爱好信息。物品属性信息建模是为了获得完善的关系属性和内容特性,进而精确地找到物品的受众群体,完成物品的个性化推荐。通过使用两层均值卷积层快速得到用户和物品特征表达。其中用户偏好和物品属性相符合的U-I之间的特征会更相近。用户和物品特征提取是构建推荐系统的重要组成部分,对个性化推荐发挥着关键作用。The first module is the user preference and item attribute feature optimization module. The purpose of user preference information modeling is to obtain accurate user feature representation according to user interaction behavior, and then fully mine the user's hobby information. Item attribute information modeling is to obtain perfect relationship attributes and content characteristics, and then accurately find the audience of the item and complete the personalized recommendation of the item. User and item feature representations are quickly obtained by using two mean convolutional layers. The characteristics between U-Is that match user preferences and item attributes will be more similar. User and item feature extraction is an important part of building a recommendation system and plays a key role in personalized recommendation.
首先将U-I交互数据进行图结构化建模,发生交互行为的用户物品之间建立连接关系。图结构化建模完成后,初始化用户偏好特征和物品属性特征,随后进行用户物品特征精确建模,进而充分挖掘用户偏好信息和物品属性信息。本方法通过两层均值卷积层进行用户和物品的特征优化,其中每一层目标节点特征学习是基于该节点上一层邻居节点特征和该节点特征进行平均化处理得到。用户和物品特征建模完成后,用户特征和物品特征已经具备了较强的分布规律性,进而初步提取了用户偏好和物品属性信息。均值卷积处理在保证了特征准确性的同时极大地降低了模型的空间复杂度。该模块流程框架如图2所示。Firstly, the U-I interaction data is modeled by graph structure, and the connection relationship is established between the user items that interact with each other. After the graph structured modeling is completed, the user preference feature and item attribute feature are initialized, and then the user item feature is accurately modeled, so as to fully mine the user preference information and item attribute information. The method optimizes the features of users and items through two layers of mean convolution layers, in which the feature learning of each layer of target nodes is obtained by averaging the features of the neighbor nodes on the node and the features of the node. After the user and item feature modeling is completed, the user features and item features have a strong distribution regularity, and then the user preference and item attribute information are preliminarily extracted. The mean convolution process greatly reduces the space complexity of the model while ensuring the feature accuracy. The module process framework is shown in Figure 2.
2.U-I交互特征提取模块2. U-I interactive feature extraction module
第二个模块是U-I交互特征提取模块,这一模块的功能是提取用户物品对之间的交互特征表达。U-I交互特征提取模块是在用户偏好信息和物品属性信息提取完成后,融合图注意力机制,直接在图神经网络上融合用户特征和物品特征学习其交互特征表达。U-I交互特征是交互推测模块的输入特征。The second module is the U-I interaction feature extraction module, the function of this module is to extract the interaction feature expression between user item pairs. The U-I interactive feature extraction module integrates the graph attention mechanism after the extraction of user preference information and item attribute information is completed, and directly integrates user features and item features on the graph neural network to learn its interactive feature expression. U-I interaction features are the input features of the interaction inference module.
首先,拼接用户特征和用户一阶邻居节点特征,以及拼接待推荐物品特征和其一阶邻居节点特征,然后将拼接完的特征输入到自注意力网络中得到该模块的attention系数,其中自注意力网络本发明采用的是多层全连接层网络建模。最后,通过学习得到的attention系数聚合U-I目标节点特征和其邻居节点特征得到最终的交互特征表达。该模块具体流程如图3所示。First, splicing user features and user first-order neighbor node features, as well as splicing recommended item features and its first-order neighbor node features, and then inputting the spliced features into the self-attention network to obtain the attention coefficient of the module, where self-attention Force Network The present invention adopts multi-layer fully connected layer network modeling. Finally, the final interaction feature expression is obtained by aggregating the features of the U-I target node and its neighbor nodes through the learned attention coefficient. The specific process of this module is shown in Figure 3.
3.交互推测模块3. Interactive speculation module
第三个模块是交互推测模块,这一模块的功能是在U-I交互特征提取模块提取用户和目标物品之间的交互特征后,学习交互特征的分布规律,进而得到用户对目标物品的推测评分。交互推测模块是构建推荐必不可少的一步,交互推测模块设计方法有很多,比如传统的特征内积、逻辑回归算法等,然而这些传统算法不能很好的建模用户和物品的高维特征关系,因此本发明采用经典的DNN算法融合用户和物品的特征信息,得到更为精确的推测结果。The third module is the interactive inference module. The function of this module is to learn the distribution law of the interactive features after the U-I interactive feature extraction module extracts the interactive features between the user and the target item, and then obtain the user's inference score for the target item. The interactive inference module is an indispensable step for building recommendations. There are many design methods for the interactive inference module, such as traditional feature inner product, logistic regression algorithm, etc. However, these traditional algorithms cannot model the high-dimensional feature relationship between users and items well , so the present invention adopts the classical DNN algorithm to fuse the feature information of users and items to obtain more accurate prediction results.
在得到用户和目标物品的交互特征表达后,直接将交互向量输入到DNN网络中,得到模型的初步预测。然后,通过sigmoid函数对模块预测值进行归一化处理,将用户对目标物品的预测评分建模为偏好概率表达。该模块流程如图4表示。After obtaining the interaction feature expression between the user and the target item, the interaction vector is directly input into the DNN network to obtain the initial prediction of the model. Then, the predicted value of the module is normalized by the sigmoid function, and the user's predicted score of the target item is modeled as a preference probability expression. The flow of this module is shown in Figure 4.
4.Top-N推荐模块4.Top-N recommended module
本发明最后一个模块是top-N推荐模块,top-N推荐机制也是构建推荐系统最为常用的机制。在得到目标用户对待推荐列表所有物品的评值预测后。对所有物品根据评分进行降序排序,将前N个物品推荐给该用户,实现该用户的个性化推荐。The last module of the present invention is the top-N recommendation module, and the top-N recommendation mechanism is also the most commonly used mechanism for building a recommendation system. After getting the evaluation prediction of the target user's treatment of all items in the recommendation list. Sort all items in descending order according to the scores, and recommend the top N items to the user to realize the user's personalized recommendation.
附图说明Description of drawings
图1为基于交互图神经网络的总体框图;Fig. 1 is the overall block diagram based on the interaction graph neural network;
图2为用户偏好信息和物品属性信息建模模块框架;Fig. 2 is the modeling module framework of user preference information and item attribute information;
图3为U-I交互特征提取模块框架Figure 3 shows the framework of the U-I interactive feature extraction module
图4为交互推测模块框架Figure 4 shows the framework of the interactive speculation module
具体实施方式:Detailed ways:
本发明提出了一种基于交互图神经网络的个性化推荐方法。该发明的具体实现步骤如下:The invention proposes a personalized recommendation method based on the interaction graph neural network. The concrete realization steps of this invention are as follows:
步骤一:选择公开的推荐数据集,为所有的用户和物品编排序号,将每个用户交互过的所有物品中随机选取90%的物品作为训练集,剩下10%的物品作为测试集。其中每一条训练集和测试集中有三部分组成:用户,物品,标签。与该用户有交互行为的物品则该条数据的标签为1,否则标签为0。通过训练集中标签为1的所有条数据进行无向图结构化表达,为有交互行为的用户和物品建立连接关系。Step 1: Select a public recommendation data set, number all users and items, and randomly select 90% of the items that each user interacts with as the training set, and the remaining 10% of the items as the test set. Each of the training and test sets consists of three parts: users, items, and labels. For items that interact with the user, the label of the piece of data is 1, otherwise the label is 0. Through undirected graph structured representation of all pieces of data labeled as 1 in the training set, a connection relationship is established for users and items with interactive behaviors.
步骤二:完成训练集无向图结构化后,随机初始化图中所有用户节点和物品节点的高维特征表达,即随机初始化用户偏好信息和物品属性信息。然后根据无向图节点连接关系,搭建两层均值卷积层网络,每一层均值卷积层网络中的所有节点特征都是通过聚合上一层网络中的该节点特征和其一阶邻居节点特征得到,其中聚合方式为平均化处理,其数学表达式为:Step 2: After completing the undirected graph structuring of the training set, randomly initialize the high-dimensional feature representations of all user nodes and item nodes in the graph, that is, randomly initialize user preference information and item attribute information. Then, according to the node connection relationship of the undirected graph, a two-layer mean convolution layer network is built. All node features in each layer mean convolution layer network are obtained by aggregating the node features in the previous layer network and its first-order neighbor nodes. The features are obtained, where the aggregation method is average processing, and its mathematical expression is:
其中表示第K层均值卷积层的用户节点u的特征。N(u)表示用户节点u的一阶物品邻居节点。N(v)表示物品节点v的一阶用户邻居节点。表示第K层均值卷积层的物品节点v的特征。MEAN表示均值化处理,即相关U-I特征每个维度求其平均值。在经过多层均值卷积层处理之后,无向图中所有节点特征有了较大的分布规律性,偏好、属性相似的用户节点和物品节点特征会比较相似。用户偏好信息和物品属性信息得到了初步地建模。in Represents the feature of the user node u of the K-th mean convolutional layer. N(u) represents the first-order item neighbor nodes of user node u. N(v) represents the first-order user neighbor nodes of item node v. Represents the feature of the item node v of the K-th mean convolutional layer. MEAN stands for mean processing, that is, the average value of each dimension of related UI features. After the multi-layer mean convolution layer processing, the characteristics of all nodes in the undirected graph have a greater distribution regularity, and the characteristics of user nodes and item nodes with similar preferences and attributes will be similar. User preference information and item attribute information are preliminarily modeled.
步骤三:用户物品特征建模完成后,针对无向图中的目标用户和待推荐物品节点,融合图注意力机制,聚合用户及其一阶邻居特征、物品及其一阶邻居特征得到该U-I对之间的交互特征表达。拼接用户特征和用户一阶邻居节点特征,以及拼接待推荐物品特征和其一阶邻居节点特征,将拼接得到特征输入到注意力网络中得到用户和物品特征对应的attention系数。并对得到的attention系数进行softmax归一化处理。其中,图注意力网络本方法采用的是两层全连接层进行建模。采用多层全连接层搭建自注意力机制网络的优势明显,可以自适应无向图节点的一阶邻居节点数量,并且可以有效地建模节点的一阶邻居对于该节点的重要性。进而得到更为精确的attention系数。其中,attention系数建模数学表达式为:Step 3: After the user item feature modeling is completed, for the target user and the item node to be recommended in the undirected graph, the graph attention mechanism is integrated, and the user and its first-order neighbor features, items and their first-order neighbor features are aggregated to obtain the U-I. Interaction feature representation between pairs. Splicing user features and user first-order neighbor node features, as well as splicing recommended item features and its first-order neighbor node features, and inputting the spliced features into the attention network to obtain the attention coefficients corresponding to the user and item features. And perform softmax normalization on the obtained attention coefficient. Among them, the graph attention network adopts two fully connected layers for modeling. The advantages of building a self-attention mechanism network with multi-layer fully connected layers are obvious. It can adapt to the number of first-order neighbor nodes of an undirected graph node, and can effectively model the importance of a node's first-order neighbors to the node. In turn, a more accurate attention coefficient is obtained. Among them, the mathematical expression of the attention coefficient modeling is:
其中,W1,W2表示两层attention网络第一层、第二层的参数矩阵,b1,b2表示两层attention网络第一层、第二层的偏差系数,σ表示的是非线性激活函数,本发明采用的是Relu激活函数。表示的是无向图中目标用户ui的节点特征。ha表示的是节点a的特征,节点a是用户ui及其一阶邻居N(i)的集合中任一节点。N(i)表示用户ui的一阶物品邻居集合。表示拼接处理。表示的是待推荐物品vj的节点特征。hb表示的是节点b的特征,节点b是物品vj及其一阶邻居N(j)的集合中任一节点。N(j)表示物品vj的一阶用户邻居集合。和表示将拼接得到的特征通过attention网络初步得到的权重系数。随后进行softmax归一化处理,得到目标用户及其一阶邻居的attention系数αia和待推荐物品及其一阶邻居的attention系数βjb。Among them, W 1 , W 2 represent the parameter matrix of the first and second layers of the two-layer attention network, b 1 , b 2 represent the deviation coefficients of the first and second layers of the two-layer attention network, and σ represents the nonlinear activation function, the present invention adopts the Relu activation function. Represents the node features of the target user ui in the undirected graph. h a represents the feature of node a, which is any node in the set of user ui and its first-order neighbor N(i). N(i) represents the set of first-order item neighbors of user ui . Indicates the splicing process. Represents the node features of the item v j to be recommended. h b represents the characteristics of node b, which is any node in the set of item v j and its first-order neighbor N(j). N(j) represents the set of first-order user neighbors of item v j . and Indicates the weight coefficient initially obtained by passing the spliced features through the attention network. Then perform softmax normalization to obtain the attention coefficient α ia of the target user and its first-order neighbors, and the attention coefficient β jb of the item to be recommended and its first-order neighbors.
在得到用户及其一阶邻居和目标物品及其一阶邻居的attention系数后,融合attention系数加权目标节点特征得到最终的交互特征表达。其数学表达式为:After obtaining the attention coefficients of the user and its first-order neighbors and the target item and its first-order neighbors, the target node features are weighted by the attention coefficients to obtain the final interactive feature expression. Its mathematical expression is:
zij为得到的目标用户ui及其待推荐物品vj的交互特征表达。z ij is the obtained interactive feature expression of the target user ui and the item to be recommended v j .
步骤四:在得到用户和目标物品的交互特征表达后,模型通过交互推测模块学习交互特征的分布规律,进而得到用户对该物品精确的物品评分。交互推测模块本方法使用的是经典的DNN网络。DNN网络能够有效的学习特征分布,建模用户和物品间的非线性关系。交互推测模块直接将交互特征输入到DNN网络中,得到用户对该物品的预测评分,然后再通过sigmoid归一化处理将模型的预测评分建模为用户对目标物品的概率表达。其数学表达式为:Step 4: After obtaining the interactive feature expression between the user and the target item, the model learns the distribution law of the interactive feature through the interactive inference module, and then obtains the user's accurate item rating for the item. Interactive inference module This method uses the classic DNN network. DNN networks can effectively learn feature distributions and model nonlinear relationships between users and items. The interactive inference module directly inputs the interactive features into the DNN network to obtain the user's predicted score for the item, and then uses the sigmoid normalization process to model the model's predicted score as the user's probability expression for the target item. Its mathematical expression is:
g1=zij (8)g 1 =z ij (8)
g2=σ(W1·g1+b1) (9)g 2 =σ(W 1 ·g 1 +b 1 ) (9)
g3=σ(W2·g2+b2) (10)g 3 =σ(W 2 ·g 2 +b 2 ) (10)
r′ij=sigmoid(W3·g3) (11)r′ ij =sigmoid(W 3 ·g 3 ) (11)
其中W1,W2,W3表示DNN网络的参数矩阵,b1,b2表示的是DNN网络中的偏差系数,σ表示的是非线性激活函数,本发法采用的是Relu激活函数。g1,g2,g3是DNN网络每一层输出的交互向量表达。r′ij是经过sigmoid归一化后得到的最终的概率预测评值表达。Wherein W 1 , W 2 , W 3 represent the parameter matrix of the DNN network, b 1 , b 2 represent the deviation coefficient in the DNN network, σ represents the nonlinear activation function, and the present method adopts the Relu activation function. g 1 , g 2 , g 3 are the interaction vector representations of the output of each layer of the DNN network. r′ ij is the final probability prediction evaluation value expression obtained after sigmoid normalization.
步骤五:为了优化模型的参数和用户物品节点特征表达。本方明通过构造交叉熵损失函数建模模型的拟合程度,通过随机梯度下降算法最小化损失函数值,进而达到优化模型参数和节点特征的效果。其中,交叉熵损失函数的数学表达式为:Step 5: In order to optimize the parameters of the model and the feature expression of user item nodes. By constructing the fitting degree of the cross-entropy loss function modeling model, this method minimizes the loss function value through the stochastic gradient descent algorithm, and then achieves the effect of optimizing the model parameters and node characteristics. Among them, the mathematical expression of the cross entropy loss function is:
其中|O|表示训练模型时在无向图中提取的所有用户物品节点对,rij表示目标用户ui和待推荐物品vj的标签值,取值范围为{0,1}。标签为0表示物品vj属性信息不符合用户ui的偏好信息,作为模型训练的负样本。标签为1表示用户ui与物品vj有交互行为,属于模型训练的正样本数据。r′ij表示模型的预测评分。通过随机梯度下降算法最小化r′ij和实际标签rij的差值进而优化损失函数值,进而优化模型的参数矩阵,有效提取用户偏好信息和物品属性信息。Where |O| represents all user item node pairs extracted in the undirected graph when training the model, ri ij represents the label value of the target user ui and the item to be recommended v j , and the value range is {0,1}. A label of 0 indicates that the attribute information of item v j does not conform to the preference information of user ui , which is used as a negative sample for model training. The label of 1 indicates that the user ui interacts with the item vj , which belongs to the positive sample data for model training. r′ ij represents the predicted score of the model. The stochastic gradient descent algorithm is used to minimize the difference between r′ ij and the actual label r ij to optimize the loss function value, and then optimize the parameter matrix of the model to effectively extract user preference information and item attribute information.
步骤六:模型训练完成后,为了验证本发明的有效性,将本发明的算法在数据集huaban和Amazon-Book上进行了实验。模型训练完成后,对于每个数据集的测试集,以1:100的比例随机采集负样本参与模型的预测评比。同时,为了保证模型评比的有效性,测试集采集的负样本没有在训练集集参与训练。在得到模型对每个用户的所有物品的预测评值后,根据模型输出值对参与评比的物品进行由大到小排序,通过top-N推荐机制取排序完成后的前N个物品推荐给该目标用户。并通过有效的评价指标评比该方法的有效性。表1和表2展示了本发明的算法与部分前沿推荐算法recall评比方法的对比,可以看到本算法优于展示的其他的推荐算法。Step 6: After the model training is completed, in order to verify the effectiveness of the present invention, the algorithm of the present invention is tested on the data sets huaban and Amazon-Book. After the model training is completed, for the test set of each data set, negative samples are randomly collected at a ratio of 1:100 to participate in the prediction evaluation of the model. At the same time, in order to ensure the validity of the model evaluation, the negative samples collected in the test set did not participate in the training in the training set. After obtaining the predicted evaluation value of all items of each user by the model, sort the items participating in the evaluation from large to small according to the output value of the model, and use the top-N recommendation mechanism to select the top N items after the sorting is completed and recommend them to the user. Target users. And evaluate the effectiveness of the method through effective evaluation indicators. Tables 1 and 2 show the comparison between the algorithm of the present invention and the recall evaluation method of some cutting-edge recommendation algorithms. It can be seen that the algorithm is superior to other recommended algorithms shown.
表1:Amazon-book数据集上的性能对比Table 1: Performance comparison on Amazon-book dataset
表2:huaban数据集上的性能对比Table 2: Performance comparison on the huaban dataset
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010578943.8A CN111881363B (en) | 2020-06-23 | 2020-06-23 | Recommendation method based on graph interaction network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010578943.8A CN111881363B (en) | 2020-06-23 | 2020-06-23 | Recommendation method based on graph interaction network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111881363A true CN111881363A (en) | 2020-11-03 |
CN111881363B CN111881363B (en) | 2024-06-25 |
Family
ID=73158034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010578943.8A Active CN111881363B (en) | 2020-06-23 | 2020-06-23 | Recommendation method based on graph interaction network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111881363B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112347362A (en) * | 2020-11-16 | 2021-02-09 | 安徽农业大学 | A Personalized Recommendation Method Based on Graph Autoencoder |
CN112445981A (en) * | 2020-11-04 | 2021-03-05 | 西安电子科技大学 | Social and consumption joint recommendation system, method, storage medium and computer equipment |
CN112486467A (en) * | 2020-11-27 | 2021-03-12 | 武汉大学 | Interactive service recommendation method based on dual interaction relation and attention mechanism |
CN112559864A (en) * | 2020-12-14 | 2021-03-26 | 西安电子科技大学 | Bilinear graph network recommendation method and system based on knowledge graph enhancement |
CN113377656A (en) * | 2021-06-16 | 2021-09-10 | 南京大学 | Crowd-sourcing recommendation method based on graph neural network |
CN113590976A (en) * | 2021-07-17 | 2021-11-02 | 郑州大学 | Recommendation method of space self-adaptive graph convolution network |
CN114254102A (en) * | 2022-02-28 | 2022-03-29 | 南京众智维信息科技有限公司 | Natural language-based collaborative emergency response SOAR script recommendation method |
CN114817751A (en) * | 2022-06-24 | 2022-07-29 | 腾讯科技(深圳)有限公司 | Data processing method, data processing device, electronic equipment, storage medium and program product |
WO2023011382A1 (en) * | 2021-07-31 | 2023-02-09 | 华为技术有限公司 | Recommendation method, recommendation model training method, and related product |
US20230245210A1 (en) * | 2021-07-16 | 2023-08-03 | Tencent Technology (Shenzhen) Company Limited | Knowledge graph-based information recommendation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8463295B1 (en) * | 2011-12-07 | 2013-06-11 | Ebay Inc. | Systems and methods for generating location-based group recommendations |
CN110162706A (en) * | 2019-05-22 | 2019-08-23 | 南京邮电大学 | A kind of personalized recommendation method and system based on interaction data cluster |
CN110633421A (en) * | 2019-09-09 | 2019-12-31 | 北京瑞莱智慧科技有限公司 | Feature extraction, recommendation, and prediction methods, devices, media, and apparatuses |
CN110866145A (en) * | 2019-11-06 | 2020-03-06 | 辽宁工程技术大学 | A Common Preference Aided Deep Single-Class Collaborative Filtering Recommendation Method |
CN110910218A (en) * | 2019-11-21 | 2020-03-24 | 南京邮电大学 | A multi-action transfer recommendation method based on deep learning |
-
2020
- 2020-06-23 CN CN202010578943.8A patent/CN111881363B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8463295B1 (en) * | 2011-12-07 | 2013-06-11 | Ebay Inc. | Systems and methods for generating location-based group recommendations |
CN110162706A (en) * | 2019-05-22 | 2019-08-23 | 南京邮电大学 | A kind of personalized recommendation method and system based on interaction data cluster |
CN110633421A (en) * | 2019-09-09 | 2019-12-31 | 北京瑞莱智慧科技有限公司 | Feature extraction, recommendation, and prediction methods, devices, media, and apparatuses |
CN110866145A (en) * | 2019-11-06 | 2020-03-06 | 辽宁工程技术大学 | A Common Preference Aided Deep Single-Class Collaborative Filtering Recommendation Method |
CN110910218A (en) * | 2019-11-21 | 2020-03-24 | 南京邮电大学 | A multi-action transfer recommendation method based on deep learning |
Non-Patent Citations (1)
Title |
---|
周万珍;曹迪;许云峰;刘滨;: "推荐系统研究综述", 河北科技大学学报, no. 01 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445981A (en) * | 2020-11-04 | 2021-03-05 | 西安电子科技大学 | Social and consumption joint recommendation system, method, storage medium and computer equipment |
CN112347362A (en) * | 2020-11-16 | 2021-02-09 | 安徽农业大学 | A Personalized Recommendation Method Based on Graph Autoencoder |
CN112486467A (en) * | 2020-11-27 | 2021-03-12 | 武汉大学 | Interactive service recommendation method based on dual interaction relation and attention mechanism |
CN112486467B (en) * | 2020-11-27 | 2022-04-29 | 武汉大学 | Interactive service recommendation method based on dual interaction relation and attention mechanism |
CN112559864A (en) * | 2020-12-14 | 2021-03-26 | 西安电子科技大学 | Bilinear graph network recommendation method and system based on knowledge graph enhancement |
CN113377656A (en) * | 2021-06-16 | 2021-09-10 | 南京大学 | Crowd-sourcing recommendation method based on graph neural network |
CN113377656B (en) * | 2021-06-16 | 2023-06-23 | 南京大学 | A Crowd Test Recommendation Method Based on Graph Neural Network |
US20230245210A1 (en) * | 2021-07-16 | 2023-08-03 | Tencent Technology (Shenzhen) Company Limited | Knowledge graph-based information recommendation |
CN113590976A (en) * | 2021-07-17 | 2021-11-02 | 郑州大学 | Recommendation method of space self-adaptive graph convolution network |
WO2023011382A1 (en) * | 2021-07-31 | 2023-02-09 | 华为技术有限公司 | Recommendation method, recommendation model training method, and related product |
CN114254102A (en) * | 2022-02-28 | 2022-03-29 | 南京众智维信息科技有限公司 | Natural language-based collaborative emergency response SOAR script recommendation method |
CN114817751A (en) * | 2022-06-24 | 2022-07-29 | 腾讯科技(深圳)有限公司 | Data processing method, data processing device, electronic equipment, storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
CN111881363B (en) | 2024-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111881363A (en) | Recommendation method based on graph interaction network | |
CN109299396B (en) | Convolutional neural network collaborative filtering recommendation method and system fusing attention model | |
CN111881342B (en) | A recommendation method based on graph twin network | |
Wang et al. | An improved density peaks-based clustering method for social circle discovery in social networks | |
CN110674407B (en) | Hybrid recommendation method based on graph convolutional neural network | |
CN108363695B (en) | User comment attribute extraction method based on bidirectional dependency syntax tree representation | |
CN107808278A (en) | A kind of Github open source projects based on sparse self-encoding encoder recommend method | |
CN111563164A (en) | A Target-Specific Sentiment Classification Method Based on Graph Neural Network | |
CN114564573B (en) | Academic cooperation relationship prediction method based on heterogeneous graph neural network | |
Chen et al. | Learning user sentiment orientation in social networks for sentiment analysis | |
CN112307351A (en) | Model training and recommending method, device and equipment for user behavior | |
CN110362738A (en) | A kind of personalized recommendation method of combination trust and influence power based on deep learning | |
CN109034960B (en) | Multi-attribute inference method based on user node embedding | |
CN112860998B (en) | Click rate estimation method based on multi-task learning mechanism | |
CN108563755A (en) | A kind of personalized recommendation system and method based on bidirectional circulating neural network | |
CN112085525A (en) | User network purchasing behavior prediction research method based on hybrid model | |
CN106055661A (en) | Multi-interest resource recommendation method based on multi-Markov-chain model | |
CN116150480A (en) | User personalized demand prediction method integrating multi-mode comment information | |
CN111949885A (en) | A personalized recommendation method for tourist attractions | |
CN117313841A (en) | Knowledge enhancement method based on deep migration learning and graph neural network | |
CN112818256A (en) | Recommendation method based on neural collaborative filtering | |
CN116304299A (en) | A Personalized Recommendation Method Combining User Interest Evolution and Gradient Boosting Algorithm | |
Lu et al. | A hybrid collaborative filtering algorithm based on KNN and gradient boosting | |
CN106202515A (en) | A kind of Mobile solution based on sequence study recommends method and commending system thereof | |
CN118608334A (en) | An educational course recommendation system, method and application based on big data in the education industry |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |