作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2020, Vol. 46 ›› Issue (10): 52-59. doi: 10.19678/j.issn.1000-3428.0055861

• 人工智能与模式识别 • 上一篇    下一篇

基于异质注意力循环神经网络的文本推荐

牛耀强1, 孟昱煜1, 牛全福2   

  1. 1. 兰州交通大学 电子与信息工程学院, 兰州 730070;
    2. 兰州理工大学 土木工程学院, 兰州 730050
  • 收稿日期:2019-08-30 修回日期:2019-10-19 发布日期:2019-11-04
  • 作者简介:牛耀强(1995-),男,硕士研究生,主研方向为数据挖掘、智能计算;孟昱煜,副教授、硕士;牛全福,副教授、博士。
  • 基金资助:
    国家自然科学基金(41461084);甘肃省自然科学基金(1606RJZA033)。

Text Recommendation Based on Heterogeneous Attention Recurrent Neural Network

NIU Yaoqiang1, MENG Yuyu1, NIU Quanfu2   

  1. 1. School of Electronic and Information Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China;
    2. College of Civil Engineering, Lanzhou University of Technology, Lanzhou 730050, China
  • Received:2019-08-30 Revised:2019-10-19 Published:2019-11-04

摘要: 针对当前大数据环境下文本推荐不精确的问题,对文本数据和关系网络2种异质数据进行融合,并引入编码器-解码器框架,提出基于异质注意力的循环神经网络模型用于短期文本推荐。使用句子级的分布记忆模型和实体关系表示方法TransR,分别将文本数据和关系网络嵌入到高维向量中作为模型的输入。在编码器阶段,使用双向GRU将用户的短期兴趣引入到推荐模型中,并将注意力机制与解码器相连接,使解码器能动态地选择并线性组合编码器输入序列的不同部分,以建模用户在短期内的偏好。在解码器阶段,将编码器的注意力输出、候选项和当前用户的表示作为输入。通过双向GRU和前馈网络层,计算每个候选项的得分得到推荐结果。实验结果表明,与TF-IDF和ItemKNN等模型相比,该模型在召回率和均值平均精度指标上均有明显提升。

关键词: 短期文本推荐, 数据嵌入, 异质数据, 双向GRU, 注意力机制

Abstract: To improve the inaccurate text recommendation in the big data environment,this paper merges two kinds of heterogeneous data,text data and relational network,and introduces the encoder-decoder framework.On this basis,a Recurrent Neural Network(RNN) model based on heterogeneous attention is proposed for short-term text recommendation.The sentence-level Distributed Memory Model of Paragraph Vectors(PV-DM) and the representation method for entity relations,TransR,are used to embed text data and relational network into high-dimensional vectors as the input of the model.In the encoding stage,the short-term interests of users are introduced into the recommendation model by using bidirectional GRU,and the attention mechanism is used to connect with the decoder,so that the decoder can dynamically select and linearly combine different parts of the input sequence of the encoder in order to build short-term interests of users.In the decoder stage,the attention output of the encoder,the candidate items,and the representation of current users are taken as inputs.The score of each candidate item is calculated with the bidirectional GRU and the feedforward network layer to obtain the recommendation result.Experimental results show that compared with TF-IDF,ItemKNN and other models,the proposed model significantly improves the recall rate and the average precision of the mean.

Key words: short-term text recommendation, data embedding, heterogeneous data, bidirectional GRU, attention mechanism

中图分类号: