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

计算机工程

• •    

渐进式候选动作评估的强化学习时序知识图谱多跳推理

  • 发布日期:2026-12-04

Multi-hop Reasoning on Temporal Knowledge Graphs via Reinforcement Learning with Progressive Action Candidate Evaluation

  • Published:2026-12-04

摘要: 时序知识图谱外推推理依据历史事实预测未来查询的目标实体。现有强化学习多跳路径推理主要依赖历史状态和基础策略评分选择动作,缺少对候选关系方向、历史证据及时间可靠性的关联评估,易受路径偏移和无关候选干扰。针对上述问题,提出渐进式候选动作评估强化学习方法PACE-RL(Progressive Action Candidate Evaluation Reinforcement Learning)。该方法基于CATTer-MLP路径搜索框架,以门控循环单元(GRU)编码历史路径,并设计相互衔接的关系转移感知、历史证据自适应调节和关系-时间动作置信校准机制。首先,关系转移感知层编码历史关系序列,结合查询关系与候选关系计算原始关系转移得分,形成关系一致性信息,并利用时间间隔进一步调节关系转移评分。其次,历史证据自适应调节层根据查询相关历史实体集合区分历史与非历史候选,利用复制门控和探索门控分别计算分支得分;融合关系语义一致性与前序关系证据形成历史掩码,对历史候选增强进行约束,同时保留对非历史候选的探索。最后,关系-时间动作置信校准层利用查询关系、候选关系和前序关系一致性信息计算关系置信度,结合时间间隔生成时间置信因子,通过联合置信系数对前序动作评分进行残差修正。各层结果融入动作策略分布,并使用REINFORCE算法优化路径选择策略,使前序证据参与后续候选筛选与评分。在ICEWS14、ICEWS18、WIKI和YAGO上开展对比、消融、参数敏感性及路径案例实验。PACE-RL的平均倒数排名(mean reciprocal rank,MRR)分别为43.68%、30.91%、78.83%和90.59%,较本文复现的CATTer-MLP分别提高3.13、2.12、4.05和3.30个百分点;其中ICEWS14、WIKI和YAGO的MRR在对比方法中最高,ICEWS18的部分指标仍有提升空间。完整评估链路的平均倒数排名高于各消融配置,失败路径案例显示仍可能出现局部动作选择偏差。结果说明,渐进式证据关联评估能够改善基础路径推理的动作选择与预测性能,但不同数据集和指标上的收益并不一致。

Abstract: Temporal knowledge graph extrapolation predicts target entities for future queries using historical facts. Existing reinforcement learning-based multi-hop reasoning methods mainly select actions based on historical states and baseline policy scores. They lack a joint evaluation of relation directions, historical evidence, and temporal reliability. This limitation may lead to path deviation and interference from irrelevant candidates. To address these problems, this paper proposes PACE-RL (Progressive Action Candidate Evaluation Reinforcement Learning). The method is built upon the CATTer-MLP path search framework. It uses a gated recurrent unit (GRU) to encode historical paths and introduces three interconnected stages: relation transition perception, adaptive historical evidence regulation, and relation-temporal action confidence calibration. First, the relation transition perception stage encodes historical relation sequences. It combines query relations and candidate relations to calculate initial relation transition scores and derive relation consistency information. Temporal intervals are then used to adjust the relation transition scores. Second, the adaptive historical evidence regulation stage distinguishes historical candidates from non-historical candidates using a query-related historical entity set. A copy gate and an exploration gate calculate scores for the two branches, respectively. A historical mask is then constructed by combining semantic relation consistency with relation evidence from the preceding stage. This mask regulates historical candidate enhancement while preserving the exploration of non-historical candidates. Third, the relation-temporal action confidence calibration stage calculates relation confidence using query relations, candidate relations, and preceding relation consistency information. It also generates a temporal confidence factor from time intervals. The combined confidence is used to correct preceding action scores through a residual mechanism. The evaluation results are integrated into the action policy distribution. The REINFORCE algorithm is used to optimize the path selection policy, allowing preceding evidence to influence subsequent candidate selection and scoring. Comparative experiments, ablation studies, parameter sensitivity analysis, and path case studies are conducted on ICEWS14, ICEWS18, WIKI, and YAGO. PACE-RL achieves mean reciprocal rank (MRR) values of 43.68%, 30.91%, 78.83%, and 90.59%, respectively. These results exceed those of the reproduced CATTer-MLP baseline by 3.13, 2.12, 4.05, and 3.30 percentage points. PACE-RL achieves the highest MRR among the compared methods on ICEWS14, WIKI, and YAGO, while some metrics on ICEWS18 still have room for improvement. The complete evaluation framework achieves higher MRR than all ablation configurations. Failure case analysis shows that local action selection deviations may still occur. The results indicate that progressive evidence-based evaluation improves action selection and prediction performance in multi-hop path reasoning. However, the performance gains vary across datasets and evaluation metrics.