arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.11309cs.LGcs.AIcs.CL
收藏

大规模快速模型编辑

Fast Model Editing at Scale

Stanford University(斯坦福大学)

Eric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn, Christopher D. Manning

摘要:

虽然大型预训练模型在各种下游任务上取得了令人印象深刻的结果,但现有的最大模型仍然会出错,甚至随着时间的推移,准确的预测也可能会过时。由于在训练时检测所有这些故障是不可能的,因此希望使这些模型的开发人员和最终用户能够纠正不准确的输出,同时保持模型的完整性。然而,由大型神经网络学习的表示的分布式黑盒性质使得产生这样的有针对性的编辑变得困难。如果只有一个有问题的输入和新的期望输出,微调方法往往会过拟合;其他编辑算法要么在计算上不可行,要么在应用于非常大的模型时根本无效。为了实现简单的大规模事后编辑,我们提出了使用梯度分解(MEND)的模型编辑器网络,这是一个小型辅助编辑网络的集合,使用单个所需的输入-输出对对预训练模型的行为进行快速,本地编辑。MEND学习转换通过标准微调获得的梯度,使用梯度的低秩分解来使该转换的参数化易于处理。MEND可以在一天内在单个GPU上训练,即使是100亿多个参数模型;一旦训练好,MEND就可以快速将新的编辑应用到预先训练好的模型中。我们对T5、GPT、BERT和BART模型的实验表明,MEND是模型编辑的唯一方法,可以有效地编辑具有超过100亿个参数的模型的行为。代码和数据可在www.example.com获得。

英文摘要:

While large pre-trained models have enabled impressive results on a variety of downstream tasks, the largest existing models still make errors, and even accurate predictions may become outdated over time. Because detecting all such failures at training time is impossible, enabling both developers and end users of such models to correct inaccurate outputs while leaving the model otherwise intact is desirable. However, the distributed, black-box nature of the representations learned by large neural networks makes producing such targeted edits difficult. If presented with only a single problematic input and new desired output, fine-tuning approaches tend to overfit; other editing algorithms are either computationally infeasible or simply ineffective when applied to very large models. To enable easy post-hoc editing at scale, we propose Model Editor Networks using Gradient Decomposition (MEND), a collection of small auxiliary editing networks that use a single desired input-output pair to make fast, local edits to a pre-trained model's behavior. MEND learns to transform the gradient obtained by standard fine-tuning, using a low-rank decomposition of the gradient to make the parameterization of this transformation tractable. MEND can be trained on a single GPU in less than a day even for 10 billion+ parameter models; once trained MEND enables rapid application of new edits to the pre-trained model. Our experiments with T5, GPT, BERT, and BART models show that MEND is the only approach to model editing that effectively edits the behavior of models with more than 10 billion parameters. Code and data available at https://sites.google.com/view/mend-editing.

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

↑