Temporal Knowledge Graph Inference (TKGI) is a cornerstone for intelligent decision-making in dynamic scenarios, but existing models face critical bottlenecks, including inadequate complex-context modeling, a lack of entity importance quantification, insufficient novel-event reasoning accuracy, and weak domain adaptability. To address these issues, this study proposes a semantics-enhanced model (LLM-DSaR) integrating Large Language Models (LLMs), temporal attention networks, and optimized contrastive learning. Specifically, a two-stage LLM semantic enhancement (LLM1 + LLM2) framework first generates structured semantic analysis reports via adaptive prompt engineering, and then extracts domain-specific semantic embeddings from the last-layer hidden states through pooling and linear projection, which are further fused with TransE-based structural embeddings; meanwhile, LLM2 mitigates data sparsity in novel-event reasoning; a dynamic weight fusion (DWF) framework adaptively assigns feature weights to achieve deep feature synergy; an LLM-enhanced contrastive-learning module strengthens event clustering and discrimination. Experiments on five public datasets and a self-constructed Robotics Temporal Knowledge Graph (RTKG) show LLM-DSaR outperforms 16 baselines: on RTKG, its MRR is 10.35 percentage points higher than GCR, and Hits@10 reaches 88.87%. Ablation experiments validate core modules’ effectiveness, confirming LLM-DSaR adapts to professional scenarios like robot maintenance prediction, providing a novel technical paradigm for complex-domain TKG reasoning.
Liu et al. (Mon,) studied this question.