大型语言模型作为插值与外推事件预测器
Large Language Models as Interpolated and Extrapolated Event Predictors
AI总结:
本文提出 LEAP 框架,将 LLM 用于四元组与五元组事件预测,通过提示模板、指令微调及自注意力下游头替代 GNN/RNN,并在多数据集上验证有效性。
摘要:
社会政治事件的显著事实按照主体、关系、客体和时间戳的格式被提炼为四元组。图神经网络(GNN)和循环神经网络(RNN)等机器学习方法已被用于在基于四元组的知识图谱(KG)上进行预测和推断关系。在许多应用中,四元组会扩展为五元组,并加入描述四元组事件的文本摘要等辅助属性。本文全面研究大型语言模型(LLM)如何利用基于四元组或五元组的数据简化事件预测框架设计,同时保持具有竞争力的准确率。我们提出 LEAP,这是一个将大型语言模型用作事件预测器的统一框架。具体而言,我们开发了多种提示模板,将客体预测(OP)任务构建为标准问答(QA)任务,适合使用编码器-解码器 LLM 进行指令微调。对于多事件预测(MEF)任务,我们为每个事件五元组设计了一种简单而有效的提示模板。这一新方法消除了对 GNN 和 RNN 的需求,转而利用仅编码器 LLM 生成固定的中间嵌入,再由带有自注意力机制的定制下游头处理这些嵌入,以预测未来潜在的关系发生。在多个真实世界数据集上使用多种评估指标进行的大量实验验证了该方法的有效性。
英文摘要:
Salient facts of sociopolitical events are distilled into quadruples following a format of subject, relation, object, and timestamp. Machine learning methods, such as graph neural networks (GNNs) and recurrent neural networks (RNNs), have been built to make predictions and infer relations on the quadruple-based knowledge graphs (KGs). In many applications, quadruples are extended to quintuples with auxiliary attributes such as text summaries that describe the quadruple events. In this paper, we comprehensively investigate how large language models (LLMs) streamline the design of event prediction frameworks using quadruple-based or quintuple-based data while maintaining competitive accuracy. We propose LEAP, a unified framework that leverages large language models as event predictors. Specifically, we develop multiple prompt templates to frame the object prediction (OP) task as a standard question-answering (QA) task, suitable for instruction fine-tuning with an encoder-decoder LLM. For multi-event forecasting (MEF) task, we design a simple yet effective prompt template for each event quintuple. This novel approach removes the need for GNNs and RNNs, instead utilizing an encoder-only LLM to generate fixed intermediate embeddings, which are processed by a customized downstream head with a self-attention mechanism to predict potential relation occurrences in the future. Extensive experiments on multiple real-world datasets using various evaluation metrics validate the effectiveness of our approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。