基于Transformer的模型的分块比特压缩
Block-wise Bit-Compression of Transformer-based Models
AI总结:
针对Transformer模型计算量大、内存占用高且延迟高的问题,提出无需重新训练的分块比特压缩方法BBCT,对整个模型进行细粒度压缩,在GLUE基准测试中多数任务准确率下降不到1%。
摘要:
随着以BERT、GPT-3和ChatGPT为代表的近期Transformer模型普及,一系列自然语言处理任务达到了最先进的性能。然而,Transformer模型的大规模计算、巨大的内存占用以及由此导致的高延迟,对于具有高实时性要求的云服务来说是一个不可避免的挑战。为了解决这个问题,我们提出了BBCT,一种无需重新训练的Transformer分块比特压缩方法。我们的方法实现了对整个Transformer更细粒度的压缩,包括嵌入、矩阵乘法、GELU、softmax、层归一化以及所有中间结果。作为案例,我们使用BBCT方法压缩了一个高效的BERT。我们在通用语言理解评估(GLUE)上的基准测试结果表明,BBCT在大多数任务中能达到低于1%的准确率下降。
英文摘要:
With the popularity of the recent Transformer-based models represented by BERT, GPT-3 and ChatGPT, there has been state-of-the-art performance in a range of natural language processing tasks. However, the massive computations, huge memory footprint, and thus high latency of Transformer-based models is an inevitable challenge for the cloud with high real-time requirement. To tackle the issue, we propose BBCT, a method of block-wise bit-compression for transformer without retraining. Our method achieves more fine-grained compression of the whole transformer, including embedding, matrix multiplication, GELU, softmax, layer normalization, and all the intermediate results. As a case, we compress an efficient BERT with the method of BBCT. Our benchmark test results on General Language Understanding Evaluation (GLUE) show that BBCT can achieve less than 1% accuracy drop in most tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。