Skip to main content
QUICK REVIEW

[论文解读] OTOV2: Automatic, Generic, User-Friendly

Tianyi Chen, Luming Liang|arXiv (Cornell University)|Mar 13, 2023
Advanced Neural Network ApplicationsComputer Science被引用 7
一句话总结

OTOv2 从零开始对通用 DNN 进行一次性训练与压缩,自动将参数划分为零不变组(ZIGs),并利用新型 DHSPG 优化器解决结构化稀疏性问题,产生在不进行微调的情况下更瘦的模型。

ABSTRACT

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.

研究动机与目标

  • Automate DNN one-shot training and compression without pre-training or fine-tuning.
  • Automatically identify minimal removal structures (ZIGs) and construct a compressed model.
  • Develop a structured-sparsity optimizer (DHSPG) that reliably controls sparsity and performance.
  • Demonstrate robustness and generality across diverse architectures and datasets.

提出的方法

  • Introduce Zero-Invariant Groups (ZIGs) as minimal removal structures that can be pruned without changing outputs when zero.
  • Develop Automated ZIG Partition to automatically decompose a DNN into ZIGs via a trace graph and connected components of dependency.
  • Propose Dual Half-Space Projected Gradient (DHSPG) to solve a constrained group-sparsity problem with automatic regularization per group.
  • Construct the compressed model M* by removing zeroed ZIGs and reconfiguring the remaining structure without fine-tuning.
  • Show linear-time complexity for ZIG partition and compression steps, and linear-time DHSPG optimization.
  • Validate on multiple architectures (VGG, ResNet, CARN, ConvNeXt, DenseNet, StackedUnets) and datasets (CIFAR10/100, DIV2K, Fashion-MNIST, SVNH, ImageNet).
Figure 1: OTOv2 versus existing methods.
Figure 1: OTOv2 versus existing methods.

实验结果

研究问题

  • RQ1Can a general DNN be trained and compressed from scratch in one pass without pre-training or fine-tuning?
  • RQ2Can the trainable parameters be automatically partitioned into ZIGs across diverse architectures?
  • RQ3Does DHSPG reliably achieve high group sparsity with competitive performance without extensive hyper-parameter tuning?
  • RQ4Can the automatically constructed compressed model preserve identical outputs to the full model without further training?

主要发现

  • OTOv2 achieves substantial FLOPs and parameter reductions while maintaining competitive or state-of-the-art accuracy on various architectures and datasets.
  • DemoNet on Fashion-MNIST drops only 0.1-0.2% in Top-1 accuracy with 73.6-83.0% FLOPs/params reduction.
  • StackedUnets on SVNH retains 94.7% Top-1 accuracy with 26.4% FLOPs and 17.0% params (vs 100%/100% baseline at 94.8%).
  • DenseNet121 on CIFAR100 reduces FLOPs to 20.8% and parameters to 26.7% with accuracy 75.5% (baseline 77.0%).
  • ConvNeXt-Tiny on ImageNet reduces FLOPs to 52.8%, parameters to 54.2% with accuracy 81.1% (baseline 82.0%).
  • VGG16 on CIFAR10 shows substantial compression with competitive accuracy when compressed via OTOv2 (Table 2 results).
(a) DNN to be trained and compressed.
(a) DNN to be trained and compressed.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。