活动报名:EMNLP 2023最佳长论文奖,以标签为锚,从信息流动的视角分析上下文学习...

28f209c5e4aca8134663562149fd2bd4.png

报告主题:以标签为锚:从信息流动的视角分析上下文学习(EMNLP 2023最佳长论文奖)

报告日期:12月26日(周二)14:30-15:30

上下文学习是一种在大语言模型时代常用的小样本学习方法。它通过向大语言模型提供示例样本的方式,引导模型完成指定的任务。上下文学习无需参数更新,直观易用,非常契合大语言模型时代的需求。近来,已经有许多工作从不同角度分析了上下文学习。一些工作分析了上下文学习中示例的格式与排列组合对性能的影响,还有一些工作则尝试建立起上下文学习同梯度下降算法的联系,也有工作指出了上下文学习中任务向量的存在。我们的工作从信息流动的角度审视了上下文学习,提出并验证了“标签词在上下文学习中起锚点作用”的假设。根据这个假设,在模型的浅层,大语言模型会将示例文本中的信息汇总到相应示例的标签上,而在模型的深层,大语言模型会进一步从这些标签中提取信息来完成最终预测。本文设计了测量显著性的实验、阻断注意力的实验、测量注意力大小与分类结果相关性的实验,以验证这一猜想。进一步地,本文基于这一假设,提出了三个潜在应用:锚点重加权、仅含锚点的上下文压缩和基于锚点距离的错误诊断。这些应用展示了本文的分析结论的应用潜力,可以提高上下文学习的性能、效率,并在一定程度上解释上下文学习中出现的错误。同时,这些应用也从另一个侧面进一步证实了我们的假设。

In-context learning (ICL), a few-shot learning method pivotal in the era of large language models (LLM), guides these models using demonstration examples. This intuitive, parameter-update-free approach aligns well with the needs of the LLM era. Recent studies have explored in-context learning, focusing on the effects of demonstration format or selection, its relation to gradient descent, and the existence of task vectors in ICL. Our study examines in-context learning through the lens of information flow, introducing the 'label words are anchors' hypothesis. We suggest that these models initially gather information from demonstration texts onto demonstration labels in shallow layers, and then use the information aggregated on these labels for final predictions in deeper layers. We tested this hypothesis by analyzing the saliency of information flows, blocking specific flows, and linking attention magnitudes to classification outcomes. Additionally, we propose three applications based on our hypothesis: Anchor Re-Weighting, Anchor-Only Context Compression, and Anchor Distances for Error Diagnosis. These not only enhance in-context learning's performance and efficiency but also provide insights into ICL errors and further validate our hypothesis.

报告嘉宾:

王乐安,北大博士生,由孙栩老师指导。他目前的研究兴趣主要在于大模型的可解释性与机理。他在EMNLP 2023上发表的工作Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learning获得了最佳长论文奖。在此之前,他在北大图灵班(智能方向)获得了学士学位。

扫描下方二维码

9262bd93a48567e39d3a2e92e87fc9fc.png

或点击「阅读原文」报名

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值