arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.10613cs.CL
收藏

使用上下文学习进行无知识的时序知识图谱预测

Temporal Knowledge Graph Forecasting Without Knowledge Using In-Context Learning

University of Southern California(南加州大学)

Dong-Ho Lee, Kian Ahrabian, Woojeong Jin, Fred Morstatter, Jay Pujara

AI总结:

本文研究使用上下文学习将大型语言模型应用于时序知识图谱预测,发现无需微调或显式模块即可达到与最先进模型相当的性能,且不依赖先验语义知识。

摘要:

时序知识图谱(TKG)预测基准挑战模型利用过去事实的知识来预测未来事实。在本文中,我们使用上下文学习(ICL)将大型语言模型(LLMs)应用于这些基准。我们研究了是否以及在多大程度上可以将LLMs用于TKG预测,特别是在没有任何微调或用于捕获结构和时间信息的显式模块的情况下。对于我们的实验,我们提出了一个框架,该框架将相关的历史事实转换为提示,并使用token概率生成排名预测。令人惊讶的是,我们观察到开箱即用的LLMs,其表现与为TKG预测精心设计和训练的最先进的TKG模型相当。我们的广泛评估展示了多个模型和具有不同特征的数据集的性能,比较了准备上下文信息的替代启发式方法,并与著名的TKG方法及简单的频率和近因基线进行了对比。我们还发现,使用数字索引代替实体/关系名称,即隐藏语义信息,并不会显著影响性能($\pm$0.4% Hit@1)。这表明不需要先验语义知识;相反,LLMs可以利用上下文中的现有模式来实现这样的性能。我们的分析还揭示,ICL使LLMs能够从历史上下文中学习不规律的模式,超越了基于常见或近期信息的简单预测。

英文摘要:

Temporal knowledge graph (TKG) forecasting benchmarks challenge models to predict future facts using knowledge of past facts. In this paper, we apply large language models (LLMs) to these benchmarks using in-context learning (ICL). We investigate whether and to what extent LLMs can be used for TKG forecasting, especially without any fine-tuning or explicit modules for capturing structural and temporal information. For our experiments, we present a framework that converts relevant historical facts into prompts and generates ranked predictions using token probabilities. Surprisingly, we observe that LLMs, out-of-the-box, perform on par with state-of-the-art TKG models carefully designed and trained for TKG forecasting. Our extensive evaluation presents performances across several models and datasets with different characteristics, compares alternative heuristics for preparing contextual information, and contrasts to prominent TKG methods and simple frequency and recency baselines. We also discover that using numerical indices instead of entity/relation names, i.e., hiding semantic information, does not significantly affect the performance ($\pm$0.4\% Hit@1). This shows that prior semantic knowledge is unnecessary; instead, LLMs can leverage the existing patterns in the context to achieve such performance. Our analysis also reveals that ICL enables LLMs to learn irregular patterns from the historical context, going beyond simple predictions based on common or recent information.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑