《计算机应用》唯一官方网站

• •    下一篇

基于分层强化学习的知识图谱约束问答模型

许浩翔1,余敦辉2,邓怡辰1,肖奎1   

  1. 1. 湖北大学
    2. 湖北大学 计算机与信息工程学院,武汉 430062
  • 收稿日期:2024-12-24 修回日期:2025-04-14 发布日期:2025-04-25 出版日期:2025-04-25
  • 通讯作者: 邓怡辰
  • 基金资助:
    国家自然科学基金

Knowledge Graph Constrained Question Answering Model Based on Hierarchical Reinforcement Learning

  • Received:2024-12-24 Revised:2025-04-14 Online:2025-04-25 Published:2025-04-25
  • Supported by:
    National Natural Science Foundation of China

摘要: 针对知识图谱问答模型(KGQA)中忽略约束信息和长路径维数灾难问题,提出了一种基于分层强化学习的知识图谱约束问答模型(KGQA-HRL)。首先,深度融合分层强化学习理念,将知识图谱中的三元组进行拆解,设计出上层策略和底层策略,化解推理路径的维数灾难隐患;其次,为了提高路径选择的准确性,提出基于注意力机制的动作甄选策略,配合融合约束信息的实体挑选策略,有效压缩推理搜索范围;再次,在动作选择与实体选择策略之间嵌入问题更新环节,使每跳问答进行二次更新;最后,在实体选择策略中构建约束集并计算约束得分,考虑问题中约束信息,提高实体选择准确性。基于四个知识图谱问答基准数据集,对CKG-HRL模型的性能进行实验。实验数据显示:本文提出的KGQA-HRL模型在所有数据集上均达到最优性能,较之前最佳模型(COPAR)提升3.1%。在复杂的三跳查询任务中表现突出(PQ数据集提升3.0%,MetaQA提升2.1%),验证了模型优异的推理能力。

关键词: 知识图谱问答, 分层强化学习, 复杂约束问题, 注意力机制, 维度灾难

Abstract: To address the issues of ignored constraint information and the curse of dimensionality in long reasoning paths for knowledge graph question answering (KGQA), a hierarchical reinforcement learning-based constrained KGQA model (KGQA-HRL) was proposed. First, the concept of hierarchical reinforcement learning was deeply integrated by decomposing triples in the knowledge graph, and a high-level policy along with a low-level policy was designed to mitigate the dimensionality challenge in reasoning paths. Then, to improve the accuracy of path selection, an attention-based action selection strategy was introduced, combined with an entity selection strategy incorporating constraint information, effectively narrowing the search space for reasoning. Additionally, a question update mechanism was embedded between the action selection and entity selection strategies, enabling secondary updates of the question at each reasoning step. Finally, a constraint set was constructed in the entity selection strategy, and constraint scores were calculated to incorporate constraint information from the question, enhancing the precision of entity selection. Experiments were conducted on four KGQA benchmark datasets to evaluate the performance of KGQA-HRL. The results demonstrate that KGQA-HRL achieves state-of-the-art performance across all datasets, with an average improvement of 3.1% over the previous best model (COPAR). Notably, it exhibits outstanding performance in complex three-hop query tasks (3.0% improvement on the PQ dataset and 2.1% on MetaQA), validating its superior reasoning capability.

Key words: knowledge graph question answering, hierarchical reinforcement learning, complex constrained problems, attention mechanism, curse of dimensionality

中图分类号: