作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (7): 368-376. doi: 10.19678/j.issn.1000-3428.0070493

• 多模态与信息融合 • 上一篇    下一篇

基于提示调优的少样本多模态关系抽取分层网络

李维淦1,2, 桂宁3, 钱育蓉2,4,*(), 陈嘉颖1,2   

  1. 1. 新疆大学软件学院, 新疆 乌鲁木齐 830046
    2. 新疆大学软件工程重点实验室, 新疆 乌鲁木齐 830091
    3. 中南大学计算机学院, 湖南 长沙 410083
    4. 新疆大学计算机科学与技术学院, 新疆 乌鲁木齐 830091
  • 收稿日期:2024-10-16 修回日期:2025-02-25 出版日期:2026-07-15 发布日期:2026-07-04
  • 通讯作者: 钱育蓉
  • 作者简介:

    李维淦(CCF学生会员), 男, 硕士研究生, 主研方向为多模态信息抽取

    桂宁, 教授、博士

    钱育蓉(CCF高级会员、通信作者), 教授、博士

    陈嘉颖, 副教授、博士

  • 基金资助:
    国家自然科学基金(62266043); 新疆维吾尔自治区重点研发专项(2023B01029-1); 新疆维吾尔自治区重点研发专项(2023B01029-2); 天山创新团队项目(2023D14012); 新疆维吾尔自治区杰出青年科学基金(2023D01E01); 青年拔尖人才项目(2023TSYCCX0043)

Hierarchical Network for Few-shot Multimodal Relation Extraction Based on Prompt-tuning

LI Weigan1,2, GUI Ning3, QIAN Yurong2,4,*(), CHEN Jiaying1,2   

  1. 1. School of Software, Xinjiang University, Urumqi 830046, Xinjiang, China
    2. Key Laboratory of Software Engineering, Xinjiang University, Urumqi 830091, Xinjiang, China
    3. School of Computer Science and Engineering, Central South University, Changsha 410083, Hunan, China
    4. School of Computer Science and Technology, Xinjiang University, Urumqi 830091, Xinjiang, China
  • Received:2024-10-16 Revised:2025-02-25 Online:2026-07-15 Published:2026-07-04
  • Contact: QIAN Yurong

摘要:

多模态关系抽取(MRE)方法通过利用多模态信息辅助关系抽取任务。现有MRE模型要达到良好的关系抽取效果, 通常需要在大量标注数据的基础上进行有效训练, 然而在少样本情况下却表现不佳。针对上述问题, 本文充分利用关系标签中丰富的语义知识和先验知识, 提出一种新的提示调优分层网络。首先, 设计实现基于知识注入的文本提示模块, 具体来说, 通过利用关系标签中隐含的实体信息, 引入虚拟实体类型词构建提示模板, 使模型可以感知样本中潜在的实体类型范围, 并利用上下文对引入的虚拟关系答案词进行不断优化, 以表达最佳的语义信息, 从而提升模型在少样本情况下的性能。其次, 利用实体对与关系之间的相互制约关系, 设计实现实体-关系协同优化模块, 以进一步提升关系抽取效果。最后, 在文本编码器的每个自注意力层中, 通过引入基于视觉前缀的注意力机制, 将分层的多尺度视觉特征与文本信息深度融合, 从而生成更加有效且鲁棒的文本表示, 显著降低模型对错误的敏感性。在多模态神经关系抽取数据集(MNRE)上的实验结果表明, 该模型的精确率、召回率、F1值分别达到84.97%、83.91%与84.43%, 较基准模型均有一定提升, 特别是在少样本情况下, 本文所提模型显著优于基准模型, 展现出良好的关系抽取效果。

关键词: 关系抽取, 少样本, 提示调优, 先验知识, 多模态信息

Abstract:

The Multimodal Relation Extraction (MRE) method assists in relation extraction tasks by using multimodal information. To achieve a good relation extraction performance, existing MRE models usually need to be effectively trained on a large amount of labeled data. However, they perform poorly in the case of few-shot samples. To address this issue, this study utilizes the rich semantic and prior knowledge of relation labels and proposes a new prompt-tuning hierarchical network. First, a text-prompt module based on knowledge injection is designed and implemented. Specifically, by utilizing the entity information hidden in relation labels and introducing virtual entity type words to construct prompt templates, the model can perceive the potential range of entity types in the sample and continuously optimize the introduced virtual relation answer words using context to express the best semantic information, thereby improving the performance of the model in the case of few-shot samples. Second, by utilizing the mutual constraint relationship between entity pairs and relations, an entity—relation collaborative optimization module is designed and implemented to further improve the effect of relation extraction. Finally, in each self-attention layer of the text encoder, a visual prefix-based attention mechanism is introduced to deeply integrate the layered multiscale visual features with the text information, thereby generating more effective and robust text representations and significantly reducing the sensitivity of the model to errors. The experimental results on the multimodal neural relation extraction dataset (MNRE) show that the precision, recall, and F1 score of the model reach 84.97%, 83.91%, and 84.43%, respectively, which are all improved compared with the benchmark model. Especially in the case of few-shot samples, the model proposed in this study is significantly better than the benchmark model, demonstrating good relation extraction performance.

Key words: relation extraction, few-shot, prompt-tuning, prior knowledge, multimodal information