发现预训练语言模型中的知识关键子网络
Discovering Knowledge-Critical Subnetworks in Pretrained Language Models
AI总结:
本研究提出一种多目标可微分掩码方案,用于发现预训练语言模型中与特定知识相关的稀疏关键子网络,从而在最小化副作用的前提下精确移除特定知识,并在多个GPT2变体上验证了其有效性。
摘要:
预训练语言模型(LMs)在其参数中编码了隐式知识表示。然而,定位这些表示并将其相互解耦仍是一个开放问题。在本研究中,我们探讨了预训练语言模型是否包含各种知识关键子网络:即特定的稀疏计算子图,若将其移除,可精确抑制模型已记忆的特定知识。我们提出了一种可同时应用于权重和神经元的多目标可微分掩码方案,以发现此类子网络,并表明我们可以利用它们在最小化对原始模型行为不利影响的同时,精确移除模型中的特定知识。我们在多个GPT2变体上演示了该方法,发现了对表达特定关系知识集合至关重要的极稀疏子网络(稀疏度98%+)。当移除这些子网络时,剩余网络保留了其大部分初始能力,但难以表示被抑制的知识。
英文摘要:
Pretrained language models (LMs) encode implicit representations of knowledge in their parameters. However, localizing these representations and disentangling them from each other remains an open problem. In this work, we investigate whether pretrained language models contain various knowledge-critical subnetworks: particular sparse computational subgraphs that can, if removed, precisely suppress specific knowledge the model has memorized. We propose a multi-objective differentiable masking scheme that can be applied to both weights and neurons to discover such subnetworks and show that we can use them to precisely remove specific knowledge from models while minimizing adverse effects on the behavior of the original model. We demonstrate our method on multiple GPT2 variants, uncovering highly sparse subnetworks (98%+ sparsity) that are critical for expressing specific collections of relational knowledge. When these subnetworks are removed, the remaining network maintains most of its initial abilities but struggles to represent the suppressed knowledge.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。