arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.17807cs.CLcs.AI
收藏

元上下文学习使大型语言模型成为更好的零样本和少样本关系抽取器

Meta In-Context Learning Makes Large Language Models Better Zero and Few-Shot Relation Extractors

School of Computer Science and Engineering, Southeast University(东南大学计算机科学与工程学院);Beijing Institute of Computer Technology and Application(北京计算机技术及应用研究所)

Guozheng Li, Peng Wang, Jiajun Liu, Yikai Guo, Ke Ji, Ziyu Shang, Zijie Xu

AI总结:

本文提出新型元训练框架Micre,通过在多样化RE数据集上微调LLMs提升其上下文学习能力,在零样本和少样本关系抽取任务中实现更优泛化,且对大模型规模效果更显著。

摘要:

关系抽取(RE)是一项旨在识别文本中实体之间关系的重要任务。尽管大型语言模型(LLMs)在一般零样本和少样本学习方面展现出了显著的上下文学习(ICL)能力,但最近的研究表明,当前的LLMs在零样本和少样本RE上仍然存在困难。以往的研究主要集中在设计提示格式和选择优质示例以改进基于ICL的RE。尽管这两个因素对ICL至关重要,但如果能从根本上提升LLMs在RE中的ICL能力,基于ICL的零样本和少样本RE性能将得到显著改善。为此,我们提出了Micre(用于关系抽取的LLMs元上下文学习),这是一个用于零样本和少样本RE的新型元训练框架,其中LLM在多样化的RE数据集集合上进行ICL微调(即学习在RE的上下文中进行学习)。通过元训练,模型在推理时无需参数更新或任务特定模板,仅通过条件化于少量训练样本,就能更有效地在上下文中学习新的RE任务,从而实现更好的零样本和少样本任务泛化。我们在不同模型规模的各种LLMs和12个公开RE数据集上对Micre进行了实验,随后在零样本和少样本设置下的未见RE基准上对其进行了评估。与包括有监督微调和典型上下文学习方法在内的一系列基线相比,Micre提供了可比拟或更优的性能。我们发现,对于更大的模型规模,性能提升尤为显著,并且使用多样化的元训练RE数据集是改进的关键。实验证明,Micre能够在目标RE数据集推理期间通过关系标签名称传递关系语义知识。

英文摘要:

Relation extraction (RE) is an important task that aims to identify the relationships between entities in texts. While large language models (LLMs) have revealed remarkable in-context learning (ICL) capability for general zero and few-shot learning, recent studies indicate that current LLMs still struggle with zero and few-shot RE. Previous studies are mainly dedicated to design prompt formats and select good examples for improving ICL-based RE. Although both factors are vital for ICL, if one can fundamentally boost the ICL capability of LLMs in RE, the zero and few-shot RE performance via ICL would be significantly improved. To this end, we introduce \textsc{Micre} (\textbf{M}eta \textbf{I}n-\textbf{C}ontext learning of LLMs for \textbf{R}elation \textbf{E}xtraction), a new meta-training framework for zero and few-shot RE where an LLM is tuned to do ICL on a diverse collection of RE datasets (i.e., learning to learn in context for RE). Through meta-training, the model becomes more effectively to learn a new RE task in context by conditioning on a few training examples with no parameter updates or task-specific templates at inference time, enabling better zero and few-shot task generalization. We experiment \textsc{Micre} on various LLMs with different model scales and 12 public RE datasets, and then evaluate it on unseen RE benchmarks under zero and few-shot settings. \textsc{Micre} delivers comparable or superior performance compared to a range of baselines including supervised fine-tuning and typical in-context learning methods. We find that the gains are particular significant for larger model scales, and using a diverse set of the meta-training RE datasets is key to improvements. Empirically, we show that \textsc{Micre} can transfer the relation semantic knowledge via relation label name during inference on target RE datasets.

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

↑