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

用于模型宽度压缩的结构丢弃

Structural Dropout for Model Width Compression

Princeton University(普林斯顿大学)

Julian Knodt

摘要:

已知现有的ML模型高度过度参数化,并且使用的资源远远超过给定任务所需的资源。先前的工作已经探索了离线压缩模型,例如通过将知识从较大的模型中提取到更小的模型中。这对于压缩是有效的,但是没有给出测量模型可以被压缩多少的经验方法,并且需要对每个压缩的模型进行额外的训练。我们提出了一种方法,只需要一个单一的训练会话的原始模型和一组压缩模型。所提出的方法是一种“结构性”的丢弃,它修剪了随机选择的索引上方隐藏状态中的所有元素,迫使模型学习其特征的重要性排序。在学习了这种排序之后,在推理时,不重要的特征可以被修剪,同时保持最大的准确性,从而显着减少参数大小。在这项工作中,我们专注于全连接层的结构丢弃,但这个概念可以应用于具有无序特征的任何类型的层,例如卷积层或注意力层。结构丢弃不需要额外的修剪/重新训练,但需要对每个可能的隐藏大小进行额外的验证。在推理时,非专家可以在大量高度压缩的模型与更精确的模型之间选择最适合其需求的内存与准确性权衡。

英文摘要:

Existing ML models are known to be highly over-parametrized, and use significantly more resources than required for a given task. Prior work has explored compressing models offline, such as by distilling knowledge from larger models into much smaller ones. This is effective for compression, but does not give an empirical method for measuring how much the model can be compressed, and requires additional training for each compressed model. We propose a method that requires only a single training session for the original model and a set of compressed models. The proposed approach is a "structural" dropout that prunes all elements in the hidden state above a randomly chosen index, forcing the model to learn an importance ordering over its features. After learning this ordering, at inference time unimportant features can be pruned while retaining most accuracy, reducing parameter size significantly. In this work, we focus on Structural Dropout for fully-connected layers, but the concept can be applied to any kind of layer with unordered features, such as convolutional or attention layers. Structural Dropout requires no additional pruning/retraining, but requires additional validation for each possible hidden sizes. At inference time, a non-expert can select a memory versus accuracy trade-off that best suits their needs, across a wide range of highly compressed versus more accurate models.

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

↑