像PIE一样简单:理解剪枝何时导致语言模型产生分歧
As easy as PIE: understanding when pruning causes language models to disagree
AI总结:
该研究首次在NLP中系统研究剪枝对特定数据点(PIEs)的影响,发现剪枝虽平均准确率损失不大,却严重损害对泛化最关键的数据点,且BERT比BiLSTM更易受影响,根源在于这些文本更长更复杂。
摘要:
语言模型(LM)剪枝通过移除权重、节点或架构的其他部分来压缩模型。通常,剪枝关注的是由此带来的效率提升,而牺牲了有效性。然而,当观察剪枝如何影响单个数据点时,结果表明,剪枝时总有一小部分数据点承受了大部分影响(在准确率降低方面),但这种效应在报告所有数据点的平均准确率时被忽略了。这些数据点被称为PIEs,并已在图像处理中进行了研究,但在自然语言处理中尚未涉及。在对多种NLP数据集、剪枝方法和压缩水平的研究中,我们发现PIEs对推理质量的影响相当大,无论类别频率如何,并且BERT比BiLSTM更容易受到影响。我们还发现,PIEs包含大量对模型泛化到未见数据能力影响最大的数据点。这意味着,在剪枝时,虽然所有数据点的准确率看似损失适中,但实际上我们严重损害了那些最重要的数据点。我们将PIEs难以处理且对推理影响大的原因追溯到其整体更长且语义更复杂的文本。这些发现是新颖的,有助于理解剪枝如何影响语言模型。代码可在以下网址获取:https://github.com/pietrotrope/AsEasyAsPIE
英文摘要:
Language Model (LM) pruning compresses the model by removing weights, nodes, or other parts of its architecture. Typically, pruning focuses on the resulting efficiency gains at the cost of effectiveness. However, when looking at how individual data points are affected by pruning, it turns out that a particular subset of data points always bears most of the brunt (in terms of reduced accuracy) when pruning, but this effect goes unnoticed when reporting the mean accuracy of all data points. These data points are called PIEs and have been studied in image processing, but not in NLP. In a study of various NLP datasets, pruning methods, and levels of compression, we find that PIEs impact inference quality considerably, regardless of class frequency, and that BERT is more prone to this than BiLSTM. We also find that PIEs contain a high amount of data points that have the largest influence on how well the model generalises to unseen data. This means that when pruning, with seemingly moderate loss to accuracy across all data points, we in fact hurt tremendously those data points that matter the most. We trace what makes PIEs both hard and impactful to inference to their overall longer and more semantically complex text. These findings are novel and contribute to understanding how LMs are affected by pruning. The code is available at: https://github.com/pietrotrope/AsEasyAsPIE
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。