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

通过基础级表示微调解锁高效、可扩展且持续的知识编辑

Unlocking Efficient, Scalable, and Continual Knowledge Editing with Basis-Level Representation Fine-Tuning

Cranberry-Lemon University(蔓越莓柠檬大学);University of the Witwatersrand(金山大学)

Tianci Liu, Ruirui Li, Yunzhe Qi, Hui Liu, Xianfeng Tang, Tianqi Zheng, Qingyu Yin, Monica Xiao Cheng, Jun Huan, Haoyu Wang, Jing Gao

AI总结:

本文提出BaFT方法,通过基于输入表示的依赖性加权机制打破线性更新限制,在知识编辑中实现更优的编辑-局部性权衡。

摘要:

大型语言模型(LLMs)在各种自然语言任务上取得了显著性能。然而,它们在静态语料库上训练,其知识在快速变化的世界中很快就会过时。这促使了知识编辑方法的发展,旨在更新LLMs中的特定知识而不改变无关的其他知识。为了进行选择性编辑,先前的努力通常寻求更新LLM某些特定层中的少量参数。尽管如此,在具有挑战性的场景中,它们在成功进行编辑的同时保持与更新无关的知识方面仍然不足,导致显著的编辑-局部性权衡。在这项工作中,我们质疑这种权衡是否是因为基于参数的更新具有全局效应,即编辑后的参数不加区分地影响所有输入。鉴于此,我们探索了表示微调的可行性,该方法对学习子空间中的少数表示应用线性更新,用于知识编辑。虽然如先前工作所证明的那样,这种方法在增强LLM的一般能力方面是有效的,但我们在理论上表明这种线性更新在编辑-局部性权衡中引入了张力。随后,提出了BaFT来打破这种线性。BaFT基于输入表示为跨越子空间维度的基础计算权重。这种依赖输入的加权机制允许BaFT以自适应方式管理不同类型的知识,从而实现更好的编辑-局部性权衡。在三个LLM上使用五个编辑基准在不同场景下的实验显示了我们的方法的优越性。

英文摘要:

Large language models (LLMs) have achieved remarkable performance on various natural language tasks. However, they are trained on static corpora and their knowledge can become outdated quickly in the fast-changing world. This motivates the development of knowledge editing methods designed to update certain knowledge in LLMs without changing unrelated others. To make selective edits, previous efforts often sought to update a small amount of parameters in some specific layer(s) of a LLM. Nonetheless, in challenging scenarios, they still fall short in making successful edits while preserving knowledge irrelevant to the updates simultaneously, resulting in a notable editing-locality trade-off. In this work, we question if the trade-offs are caused by the fact that parameter-based updates have a global effect, i.e., edited parameters affect all inputs indiscriminately. In light of this, we explore the feasibility of representation fine-tuning, which applied some linear update to a few representations in a learned subspace, for knowledge editing. While being effective to enhance an LLM's general ability as demonstrated in the previous work, we theoretically show that this linear update imposes a tension in editing-locality trade-off. Subsequently, BaFT is proposed to break the linearity. BaFT computes a weight for each basis that spans a dimension of the subspace based on the input representation. This input-dependent weighting mechanism allows BaFT to manage different types of knowledge in an adaptive way, thereby achieving a better editing-locality trade-off. Experiments on three LLMs with five editing benchmarks in diverse scenarios show the superiority of our method.

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

↑