S2HPruner: Soft-to-Hard Distillation Bridges the Discretization Gap in Pruning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lin, Weihao, Tang, Shengji, Yu, Chong, Ye, Peng, Chen, Tao
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929534101618688
author Lin, Weihao
Tang, Shengji
Yu, Chong
Ye, Peng
Chen, Tao
author_facet Lin, Weihao
Tang, Shengji
Yu, Chong
Ye, Peng
Chen, Tao
contents Recently, differentiable mask pruning methods optimize the continuous relaxation architecture (soft network) as the proxy of the pruned discrete network (hard network) for superior sub-architecture search. However, due to the agnostic impact of the discretization process, the hard network struggles with the equivalent representational capacity as the soft network, namely discretization gap, which severely spoils the pruning performance. In this paper, we first investigate the discretization gap and propose a novel structural differentiable mask pruning framework named S2HPruner to bridge the discretization gap in a one-stage manner. In the training procedure, SH2Pruner forwards both the soft network and its corresponding hard network, then distills the hard network under the supervision of the soft network. To optimize the mask and prevent performance degradation, we propose a decoupled bidirectional knowledge distillation. It blocks the weight updating from the hard to the soft network while maintaining the gradient corresponding to the mask. Compared with existing pruning arts, S2HPruner achieves surpassing pruning performance without fine-tuning on comprehensive benchmarks, including CIFAR-100, Tiny ImageNet, and ImageNet with a variety of network architectures. Besides, investigation and analysis experiments explain the effectiveness of S2HPruner. Codes will be released soon.
format Preprint
id arxiv_https___arxiv_org_abs_2410_07046
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle S2HPruner: Soft-to-Hard Distillation Bridges the Discretization Gap in Pruning
Lin, Weihao
Tang, Shengji
Yu, Chong
Ye, Peng
Chen, Tao
Computer Vision and Pattern Recognition
Recently, differentiable mask pruning methods optimize the continuous relaxation architecture (soft network) as the proxy of the pruned discrete network (hard network) for superior sub-architecture search. However, due to the agnostic impact of the discretization process, the hard network struggles with the equivalent representational capacity as the soft network, namely discretization gap, which severely spoils the pruning performance. In this paper, we first investigate the discretization gap and propose a novel structural differentiable mask pruning framework named S2HPruner to bridge the discretization gap in a one-stage manner. In the training procedure, SH2Pruner forwards both the soft network and its corresponding hard network, then distills the hard network under the supervision of the soft network. To optimize the mask and prevent performance degradation, we propose a decoupled bidirectional knowledge distillation. It blocks the weight updating from the hard to the soft network while maintaining the gradient corresponding to the mask. Compared with existing pruning arts, S2HPruner achieves surpassing pruning performance without fine-tuning on comprehensive benchmarks, including CIFAR-100, Tiny ImageNet, and ImageNet with a variety of network architectures. Besides, investigation and analysis experiments explain the effectiveness of S2HPruner. Codes will be released soon.
title S2HPruner: Soft-to-Hard Distillation Bridges the Discretization Gap in Pruning
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.07046