End-to-End Supermask Pruning: Learning to Prune Image Captioning Models
arXiv:2110.03298 · doi:10.1016/j.patcog.2021.108366
Abstract
With the advancement of deep models, research work on image captioning has led to a remarkable gain in raw performance over the last decade, along with increasing model complexity and computational cost. However, surprisingly works on compression of deep networks for image captioning task has received little to no attention. For the first time in image captioning research, we provide an extensive comparison of various unstructured weight pruning methods on three different popular image captioning architectures, namely Soft-Attention, Up-Down and Object Relation Transformer. Following this, we propose a novel end-to-end weight pruning method that performs gradual sparsification based on weight sensitivity to the training loss. The pruning schemes are then extended with encoder pruning, where we show that conducting both decoder pruning and training simultaneously prior to the encoder pruning provides good overall performance. Empirically, we show that an 80% to 95% sparse network (up to 75% reduction in model size) can either match or outperform its dense counterpart. The code and pre-trained models for Up-Down and Object Relation Transformer that are capable of achieving CIDEr scores >120 on the MS-COCO dataset but with only 8.7 MB and 14.5 MB in model size (size reduction of 96% and 94% respectively against dense versions) are publicly available at https://github.com/jiahuei/sparse-image-captioning.
Pattern Recognition; In Press
References in corpus (16)
- Adam: A Method for Stochastic Optimization
- Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
- MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
- Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
- Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation
- The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks
- AMC: AutoML for Model Compression and Acceleration on Mobile Devices
- Rethinking the Value of Network Pruning
- To prune, or not to prune: exploring the efficacy of pruning for model compression
- SNIP: Single-shot Network Pruning based on Connection Sensitivity
- Learning Intrinsic Sparse Structures within Long Short-Term Memory
- Deconstructing Lottery Tickets: Zeros, Signs, and the Supermask
- EigenDamage: Structured Pruning in the Kronecker-Factored Eigenbasis
- A Better Variant of Self-Critical Sequence Training
- EagleEye: Fast Sub-net Evaluation for Efficient Neural Network Pruning
- SparseRT: Accelerating Unstructured Sparsity on GPUs for Deep Learning Inference