arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.10548cs.CL
收藏

语言模型可利用跨任务上下文学习处理数据稀缺的新任务

Language Models can Exploit Cross-Task In-context Learning for Data-Scarce Novel Tasks

Indian Institute of Technology Delhi(印度德里理工学院)

Anwoy Chatterjee, Eshaan Tanwar, Subhabrata Dutta, Tanmoy Chakraborty

AI总结:

本文提出跨任务提示方法,使 LLM 在无目标任务示例时借助其他任务上下文泛化,并验证其性能提升及与模型激活相似性的关联。

摘要:

大型语言模型(LLM)凭借其出色的上下文学习(ICL)能力改变了 NLP。基于 LLM 的自动化助手正日益普及;然而,使其适应新任务仍然具有挑战性。尽管超大型模型在零样本性能方面表现优异,但其计算需求限制了广泛使用,而较小的语言模型在没有上下文时则表现困难。本文研究 LLM 是否能够从预定义任务的标注示例泛化到新任务。受生物神经元以及 Transformer 架构机制解释的启发,我们探索跨任务信息共享的潜力。我们为三个 LLM 设计了一种跨任务提示设置,并表明尽管上下文中没有来自目标任务的示例,LLM 仍取得显著性能提升。跨任务提示使 LLaMA-2 7B、LLaMA-2 13B 和 GPT 3.5 相比零样本提示平均分别获得 107%、18.6% 和 3.2% 的显著性能提升,并且表现与标准上下文学习相当。研究还证明了为任务内示例生成伪标签的有效性;我们的分析揭示,跨任务示例的效果与源输入词元和目标输入词元中的模型激活相似性之间存在强相关性。本文首次探索了 LLM 基于来自不同任务示例的上下文信号解决新任务的能力。

英文摘要:

Large Language Models (LLMs) have transformed NLP with their remarkable In-context Learning (ICL) capabilities. Automated assistants based on LLMs are gaining popularity; however, adapting them to novel tasks is still challenging. While colossal models excel in zero-shot performance, their computational demands limit widespread use, and smaller language models struggle without context. This paper investigates whether LLMs can generalize from labeled examples of predefined tasks to novel tasks. Drawing inspiration from biological neurons and the mechanistic interpretation of the Transformer architecture, we explore the potential for information sharing across tasks. We design a cross-task prompting setup with three LLMs and show that LLMs achieve significant performance improvements despite no examples from the target task in the context. Cross-task prompting leads to a remarkable performance boost of 107% for LLaMA-2 7B, 18.6% for LLaMA-2 13B, and 3.2% for GPT 3.5 on average over zero-shot prompting, and performs comparable to standard in-context learning. The effectiveness of generating pseudo-labels for in-task examples is demonstrated, and our analyses reveal a strong correlation between the effect of cross-task examples and model activation similarities in source and target input tokens. This paper offers a first-of-its-kind exploration of LLMs' ability to solve novel tasks based on contextual signals from different task examples.

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

↑