Skip to main content
QUICK REVIEW

[Paper Review] NViT: Vision Transformer Compression and Parameter Redistribution.

Huanrui Yang, Hongxu Yin|arXiv (Cornell University)|Oct 10, 2021
Advanced Neural Network ApplicationsComputer Science36 references27 citations
TL;DR

This paper proposes NViT, a novel Vision Transformer architecture derived from global, latency-aware structural pruning of ViT models. By analyzing pruned weight structures, the authors redistribute parameters more efficiently, achieving 2.6x FLOPs reduction, 5.1x parameter reduction, and 1.9x speedup on ImageNet-1K with only 0.07% accuracy drop, while outperforming hand-designed DEIT variants by 0.1–1.1% in accuracy at lower latency.

ABSTRACT

Transformers yield state-of-the-art results across many tasks. However, they still impose huge computational costs during inference. We apply global, structural pruning with latency-aware regularization on all parameters of the Vision Transformer (ViT) model for latency reduction. Furthermore, we analyze the pruned architectures and find interesting regularities in the final weight structure. Our discovered insights lead to a new architecture called NViT (Novel ViT), with a redistribution of where parameters are used. This architecture utilizes parameters more efficiently and enables control of the latency-accuracy trade-off. On ImageNet-1K, we prune the DEIT-Base (Touvron et al., 2021) model to a 2.6x FLOPs reduction, 5.1x parameter reduction, and 1.9x run-time speedup with only 0.07% loss in accuracy. We achieve more than 1% accuracy gain when compressing the base model to the throughput of the Small/Tiny variants. NViT gains 0.1-1.1% accuracy over the hand-designed DEIT family when trained from scratch, while being faster.

Motivation & Objective

  • To reduce the high computational cost of Vision Transformers during inference.
  • To discover structural regularities in pruned ViT models that inform architectural redesign.
  • To develop a new ViT architecture, NViT, that redistributes parameters more efficiently for better latency-accuracy trade-offs.
  • To achieve significant model compression with minimal accuracy degradation while improving inference speed.

Proposed method

  • Applying global, structural pruning with latency-aware regularization across all ViT parameters to reduce computational cost.
  • Analyzing the weight structure of pruned ViT models to identify recurring patterns and regularities.
  • Using insights from pruned architectures to design NViT, a new ViT architecture with restructured parameter usage.
  • Redistributing parameters in NViT to enhance efficiency and enable tunable latency-accuracy trade-offs.
  • Training NViT from scratch and comparing it to hand-designed DEIT variants under identical compression conditions.

Experimental results

Research questions

  • RQ1What structural regularities emerge in the weight matrices of globally pruned Vision Transformers?
  • RQ2How can insights from pruned ViT architectures inform the design of more efficient transformer models?
  • RQ3Can a restructured parameter distribution in ViT lead to better latency-accuracy trade-offs compared to hand-designed variants?
  • RQ4To what extent can FLOPs and parameter count be reduced without significant accuracy loss?

Key findings

  • Pruning DEIT-Base via global, latency-aware structural pruning achieved a 2.6x reduction in FLOPs with only 0.07% accuracy drop.
  • The same pruning process reduced parameters by 5.1x and achieved a 1.9x run-time speedup on ImageNet-1K.
  • NViT achieved more than 1% accuracy gain over the DEIT family when compressed to the throughput level of DEIT-Small or DEIT-Tiny.
  • NViT outperformed hand-designed DEIT variants by 0.1–1.1% in accuracy when trained from scratch, while being faster.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.