arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.06862cs.CVcs.AI
收藏

OTOV2:自动、通用、用户友好

OTOV2: Automatic, Generic, User-Friendly

Microsoft(微软);The Ohio State of University(俄亥俄州立大学)

Tianyi Chen, Luming Liang, Tianyu Ding, Zhihui Zhu, Ilya Zharkov

AI总结:

OTOV2提出自动从零训练并压缩通用DNN的方法,通过零不变量组划分和双半空间投影梯度优化器,无需微调即可获得竞争性能,适用于多种架构和数据集。

摘要:

现有的通过结构化剪枝进行模型压缩的方法通常需要复杂的多阶段流程。每个阶段都需要最终用户大量的工程工作和领域知识,这阻碍了它们在更广泛场景中的应用。我们提出了第二代Only-Train-Once(OTOV2),它首次自动地从零开始训练并压缩一个通用DNN,仅需一次训练,即可生成一个具有竞争性能且无需微调的更紧凑模型。OTOV2是自动的,可插入各种深度学习应用,并且几乎不需要用户进行工程努力。在方法上,OTOV2提出了两个主要改进:(i)自主性:自动利用通用DNN的依赖关系,将可训练变量划分为零不变量组(ZIGs),并构建压缩模型;(ii)双半空间投影梯度(DHSPG):一种新颖的优化器,用于更可靠地解决结构化稀疏问题。在数值上,我们在多种模型架构上展示了OTOV2的通用性和自主性,如VGG、ResNet、CARN、ConvNeXt、DenseNet和StackedUnets,其中大多数无法通过其他方法处理,除非进行大量手工调整。结合包括CIFAR10/100、DIV2K、Fashion-MNIST、SVNH和ImageNet在内的基准数据集,其有效性通过与最先进方法竞争或甚至更好的表现得到验证。源代码可在https://github.com/tianyic/only_train_once获取。

英文摘要:

The existing model compression methods via structured pruning typically require complicated multi-stage procedures. Each individual stage necessitates numerous engineering efforts and domain-knowledge from the end-users which prevent their wider applications onto broader scenarios. We propose the second generation of Only-Train-Once (OTOv2), which first automatically trains and compresses a general DNN only once from scratch to produce a more compact model with competitive performance without fine-tuning. OTOv2 is automatic and pluggable into various deep learning applications, and requires almost minimal engineering efforts from the users. Methodologically, OTOv2 proposes two major improvements: (i) Autonomy: automatically exploits the dependency of general DNNs, partitions the trainable variables into Zero-Invariant Groups (ZIGs), and constructs the compressed model; and (ii) Dual Half-Space Projected Gradient (DHSPG): a novel optimizer to more reliably solve structured-sparsity problems. Numerically, we demonstrate the generality and autonomy of OTOv2 on a variety of model architectures such as VGG, ResNet, CARN, ConvNeXt, DenseNet and StackedUnets, the majority of which cannot be handled by other methods without extensive handcrafting efforts. Together with benchmark datasets including CIFAR10/100, DIV2K, Fashion-MNIST, SVNH and ImageNet, its effectiveness is validated by performing competitively or even better than the state-of-the-arts. The source code is available at https://github.com/tianyic/only_train_once.

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

↑