提示增强型上下文学习唤醒大语言模型以应对知识密集型任务
Hint-enhanced In-Context Learning wakes Large Language Models up for knowledge-intensive tasks
AI总结:
针对标准上下文学习中LLM易忽略示例查询相关信息的问题,提出HICL范式结合HER检索器,通过提取拼接查询相关知识增强提示,在3个开放域QA基准上实现显著性能提升。
摘要:
随着大语言模型(LLMs)规模的不断扩大,上下文学习(ICL)能力逐渐显现,使模型能够从示例中学习输入-标签映射,并在下游任务上表现出色。然而在标准ICL设置下,LLMs有时可能会忽略示例中与查询相关的信息,导致预测错误。为解决这一局限,我们提出了名为提示增强型上下文学习(Hint-enhanced In-Context Learning, HICL)的新范式,以挖掘ICL在开放域问答这一知识密集型任务重要形式中的潜力。HICL利用LLMs的推理能力从示例中提取与查询相关的知识,再将这些知识拼接起来以更明确的方式提示LLMs。此外,我们追踪该知识的来源以识别特定示例,并引入提示相关示例检索器(Hint-related Example Retriever, HER)来选择有信息量的示例以增强示例集。我们在3个开放域QA基准上对结合HER的HICL进行评估,观察到与标准设置相比,在gpt-3.5-turbo上EM分数平均提升2.89、F1分数平均提升2.52,在LLaMA-2-Chat-7B上EM分数平均提升7.62、F1分数平均提升7.27。
英文摘要:
In-context learning (ICL) ability has emerged with the increasing scale of large language models (LLMs), enabling them to learn input-label mappings from demonstrations and perform well on downstream tasks. However, under the standard ICL setting, LLMs may sometimes neglect query-related information in demonstrations, leading to incorrect predictions. To address this limitation, we propose a new paradigm called Hint-enhanced In-Context Learning (HICL) to explore the power of ICL in open-domain question answering, an important form in knowledge-intensive tasks. HICL leverages LLMs' reasoning ability to extract query-related knowledge from demonstrations, then concatenates the knowledge to prompt LLMs in a more explicit way. Furthermore, we track the source of this knowledge to identify specific examples, and introduce a Hint-related Example Retriever (HER) to select informative examples for enhanced demonstrations. We evaluate HICL with HER on 3 open-domain QA benchmarks, and observe average performance gains of 2.89 EM score and 2.52 F1 score on gpt-3.5-turbo, 7.62 EM score and 7.27 F1 score on LLaMA-2-Chat-7B compared with standard setting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。