ADMM Based Semi-Structured Pattern Pruning Framework for Transformer

NLP (natural language processing) has achieved great success through the transformer model. However, the model has hundreds of millions or billions of parameters, which is a huge burden when deployed on personal computers or small-scale servers. To deal with it, we either make the model's weight matrix relatively sparser or compress the attention layer. Pattern pruning, one of the most important pruning methods, permits selecting and pruning a fixed number of parameters in each divided pattern block. However, the effect of pattern pruning is strictly limited by the sparsity within a region of weights in each layer. In this paper, we first introduced the Alternating Direction Method of Multipliers (ADMM) based pattern pruning framework to reshape the distribution of the activation map. Specifically, we propose to formulate the pattern pruning on the transformer as a constrained optimization and use ADMM to optimize the problem. In this way, the initial dense feature maps are transformed into rather regionally sparsified ones. Therefore, we can then achieve a higher compression ratio with better performance based on the pattern pruning method. Additionally, this paper provides theoretical derivations of the ADMM with local sparsity. Finally, we also extend the proposed ADMM-based framework with Sparse-Refined Straight-Through Estimator (SR-STE) to demonstrate its generalization and to avoid the gradient vanishing problem. We conduct extensive experiments on classification tasks over GLUE datasets. Significantly, we achieve a 50% compression ratio while maintaining an overall score of 80.1 on the GLUE dataset.

Authors

Institutions

Publication Details

Published
2024-09-13
DOI
https://doi.org/10.1109/aiotc63215.2024.10748287
Primary Topic
Power Systems and Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ADMM Based Semi-Structured Pattern Pruning Framework for Transformer

Tianchen Wang
Power Systems and Technologies
article

ADMM Based Semi-Structured Pattern Pruning Framework for Transformer

Tianchen Wang
article en

Abstract

NLP (natural language processing) has achieved great success through the transformer model. However, the model has hundreds of millions or billions of parameters, which is a huge burden when deployed on personal computers or small-scale servers. To deal with it, we either make the model's weight matrix relatively sparser or compress the attention layer. Pattern pruning, one of the most important pruning methods, permits selecting and pruning a fixed number of parameters in each divided pattern block. However, the effect of pattern pruning is strictly limited by the sparsity within a region of weights in each layer. In this paper, we first introduced the Alternating Direction Method of Multipliers (ADMM) based pattern pruning framework to reshape the distribution of the activation map. Specifically, we propose to formulate the pattern pruning on the transformer as a constrained optimization and use ADMM to optimize the problem. In this way, the initial dense feature maps are transformed into rather regionally sparsified ones. Therefore, we can then achieve a higher compression ratio with better performance based on the pattern pruning method. Additionally, this paper provides theoretical derivations of the ADMM with local sparsity. Finally, we also extend the proposed ADMM-based framework with Sparse-Refined Straight-Through Estimator (SR-STE) to demonstrate its generalization and to avoid the gradient vanishing problem. We conduct extensive experiments on classification tasks over GLUE datasets. Significantly, we achieve a 50% compression ratio while maintaining an overall score of 80.1 on the GLUE dataset.

Fudan University (CN)
Affordable and clean energy
Openalex Percentile: Top 82%
Power Systems and Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

ADMM Based Semi-Structured Pattern Pruning Framework for Transformer — Tianchen Wang · (2024) | TGRS Research Map | TGRS