孙崇 王海荣 荆博祥 马赫



摘 要:针对知识推理过程中,随着推理路径长度的增加,节点的动作空间急剧增长,使得推理难度不断提升的问题,提出一种分层强化学习的知识推理方法(knowledge reasoning method of hierarchical reinforcement learning,MutiAg-HRL),降低推理过程中的动作空间大小。MutiAg-HRL调用高级智能体对知识图谱中的关系进行粗略推理,通过计算下一步关系及给定查询关系之间的相似度,确定目标实体大致位置,依据高级智能体给出的关系,指导低级智能体进行细致推理,选择下一步动作;模型还构造交互奖励机制,对两个智能体的关系和动作选择及时给予奖励,防止模型出现奖励稀疏问题。为验证该方法的有效性,在FB15K-237和NELL-995数据集上进行实验,将实验结果与TransE、MINERVA、HRL等11种主流方法进行对比分析,MutiAg-HRL方法在链接预测任务上的hits@k平均提升了1.85%,MRR平均提升了2%。
关键词:知识推理; 分层强化学习; 交互奖励; 链接预测
中图分类号:TP391 文献标志码:A
文章编号:1001-3695(2024)03-023-0805-06
doi:10.19734/j.issn.1001-3695.2023.07.0309
Knowledge reasoning method based on hierarchical reinforcement learning
Sun Chonga, Wang Haironga,b, Jing Boxianga, Ma Hea
(a.College of Computer Science & Engineering, b.The Key Laboratory of Images & Graphics Intelligent Processing of State Ethnic Affairs Commission, North Minzu University, Yinchuan 750021, China)
Abstract:In the process of knowledge inference, with the increase of the length of the inference path, the action space of the node increases sharply, which makes the inference difficulty continue to increase. This paper proposed a knowledge reasoning method of hierarchical reinforcement learning(MutiAg-HRL) to reduce the size of action space in the reasoning process. MutiAg-HRL invoked high-level agents to perform rough reasoning on the relationships in the knowledge graph, and determined the approximate location of the target entity by calculating the similarity between the next step relationship and the given query relationship. According to the relationship given by the high-level agent, the low-level agents were guided to conduct detailed reasoning and select the next action. The model also constructed an interactive reward mechanism to reward the relationship between the two agents and the choice of actions in time to prevent the problem of sparse reward in the model. To verify the effectiveness of the proposed method, it carried out experiments on FB15K-237 and NELL-995 datasets. The experimental results were compared with those of 11 mainstream methods such as TransE, MINERVA and HRL. The average value of the MutiAg-HRL method on the link prediction task hits@k is increased by 1.85%, MRR increases by an average of 2%.
Key words:knowledge reasoning; hierarchical reinforcement learning; interactive reward; link prediction
0 引言
近年來,知识图谱(KG)已经逐渐成为管理海量知识的有效手段[1],被广泛应用于各个领域,产生了一些大规模知识图谱,如Freebase、Wikidata等。这些知识图谱虽然已经颇具规模,涵盖了音乐、电影、书籍等领域,但仍存在大量信息缺失问题,如Freebase中71%的人没有出生地信息,Wikidata中只有2%的人类实体具有父亲信息。据统计,大部分知识图谱中,69%~99%的实体至少缺失一个属性信息[2]。知识缺失将直接影响基于知识图谱的下游任务的效果[3~5]。知识推理作为知识图谱补全的有效方法,已经成为日益重要的研究课题[6]。……