用轻量框架提升大模型在时序知识图谱预测中的效率与精度
Ignite Forecasting with SPARK: An Efficient Generative Framework for Refining LLMs in Temporal Knowledge Graph Forecasting
- 将预测任务重构为序列级生成,单次前向传播完成多候选预测
- 通过图模型作代理适配器,不需微调即可融合全局结构信息
- 兼顾高效性与泛化能力,适合追求落地效率的场景
时序知识图谱(TKG)预测对基于历史数据预判未来事件至关重要。随着大语言模型(LLM)的发展,其在TKG预测中的应用初现成效,但仍受限于输入长度短、生成效率低、微调资源消耗大等问题。为此,我们提出SPARK——一种用于改进大模型在TKG预测中表现的序列级代理适配框架。受推理阶段生成控制算法启发,SPARK通过两项创新实现低成本、即插即用:(1) 采用束搜索的序列级生成策略,将预测重构为单次前向传播的Top-K序列生成任务;(2) 引入传统TKG模型作为可训练代理适配器,利用全局图结构信息优化大模型输出,同时规避了输入长度限制与高成本微调问题。在多个数据集上的实验验证了SPARK在预测性能、泛化能力及运行效率方面的优势。代码已开源:https://github.com/yin-gz/SPARK。
原文摘要 · Abstract (English)
Temporal Knowledge Graph (TKG) forecasting is crucial for predicting future events using historical data. With the surge of Large Language Models (LLMs), recent studies have begun exploring their integration into TKG forecasting and achieved some success. However, they still face limitations such as limited input length, inefficient output generation, and resource-intensive refinement, which undermine their performance and practical applicability. To address these limitations, we introduce SPARK, a Sequence-level Proxy-Adapting framework for Refining LLMs in TKG forecasting. Inspired by inference-time algorithms adopted in controlling generation, SPARK offers a cost-effective, plug-and-play solution through two key innovations: (1) Beam Sequence-Level Generation, which reframes TKG forecasting as a top-K sequence-level generation task, using beam search for efficiently generating next-entity distribution in a single forward pass. (2) TKG Adapter for Refinement, which employs traditional TKG models as trainable proxy adapters to leverage global graph information and refine LLM outputs, overcoming both the input length and the resource-intensive fine-tuning problems. Experiments across diverse datasets validate SPARK's forecasting performance, robust generalization capabilities, and high efficiency. We release source codes at https://github.com/yin-gz/SPARK.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。