UltraSparseBERT: 99% Conditionally Sparse Language Modelling

Published: 01 Jan 2024, Last Modified: 30 Sept 2024ACL (Short Papers) 2024EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: We present UltraSparseBERT, a BERT variant that uses 0.3% of its neurons during inference while performing on par with similar BERT models. UltraSparseBERT selectively engages just 12 out of 4095 neurons for each layer inference. This is achieved by reorganizing feedforward networks into fast feedforward networks (FFFs).To showcase but one benefit of high sparsity, we provide an Intel MKL implementation achieving 78x speedup over the optimized feedforward baseline on CPUs, and an OpenAI Triton implementation performing forward passes 4.1x faster than the corresponding native GPU implementation. The training and benchmarking code is enclosed.
Loading