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

Transformer中基于注意力的记忆批量编辑:知识的跨语言探索

Mass-Editing Memory with Attention in Transformers: A cross-lingual exploration of knowledge

Barcelona Supercomputing Center(巴塞罗那超级计算中心);Universitat Politècnica de Catalunya(加泰罗尼亚理工大学)

Daniel Tamayo, Aitor Gonzalez-Agirre, Javier Hernando, Marta Villegas

AI总结:

本文提出MEMAT方法,利用注意力机制实现跨语言的事实知识批量编辑,在仅需极少参数修改的情况下显著提升各项指标并具备良好可移植性。

摘要:

近期研究探索了在大语言模型中更新和修改事实知识的方法,通常聚焦于特定的多层感知机模块。本研究通过考察现有知识编辑方法在不同语言上的有效性,并深入探究注意力机制在这一过程中的作用,从而拓展了该方向的工作。基于所获得的见解,我们提出了Transformer中基于注意力的记忆批量编辑(MEMAT)方法,该方法在所有指标上均取得显著提升,同时仅需极少的参数修改。MEMAT在幅度指标上实现了显著的10%提升,使未包含在训练数据中的语言也受益,并展现出高度的可移植性。我们的代码和数据可在 https://github.com/dtamayo-nlp/MEMAT 获取。

英文摘要:

Recent research has explored methods for updating and modifying factual knowledge in large language models, often focusing on specific multi-layer perceptron blocks. This study expands on this work by examining the effectiveness of existing knowledge editing methods across languages and delving into the role of attention mechanisms in this process. Drawing from the insights gained, we propose Mass-Editing Memory with Attention in Transformers (MEMAT), a method that achieves significant improvements in all metrics while requiring minimal parameter modifications. MEMAT delivers a remarkable 10% increase in magnitude metrics, benefits languages not included in the training data and also demonstrates a high degree of portability. Our code and data are at https://github.com/dtamayo-nlp/MEMAT.

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

↑