arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.14716cs.CLcs.AIcs.CVcs.SDeess.AS
收藏

贝叶斯示例选择改善语音、文本和视觉模态的上下文学习

Bayesian Example Selection Improves In-Context Learning for Speech, Text, and Visual Modalities

Tsinghua University(清华大学);NVIDIA Research(英伟达研究院)

Siyin Wang, Chao-Han Huck Yang, Ji Wu, Chao Zhang

AI总结:

针对上下文学习中示例质量影响性能的问题,本文提出贝叶斯示例选择方法ByCS,依据测试输入的逆向推理结果选择示例,并在多模型、多任务及语音、文本、图像多模态实验中验证了其有效性与鲁棒性。

摘要:

大型语言模型(LLM)能够通过上下文学习(ICL)适应新任务:该方法依据对话历史中给出的少量示例进行学习,而无需更新任何模型参数。尽管这种方式十分便捷,但ICL的性能在很大程度上取决于所呈现的上下文示例质量,因此上下文示例选择方法成为一个关键选择。本文提出了一种用于ICL的新型贝叶斯上下文示例选择方法(ByCS)。基于贝叶斯定理,ByCS扩展了以上下文示例为条件的推理概率,并聚焦于以测试输入为条件的逆向推理。遵循“准确的逆向推理概率(似然)将产生准确的推理概率(后验)”这一假设,该方法根据上下文示例的逆向推理结果来选择示例。作者使用语音、文本和图像示例开展了多样且广泛的跨任务与跨模态实验。实验结果表明,ByCS方法在多种模型、任务和模态上均具有有效性和鲁棒性。

英文摘要:

Large language models (LLMs) can adapt to new tasks through in-context learning (ICL) based on a few examples presented in dialogue history without any model parameter update. Despite such convenience, the performance of ICL heavily depends on the quality of the in-context examples presented, which makes the in-context example selection approach a critical choice. This paper proposes a novel Bayesian in-Context example Selection method (ByCS) for ICL. Extending the inference probability conditioned on in-context examples based on Bayes' theorem, ByCS focuses on the inverse inference conditioned on test input. Following the assumption that accurate inverse inference probability (likelihood) will result in accurate inference probability (posterior), in-context examples are selected based on their inverse inference results. Diverse and extensive cross-tasking and cross-modality experiments are performed with speech, text, and image examples. Experimental results show the efficacy and robustness of our ByCS method on various models, tasks and modalities.

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

↑