Litcius/Paper detail

SkipBERT: Efficient Inference with Shallow Layer Skipping

Jue Wang, Ke Chen, Gang Chen, Lidan Shou, Julian McAuley

2022Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)18 citationsDOIOpen Access PDF

Abstract

In this paper, we propose SkipBERT to accelerate BERT inference by skipping the computation of shallow layers. To achieve this, our approach encodes small text chunks into independent representations, which are then materialized to approximate the shallow representation of BERT. Since the use of such approximation is inexpensive compared with transformer calculations, we leverage it to replace the shallow layers of BERT to skip their runtime overhead. With off-the-shelf early exit mechanisms, we also skip redundant computation from the highest few layers to further improve inference efficiency. Results on GLUE show that our approach can reduce latency by 65% without sacrificing performance. By using only two-layer transformer calculations, we can still maintain 95% accuracy of BERT.

Topics & Concepts

InferenceComputer scienceComputationLeverage (statistics)TransformerLatency (audio)Computer engineeringParallel computingAlgorithmArtificial intelligenceTelecommunicationsElectrical engineeringEngineeringVoltageTopic ModelingNatural Language Processing TechniquesDomain Adaptation and Few-Shot Learning
SkipBERT: Efficient Inference with Shallow Layer Skipping | Litcius