arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01288cs.CLcs.LG
收藏

通过神经元剪枝缓解上下文学习中的复制偏差

Mitigating Copy Bias in In-Context Learning through Neuron Pruning

Tel Aviv University(特拉维夫大学);University of Edinburgh(爱丁堡大学);University of Amsterdam(阿姆斯特丹大学)

Ameen Ali, Lior Wolf, Ivan Titov

AI总结:

本文提出通过 Integrated Gradients 识别并剪枝偏向复制示例的神经元,以缓解 LLM 上下文学习中的复制偏差,在多种架构和任务上提升泛化性能并改善任务向量质量。

摘要:

大型语言模型(LLMs)已展现出令人印象深刻的少样本上下文学习(ICL)能力。然而,我们表明它们有时容易出现“复制偏差”,即从提供的示例中复制答案,而不是学习潜在模式。在本工作中,我们提出一种新颖且简单的方法来缓解这种复制偏差。首先,我们创建一个合成任务,并使用 Integrated Gradients 方法识别那些优先进行复制而非泛化的神经元。我们证明,剪枝这些神经元能够在一系列多样的 ICL 任务上持续提升性能。我们还表明,该方法适用于各种 LLM 架构,包括 Transformers 和 State-Space Models,且无需进行修改。在分析中,我们采用任务识别的视角来看待 ICL,并考察模型诱导的任务向量(Hendel et al., 2023)。我们发现剪枝提升了这些向量的质量,表明被剪枝的神经元此前阻碍了有效的任务识别。

英文摘要:

Large language models (LLMs) have demonstrated impressive few-shot in-context learning (ICL) abilities. Still, we show that they are sometimes prone to a `copying bias', where they copy answers from provided examples instead of learning the underlying patterns. In this work, we propose a novel and simple method to mitigate such copying bias. First, we create a synthetic task and use the Integrated Gradients method to identify neurons that prioritize copying over generalization. We demonstrate that pruning these neurons consistently improves performance across a diverse set of ICL tasks. We also show that our method is applicable across various LLM architectures, including Transformers and State-Space Models, without requiring modifications. In our analysis, we adopt a task-recognition perspective on ICL and examine task vectors (Hendel et al., 2023) induced by the model. We find that pruning enhances the quality of these vectors, suggesting that the pruned neurons previously hindered effective task recognition.

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

↑