arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2303.03922cs.LGcs.AIcs.CL
收藏

面向知识图谱迁移的结构预训练与提示微调

Structure Pretraining and Prompt Tuning for Knowledge Graph Transfer

Zhejiang University(浙江大学);Huawei Technologies Co., Ltd(华为技术有限公司);Donghai laboratory(东海实验室);Alibaba-Zhejiang University Joint Institute of Frontier Technology(阿里巴巴-浙江大学前沿技术联合研究院)

Wen Zhang, Yushan Zhu, Mingyang Chen, Yuxia Geng, Yufeng Huang, Yajing Xu, Wenting Song, Huajun Chen

摘要:

知识图谱是许多任务中必不可少的背景知识提供者。在设计知识生成相关任务的模型时,关键任务之一是设计知识表示和融合(KRF)模块,该模块从知识生成中学习元素的表示并将其与任务表示融合。由于任务间融合时所考虑的KGs和视角的差异,在任务间进行重复和临时的KRF模块设计。在本文中,我们提出了一种新的知识图谱预训练模型KGTransformer,可以作为一个统一的KRF模块在不同的KG相关的任务。我们用三个自监督任务预训练KGTransformer,并将采样子图作为输入。对于利用,我们提出了一个通用的任务数据作为一个三重提示,允许灵活的任务KG和任务数据之间的交互调整机制。我们在三个任务上评估预训练的KGTransformer,三重分类,zero-shot图像分类和问答。KG Transformer始终比专门设计的任务模型获得更好的结果。通过实验,我们证明了预先训练的KGTransformer可以在KG相关任务中作为通用且有效的KRF模块使用。代码和数据集可在https://github.com/zjukg/KGTransformer上获得。

英文摘要:

Knowledge graphs (KG) are essential background knowledge providers in many tasks. When designing models for KG-related tasks, one of the key tasks is to devise the Knowledge Representation and Fusion (KRF) module that learns the representation of elements from KGs and fuses them with task representations. While due to the difference of KGs and perspectives to be considered during fusion across tasks, duplicate and ad hoc KRF modules design are conducted among tasks. In this paper, we propose a novel knowledge graph pretraining model KGTransformer that could serve as a uniform KRF module in diverse KG-related tasks. We pretrain KGTransformer with three self-supervised tasks with sampled sub-graphs as input. For utilization, we propose a general prompt-tuning mechanism regarding task data as a triple prompt to allow flexible interactions between task KGs and task data. We evaluate pretrained KGTransformer on three tasks, triple classification, zero-shot image classification, and question answering. KGTransformer consistently achieves better results than specifically designed task models. Through experiments, we justify that the pretrained KGTransformer could be used off the shelf as a general and effective KRF module across KG-related tasks. The code and datasets are available at https://github.com/zjukg/KGTransformer.

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

↑